Infisical.ProjectIdentity reference
ProjectIdentity
Section titled “ProjectIdentity”Source:
packages/infisical/src/ProjectIdentity.ts
A machine identity confined to one Infisical project, with permanent
project roles and OIDC authentication. CI logs in with its platform’s OIDC
token by setting INFISICAL_IDENTITY_ID to this resource’s id, so no
token is created or kept in state. Deleting the identity revokes the tokens
it was issued.
The deploying identity needs permission to manage machine identities,
identity memberships and OIDC auth in the project. Changing project
replaces the identity; name, roles and OIDC settings update in place.
ProjectIdentity: Creating a CI Identity
Section titled “ProjectIdentity: Creating a CI Identity”const ci = yield* Infisical.ProjectIdentity("CI", { project: "00000000-0000-4000-8000-000000000000", name: "github-ci", roles: ["viewer"], oidcAuth: { oidcDiscoveryUrl: "https://token.actions.githubusercontent.com", boundIssuer: "https://token.actions.githubusercontent.com", boundAudiences: ["https://github.com/acme"], boundSubject: "repo:acme/app:ref:refs/heads/main", },});