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
create tooltip component for better glob pattern UI on tooltip
adilsondc15d25ce4e3
diff --git a/docs/documentation/platform/identities/jwt-auth.mdx b/docs/documentation/platform/identities/jwt-auth.mdxindex 29a37a5d42..942aad58d3 100644--- a/docs/documentation/platform/identities/jwt-auth.mdx+++ b/docs/documentation/platform/identities/jwt-auth.mdx@@ -103,7 +103,17 @@ 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.- <Info>The `subject`, `audiences`, and `claims` fields support glob pattern matching; however, we highly recommend using hardcoded values whenever possible.</Info>+ <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.++ Note that `*` does not match across `/` boundaries — use `**` to match across path segments.++ | Pattern | Matches | Does not match |+ |---------|---------|----------------|+ | `user-*` | `user-admin`, `user-readonly` | `user-team/lead` |+ | `{admin,service}-**` | `admin-api`, `service-db/primary` | `user-api` |+ | `system:serviceaccount:*:my-sa` | `system:serviceaccount:default:my-sa` | `system:serviceaccount:ns/sub:my-sa` |+ </Info></Step><Step title="Adding an identity to a project">diff --git a/docs/documentation/platform/identities/oidc-auth/azure.mdx b/docs/documentation/platform/identities/oidc-auth/azure.mdxindex c4dd441523..f5239a806d 100644--- a/docs/documentation/platform/identities/oidc-auth/azure.mdx+++ b/docs/documentation/platform/identities/oidc-auth/azure.mdx@@ -93,7 +93,7 @@ In the following steps, we explore how to create and use identities to access th- **Access Token Trusted IPs**: List of allowed IP ranges (defaults to `0.0.0.0/0`)<Tip>If you are unsure about what to configure for the subject, audience, and claims fields, you can inspect the JWT token from your Azure DevOps pipeline by adding a debug step that outputs the token claims.</Tip>- <Info>The `subject`, `audiences`, and `claims` fields support glob pattern matching; however, we highly recommend using hardcoded values whenever possible.</Info>+ <Info>The `subject`, `audiences`, and `claims` fields support [glob pattern](https://www.malikbrowne.com/blog/a-beginners-guide-glob-patterns/) matching (e.g., `user-*`, `{admin,service}-**`); however, we highly recommend using hardcoded values whenever possible.</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/docs/documentation/platform/identities/oidc-auth/github.mdx b/docs/documentation/platform/identities/oidc-auth/github.mdxindex d7c2da2808..998c640548 100644--- a/docs/documentation/platform/identities/oidc-auth/github.mdx+++ b/docs/documentation/platform/identities/oidc-auth/github.mdx@@ -93,7 +93,17 @@ 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>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 matching; however, we highly recommend using hardcoded values whenever possible.</Info>+ <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.++ Note that `*` does not match across `:` or `/` boundaries — use `**` when you need to match across separators.++ | Pattern | Matches | Does not match |+ |---------|---------|----------------|+ | `repo:my-org/*:ref:refs/heads/main` | `repo:my-org/any-repo:ref:refs/heads/main` | `repo:my-org/repo:ref:refs/heads/dev` |+ | `repo:my-org/my-repo:*` | `repo:my-org/my-repo:ref:refs/heads/main`, `repo:my-org/my-repo:environment:prod` | `repo:other-org/my-repo:ref:refs/heads/main` |+ | `repo:my-org/{app,api}:*` | `repo:my-org/app:ref:refs/heads/main`, `repo:my-org/api:environment:prod` | `repo:my-org/web:ref:refs/heads/main` |+ </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/docs/documentation/platform/identities/oidc-auth/spire.mdx b/docs/documentation/platform/identities/oidc-auth/spire.mdxindex 6fb3873912..bd776b7ce3 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 matching; however, we highly recommend using hardcoded SPIFFE IDs whenever possible for better security.</Info>+ <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></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/docs/documentation/platform/identities/spiffe-auth.mdx b/docs/documentation/platform/identities/spiffe-auth.mdxindex 06282c8a73..ae2fe86514 100644--- a/docs/documentation/platform/identities/spiffe-auth.mdx+++ b/docs/documentation/platform/identities/spiffe-auth.mdx@@ -108,7 +108,13 @@ In the following steps, we explore how to create and use identities to access th**Common fields for both configurations:**- **Trust Domain (required):** The SPIFFE trust domain that authenticating workloads must belong to (e.g. `example.org` or `prod.example.com`).- - **Allowed SPIFFE IDs (required):** A comma-separated list of SPIFFE ID patterns that are permitted to authenticate. Supports [picomatch](https://github.com/micromatch/picomatch) glob patterns (e.g. `spiffe://example.org/ns/production/**`, `spiffe://example.org/ns/*/sa/my-service`).+ - **Allowed SPIFFE IDs (required):** A comma-separated list of SPIFFE ID patterns that are permitted to authenticate. Supports [glob patterns](https://www.malikbrowne.com/blog/a-beginners-guide-glob-patterns/). Note that `*` matches within a single path segment (does not cross `/`), while `**` matches across multiple segments.++ | Pattern | Matches | Does not match |+ |---------|---------|----------------|+ | `spiffe://example.org/ns/*/sa/my-service` | `spiffe://example.org/ns/production/sa/my-service` | `spiffe://example.org/ns/a/b/sa/my-service` |+ | `spiffe://example.org/ns/production/**` | `spiffe://example.org/ns/production/sa/web`, `spiffe://example.org/ns/production/sa/api` | `spiffe://example.org/ns/staging/sa/web` |+ | `spiffe://example.org/ns/{dev,staging}/**` | `spiffe://example.org/ns/dev/sa/web`, `spiffe://example.org/ns/staging/sa/api` | `spiffe://example.org/ns/production/sa/web` |- **Allowed Audiences (required):** A comma-separated list of allowed audience values. The JWT-SVID's `aud` claim must contain at least one of these values.- **Access Token TTL (default is `2592000` equivalent to 30 days):** The lifetime for an access token in seconds. This value will be referenced at renewal time.- **Access Token Max TTL (default is `2592000` equivalent to 30 days):** The maximum lifetime for an access token in seconds. This value will be referenced at renewal time.diff --git a/docs/documentation/platform/pam/product-reference/access-policies.mdx b/docs/documentation/platform/pam/product-reference/access-policies.mdxindex d869dd1fca..be3b5c3cf4 100644--- a/docs/documentation/platform/pam/product-reference/access-policies.mdx+++ b/docs/documentation/platform/pam/product-reference/access-policies.mdx@@ -21,7 +21,7 @@ An approval policy defines the workflow that must be completed before access isKey features of approval policies include:-- **Condition-based matching**: Define which resources and accounts the policy applies to using glob patterns (e.g. `prod-*`, `*-admin`).+- **Condition-based matching**: Define which resources and accounts the policy applies to using [glob patterns](https://www.malikbrowne.com/blog/a-beginners-guide-glob-patterns/) (e.g. `prod-*`, `{prod,staging}-*`, `*-admin`).- **Multi-step workflows**: Configure sequential approval steps where each step must be completed before the next begins.- **Flexible approvers**: Assign individual users or groups as eligible approvers for each step.- **Required approval count**: Specify how many approvals are needed per step (e.g., require 2 out of 5 eligible approvers).diff --git a/docs/documentation/platform/token.mdx b/docs/documentation/platform/token.mdxindex af31f5a4a0..997c4e76ea 100644--- a/docs/documentation/platform/token.mdx+++ b/docs/documentation/platform/token.mdx@@ -62,13 +62,16 @@ of the `/common` path within the development environment of the project; the tok</Accordion><Accordion title="Can you provide examples for using glob patterns?">- 1. `/**`: This pattern matches all folders at any depth in the directory structure. For example, it would match folders like `/folder1/`, `/folder1/subfolder/`, and so on.-- 2. `/*`: This pattern matches all immediate subfolders in the current directory. It does not match any folders at a deeper level. For example, it would match folders like `/folder1/`, `/folder2/`, but not `/folder1/subfolder/`.-- 3. `/*/*`: This pattern matches all subfolders at a depth of two levels in the current directory. It does not match any folders at a shallower or deeper level. For example, it would match folders like `/folder1/subfolder/`, `/folder2/subfolder/`, but not `/folder1/` or `/folder1/subfolder/subsubfolder/`.-- 4. `/folder1/*`: This pattern matches all immediate subfolders within the `/folder1/` directory. It does not match any folders outside of `/folder1/`, nor does it match any subfolders within those immediate subfolders. For example, it would match folders like `/folder1/subfolder1/`, `/folder1/subfolder2/`, but not `/folder2/subfolder/`.+ **Important:** The `/` character acts as a path separator. A single `*` does **not** match across `/` boundaries — use `**` to match across multiple path segments.++ | Pattern | Matches | Does not match |+ |---------|---------|----------------|+ | `/**` | `/folder1/`, `/folder1/subfolder/`, any depth | — |+ | `/*` | `/folder1/`, `/folder2/` | `/folder1/subfolder/` |+ | `/*/*` | `/folder1/subfolder/` | `/folder1/`, `/a/b/c/` |+ | `/folder1/*` | `/folder1/subfolder1/`, `/folder1/subfolder2/` | `/folder2/subfolder/`, `/folder1/a/b/` |+ | `/services/**` | `/services/api/`, `/services/api/v1/` | `/other/api/` |+ | `/{dev,staging}/*` | `/dev/secrets/`, `/staging/config/` | `/prod/secrets/` |</Accordion></AccordionGroup>diff --git a/docs/internals/permissions/overview.mdx b/docs/internals/permissions/overview.mdxindex d2f5437c0f..5ae4d0e695 100644--- a/docs/internals/permissions/overview.mdx+++ b/docs/internals/permissions/overview.mdx@@ -91,7 +91,7 @@ The following operators are available for conditions:| `$eq` | Equal | `{ environment: { $eq: "production" } }` || `$ne` | Not equal | `{ environment: { $ne: "development" } }` || `$in` | Matches any value in array | `{ environment: { $in: ["staging", "production"] } }` |-| `$glob` | Pattern matching using glob syntax | `{ secretPath: { $glob: "/app/\*" } }` |+| `$glob` | [Glob pattern](https://www.malikbrowne.com/blog/a-beginners-guide-glob-patterns/) matching (supports `*`, `**`, `?`, and `{a,b}` wildcards) | `{ secretPath: { $glob: "/app/\*" } }` |These details are especially useful if you're using the API to [create new project roles](/api-reference/endpoints/project-roles/create).The rules outlined on this page, also apply when using our Terraform Provider to manage your Infisical project roles, or any other of our clients that manage project roles.diff --git a/docs/internals/permissions/project-permissions.mdx b/docs/internals/permissions/project-permissions.mdxindex 0cf790f17c..ca14724fa3 100644--- a/docs/internals/permissions/project-permissions.mdx+++ b/docs/internals/permissions/project-permissions.mdx@@ -443,9 +443,19 @@ When defining conditions for permissions, you can use the following operators to| `$eq` | Equals (exact string match) | `string` || `$ne` | Not equals | `string` || `$in` | In array (matches any value in list) | `string[]` |-| `$glob` | Glob pattern matching (supports `*` and `?` wildcards) | `string` |+| `$glob` | [Glob pattern](https://www.malikbrowne.com/blog/a-beginners-guide-glob-patterns/) matching (supports `*`, `**`, `?`, and `{a,b}` wildcards) | `string` || `$elemMatch` | Element match for nested objects/arrays | `object` |+<Note>+When using `$glob`, note that `*` does **not** match across `/` boundaries. Use `**` to match across multiple path segments.++| Pattern | Matches | Does not match |+|---------|---------|----------------|+| `/app/*` | `/app/config`, `/app/secrets` | `/app/config/db` |+| `/app/**` | `/app/config`, `/app/config/db`, `/app/config/db/primary` | `/other/config` |+| `/{dev,staging}/*` | `/dev/secrets`, `/staging/config` | `/prod/secrets` |+</Note>+## Condition Keys ReferenceThe following condition keys can be used to restrict permissions. Each key is available only for specific subjects as indicated in the tables above.diff --git a/frontend/src/components/permissions/GlobPermissionInfo.tsx b/frontend/src/components/permissions/GlobPermissionInfo.tsxindex b65b0c3074..cccd71ae44 100644--- a/frontend/src/components/permissions/GlobPermissionInfo.tsx+++ b/frontend/src/components/permissions/GlobPermissionInfo.tsx@@ -4,15 +4,63 @@ import picomatch from "picomatch";import { FormControl } from "../v2/FormControl";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">Glob pattern matching:</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">+ path/<code className="text-yellow-500/80">**</code> will match all nested paths.{" "}+ <code className="text-yellow-500/80">**</code> on its own will match everything. Use with+ caution.+ </p>+ </div>+);+export const GlobPermissionInfo = () => {const [pattern, setPattern] = useState("");const [text, setText] = useState("");return (<div>- <div className="mt-2">A glob pattern uses wildcards to match resources or paths.</div>+ <div className="mt-2 space-y-1">+ <p>A glob pattern uses special wildcard characters to match resources or paths:</p>+ <ul className="list-disc pl-4 text-xs text-mineshaft-300">+ <li>+ <code>*</code> — matches any characters except <code>/</code> (e.g., <code>dev-*</code>{" "}+ matches <code>dev-api</code>)+ </li>+ <li>+ <code>**</code> — matches across multiple levels, including <code>/</code> (e.g.,{" "}+ <code>/services/**</code>)+ </li>+ <li>+ <code>?</code> — matches exactly one character (e.g., <code>db-?</code>)+ </li>+ <li>+ <code>{"{a,b}"}</code> — matches either alternative+ </li>+ </ul>+ </div><div>- <FormControl label="Glob pattern" helperText="Examples: /{a,b}, DB_**">+ <FormControl+ label="Glob pattern"+ helperText="Examples: dev-*, /services/**, config-?, {dev,staging}-*"+ ><Input value={pattern} onChange={(e) => setPattern(e.target.value)} /></FormControl></div>diff --git a/frontend/src/components/permissions/index.tsx b/frontend/src/components/permissions/index.tsxindex db6ca32968..c05f9d866a 100644--- a/frontend/src/components/permissions/index.tsx+++ b/frontend/src/components/permissions/index.tsx@@ -1,5 +1,5 @@export * from "./AccessTree";-export { GlobPermissionInfo } from "./GlobPermissionInfo";+export { GlobPatternTooltip, GlobPermissionInfo } from "./GlobPermissionInfo";export { OrgPermissionCan } from "./OrgPermissionCan";export { PermissionDeniedBanner } from "./PermissionDeniedBanner";export { ProjectPermissionCan } from "./ProjectPermissionCan";diff --git a/frontend/src/hooks/api/projects/queries.tsx b/frontend/src/hooks/api/projects/queries.tsxindex e38971423a..0cd378d117 100644--- a/frontend/src/hooks/api/projects/queries.tsx+++ b/frontend/src/hooks/api/projects/queries.tsx@@ -273,12 +273,9 @@ export const useUpdateWorkspaceAuditLogsRetention = () => {return useMutation<Project, object, UpdateAuditLogsRetentionDTO>({mutationFn: async ({ projectId, auditLogsRetentionDays }) => {- const { data } = await apiRequest.put(- `/api/v1/projects/${projectId}/audit-logs-retention`,- {- auditLogsRetentionDays- }- );+ const { data } = await apiRequest.put(`/api/v1/projects/${projectId}/audit-logs-retention`, {+ auditLogsRetentionDays+ });return data.project;},onSuccess: () => {diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityJwtAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityJwtAuthForm.tsxindex 8435bf6f4a..a796d15bf3 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityJwtAuthForm.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityJwtAuthForm.tsx@@ -8,6 +8,7 @@ import { useParams } from "@tanstack/react-router";import { z } from "zod";import { createNotification } from "@app/components/notifications";+import { GlobPatternTooltip } from "@app/components/permissions";import {Button,FormControl,@@ -439,10 +440,7 @@ export const IdentityJwtAuthForm = ({isError={Boolean(error)}errorText={error?.message}icon={- <Tooltip- className="text-center"- content={<span>This field supports glob patterns</span>}- >+ <Tooltip content={<GlobPatternTooltip />}><FontAwesomeIcon icon={faQuestionCircle} size="sm" /></Tooltip>}@@ -460,10 +458,7 @@ export const IdentityJwtAuthForm = ({isError={Boolean(error)}errorText={error?.message}icon={- <Tooltip- className="text-center"- content={<span>This field supports glob patterns</span>}- >+ <Tooltip content={<GlobPatternTooltip />}><FontAwesomeIcon icon={faQuestionCircle} size="sm" /></Tooltip>}@@ -484,10 +479,7 @@ export const IdentityJwtAuthForm = ({label={index === 0 ? "Claims" : undefined}icon={index === 0 ? (- <Tooltip- className="text-center"- content={<span>This field supports glob patterns</span>}- >+ <Tooltip content={<GlobPatternTooltip />}><FontAwesomeIcon icon={faQuestionCircle} size="sm" /></Tooltip>) : undefineddiff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOidcAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOidcAuthForm.tsxindex e30e2b37f4..8df8228f36 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOidcAuthForm.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentityOidcAuthForm.tsx@@ -8,6 +8,7 @@ import { useParams } from "@tanstack/react-router";import { z } from "zod";import { createNotification } from "@app/components/notifications";+import { GlobPatternTooltip } from "@app/components/permissions";import {Button,FormControl,@@ -321,10 +322,7 @@ export const IdentityOidcAuthForm = ({isError={Boolean(error)}errorText={error?.message}icon={- <Tooltip- className="text-center"- content={<span>This field supports glob patterns</span>}- >+ <Tooltip content={<GlobPatternTooltip />}><FontAwesomeIcon icon={faQuestionCircle} size="sm" /></Tooltip>}@@ -342,10 +340,7 @@ export const IdentityOidcAuthForm = ({isError={Boolean(error)}errorText={error?.message}icon={- <Tooltip- className="text-center"- content={<span>This field supports glob patterns</span>}- >+ <Tooltip content={<GlobPatternTooltip />}><FontAwesomeIcon icon={faQuestionCircle} size="sm" /></Tooltip>}@@ -366,10 +361,7 @@ export const IdentityOidcAuthForm = ({label={index === 0 ? "Claims" : undefined}icon={index === 0 ? (- <Tooltip- className="text-center"- content={<span>This field supports glob patterns</span>}- >+ <Tooltip content={<GlobPatternTooltip />}><FontAwesomeIcon icon={faQuestionCircle} size="sm" /></Tooltip>) : undefineddiff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySpiffeAuthForm.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySpiffeAuthForm.tsxindex 8e661e1fea..37714e39cd 100644--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySpiffeAuthForm.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgIdentityTab/components/IdentitySection/IdentitySpiffeAuthForm.tsx@@ -321,7 +321,7 @@ export const IdentitySpiffeAuthForm = ({><TextArea{...field}- placeholder="Comma-separated picomatch patterns (e.g. spiffe://example.org/ns/*/sa/*)"+ placeholder="Comma-separated list of SPIFFE IDs allowed to authenticate. Glob patterns supported: * matches a single path segment, ** matches across multiple segments (e.g. spiffe://example.org/ns/*/sa/admin, spiffe://example.org/workloads/**)"/></FormControl>)}diff --git a/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyDetailsStep.tsx b/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyDetailsStep.tsxindex e889d0da6e..9839999101 100644--- a/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyDetailsStep.tsx+++ b/frontend/src/pages/pam/ApprovalsPage/components/PolicyTab/components/PolicySteps/PolicyDetailsStep.tsx@@ -52,7 +52,7 @@ export const PolicyDetailsStep = () => {label="Resource Names"isError={Boolean(error)}errorText={error?.message}- helperText="Match accounts on resources with these names (supports glob patterns)"+ helperText="Comma-separated list of resource names this policy applies to. Glob patterns supported: * matches any characters except / (e.g., prod-* matches prod-db), ** matches across nested levels (e.g., prod/** matches prod/db/main)."><Inputvalue={resourceField.value?.join(",") ?? ""}@@ -75,7 +75,7 @@ export const PolicyDetailsStep = () => {label="Account Names"isError={Boolean(error)}errorText={error?.message}- helperText="Match accounts with these names (supports glob patterns)"+ helperText="Supports glob patterns. Use * to match within a single level (e.g., admin-* matches admin-ro but not admin/ro). Use ** to match across all depths (e.g., admin/** matches admin/ro/dev)."><Inputvalue={accountField.value?.join(",") ?? ""}diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceRotationRulesSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceRotationRulesSection.tsxindex 460eb32d69..6c5a2cba30 100644--- a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceRotationRulesSection.tsx+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceRotationRulesSection.tsx@@ -220,7 +220,7 @@ export const PamResourceRotationRulesSection = ({ resource }: Props) => {label="Account Name Pattern"isError={!!error}errorText={error?.message}- helperText="Glob pattern (e.g., svc-*, admin, *)"+ helperText="Glob pattern. Use * to match within a single level (e.g., svc-* matches svc-api but not svc/api). Use ** to match across all depths."><Input {...field} placeholder="*" className="font-mono" /></FormControl>diff --git a/frontend/src/pages/secret-manager/SecretApprovalsPage/components/ApprovalPolicyList/components/AccessPolicyModal.tsx b/frontend/src/pages/secret-manager/SecretApprovalsPage/components/ApprovalPolicyList/components/AccessPolicyModal.tsxindex ea0f8d7598..5d343f9464 100644--- a/frontend/src/pages/secret-manager/SecretApprovalsPage/components/ApprovalPolicyList/components/AccessPolicyModal.tsx+++ b/frontend/src/pages/secret-manager/SecretApprovalsPage/components/ApprovalPolicyList/components/AccessPolicyModal.tsx@@ -555,7 +555,7 @@ const Form = ({defaultValue="/"render={({ field, fieldState: { error } }) => (<FormControl- tooltipText="Secret paths support glob patterns. For example, '/**' will match all paths."+ tooltipText="Secret paths support glob patterns. Use * to match a single level and ** to match all nested levels. Example: /** matches all paths, /services/* matches immediate children."label="Secret Path"isRequiredisError={Boolean(error)}diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesTab/SecretValidationRulesTab.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesTab/SecretValidationRulesTab.tsxindex 0f2106e338..eb1e9ce39a 100644--- a/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesTab/SecretValidationRulesTab.tsx+++ b/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesTab/SecretValidationRulesTab.tsx@@ -5,7 +5,7 @@ import { zodResolver } from "@hookform/resolvers/zod";import { EllipsisVerticalIcon, InfoIcon, PencilIcon, PlusIcon, TrashIcon } from "lucide-react";import { createNotification } from "@app/components/notifications";-import { ProjectPermissionCan } from "@app/components/permissions";+import { GlobPatternTooltip, ProjectPermissionCan } from "@app/components/permissions";import {AlertDialog,AlertDialogAction,@@ -231,12 +231,7 @@ const RuleFormContent = ({<InfoIcon className="size-4 text-muted" /></TooltipTrigger><TooltipContent className="max-w-xs text-wrap">- {/* eslint-disable-next-line react/jsx-no-comment-textnodes */}- <p>- The folder path is a glob pattern to match secret paths. As an example,- /** will match all paths, /services/* will match all paths in the- /services folder and its subfolders.- </p>+ <GlobPatternTooltip /></TooltipContent></Tooltip></div>