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
fix labels
Thiago Araujo da Silva6d132c89600c
diff --git a/backend/src/services/alert/providers/identity-credential-alert-provider.test.ts b/backend/src/services/alert/providers/identity-credential-alert-provider.test.tsindex f1633af676..d30d4fc9b3 100644--- a/backend/src/services/alert/providers/identity-credential-alert-provider.test.ts+++ b/backend/src/services/alert/providers/identity-credential-alert-provider.test.ts@@ -487,8 +487,8 @@ describe("identity credential alert provider", () => {const item = payload.items[0];expect(item.title).toBe("ci-runner");expect(item.fields?.some((f) => f.label === "Days Until Expiry")).toBe(false);- expect(item.fields?.find((f) => f.label === "Credential Name")?.value).toBe("ci-secret");- expect(item.fields?.find((f) => f.label === "Credential Type")?.value).toBe("Universal Auth Client Secret");+ expect(item.fields?.find((f) => f.label === "Secret Name")?.value).toBe("ci-secret");+ expect(item.fields?.find((f) => f.label === "Secret Type")?.value).toBe("Universal Auth Client Secret");const expires = item.fields?.find((f) => f.label === "Expires")?.value;expect(expires).toContain(String(expiresAt.getUTCFullYear()));@@ -567,10 +567,10 @@ describe("identity credential alert provider", () => {expect(payload.severity).toBe("error"); // 10 days outexpect(payload.summary).toBe("2 machine identity authentication(s) expiring within 30 days");- expect(payload.items[0].fields?.find((f) => f.label === "Credential Name")?.value).toBe("release-token");- expect(payload.items[0].fields?.find((f) => f.label === "Credential Type")?.value).toBe("Token Auth Access Token");+ expect(payload.items[0].fields?.find((f) => f.label === "Secret Name")?.value).toBe("release-token");+ expect(payload.items[0].fields?.find((f) => f.label === "Secret Type")?.value).toBe("Token Auth Access Token");expect(payload.items[1].id).toBe("token-auth-token:tok-2");- expect(payload.items[1].fields?.find((f) => f.label === "Credential Name")?.value).toBe("tok-2");+ expect(payload.items[1].fields?.find((f) => f.label === "Secret Name")?.value).toBe("tok-2");});test("buildViewUrl points to the org identities tab for an org-scoped alert", async () => {diff --git a/backend/src/services/alert/providers/identity-credential-alert-provider.ts b/backend/src/services/alert/providers/identity-credential-alert-provider.tsindex 713b4537f6..81901864d6 100644--- a/backend/src/services/alert/providers/identity-credential-alert-provider.ts+++ b/backend/src/services/alert/providers/identity-credential-alert-provider.ts@@ -381,8 +381,8 @@ export const identityCredentialAlertProviderFactory = ({id: targetId(target),title: target.identityName,fields: [- { label: "Credential Name", value: credentialName(target) },- { label: "Credential Type", value: CREDENTIAL_TYPE_LABEL[target.credentialType] },+ { label: "Secret Name", value: credentialName(target) },+ { label: "Secret Type", value: CREDENTIAL_TYPE_LABEL[target.credentialType] },{ label: "Expires", value: formatUtcDate(target.expiresAt) }]}))diff --git a/backend/src/services/smtp/emails/AlertNotificationTemplate.tsx b/backend/src/services/smtp/emails/AlertNotificationTemplate.tsxindex 2f503e4bf0..fd4152b5a8 100644--- a/backend/src/services/smtp/emails/AlertNotificationTemplate.tsx+++ b/backend/src/services/smtp/emails/AlertNotificationTemplate.tsx@@ -119,8 +119,8 @@ AlertNotificationTemplate.PreviewProps = {id: "ua-client-secret:1f0c3a5e-1111-4c2a-9f10-8b7d6e5a4c31",title: "ci-runner",fields: [- { label: "Credential Name", value: "ci-secret" },- { label: "Credential Type", value: "Universal Auth Client Secret" },+ { label: "Secret Name", value: "ci-secret" },+ { label: "Secret Type", value: "Universal Auth Client Secret" },{ label: "Expires", value: "November 12, 2025, 02:30 PM UTC" }]},@@ -128,8 +128,8 @@ AlertNotificationTemplate.PreviewProps = {id: "token-auth-token:2b9d4f7c-2222-4e83-b6a1-5c4e3d2b1a09",title: "deploy-bot",fields: [- { label: "Credential Name", value: "release-token" },- { label: "Credential Type", value: "Token Auth Access Token" },+ { label: "Secret Name", value: "release-token" },+ { label: "Secret Type", value: "Token Auth Access Token" },{ label: "Expires", value: "November 10, 2025, 09:00 AM UTC" }]}diff --git a/docs/documentation/platform/identities/machine-identities.mdx b/docs/documentation/platform/identities/machine-identities.mdxindex 8a53250b5d..216b51ce09 100644--- a/docs/documentation/platform/identities/machine-identities.mdx+++ b/docs/documentation/platform/identities/machine-identities.mdx@@ -104,6 +104,8 @@ A client secret is only monitored when its TTL is greater than `0`, since one crA Token Auth token is watched until its access token TTL runs out, counted from the moment the token was created. That's when the token stops working unless the workload renews it. Infisical doesn't track renewals, so a token that is renewed still triggers this alert on that first expiry. Revoked tokens are skipped.+Unlike a client secret, a Token Auth token with an access token TTL of `0` still expires. Every access token is capped at a maximum lifetime, 90 days by default, so a token with a TTL of `0` or a TTL longer than the cap triggers this alert as it approaches that cap. Self-hosted instances can change the cap with the `MAX_MACHINE_IDENTITY_TOKEN_AGE` environment variable.+<Note>For Universal Auth, the alert watches the client secret, not the access tokens minted by loggingin with it. Those access tokens are short-lived by design and are renewed programmatically. See@@ -172,8 +174,8 @@ Webhook deliveries are [CloudEvents](https://cloudevents.io/) 1.0 JSON documents"id": "ua-client-secret:cff39386-bbe5-44eb-aecf-e2445167b497","title": "ci-deploy-bot","fields": [- { "label": "Credential Name", "value": "github-actions" },- { "label": "Credential Type", "value": "Universal Auth Client Secret" },+ { "label": "Secret Name", "value": "github-actions" },+ { "label": "Secret Type", "value": "Universal Auth Client Secret" },{ "label": "Expires", "value": "August 23, 2026 at 04:15 PM UTC" }]},@@ -181,8 +183,8 @@ Webhook deliveries are [CloudEvents](https://cloudevents.io/) 1.0 JSON documents"id": "token-auth-token:9d4b2e7a-3c1f-4a8e-b5d6-2f7c8e9a1b3d","title": "release-runner","fields": [- { "label": "Credential Name", "value": "release-token" },- { "label": "Credential Type", "value": "Token Auth Access Token" },+ { "label": "Secret Name", "value": "release-token" },+ { "label": "Secret Type", "value": "Token Auth Access Token" },{ "label": "Expires", "value": "August 21, 2026 at 09:00 AM UTC" }]}