Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
hide sign up with inviteOnlySignup=true
Maidul Islam1d71864092cc
diff --git a/backend/src/routes/status/status.ts b/backend/src/routes/status/status.tsindex ce13775cb8..c6038846ec 100644--- a/backend/src/routes/status/status.ts+++ b/backend/src/routes/status/status.ts@@ -1,5 +1,5 @@import express, { Request, Response } from "express";-import { getSecretScanningGitAppId, getSecretScanningPrivateKey, getSecretScanningWebhookSecret, getSmtpConfigured } from "../../config";+import { getInviteOnlySignup, getSecretScanningGitAppId, getSecretScanningPrivateKey, getSecretScanningWebhookSecret, getSmtpConfigured } from "../../config";const router = express.Router();@@ -11,6 +11,7 @@ router.get(message: "Ok",emailConfigured: await getSmtpConfigured(),secretScanningConfigured: await getSecretScanningGitAppId() && await getSecretScanningWebhookSecret() && await getSecretScanningPrivateKey(),+ inviteOnlySignup: await getInviteOnlySignup()})});diff --git a/frontend/src/hooks/api/serverDetails/types.ts b/frontend/src/hooks/api/serverDetails/types.tsindex 0deb90a382..ad9ed24e81 100644--- a/frontend/src/hooks/api/serverDetails/types.ts+++ b/frontend/src/hooks/api/serverDetails/types.ts@@ -2,4 +2,6 @@ export type ServerStatus = {date: string;message: string;emailConfigured: boolean;+ inviteOnlySignup: boolean;+ secretScanningConfigured: boolean};\ No newline at end of filediff --git a/frontend/src/views/Login/components/InitialStep/InitialStep.tsx b/frontend/src/views/Login/components/InitialStep/InitialStep.tsxindex 3f436e88eb..afd82abd0f 100644--- a/frontend/src/views/Login/components/InitialStep/InitialStep.tsx+++ b/frontend/src/views/Login/components/InitialStep/InitialStep.tsx@@ -11,6 +11,7 @@ import { useNotificationContext } from "@app/components/context/Notifications/Noimport attemptCliLogin from "@app/components/utilities/attemptCliLogin";import attemptLogin from "@app/components/utilities/attemptLogin";import { Button, Input } from "@app/components/v2";+import { useFetchServerStatus } from "@app/hooks/api/serverDetails";import getOrganizations from "@app/pages/api/organization/getOrgs";type Props = {@@ -34,7 +35,7 @@ export const InitialStep = ({const [isLoading, setIsLoading] = useState(false);const [loginError, setLoginError] = useState(false);const [loginEmailChosen, setLoginEmailChosen] = useState(false);-+ const { data: serverDetails } = useFetchServerStatus();const queryParams = new URLSearchParams(window.location.search);const handleLogin = async (e: FormEvent<HTMLFormElement>) => {@@ -200,12 +201,15 @@ export const InitialStep = ({Continue with SAML SSO</Button></div>- <div className="mt-6 text-bunker-400 text-sm flex flex-row">- <span className="mr-1">Don't have an acount yet?</span>- <Link href="/signup">- <span className='hover:underline hover:underline-offset-4 hover:decoration-primary-700 hover:text-bunker-200 duration-200 cursor-pointer'>{t("login.create-account")}</span>- </Link>- </div>+ {+ !serverDetails?.inviteOnlySignup ?+ <div className="mt-6 text-bunker-400 text-sm flex flex-row">+ <span className="mr-1">Don't have an acount yet?</span>+ <Link href="/signup">+ <span className='hover:underline hover:underline-offset-4 hover:decoration-primary-700 hover:text-bunker-200 duration-200 cursor-pointer'>{t("login.create-account")}</span>+ </Link>+ </div> : <div />+ }<div className="text-bunker-400 text-sm flex flex-row"><span className="mr-1">Forgot password?</span><Link href="/verify-email">