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
Update docs and some UI to make Admin SSO bypass more clear
x0322056369d1386253
diff --git a/docs/documentation/platform/sso/auth0-oidc.mdx b/docs/documentation/platform/sso/auth0-oidc.mdxindex 0665a7b30b..4b54c053d7 100644--- a/docs/documentation/platform/sso/auth0-oidc.mdx+++ b/docs/documentation/platform/sso/auth0-oidc.mdx@@ -14,7 +14,7 @@ description: "Learn how to configure Auth0 OIDC for Infisical SSO."<Step title="Setup application in Auth0">1.1. From the Application's Page, navigate to the settings tab of the Auth0 application you want to integrate with Infisical.-+1.2. In the Application URIs section, set the **Application Login URI** and **Allowed Web Origins** fields to `https://app.infisical.com` and the **Allowed Callback URL** field to `https://app.infisical.com/api/v1/sso/oidc/callback`.@@ -70,7 +70,7 @@ description: "Learn how to configure Auth0 OIDC for Infisical SSO."prior to enforcing OIDC SSO to prevent any unintended issues.</Warning><Info>- In case of a lockout, an organization admin can use the admin login portal in the `/login/admin` path e.g. https://app.infisical.com/login/admin.+ In case of a lockout, an organization admin can use the [Admin Login Portal](https://infisical.com/docs/documentation/platform/sso/overview#admin-login-portal) in the `/login/admin` path e.g. https://app.infisical.com/login/admin.</Info></Step></Steps>diff --git a/docs/documentation/platform/sso/auth0-saml.mdx b/docs/documentation/platform/sso/auth0-saml.mdxindex 562360ecb0..22ef00c891 100644--- a/docs/documentation/platform/sso/auth0-saml.mdx+++ b/docs/documentation/platform/sso/auth0-saml.mdx@@ -23,30 +23,30 @@ description: "Learn how to configure Auth0 SAML for Infisical SSO."</Step><Step title="Create a SAML application in Auth0">2.1. In your Auth0 account, head to Applications and create an application.-+-+Select **Regular Web Application** and press **Create**.-+-+2.2. In the Application head to Settings > Application URIs and add the **Application Callback URL** from step 1 into the **Allowed Callback URLs** field.-+-+2.3. In the Application head to Addons > SAML2 Web App and copy the **Issuer**, **Identity Provider Login URL**, and **Identity Provider Certificate** from the **Usage** tab.-+-+2.4. Back in Infisical, set **Issuer**, **Identity Provider Login URL**, and **Certificate** to the corresponding items from step 2.3.-+-+2.5. Back in Auth0, in the **Settings** tab, set the **Application Callback URL** to the **Application Callback URL** from step 1and update the **Settings** field with the JSON under the picture below (replacing `<audience-from-infisical>` with the **Audience** from step 1).-+-+```json{"audience": "<audience-from-infisical>",@@ -76,7 +76,7 @@ description: "Learn how to configure Auth0 SAML for Infisical SSO."Once you've completed this requirement, you can toggle the **Enforce SAML SSO** button to enforce SAML SSO.<Info>- In case of a lockout, an organization admin can use the admin login portal in the `/login/admin` path e.g. https://app.infisical.com/login/admin.+ In case of a lockout, an organization admin can use the [Admin Login Portal](https://infisical.com/docs/documentation/platform/sso/overview#admin-login-portal) in the `/login/admin` path e.g. https://app.infisical.com/login/admin.</Info></Step>@@ -96,4 +96,4 @@ description: "Learn how to configure Auth0 SAML for Infisical SSO."32`.<div class="height:1px;"/>- `SITE_URL`: The absolute URL of your self-hosted instance of Infisical including the protocol (e.g. https://app.infisical.com)-</Note>\ No newline at end of file+</Note>diff --git a/docs/documentation/platform/sso/azure.mdx b/docs/documentation/platform/sso/azure.mdxindex 137dc65647..0957dc4d1e 100644--- a/docs/documentation/platform/sso/azure.mdx+++ b/docs/documentation/platform/sso/azure.mdx@@ -5,7 +5,7 @@ description: "Learn how to configure Microsoft Entra ID for Infisical SSO."<Info>Azure SAML SSO is a paid feature.-+If you're using Infisical Cloud, then it is available under the **Pro Tier**. If you're self-hosting Infisical,then you should contact [email protected] to purchase an enterprise license to use it.</Info>@@ -26,7 +26,7 @@ description: "Learn how to configure Microsoft Entra ID for Infisical SSO."-+On the next screen, press the **+ Create your own application** button.Give the application a unique name like Infisical; choose the "Integrate any other application you don't find in the gallery (Non-gallery)"option and hit the **Create** button.@@ -89,9 +89,9 @@ description: "Learn how to configure Microsoft Entra ID for Infisical SSO."</Step><Step title="Assign users in Azure to the application">Back in Azure, navigate to the **Users and groups** tab and select **+ Add user/group** to assign access to the login with SSO application on a user or group-level.-+- </Step>+ </Step><Step title="Enable SAML SSO in Infisical">Enabling SAML SSO allows members in your organization to log into Infisical via Azure.@@ -109,7 +109,7 @@ description: "Learn how to configure Microsoft Entra ID for Infisical SSO."prior to enforcing SAML SSO to prevent any unintended issues.</Warning><Info>- In case of a lockout, an organization admin can use the admin login portal in the `/login/admin` path e.g. https://app.infisical.com/login/admin.+ In case of a lockout, an organization admin can use the [Admin Login Portal](https://infisical.com/docs/documentation/platform/sso/overview#admin-login-portal) in the `/login/admin` path e.g. https://app.infisical.com/login/admin.</Info></Step></Steps>diff --git a/docs/documentation/platform/sso/general-oidc/overview.mdx b/docs/documentation/platform/sso/general-oidc/overview.mdxindex 76ac982f86..07ddaaedd5 100644--- a/docs/documentation/platform/sso/general-oidc/overview.mdx+++ b/docs/documentation/platform/sso/general-oidc/overview.mdx@@ -70,7 +70,7 @@ Prerequisites:We recommend ensuring that your account is provisioned using the identity provider prior to enforcing OIDC SSO to prevent any unintended issues.</Warning><Info>- In case of a lockout, an organization admin can use the admin login portal in the `/login/admin` path e.g. https://app.infisical.com/login/admin.+ In case of a lockout, an organization admin can use the [Admin Login Portal](https://infisical.com/docs/documentation/platform/sso/overview#admin-login-portal) in the `/login/admin` path e.g. https://app.infisical.com/login/admin.</Info></Step>diff --git a/docs/documentation/platform/sso/google-saml.mdx b/docs/documentation/platform/sso/google-saml.mdxindex 99223c8150..84888b2f99 100644--- a/docs/documentation/platform/sso/google-saml.mdx+++ b/docs/documentation/platform/sso/google-saml.mdx@@ -24,21 +24,21 @@ description: "Learn how to configure Google SAML for Infisical SSO."<Step title="Create a SAML application in Google">2.1. In your [Google Admin console](https://support.google.com/a/answer/182076), head to Menu > Apps > Web and mobile apps andcreate a **custom SAML app**.-+-+2.2. In the **App details** tab, give the application a unique name like Infisical.-+-+2.3. In the **Google Identity Provider details** tab, copy the **SSO URL**, **Entity ID** and **Certificate**.-+-+2.4. Back in Infisical, set **SSO URL** and **Certificate** to the corresponding items from step 2.3.-+-+2.5. Back in the Google Admin console, in the **Service provider details** tab, set the **ACS URL** and **Entity ID** to the corresponding items from step 1.Also, check the **Signed response** checkbox.@@ -84,7 +84,7 @@ description: "Learn how to configure Google SAML for Infisical SSO."prior to enforcing SAML SSO to prevent any unintended issues.</Warning><Info>- In case of a lockout, an organization admin can use the admin login portal in the `/login/admin` path e.g. https://app.infisical.com/login/admin.+ In case of a lockout, an organization admin can use the [Admin Login Portal](https://infisical.com/docs/documentation/platform/sso/overview#admin-login-portal) in the `/login/admin` path e.g. https://app.infisical.com/login/admin.</Info></Step>diff --git a/docs/documentation/platform/sso/jumpcloud.mdx b/docs/documentation/platform/sso/jumpcloud.mdxindex 0898c0715b..1956064d61 100644--- a/docs/documentation/platform/sso/jumpcloud.mdx+++ b/docs/documentation/platform/sso/jumpcloud.mdx@@ -5,7 +5,7 @@ description: "Learn how to configure JumpCloud SAML for Infisical SSO."<Info>JumpCloud SAML SSO is a paid feature.-+If you're using Infisical Cloud, then it is available under the **Pro Tier**. If you're self-hosting Infisical,then you should contact [email protected] to purchase an enterprise license to use it.</Info>@@ -83,13 +83,13 @@ description: "Learn how to configure JumpCloud SAML for Infisical SSO."To enforce SAML SSO, you're required to test out the SAML connection by successfully authenticating at least one JumpCloud user with Infisical;Once you've completed this requirement, you can toggle the **Enforce SAML SSO** button to enforce SAML SSO.-+<Warning>We recommend ensuring that your account is provisioned the application in JumpCloudprior to enforcing SAML SSO to prevent any unintended issues.</Warning><Info>- In case of a lockout, an organization admin can use the admin login portal in the `/login/admin` path e.g. https://app.infisical.com/login/admin.+ In case of a lockout, an organization admin can use the [Admin Login Portal](https://infisical.com/docs/documentation/platform/sso/overview#admin-login-portal) in the `/login/admin` path e.g. https://app.infisical.com/login/admin.</Info></Step></Steps>diff --git a/docs/documentation/platform/sso/keycloak-oidc/overview.mdx b/docs/documentation/platform/sso/keycloak-oidc/overview.mdxindex 06d8dfa438..2c75fc6fe3 100644--- a/docs/documentation/platform/sso/keycloak-oidc/overview.mdx+++ b/docs/documentation/platform/sso/keycloak-oidc/overview.mdx@@ -97,7 +97,7 @@ description: "Learn how to configure Keycloak OIDC for Infisical SSO."prior to enforcing OIDC SSO to prevent any unintended issues.</Warning><Info>- In case of a lockout, an organization admin can use the admin login portal in the `/login/admin` path e.g. https://app.infisical.com/login/admin.+ In case of a lockout, an organization admin can use the [Admin Login Portal](https://infisical.com/docs/documentation/platform/sso/overview#admin-login-portal) in the `/login/admin` path e.g. https://app.infisical.com/login/admin.</Info></Step></Steps>diff --git a/docs/documentation/platform/sso/keycloak-saml.mdx b/docs/documentation/platform/sso/keycloak-saml.mdxindex ba6aa0c3ac..9336f10801 100644--- a/docs/documentation/platform/sso/keycloak-saml.mdx+++ b/docs/documentation/platform/sso/keycloak-saml.mdx@@ -5,7 +5,7 @@ description: "Learn how to configure Keycloak SAML for Infisical SSO."<Info>Keycloak SAML SSO is a paid feature.-+If you're using Infisical Cloud, then it is available under the **Pro Tier**. If you're self-hosting Infisical,then you should contact [email protected] to purchase an enterprise license to use it.</Info>@@ -13,36 +13,36 @@ description: "Learn how to configure Keycloak SAML for Infisical SSO."<Steps><Step title="Prepare the SAML SSO configuration in Infisical">In Infisical, head to the **Single Sign-On (SSO)** page and select the **General** tab. Click **Connect** for **SAML** under the Connect to an Identity Provider section. Select **Keycloak**, then click **Connect** again.-+-+Next, copy the **Valid redirect URI** and **SP Entity ID** to use when configuring the Keycloak SAML application.-+</Step><Step title="Create a SAML client application in Keycloak">2.1. In your realm, navigate to the **Clients** tab and click **Create client** to create a new client application.-+-+<Info>You don’t typically need to make a realm dedicated to Infisical. We recommend adding Infisical as a client to your primary realm.</Info>-+In the General Settings step, set **Client type** to **SAML**, the **Client ID** field to `https://app.infisical.com`, and the **Name** field to a friendly name like **Infisical**.-+-+<Info>If you’re self-hosting Infisical, then you will want to replace https://app.infisical.com with your own domain.</Info>-+Next, in the Login Settings step, set both the **Home URL** field and **Valid redirect URIs** field to the **Valid redirect URI** from step 1 and press **Save**.-+-+2.2. Once you've created the client, under its **Settings** tab, make sure to set the following values:-+- Under **SAML Capabilities**:- Name ID format: email (or username).- Force name ID format: On.@@ -54,59 +54,59 @@ description: "Learn how to configure Keycloak SAML for Infisical SSO."- Signature algorithm: RSA_SHA256.-+-+2.3. Next, navigate to the **Client scopes** tab select the client's dedicated scope.-+-+Next click **Add predefined mapper**.-+-+Select the **X500 email**, **X500 givenName**, and **X500 surname** attributes and click **Add**.-+-- Now click on the **X500 email** mapper and set the **SAML Attribute Name** field to **email**.++ Now click on the **X500 email** mapper and set the **SAML Attribute Name** field to **email**.-+Repeat the same for **X500 givenName** and **X500 surname** mappers, setting the **SAML Attribute Name** field to **firstName** and **lastName** respectively.-+Next, back in the client scope's **Mappers**, click **Add mapper** and select **by configuration**.-+-+Select **User Property**.-+Set the the **Name** field to **Username**, the **Property** field to **username**, and the **SAML Attribtue Name** to **username**.-+-+Repeat the same for the `id` attribute, setting the **Name** field to **ID**, the **Property** field to **id**, and the **SAML Attribute Name** to **id**.-+-+Once you've completed the above steps, the list of mappers should look like this:-+</Step><Step title="Retrieve Identity Provider (IdP) Information from Keycloak">Back in Keycloak, navigate to Configure > Realm settings > General tab > Endpoints > SAML 2.0 Identity Provider Metadata and copy the IDP URL. This should appear in various places and take the form: `https://keycloak-mysite.com/realms/myrealm/protocol/saml`.-+-+Also, in the **Keys** tab, locate the RS256 key and copy the certificate to use when finishing configuring Keycloak SAML in Infisical.-+</Step><Step title="Finish configuring SAML in Infisical">Back in Infisical, set **IDP URL** and **Certificate** to the items from step 3. Also, set the **Client ID** to the `https://app.infisical.com`.-+Once you've done that, press **Update** to complete the required configuration.@@ -119,7 +119,7 @@ description: "Learn how to configure Keycloak SAML for Infisical SSO."<Step title="Enforce SAML SSO in Infisical">Enforcing SAML SSO ensures that members in your organization can only access Infisicalby logging into the organization via Keycloak.-+To enforce SAML SSO, you're required to test out the SAML connection by successfully authenticating at least one Keycloak user with Infisical;Once you've completed this requirement, you can toggle the **Enforce SAML SSO** button to enforce SAML SSO.@@ -128,7 +128,7 @@ description: "Learn how to configure Keycloak SAML for Infisical SSO."prior to enforcing SAML SSO to prevent any unintended issues.</Warning><Info>- In case of a lockout, an organization admin can use the admin login portal in the `/login/admin` path e.g. https://app.infisical.com/login/admin.+ In case of a lockout, an organization admin can use the [Admin Login Portal](https://infisical.com/docs/documentation/platform/sso/overview#admin-login-portal) in the `/login/admin` path e.g. https://app.infisical.com/login/admin.</Info></Step></Steps>@@ -147,4 +147,4 @@ description: "Learn how to configure Keycloak SAML for Infisical SSO."32`.<div class="height:1px;"/>- `SITE_URL`: The absolute URL of your self-hosted instance of Infisical including the protocol (e.g. https://app.infisical.com)-</Note>\ No newline at end of file+</Note>diff --git a/docs/documentation/platform/sso/okta.mdx b/docs/documentation/platform/sso/okta.mdxindex 2af689e4c4..f7dc90c088 100644--- a/docs/documentation/platform/sso/okta.mdx+++ b/docs/documentation/platform/sso/okta.mdx@@ -96,10 +96,10 @@ description: "Learn how to configure Okta SAML 2.0 for Infisical SSO."We recommend ensuring that your account is provisioned the application in Oktaprior to enforcing SAML SSO to prevent any unintended issues.</Warning>+<Info>- In case of a lockout, an organization admin can use the admin login portal in the `/login/admin` path e.g. https://app.infisical.com/login/admin.+ In case of a lockout, an organization admin can use the [Admin Login Portal](https://infisical.com/docs/documentation/platform/sso/overview#admin-login-portal) in the `/login/admin` path e.g. https://app.infisical.com/login/admin.</Info>-</Step></Steps>diff --git a/docs/documentation/platform/sso/overview.mdx b/docs/documentation/platform/sso/overview.mdxindex e5d5e5c167..53cb5dd4e1 100644--- a/docs/documentation/platform/sso/overview.mdx+++ b/docs/documentation/platform/sso/overview.mdx@@ -39,18 +39,30 @@ If your required identity provider is not shown in the list above, please reachFor enhanced security, Infisical enforces PKCE (Proof Key for Code Exchange) with the OAuth 2.0-based SSO providers and OIDC. This provides additional protection against authorization code interception attacks and strengthens your authentication flow security.</Info>+## Admin Login Portal++Organization Admins can utilize the Admin Login Portal to bypass SSO enforcement in case of an emergency.++This portal is accessible at `/login/admin` (e.g., https://app.infisical.com/login/admin).++<Note>+ This bypass functionality is exclusively available to **Organization Admins**. **Server Admins** are not permitted to use this feature.+</Note>+## FAQ<AccordionGroup>- <Accordion title="Why does Infisical require additional email verification for users connected via SAML?">- By default, Infisical Cloud is configured to not trust emails from external- identity providers to prevent any malicious account takeover attempts via- email spoofing. Accordingly, Infisical creates a new user for anyone provisioned- through an external identity provider and requires an additional email- verification step upon their first login.-- If you're running a self-hosted instance of Infisical and would like it to trust emails from external identity providers,- you can configure this behavior in the Server Admin Console.+ <Accordion title="Why does Infisical require additional email verification for users connected via SAML?">+ By default, Infisical Cloud is configured to not trust emails from external+ identity providers to prevent any malicious account takeover attempts via+ email spoofing. Accordingly, Infisical creates a new user for anyone provisioned+ through an external identity provider and requires an additional email+ verification step upon their first login.- </Accordion>+ If you're running a self-hosted instance of Infisical and would like it to trust emails from external identity providers,+ you can configure this behavior in the Server Admin Console.+ </Accordion>+ <Accordion title="Why do I get redirected to SSO when trying to use the Admin Login Portal?">+ You are likely being redirected because you're not using your username and password, or you're not an **Organization Admin**. This portal requires **Organization Admin** status and direct credential login (username and password). **Server Admin** status alone is insufficient.+ </Accordion></AccordionGroup>diff --git a/frontend/src/pages/organization/SsoPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx b/frontend/src/pages/organization/SsoPage/components/OrgSsoTab/OrgGeneralAuthSection.tsxindex 21c4409571..ac8685192b 100644--- a/frontend/src/pages/organization/SsoPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx+++ b/frontend/src/pages/organization/SsoPage/components/OrgSsoTab/OrgGeneralAuthSection.tsx@@ -129,7 +129,16 @@ export const OrgGeneralAuthSection = () => {level.</span><p className="mt-4">- In case of a lockout, admins can use the admin login portal at{" "}+ In case of a lockout, admins can use the{" "}+ <a+ target="_blank"+ className="underline underline-offset-2 hover:text-mineshaft-300"+ href="https://infisical.com/docs/documentation/platform/sso/overview#admin-login-portal"+ rel="noreferrer"+ >+ Admin Login Portal+ </a>{" "}+ at{" "}<atarget="_blank"rel="noopener noreferrer"diff --git a/frontend/src/pages/organization/SsoPage/components/OrgSsoTab/OrgOIDCSection.tsx b/frontend/src/pages/organization/SsoPage/components/OrgSsoTab/OrgOIDCSection.tsxindex f9d7b939c9..8d5021d533 100644--- a/frontend/src/pages/organization/SsoPage/components/OrgSsoTab/OrgOIDCSection.tsx+++ b/frontend/src/pages/organization/SsoPage/components/OrgSsoTab/OrgOIDCSection.tsx@@ -212,7 +212,16 @@ export const OrgOIDCSection = (): JSX.Element => {level.</span><p className="mt-4">- In case of a lockout, admins can use the admin login portal at{" "}+ In case of a lockout, admins can use the{" "}+ <a+ target="_blank"+ className="underline underline-offset-2 hover:text-mineshaft-300"+ href="https://infisical.com/docs/documentation/platform/sso/overview#admin-login-portal"+ rel="noreferrer"+ >+ Admin Login Portal+ </a>{" "}+ at{" "}<atarget="_blank"rel="noopener noreferrer"