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
docs: apply review feedback on immutable OIDC subject notes
Claudec7bf4e3680f6
diff --git a/docs/documentation/platform/identities/oidc-auth/general.mdx b/docs/documentation/platform/identities/oidc-auth/general.mdxindex fd2fc6ea83..a9cefc9ec9 100644--- a/docs/documentation/platform/identities/oidc-auth/general.mdx+++ b/docs/documentation/platform/identities/oidc-auth/general.mdx@@ -104,6 +104,8 @@ In the following steps, we explore how to create and use identities to access th| `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` || `repo:my-org/my-repo:ref:refs/heads/*` | `repo:my-org/my-repo:ref:refs/heads/main`, `repo:my-org/my-repo:ref:refs/heads/dev` | `repo:my-org/my-repo:environment:prod` |++ The subjects above are for illustration; see [GitHub OIDC Auth](/documentation/platform/identities/oidc-auth/github) for GitHub's current subject format.</Info></Step>diff --git a/docs/documentation/platform/identities/oidc-auth/github.mdx b/docs/documentation/platform/identities/oidc-auth/github.mdxindex caa5513a53..7caf0b8e9e 100644--- a/docs/documentation/platform/identities/oidc-auth/github.mdx+++ b/docs/documentation/platform/identities/oidc-auth/github.mdx@@ -87,7 +87,7 @@ In the following steps, we explore how to create and use identities to access th- CA Certificate: The PEM-encoded CA cert for establishing secure communication with the Identity Provider endpoints. For Github workflows, this can be left as blank.- Subject: The expected principal that is the subject of the JWT. The format of the sub field for GitHub workflow OIDC tokens is as follows: `"repo:<owner>/<repo>:<environment>"`. The environment can be where the GitHub workflow is running, such as `environment`, `ref`, or `job_workflow_ref`. For example, if you have a repository owned by octocat named example-repo, and the GitHub workflow is running on the main branch, the subject field might look like this: `repo:octocat/example-repo:ref:refs/heads/main`<Note>- Repositories created after July 15, 2026 (and older repositories that opt in to Github's **Use immutable subject claim** setting) use an immutable subject format where the owner and repository names are suffixed with their permanent numeric IDs using `@` as the delimiter: `repo:octocat@583231/example-repo@1296269:ref:refs/heads/main`. If the subject you configure doesn't include these IDs, authentication fails with a `403` error. You can find the IDs with the Github API: `GET /repos/{owner}/{repo}` returns the repository ID (`id`) and the owner ID (`owner.id`). Alternatively, a glob pattern such as `repo:octocat@*/example-repo@*:ref:refs/heads/main` matches the immutable format without hardcoding the IDs.+ On GitHub.com, repositories created after July 15, 2026 use an immutable subject format where the owner and repository names are suffixed with their permanent numeric IDs using `@` as the delimiter: `repo:octocat@583231/example-repo@1296269:ref:refs/heads/main`. Renaming or transferring a repository after that date also switches it to this format, and existing repositories can opt in at the organization or repository level through GitHub's OIDC settings or REST API. GitHub Enterprise Server is unaffected. If the subject you configure doesn't include these IDs, authentication fails with a `403` error. To get the exact prefix your repository's tokens carry, call the GitHub API `GET /repos/{owner}/{repo}/actions/oidc/customization/sub` and read the `sub_claim_prefix` field. Alternatively, a glob pattern such as `repo:octocat@*/example-repo@*:ref:refs/heads/main` matches the immutable format without hardcoding the IDs.</Note>- Audiences: A list of intended recipients. This value is checked against the aud (audience) claim in the token. By default, set this to the URL of the repository owner, such as the organization that owns the repository (e.g. `https://github.com/octo-org`).- Claims: Additional information or attributes that should be present in the JWT for it to be valid. You can refer to Github's [documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#understanding-the-oidc-token) for the complete list of supported claims.diff --git a/docs/integrations/cicd/githubactions.mdx b/docs/integrations/cicd/githubactions.mdxindex b27b17499e..82ae7e310e 100644--- a/docs/integrations/cicd/githubactions.mdx+++ b/docs/integrations/cicd/githubactions.mdx@@ -143,13 +143,15 @@ In the following steps, we explore how to configure GitHub Actions to authentica- `repo:octocat/example-repo:*` (any context in the repository)<Note>- Repositories created after July 15, 2026 (and older repositories that opt in to GitHub's **Use immutable subject claim** setting) use an immutable subject format where the owner and repository names are suffixed with their permanent numeric IDs using `@` as the delimiter:+ On GitHub.com, repositories created after July 15, 2026 use an immutable subject format where the owner and repository names are suffixed with their permanent numeric IDs using `@` as the delimiter:```repo:<owner>@<owner-id>/<repo>@<repo-id>:<context>```- For example: `repo:octocat@583231/example-repo@1296269:ref:refs/heads/main`. If the subject you configure doesn't include these IDs, authentication fails with a `403` error. You can find the IDs with the GitHub API: `GET /repos/{owner}/{repo}` returns the repository ID (`id`) and the owner ID (`owner.id`). Alternatively, a glob pattern such as `repo:octocat@*/example-repo@*:ref:refs/heads/main` matches the immutable format without hardcoding the IDs.+ Renaming or transferring a repository after that date also switches it to this format, and existing repositories can opt in at the organization or repository level through GitHub's OIDC settings or REST API. GitHub Enterprise Server is unaffected.++ For repositories using this format, the examples above apply with the `@<id>` suffixes inserted — for example, `repo:octocat@583231/example-repo@1296269:ref:refs/heads/main`. If the subject you configure doesn't include these IDs, authentication fails with a `403` error. To get the exact prefix your repository's tokens carry, call the GitHub API `GET /repos/{owner}/{repo}/actions/oidc/customization/sub` and read the `sub_claim_prefix` field. Alternatively, a glob pattern such as `repo:octocat@*/example-repo@*:ref:refs/heads/main` matches the immutable format without hardcoding the IDs.</Note><Tip>