Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: use general as a reference in docs and make the tooltip more simple

adilsoneb37b0ba5202
diff --git a/docs/documentation/platform/identities/oidc-auth/github.mdx b/docs/documentation/platform/identities/oidc-auth/github.mdx
index 2fa5978b68..db049f10f6 100644
--- a/docs/documentation/platform/identities/oidc-auth/github.mdx
+++ b/docs/documentation/platform/identities/oidc-auth/github.mdx
@@ -94,8 +94,7 @@ In the following steps, we explore how to create and use identities to access th
- Access Token Trusted IPs: The IPs or CIDR ranges that access tokens can be used from. By default, each token is given the `0.0.0.0/0`, allowing usage from any network address.
<Tip>If you are unsure about what to configure for the subject, audience, and claims fields you can use [github/actions-oidc-debugger](https://github.com/github/actions-oidc-debugger) to get the appropriate values. Alternatively, you can fetch the JWT from the workflow and inspect the fields manually.</Tip>
<Info>
- The `subject`, `audiences`, and `claims` fields support [glob pattern](https://www.malikbrowne.com/blog/a-beginners-guide-glob-patterns/) matching; however, we highly recommend using hardcoded values whenever possible.
-
+ The `subject`, `audiences`, and `claims` fields support glob pattern matching; however, we highly recommend using hardcoded values whenever possible. See [General OIDC Auth](/documentation/platform/identities/oidc-auth/general#guide) for glob pattern behavior and examples.
</Info>
</Step>
<Step title="Adding an identity to a project">
diff --git a/docs/documentation/platform/identities/oidc-auth/spire.mdx b/docs/documentation/platform/identities/oidc-auth/spire.mdx
index bd776b7ce3..e2bab35fed 100644
--- a/docs/documentation/platform/identities/oidc-auth/spire.mdx
+++ b/docs/documentation/platform/identities/oidc-auth/spire.mdx
@@ -128,7 +128,7 @@ In the following steps, we explore how to create and use identities to access th
- Access Token Max Number of Uses (default is `0`): The maximum number of times that an access token can be used; a value of `0` implies infinite number of uses.
- Access Token Trusted IPs: The IPs or CIDR ranges that access tokens can be used from. By default, each token is given the `0.0.0.0/0`, allowing usage from any network address.
<Tip>SPIRE JWT-SVIDs contain standard claims like `sub` (SPIFFE ID), `aud` (audience), `exp`, and `iat`. The audience is typically specified when requesting the JWT-SVID (e.g., `spire-agent api fetch jwt -audience infisical`).</Tip>
- <Info>The `subject`, `audiences`, and `claims` fields support [glob pattern](https://www.malikbrowne.com/blog/a-beginners-guide-glob-patterns/) matching (e.g., `spiffe://example.org/ns/*`, `{dev,staging}-*`); however, we highly recommend using hardcoded SPIFFE IDs whenever possible for better security.</Info>
+ <Info>The `subject`, `audiences`, and `claims` fields support glob pattern; however, we highly recommend using hardcoded SPIFFE IDs whenever possible for better security. See [General OIDC Auth](/documentation/platform/identities/oidc-auth/general#guide) for glob pattern behavior and examples. </Info>
</Step>
<Step title="Adding an identity to a project">
To enable the identity to access project-level resources such as secrets within a specific project, you should add it to that project.
diff --git a/frontend/src/components/permissions/GlobPermissionInfo.tsx b/frontend/src/components/permissions/GlobPermissionInfo.tsx
index 01adb52a23..2bcde2bb5f 100644
--- a/frontend/src/components/permissions/GlobPermissionInfo.tsx
+++ b/frontend/src/components/permissions/GlobPermissionInfo.tsx
@@ -6,44 +6,34 @@ import { Input } from "../v2/Input";
export const GlobPatternTooltip = () => (
<div className="space-y-1.5 text-left text-xs">
- <p className="text-sm font-medium text-mineshaft-200">This field supports glob patterns:</p>
- <ul className="list-disc pl-3.5 text-mineshaft-300">
- <li>
- <code className="text-yellow-500/80">*</code> matches a single path segment
- <br />
- <span className="text-mineshaft-400">
- user/* matches user/admin but not user/admin/service
- </span>
- </li>
- <li>
- <code className="text-yellow-500/80">**</code> matches zero or more segments at any depth
- <br />
- <span className="text-mineshaft-400">
- user/** matches user/admin, user/admin/service, etc.
- </span>
- </li>
- </ul>
- <p className="text-mineshaft-400">
- We highly recommend using hardcoded values whenever possible.
- </p>
+ <p className="font-medium text-mineshaft-200">This field supports glob patterns:</p>
+ <div className="text-mineshaft-300">
+ <code className="text-yellow-500/80">*</code> matches a single path segment
+ <br />
+ <span className="text-mineshaft-400">
+ user/* matches user/admin but not user/admin/service
+ </span>
+ </div>
+ <div className="text-mineshaft-300">
+ <code className="text-yellow-500/80">**</code> matches zero or more segments at any depth
+ <br />
+ <span className="text-mineshaft-400">
+ user/** matches user/admin, user/admin/service, etc.
+ </span>
+ </div>
</div>
);
export const BashGlobPatternTooltip = () => (
<div className="space-y-1.5 text-left text-xs">
- <p className="text-sm font-medium text-mineshaft-200">This field supports glob patterns:</p>
- <ul className="list-disc pl-3.5 text-mineshaft-300">
- <li>
- <code className="text-yellow-500/80">*</code> matches any characters (including{" "}
- <code className="text-yellow-500/80">/</code>)
- <br />
- <span className="text-mineshaft-400">
- user/* matches user/admin, user/admin/service, etc.
- </span>
- </li>
- </ul>
- <p className="text-mineshaft-400">
- We highly recommend using hardcoded values whenever possible.
+ <p className="font-medium text-mineshaft-200">This field supports glob patterns:</p>
+ <p className="text-mineshaft-300">
+ <code className="text-yellow-500/80">*</code> matches any characters
+ </p>
+ <p>
+ <span className="text-mineshaft-400">
+ user/* matches user/admin, user/admin/service, etc.
+ </span>
</p>
</div>
);