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
Add code-signing doc changes
Carlos Monastyrskif5a4a25a76eb
diff --git a/docs/api-reference/endpoints/code-signing/signers/create.mdx b/docs/api-reference/endpoints/code-signing/signers/create.mdxnew file mode 100644index 0000000000..37bdea2221--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/create.mdx@@ -0,0 +1,4 @@+---+title: "Create Signer"+openapi: "POST /api/v1/cert-manager/signers"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/delete.mdx b/docs/api-reference/endpoints/code-signing/signers/delete.mdxnew file mode 100644index 0000000000..0a20c9ec1b--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/delete.mdx@@ -0,0 +1,4 @@+---+title: "Delete Signer"+openapi: "DELETE /api/v1/cert-manager/signers/{signerId}"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/disable.mdx b/docs/api-reference/endpoints/code-signing/signers/disable.mdxnew file mode 100644index 0000000000..ecb0aa2794--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/disable.mdx@@ -0,0 +1,4 @@+---+title: "Disable Signer"+openapi: "POST /api/v1/cert-manager/signers/{signerId}/disable"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/enable.mdx b/docs/api-reference/endpoints/code-signing/signers/enable.mdxnew file mode 100644index 0000000000..27d7ddc44c--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/enable.mdx@@ -0,0 +1,4 @@+---+title: "Enable Signer"+openapi: "POST /api/v1/cert-manager/signers/{signerId}/enable"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/export-certificate.mdx b/docs/api-reference/endpoints/code-signing/signers/export-certificate.mdxnew file mode 100644index 0000000000..2700f4e6f8--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/export-certificate.mdx@@ -0,0 +1,4 @@+---+title: "Export Certificate"+openapi: "GET /api/v1/cert-manager/signers/{signerId}/certificate"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/get-policy.mdx b/docs/api-reference/endpoints/code-signing/signers/get-policy.mdxnew file mode 100644index 0000000000..7902140d21--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/get-policy.mdx@@ -0,0 +1,4 @@+---+title: "Get Approval Policy"+openapi: "GET /api/v1/cert-manager/signers/{signerId}/approval-policy"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/list-operations.mdx b/docs/api-reference/endpoints/code-signing/signers/list-operations.mdxnew file mode 100644index 0000000000..99aca5c52c--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/list-operations.mdx@@ -0,0 +1,4 @@+---+title: "List Signing Operations"+openapi: "GET /api/v1/cert-manager/signers/{signerId}/operations"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/list-requests.mdx b/docs/api-reference/endpoints/code-signing/signers/list-requests.mdxnew file mode 100644index 0000000000..ed2ee05882--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/list-requests.mdx@@ -0,0 +1,4 @@+---+title: "List Signing Requests"+openapi: "GET /api/v1/cert-manager/signers/{signerId}/requests"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/list.mdx b/docs/api-reference/endpoints/code-signing/signers/list.mdxnew file mode 100644index 0000000000..3f355f06a6--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/list.mdx@@ -0,0 +1,4 @@+---+title: "List Signers"+openapi: "GET /api/v1/cert-manager/signers"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/pre-approve.mdx b/docs/api-reference/endpoints/code-signing/signers/pre-approve.mdxnew file mode 100644index 0000000000..1c21d055e2--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/pre-approve.mdx@@ -0,0 +1,4 @@+---+title: "Pre-approve Signing"+openapi: "POST /api/v1/cert-manager/signers/{signerId}/requests/pre-approve"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/public-key.mdx b/docs/api-reference/endpoints/code-signing/signers/public-key.mdxnew file mode 100644index 0000000000..7070e18091--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/public-key.mdx@@ -0,0 +1,4 @@+---+title: "Get Public Key"+openapi: "GET /api/v1/cert-manager/signers/{signerId}/public-key"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/read.mdx b/docs/api-reference/endpoints/code-signing/signers/read.mdxnew file mode 100644index 0000000000..a374b93212--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/read.mdx@@ -0,0 +1,4 @@+---+title: "Get Signer"+openapi: "GET /api/v1/cert-manager/signers/{signerId}"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/reissue-certificate.mdx b/docs/api-reference/endpoints/code-signing/signers/reissue-certificate.mdxnew file mode 100644index 0000000000..881cb1c9c4--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/reissue-certificate.mdx@@ -0,0 +1,4 @@+---+title: "Reissue Certificate"+openapi: "POST /api/v1/cert-manager/signers/{signerId}/certificate/reissue"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/request-to-sign.mdx b/docs/api-reference/endpoints/code-signing/signers/request-to-sign.mdxnew file mode 100644index 0000000000..75f5aed4b5--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/request-to-sign.mdx@@ -0,0 +1,4 @@+---+title: "Request to Sign"+openapi: "POST /api/v1/cert-manager/signers/{signerId}/requests"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/revoke-request.mdx b/docs/api-reference/endpoints/code-signing/signers/revoke-request.mdxnew file mode 100644index 0000000000..1a1671a230--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/revoke-request.mdx@@ -0,0 +1,4 @@+---+title: "Revoke Signing Request"+openapi: "POST /api/v1/cert-manager/signers/{signerId}/requests/{requestId}/revoke"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/sign.mdx b/docs/api-reference/endpoints/code-signing/signers/sign.mdxnew file mode 100644index 0000000000..c949286013--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/sign.mdx@@ -0,0 +1,4 @@+---+title: "Sign Data"+openapi: "POST /api/v1/cert-manager/signers/{signerId}/sign"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/update-policy.mdx b/docs/api-reference/endpoints/code-signing/signers/update-policy.mdxnew file mode 100644index 0000000000..a017b33ea4--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/update-policy.mdx@@ -0,0 +1,4 @@+---+title: "Update Approval Policy"+openapi: "PATCH /api/v1/cert-manager/signers/{signerId}/approval-policy"+---diff --git a/docs/api-reference/endpoints/code-signing/signers/update.mdx b/docs/api-reference/endpoints/code-signing/signers/update.mdxnew file mode 100644index 0000000000..4bfe63a028--- /dev/null+++ b/docs/api-reference/endpoints/code-signing/signers/update.mdx@@ -0,0 +1,4 @@+---+title: "Update Signer"+openapi: "PATCH /api/v1/cert-manager/signers/{signerId}"+---diff --git a/docs/docs.json b/docs/docs.jsonindex 46d332a5e3..a41a09eac7 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -840,9 +840,7 @@"pages": ["documentation/platform/pki/code-signing/overview","documentation/platform/pki/code-signing/signers",- "documentation/platform/pki/code-signing/signing-policies",- "documentation/platform/pki/code-signing/signing-requests",- "documentation/platform/pki/code-signing/grants",+ "documentation/platform/pki/code-signing/approvals","documentation/platform/pki/code-signing/pkcs11-module"]},@@ -3302,6 +3300,44 @@}]},+ {+ "group": "Code Signing",+ "pages": [+ {+ "group": "Signers",+ "pages": [+ "api-reference/endpoints/code-signing/signers/list",+ "api-reference/endpoints/code-signing/signers/create",+ "api-reference/endpoints/code-signing/signers/read",+ "api-reference/endpoints/code-signing/signers/update",+ "api-reference/endpoints/code-signing/signers/delete",+ "api-reference/endpoints/code-signing/signers/sign",+ "api-reference/endpoints/code-signing/signers/public-key",+ "api-reference/endpoints/code-signing/signers/export-certificate",+ "api-reference/endpoints/code-signing/signers/enable",+ "api-reference/endpoints/code-signing/signers/disable",+ "api-reference/endpoints/code-signing/signers/reissue-certificate",+ "api-reference/endpoints/code-signing/signers/list-operations"+ ]+ },+ {+ "group": "Approval Policy",+ "pages": [+ "api-reference/endpoints/code-signing/signers/get-policy",+ "api-reference/endpoints/code-signing/signers/update-policy"+ ]+ },+ {+ "group": "Signing Requests",+ "pages": [+ "api-reference/endpoints/code-signing/signers/list-requests",+ "api-reference/endpoints/code-signing/signers/request-to-sign",+ "api-reference/endpoints/code-signing/signers/pre-approve",+ "api-reference/endpoints/code-signing/signers/revoke-request"+ ]+ }+ ]+ },{"group": "Certificate Settings","pages": [diff --git a/docs/documentation/platform/pki/code-signing/approvals.mdx b/docs/documentation/platform/pki/code-signing/approvals.mdxnew file mode 100644index 0000000000..37075f82b1--- /dev/null+++ b/docs/documentation/platform/pki/code-signing/approvals.mdx@@ -0,0 +1,232 @@+---+title: "Approvals"+sidebarTitle: "Approvals"+description: "Configure an approval policy, request signing access, and manage active access for a Signer."+---++A [Signer](/documentation/platform/pki/code-signing/signers) with an approval policy makes signing a two-party operation: someone asks, someone else says yes, and the request becomes an **active access window** with limits on how much and how long. This page covers everything that happens inside a Signer's **Approvals** tab.++Concretely, approvals govern three things:++1. **The policy:** who has to approve, in what order, and how strict the per-access limits are.+2. **The path to access:** either an Administrator *pre-approves* an access window for a specific member, or an Operator *requests* one and approvers sign off.+3. **The active access record:** once approved, it's the row in the Approvals table with its own expiry, signature count, and revoke button.++<Info>+ Signers without an approval policy don't use this flow. Members with sign rights sign directly and you'll still see a full audit trail under the Signer's **Activity** tab.+</Info>++## When you want an approval policy++<CardGroup cols={2}>+ <Card title="Production releases" icon="rocket">+ Two security leads must sign off before a release artifact is signed.+ </Card>+ <Card title="Separation of duties" icon="users-line">+ Developers request to sign; managers approve. Audit shows both actors.+ </Card>+ <Card title="Compliance" icon="clipboard-check">+ SOC 2, PCI-DSS, or internal SDLC frameworks that require documented approval.+ </Card>+ <Card title="Bounded CI access" icon="timer">+ Pre-approve a CI identity for "10 signings within the next hour" instead of standing access.+ </Card>+</CardGroup>++## How an approval flow works++```mermaid+flowchart LR+ A[Operator clicks<br/>Request to sign] --> B[Step 1 approvers notified]+ B -->|Required approvals reached| C[Step 2 approvers notified]+ C -->|Required approvals reached| D[Access issued]+ D --> E[Operator signs]+ B -.->|Step 1 rejected| X[Rejected]+ C -.->|Step 2 rejected| X+```++Each step runs in order. Once the **last** step's required approvals are reached, Infisical issues an **active access record** bounded by the policy's per-approval limits. The Operator can then sign through the [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module) or the [Sign API](/api-reference/endpoints/code-signing/signers/sign).++If the Administrator doesn't want to wait, they can [pre-approve signing](#pre-approve-signing) directly. Same outcome, no review workflow.++## Configure the approval policy++Open the Signer's **Approvals** tab and click the pencil icon on the **Approval Policy** panel. The editor is a 2-step sheet.++<Steps>+ <Step title="Approvers">+ Define one or more approval steps. To turn the policy off entirely, delete every step. The Signer reverts to direct signing.++ For each step:++ | Field | Description |+ |-------|-------------|+ | **Step name** | Optional label like *Security Team Review* or *Manager Sign-off*. Visible to approvers in their queue. |+ | **Approvers** | Eligible users **or groups** for this step. They must already be members of the Signer (any role). Group approvers let anyone in the group approve. Auditors can be members but cannot be approvers. |+ | **Required approvals** | The number of **distinct** approvers that must approve before the step is complete. |++ Add more steps to run multiple sign-offs in sequence. For example: *Step 1 Team Lead Review* (1 approval), then *Step 2 Security* (2 approvals).++ **Required-approval validation:**+ - A step must have at least one approver.+ - **Required approvals** must be ≥ 1.+ </Step>++ <Step title="Approval limits">+ Per-approval caps that apply to every access record this policy issues:++ | Field | Description |+ |-------|-------------|+ | **Signatures per approval** | How many signing operations one approval is good for. Leave empty for unlimited. Set to **1** for "approve once per artifact". |+ | **Signing window** | How long the access record is valid after approval. Options: No limit, 1h, 8h, 24h, 7d, 30d. |++ You can combine both. For example: `maxSignings=10` with `signing window=1h` issues access good for at most 10 sign calls within one hour of approval, whichever comes first.++ </Step>+</Steps>++Press **Save policy**. The new policy applies to **new** requests; existing active access keeps its original terms until it expires or is revoked.++## Approval paths++There are two ways someone gets active access on a Signer. Pick the tab that matches who you are.++<Tabs>+ <Tab title="Pre-approve signing">+ An Administrator gives a specific member access up-front. **No approval workflow runs.** The access is created **Active** immediately and the recipient can sign right away.++ <Steps>+ <Step title="Click Pre-approve signing">+ From the Signer's **Approvals** tab, click **Pre-approve signing**. (Hidden if the Signer has no approval policy. Without a policy, the concept doesn't apply.)+ </Step>+ <Step title="Pick the recipient">+ Select the user or machine identity that should receive access. The list includes every Signer member except Auditors (including users reachable via a group).+ </Step>+ <Step title="Set the access terms">+ | Field | Description |+ |-------|-------------|+ | **Justification** | Short note recorded on the access record for audit. Required. |+ | **Signatures allowed** | How many sign operations the access permits. Capped at the policy's **Signatures per approval**. Leave empty to fall back to the policy ceiling. |+ | **When access begins** | Defaults to "now". |+ | **When access expires** | Capped at the policy's **Signing window**. Leave empty to fall back to the policy ceiling. |++ <Note>+ Per-access values cannot exceed the policy ceilings. Requesting `maxSignings=10` against a policy that allows 3 returns a 400 with a clear message. Omitting a field that the policy caps simply clamps to the ceiling, never silently unlimited.+ </Note>+ </Step>+ <Step title="Issue the access">+ Press **Pre-approve**. The recipient can sign immediately.+ </Step>+ </Steps>++ Typical use: pre-approving a CI machine identity for "10 signings within the next hour" right before a release pipeline runs.+ </Tab>++ <Tab title="Request to sign">+ An Operator submits a request for themselves. Approvers must sign off before the access becomes Active.++ <Steps>+ <Step title="Click Request to sign">+ From the Signer's **Approvals** tab, click **Request to sign**. (Hidden if the Signer has no policy, if you don't have sign permission, or if you already have active access.)+ </Step>+ <Step title="Justify the request">+ Provide a short reason: *"Signing release v2.4.0"*, *"Hotfix for #4823"*. The justification appears to approvers and is recorded on the eventual access record.+ </Step>+ <Step title="Specify what you need">+ | Field | Description |+ |-------|-------------|+ | **Signatures requested** | How many sign operations you need. Capped at the policy's **Signatures per approval**. Leave empty to fall back to the policy ceiling. |+ | **When access begins** | When the access window should start once approvals complete. Defaults to "now". |+ | **When access expires** | When the access window should end. Capped at the policy's **Signing window**. Leave empty to fall back to the policy ceiling. |++ <Note>+ Per-access values cannot exceed the policy ceilings. Requesting `maxSignings=10` against a policy that allows 3 returns a 400 with a clear message. Omitting a field that the policy caps simply clamps to the ceiling, never silently unlimited.+ </Note>+ </Step>+ <Step title="Submit">+ Press **Submit**. The first step's approvers are notified. Each step advances when its required approvals are reached. When the last step completes, the access record is automatically created with the terms you requested (clamped to policy caps).+ </Step>+ </Steps>++ Typical use: a developer requesting access to sign a release, with the release manager (or a group) approving before the access goes Active.+ </Tab>+</Tabs>++## Approving or rejecting++If you're an eligible approver for the **current** step of a pending request, an **Approve** or **Reject** action is visible on the request row.++<Steps>+ <Step title="Open the request">+ Click the row on the Signer's **Approvals** tab. Full details: requester, recipient, justification, requested signings, requested window, and which step is currently pending.+ </Step>+ <Step title="Review">+ Verify who's asking, for how many signings, for how long, why, and that you're the intended approver.+ </Step>+ <Step title="Decide">+ - **Approve** counts toward the current step's required approvals. When the **last** step's count is reached, the access record is created.+ - **Reject** terminates the workflow. No access is created. The requester can submit a new request.+ </Step>+</Steps>++## Access lifecycle++Every approved request becomes an **active access record**. On the Approvals tab it's a row in the Requests table with its own status, expiry, and signature counter.++### Statuses you'll see++| Status | Meaning |+|--------|---------|+| **Pending** | Approval workflow is in progress. Waiting on the current step's approvers. |+| **Approved / Active** | All steps approved, access issued, still within window and signatures remaining. |+| **Expired** | Window has passed, or the signature count was exhausted. |+| **Revoked** | An Administrator revoked the access (or the requester cancelled the request). |+| **Rejected** | An approver rejected one of the steps. |++The **Expires** column shows a live countdown for Active rows ("Expires in 42 minutes") plus the remaining signature count ("7 of 10 signings left"). Pending rows show "Awaiting approval".++## Revoking access++Administrators can revoke an active access record (or cancel a pending request) at any time. Hover the row on the Approvals tab; an **X** icon appears. Confirm in the dialog and:++- **Pending request** cancels the workflow. No approver can act on it after that.+- **Active access** is immediately revoked. Subsequent sign calls return 403 with a clear message.++In-flight sign calls already in progress complete normally; revocation is checked at request entry, not mid-operation. The row stays visible in **Revoked** status so the audit trail is preserved.++## FAQ++<AccordionGroup>+ <Accordion title="I approved a request but nothing happened.">+ The policy has more than one step and yours wasn't the final step. Open the request to see which step is currently pending; the access record is issued only after the **last** step's required approvals are reached.+ </Accordion>+ <Accordion title="I'm an Operator but I don't see Request to sign.">+ Three possibilities:+ 1. The Signer has no approval policy, so signing is direct and no request is needed.+ 2. You already have active access. Sign directly under it.+ 3. You don't have sign permission. Check that your role on this Signer is Operator or Administrator (not Auditor).+ </Accordion>+ <Accordion title="Can a CI identity bypass approval?">+ Have an Administrator pre-approve access for that identity in advance with appropriate per-approval limits. The CI identity then signs under the access record directly without going through the review workflow.+ </Accordion>+ <Accordion title="Can I extend active access?">+ No. Access records are immutable once issued. If you need more time or more signatures, submit a new request (or have an Admin pre-approve a new one) and revoke the old one if you want to be tidy.+ </Accordion>+ <Accordion title="What's the difference between Expired and Revoked?">+ **Expired** is automatic: the window ended or the signature count was reached. **Revoked** is explicit: an Administrator (or the requester via cancel) ended the access before its natural expiry. Either way, signing under it is no longer possible. The status difference shows up in the audit log.+ </Accordion>+ <Accordion title="What happens to a pending request when I edit the policy?">+ Pending requests run under the policy that was active when they were submitted. Edits affect only new requests. To force a refresh, revoke the pending request and have the requester submit again.+ </Accordion>+</AccordionGroup>++## What's next++<CardGroup cols={2}>+ <Card title="Signers" icon="pen-nib" href="/documentation/platform/pki/code-signing/signers">+ Manage the Signer itself: members, certificate, lifecycle.+ </Card>+ <Card title="PKCS#11 Module" icon="plug" href="/documentation/platform/pki/code-signing/pkcs11-module#automatic-signing-access-requests">+ Have the module auto-open signing requests on denied calls.+ </Card>+</CardGroup>diff --git a/docs/documentation/platform/pki/code-signing/grants.mdx b/docs/documentation/platform/pki/code-signing/grants.mdxdeleted file mode 100644index 73d3ea02c2..0000000000--- a/docs/documentation/platform/pki/code-signing/grants.mdx+++ /dev/null@@ -1,55 +0,0 @@-----title: "Grants"-sidebarTitle: "Grants"-description: "View and manage signing grants that authorize signing operations."------A grant is the authorization that allows a user or machine identity to perform signing operations with a specific signer. Grants are automatically created when a [signing request](/documentation/platform/pki/code-signing/signing-requests) is fully approved.--<Info>- If a signer has no signing policy, grants are not required — signing is allowed immediately. Grants only come into play when a signing policy enforces approvals.-</Info>--## Viewing Grants--Go to **Certificate Manager → Code Signing → Grants** to view all grants. You can filter by status:--- **Active**: Grants that are currently valid and can be used for signing.-- **Expired**: Grants that have expired (time window ended, signing quota exhausted, or TTL reached).-- **Revoked**: Grants that were manually revoked by an administrator.--## Revoking a Grant--Administrators can revoke an active grant at any time. To revoke a grant, press the **Revoke** action on the grant row and optionally provide a reason.--Once revoked, the grant can no longer be used for signing operations. The user must request a new grant through the signing workflow.--## FAQ--<AccordionGroup>- <Accordion title="I approved a request but the grant wasn't issued">- If the signing policy has multiple steps, your approval may have completed only one step. The grant is issued only after all approval steps are completed. Check the request details to see which step is currently pending.- </Accordion>- <Accordion title="My grant expired before I finished signing">- Depending on the policy constraints:- - **Time Window**: Your valid until date has passed. Request a new grant with a longer window.- - **Max Signings**: You used all your allowed sign operations. Request a new grant with a higher count.- </Accordion>- <Accordion title="Can I extend an active grant?">- Grants cannot be extended. You need to create a new signing request for additional signing access.- </Accordion>- <Accordion title="What happens to in-flight signing operations when a grant is revoked?">- If a signing operation is already being processed when the grant is revoked, the operation will complete. Subsequent signing attempts with the revoked grant will be denied.- </Accordion>-</AccordionGroup>--## What's Next?--<CardGroup cols={2}>- <Card title="PKCS#11 Module" icon="plug" href="/documentation/platform/pki/code-signing/pkcs11-module">- Use your grant with standard signing tools.- </Card>- <Card title="Signing Guides" icon="book" href="/documentation/platform/pki/guides/overview">- Step-by-step guides for specific tools.- </Card>-</CardGroup>diff --git a/docs/documentation/platform/pki/code-signing/overview.mdx b/docs/documentation/platform/pki/code-signing/overview.mdxindex 5f33dfd0ca..3911b7ebe1 100644--- a/docs/documentation/platform/pki/code-signing/overview.mdx+++ b/docs/documentation/platform/pki/code-signing/overview.mdx@@ -1,92 +1,96 @@---title: "Code Signing"sidebarTitle: "Overview"-description: "Securely sign code and artifacts with centralized key management and approval workflows."+description: "Sign software artifacts with managed code-signing certificates, central approval, and a full audit trail."----Digitally sign software artifacts (JARs, binaries, container images, and more) while keeping private keys secure on the server. Instead of distributing signing keys to developer workstations or CI pipelines, signing operations are performed centrally through Infisical with full audit trails and approval controls.+Code Signing is where teams digitally sign software (JARs, container images, Windows installers, Android APKs, Linux packages, scripts). Within Code Signing, you can:-<Info>- Code Signing uses **Signers** as the organizing concept, similar to how [Applications](/documentation/platform/pki/applications/overview) work for certificates. Product Admins create Signers and assign team members who can then request signing access.-</Info>+- **Sign artifacts** through any tool that supports PKCS#11, or directly via the [Sign API](/api-reference/endpoints/code-signing/signers/sign)+- **Require approvals** before signatures are produced, with per-approval limits on count and time+- **Manage who can sign** with per-Signer roles for users, machine identities, and groups+- **Track every signing operation** in a full audit trail-## How It Works+Each **Signer** represents a single signing identity, like `mobile-app-prod`, `firmware-release`, or `ci-staging-builds`. Product Admins create Signers, attach a code-signing certificate, and assign team members. Teams then operate independently within their assigned Signers.-<div align="center">+## What's in a Signer?++<CardGroup cols={2}>+ <Card title="Certificate" icon="certificate">+ The X.509 code-signing certificate the Signer uses, backed by an internal or external CA.+ </Card>+ <Card title="Members" icon="users">+ Team members with Administrator, Operator, or Auditor roles on this Signer.+ </Card>+ <Card title="Approval policy" icon="check-double">+ Optional review workflow before signatures are produced.+ </Card>+ <Card title="Activity" icon="clock-rotate-left">+ Audit trail of every successful, failed, and denied signing operation.+ </Card>+</CardGroup>++## How a signing operation flows```mermaidsequenceDiagram- participant Tool as Signing Tool+ participant Tool as Signing tool<br/>(jarsigner / cosign / ...)participant PKCS as PKCS#11 Moduleparticipant Infisical as Infisical+ participant CA as Certificate Authority++ Note over Infisical,CA: Once, when the Signer is created+ Infisical->>CA: Request code-signing cert+ CA-->>Infisical: Certificate- Tool->>PKCS: Sign data+ Note over Tool,Infisical: Per signing operation+ Tool->>PKCS: Sign artifactPKCS->>Infisical: POST /signers/{id}/sign- Infisical->>Infisical: Validate grant, sign data+ Infisical->>Infisical: Check access+ Infisical->>Infisical: SignInfisical-->>PKCS: Signature- PKCS-->>Tool: Signature+ PKCS-->>Tool: Signature attached to artifact```-</div>--1. A **Signer** is created and bound to a certificate with the `codeSigning` extended key usage.-2. Optionally, a **Signing Policy** is attached to govern who can use the signer and under what conditions. Without a policy, authorized users and identities can sign immediately.-3. When a policy is configured, users or machine identities **request signing access** through the signing workflow. Once approved, the caller receives a **grant** that authorizes signing operations.-4. The signing tool (e.g., jarsigner) calls the Infisical API, either directly or through the [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module), and the signature is computed server-side.-5. Every signing operation is recorded as an immutable **audit entry** on the signer.--## Core Concepts--### Signers+1. A Product Admin creates a [Signer](/documentation/platform/pki/code-signing/signers) and picks the CA that issues its certificate.+2. The Admin adds [members](/documentation/platform/pki/code-signing/signers#members) (users, machine identities, or groups) and picks a role for each.+3. Optionally, the Admin attaches an [approval policy](/documentation/platform/pki/code-signing/approvals) so signing requires sign-off.+4. Operators sign through the [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module) or the [Sign API](/api-reference/endpoints/code-signing/signers/sign). Infisical produces the signature and records an audit entry on the Signer.-A [signer](/documentation/platform/pki/code-signing/signers) is a named code-signer bound to a certificate. It represents a signing capability within Certificate Manager. Private keys are stored securely on the Infisical server and never leave it. All cryptographic operations are performed server-side.+## Signer roles-### Signing Policies+Members are assigned to Signers with one of three roles:-[Signing policies](/documentation/platform/pki/code-signing/signing-policies) optionally define the rules that must be satisfied before signing can occur. Policies support constraints that can be combined:+| Role | Capabilities |+|------|--------------|+| **Administrator** | Full control: edit settings, manage members, edit the approval policy, pre-approve signing, sign, export the certificate. |+| **Operator** | Sign artifacts and submit signing requests. Cannot change settings or members. |+| **Auditor** | Read-only: view members, activity, and the audit log. Cannot sign. |-- **Max Window Duration**: Limits how long a signing grant remains valid.-- **Max Signings**: Limits the total number of signing operations a grant allows.+## FAQ-### Signing Operations+<AccordionGroup>+ <Accordion title="How is this different from handing out a .pfx or .p12 file?">+ When you distribute a key file, anyone with a copy can sign anything for the lifetime of the certificate, and you can't take that copy back. With a Signer, you can disable signing, revoke active access, or remove a member at any time, and that change takes effect immediately.+ </Accordion>+ <Accordion title="Do I have to require approval for every signature?">+ No. A Signer can have no approval policy, in which case any member with sign rights can sign immediately and you still get a full audit trail. Approvals are optional and most useful for production releases or compliance-sensitive workloads.+ </Accordion>+</AccordionGroup>-Every call to sign data, whether it succeeds, fails, or is denied, is recorded as a signing operation. This provides a complete audit trail of who signed what, when, and using which grant.--### PKCS#11 Module--The Infisical [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module) implements the PKCS#11 v2.40 standard, allowing standard signing tools to use Infisical signers without code changes. The module supports RSA (PKCS#1 v1.5 and PSS) and ECDSA signing mechanisms.--## Getting Started+## What's next?<CardGroup cols={2}>- <Card title="Create a Signer" icon="pen-nib" href="/documentation/platform/pki/code-signing/signers">- Set up a code-signer and bind it to a certificate.- </Card>- <Card title="Configure Signing Policies" icon="file-contract" href="/documentation/platform/pki/code-signing/signing-policies">- Define rules for who can sign and when.- </Card>- <Card title="PKCS#11 Module" icon="plug" href="/documentation/platform/pki/code-signing/pkcs11-module">- Use standard signing tools with Infisical.- </Card>- <Card title="Signing Requests" icon="paper-plane" href="/documentation/platform/pki/code-signing/signing-requests">- Request signing access when policies are configured.+ <Card title="Create a Signer" icon="pen-nib" href="/documentation/platform/pki/code-signing/signers#create-a-signer">+ The 4-step wizard.</Card>-</CardGroup>--## What's Next?--If you're new to Code Signing, start by [creating a Signer](/documentation/platform/pki/code-signing/signers). If you need approval workflows, set up a [Signing Policy](/documentation/platform/pki/code-signing/signing-policies) first.--For integration guides with specific tools, see:--<CardGroup cols={3}>- <Card title="Cosign" icon="docker" href="/documentation/platform/pki/guides/code-signing/cosign">- Sign container images+ <Card title="Add an approval policy" icon="check-double" href="/documentation/platform/pki/code-signing/approvals#configure-the-approval-policy">+ Require sign-off and cap per-approval limits.</Card>- <Card title="jarsigner" icon="java" href="/documentation/platform/pki/guides/code-signing/jarsigner">- Sign Java JARs+ <Card title="Install the PKCS#11 module" icon="plug" href="/documentation/platform/pki/code-signing/pkcs11-module#installation">+ Hook up your signing tools.</Card>- <Card title="GPG" icon="key" href="/documentation/platform/pki/guides/code-signing/gpg">- Sign with GPG+ <Card title="Sign your first JAR" icon="java" href="/documentation/platform/pki/guides/code-signing/jarsigner">+ End-to-end walkthrough.</Card></CardGroup>diff --git a/docs/documentation/platform/pki/code-signing/pkcs11-module.mdx b/docs/documentation/platform/pki/code-signing/pkcs11-module.mdxindex e530be493a..7acfbee851 100644--- a/docs/documentation/platform/pki/code-signing/pkcs11-module.mdx+++ b/docs/documentation/platform/pki/code-signing/pkcs11-module.mdx@@ -1,47 +1,41 @@---title: "PKCS#11 Module"sidebarTitle: "PKCS#11 Module"-description: "Install and configure the Infisical PKCS#11 module for use with standard signing tools."+description: "Use jarsigner, cosign, osslsigncode, and other standard signing tools with Infisical Signers."----<Tip>- New to Code Signing? Start with [Sign Your First Artifact](/documentation/platform/pki/quick-starts/sign-first-code).-</Tip>--The Infisical PKCS#11 module implements the PKCS#11 v2.40 standard, allowing tools like `jarsigner`, `openssl`, `cosign`, `osslsigncode`, `apksigner`, and `gpg` to use Infisical [Signers](/documentation/platform/pki/code-signing/signers) without code changes.+The Infisical **PKCS#11 module** is a small native library (`.so`, `.dylib`, or `.dll`) that exposes your Infisical [Signers](/documentation/platform/pki/code-signing/signers) to any tool that supports the [PKCS#11 v2.40 standard](https://www.oasis-open.org/standard/pkcs-11-v2-40/). Tools like `jarsigner`, `osslsigncode`, `cosign`, `apksigner`, `openssl`, and `gpg` work without modification. They make their usual PKCS#11 calls; the module forwards them to Infisical and returns the signature.<Info>- Before using the PKCS#11 module, ensure your Product Admin has created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If a [signing policy](/documentation/platform/pki/code-signing/signing-policies) is attached, you'll also need an approved [grant](/documentation/platform/pki/code-signing/grants).+ Before installing the module, ensure a Product Admin has created a [Signer](/documentation/platform/pki/code-signing/signers) and added the machine identity (or user) you plan to authenticate as. If the Signer has an [approval policy](/documentation/platform/pki/code-signing/approvals), you'll also need [active access](/documentation/platform/pki/code-signing/approvals#access-lifecycle).</Info>-## Tool-Specific Guides--For complete step-by-step guides on using the PKCS#11 module with specific signing tools:+## Tool Guides<CardGroup cols={3}><Card title="jarsigner" href="/documentation/platform/pki/guides/code-signing/jarsigner">- Sign Java JARs+ Sign Java JARs.</Card><Card title="apksigner" href="/documentation/platform/pki/guides/code-signing/apksigner">- Sign Android APKs+ Sign Android APKs.</Card><Card title="osslsigncode" href="/documentation/platform/pki/guides/code-signing/osslsigncode">- Sign Windows executables+ Sign Windows executables.</Card><Card title="Cosign" href="/documentation/platform/pki/guides/code-signing/cosign">- Sign container images+ Sign container images.</Card><Card title="OpenSSL" href="/documentation/platform/pki/guides/code-signing/openssl">- Sign with OpenSSL+ Sign with OpenSSL.</Card><Card title="GPG" href="/documentation/platform/pki/guides/code-signing/gpg">- Sign with GPG+ Sign with GPG.</Card></CardGroup>## Installation-Download the pre-built binary for your platform from the [releases page](https://github.com/Infisical/infisical-pkcs-11/releases):+Grab the pre-built binary for your platform from the [releases page](https://github.com/Infisical/infisical-pkcs-11/releases):| Platform | File ||----------|------|@@ -51,7 +45,7 @@ Download the pre-built binary for your platform from the [releases page](https:/| macOS ARM64 | `libinfisical-pkcs11.dylib` || Windows x86_64 | `libinfisical-pkcs11.dll` |-Place the binary in a known location, for example `/usr/local/lib/`:+Drop the binary in a known location:```bash# Linux@@ -63,9 +57,9 @@ sudo cp libinfisical-pkcs11.dylib /usr/local/lib/sudo chmod 755 /usr/local/lib/libinfisical-pkcs11.dylib```-### Building from Source+### Building from source-If you prefer to build from source, you need Go 1.24+ and a C compiler:+If you want to build instead of downloading, you need Go 1.24+ and a C compiler:```bashgit clone https://github.com/Infisical/infisical-pkcs-11.git@@ -73,102 +67,120 @@ cd infisical-pkcs-11make build```-The output binary will be in the current directory.+The output binary lands in the current directory.## Configuration-Create a JSON configuration file at `/etc/infisical/pkcs11.conf` (or any path you prefer):+The module reads its config from `/etc/infisical/pkcs11.conf` (override the path with `INFISICAL_PKCS11_CONFIG`):```json{"server_url": "https://app.infisical.com",- "project_id": "<your-project-id>","log_level": "info"}```-Then set the authentication credentials via environment variables:+Then export the authentication credentials as environment variables:```bash-export INFISICAL_UNIVERSAL_AUTH_CLIENT_ID="<your-machine-identity-client-id>"-export INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET="<your-machine-identity-client-secret>"+export INFISICAL_UNIVERSAL_AUTH_CLIENT_ID="<machine-identity-client-id>"+export INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET="<machine-identity-client-secret>"```<Note>- Credentials can also be placed in the config file under `auth.client_id` and `auth.client_secret`, but we recommend using environment variables to prevent secrets from being committed to version control or exposed in file system backups.+ Credentials can also live in the config file under `auth.client_id` and `auth.client_secret`, but environment variables are strongly recommended so secrets don't end up in version control, backups, or shared logs.</Note>-If using a non-default config path, set:+If you put the config somewhere other than `/etc/infisical/pkcs11.conf`:```bashexport INFISICAL_PKCS11_CONFIG=/path/to/your/pkcs11.conf```-### Configuration Reference+### Configuration reference| Field | Required | Default | Description ||-------|----------|---------|-------------|-| `server_url` | Yes | None | Infisical server URL |-| `project_id` | Yes | None | Project ID containing the signers |-| `auth.method` | No | `universal-auth` | Authentication method |-| `auth.client_id` | No | None | Machine identity client ID (prefer env var) |-| `auth.client_secret` | No | None | Machine identity client secret (prefer env var) |-| `tls.ca_cert_path` | No | None | Custom CA cert for self-hosted instances |-| `tls.skip_verify` | No | `false` | Skip TLS verification (development only) |-| `cache.token_ttl_seconds` | No | `300` | Auth token cache duration |-| `cache.cert_ttl_seconds` | No | `3600` | Certificate data cache duration |-| `cache.signer_ttl_seconds` | No | `300` | Signer list cache duration |-| `approval.signing_duration` | No | None | Auto-request signing access with this time window (e.g. `"8h"`, `"30m"`, `"2d"`). Range: 1m to 30d |-| `approval.signing_count` | No | None | Auto-request signing access for this many signing operations |-| `log_level` | No | `info` | Log level: `trace`, `debug`, `info`, `warn`, `error` |-| `log_file` | No | stderr | Path to log file |--### Environment Variable Reference+| `server_url` | Yes | None | Infisical server URL. Must use `http://` (local dev) or `https://`. |+| `auth.method` | No | `universal-auth` | Authentication method. |+| `auth.client_id` | No | None | Machine identity client ID. Prefer the env var. |+| `auth.client_secret` | No | None | Machine identity client secret. Prefer the env var. |+| `tls.ca_cert_path` | No | None | Custom CA bundle path for self-hosted Infisical with a private CA. |+| `tls.skip_verify` | No | `false` | Skip TLS verification (development only, never enable in production). |+| `cache.token_ttl_seconds` | No | `300` | How long the auth token is cached. |+| `cache.cert_ttl_seconds` | No | `3600` | How long fetched certificates are cached. |+| `cache.signer_ttl_seconds` | No | `300` | How long the list of Signers is cached. |+| `approval.signing_duration` | No | None | Auto-request signing access with this window when no active access exists. Valid range: `1m` to `30d`. |+| `approval.signing_count` | No | None | Auto-request signing access for this many signatures when no active access exists. |+| `log_level` | No | `info` | One of `trace`, `debug`, `info`, `warn`, `error`. |+| `log_file` | No | stderr | Optional path to a log file. |++### Environment variable reference| Variable | Description ||----------|-------------|-| `INFISICAL_UNIVERSAL_AUTH_CLIENT_ID` | Machine identity client ID |-| `INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET` | Machine identity client secret |-| `INFISICAL_PKCS11_SERVER_URL` | Override `server_url` from config |-| `INFISICAL_PKCS11_CONFIG` | Path to config file (default: `/etc/infisical/pkcs11.conf`) |+| `INFISICAL_UNIVERSAL_AUTH_CLIENT_ID` | Machine identity client ID. Overrides config. |+| `INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET` | Machine identity client secret. Overrides config. |+| `INFISICAL_PKCS11_SERVER_URL` | Override `server_url`. |+| `INFISICAL_PKCS11_CONFIG` | Path to the config file (default `/etc/infisical/pkcs11.conf`). |<Note>Environment variables always take precedence over values in the configuration file.</Note>-## Verifying the Module+## Verify the Module-Use `pkcs11-tool` (from OpenSC) to verify the module is working:+Use `pkcs11-tool` (from OpenSC: `brew install opensc` or `apt install opensc`) to confirm everything is wired up.```bash-# List available slots (one per signer)-pkcs11-tool --module /usr/local/lib/libinfisical-pkcs11.so --list-slots+pkcs11-tool \+ --module /usr/local/lib/libinfisical-pkcs11.so \+ --list-slots```-The output lists one slot per signer in your project:+You should see one slot per Signer your machine identity is a member of:-```+```textAvailable slots:-Slot 0 (0x0): release-signer- token label : release-signer+Slot 0 (0x0): mobile-app-prod+ token label : mobile-app-prodtoken manufacturer : Infisical+ token model : Code Signing+ ...+Slot 1 (0x1): release-signer...```-To list the objects (private key, certificate, public key) in a slot:+To list the objects (private key, public key, X.509 cert) in a slot:```bash-pkcs11-tool --module /usr/local/lib/libinfisical-pkcs11.so --slot 0 --list-objects+pkcs11-tool \+ --module /usr/local/lib/libinfisical-pkcs11.so \+ --slot 0 \+ --list-objects```-## Automatic Signing Access Requests+A quick smoke-test sign:++```bash+echo "hello" > /tmp/payload.bin+pkcs11-tool \+ --module /usr/local/lib/libinfisical-pkcs11.so \+ --slot 0 \+ --sign --mechanism SHA256-RSA-PKCS \+ --input-file /tmp/payload.bin \+ --output-file /tmp/payload.sig+```++If the Signer has an approval policy and you don't have active access, the sign call is rejected with `CKR_GENERAL_ERROR` and the module logs a "signing requires approval" line. See [Automatic Signing Access Requests](#automatic-signing-access-requests) below to make this seamless.-If a signer has a [signing policy](/documentation/platform/pki/code-signing/signing-policies) attached, the module can automatically create a signing request when a sign operation is denied due to a missing grant. This removes the need to manually create requests via the UI or API before signing.+## Automatic Signing Access Requests-To enable this, add the `approval` section to your config file with at least one of the following:+When a Signer has a policy attached, sign calls without active access normally fail. The module can automatically open a signing request for you on the first denied call. You just need to add an `approval` block to the config:```json{+ "server_url": "https://app.infisical.com","approval": {"signing_duration": "8h","signing_count": 10@@ -176,26 +188,29 @@ To enable this, add the `approval` section to your config file with at least one}```-- **`signing_duration`**: Requests a time-window grant of the specified duration (e.g. `"30m"`, `"8h"`, `"2d"`). Valid range: 1 minute to 30 days.-- **`signing_count`**: Requests a grant for a fixed number of signing operations.+- **`signing_duration`** requests an access window of this duration (`30m`, `8h`, `2d`; range 1m to 30d).+- **`signing_count`** requests access good for this many signing operations.-You can set one or both depending on the constraints defined in the signing policy.+Set one or both depending on what the Signer's policy expects. The values are capped at the policy's `maxWindow` / `maxSignings`.<Note>- The sign operation will fail until an approver approves the request first. Once approved, retrying the sign operation will succeed. The module logs a message indicating that an approval request was created automatically.+ The first sign call **still fails** until an approver approves the auto-created request. Once approved, retry the sign and it succeeds. The module logs that the request was created so you know what to do.</Note>-### Example Workflow+### Example CI workflow++1. Pipeline calls `jarsigner` (or any PKCS#11 tool) against the Infisical module.+2. No active access exists, so Infisical returns 403.+3. The module sees the `approval` block and auto-creates a signing request with the configured duration and count.+4. Pipeline fails on this run.+5. A reviewer approves the request in the Infisical UI.+6. Pipeline is rerun and the sign call succeeds under the freshly-issued access record.-1. A CI/CD pipeline attempts to sign an artifact-2. The module detects that no active grant exists for the signer-3. It automatically creates a signing request with the configured duration/count-4. An approver reviews and approves the request-5. The pipeline retries and the sign operation succeeds+For fully unattended CI, have an Administrator **pre-approve** signing access via [Pre-approve signing](/documentation/platform/pki/code-signing/approvals#pre-approve-signing) before the pipeline runs.## Troubleshooting-For any issue, start by enabling debug logging in your config file to get detailed output:+Turn on debug logging in the config first. It'll usually tell you exactly what went wrong:```json{@@ -205,24 +220,49 @@ For any issue, start by enabling debug logging in your config file to get detail```<AccordionGroup>- <Accordion title="No slots visible or authentication errors">- Verify that your credentials and `project_id` are correct, and that the machine identity has been added to the project with the appropriate permissions.+ <Accordion title="No slots listed">+ Almost always one of three things:+ 1. The machine identity is not a member of any Signer in your organization. Have an Admin add it to a Signer (any role works).+ 2. The credentials are wrong. Check the auth token line in the log; if it says `401`, regenerate the universal-auth client secret.+ 3. The `server_url` points at the wrong instance. The module log line `Initialized with universal-auth (auto-authenticated)` confirms a successful login.+ </Accordion>+ <Accordion title="CKR_GENERAL_ERROR on sign">+ Almost always means the server rejected the sign. Common reasons (visible in the debug log):+ - **No active access.** The Signer has an approval policy and you don't yet have access. See [Request to sign](/documentation/platform/pki/code-signing/approvals#request-to-sign).+ - **Access expired or signatures exhausted.** Request access again.+ - **Signer is Disabled.** Re-enable it in the UI.+ - **Certificate expired.** Issue a new one or wait for auto-renewal.+ </Accordion>+ <Accordion title="CKR_DEVICE_ERROR or connection refused">+ Network or TLS problem. Check `server_url`, confirm the host is reachable from the machine, and verify TLS. If you self-host with a private CA, set `tls.ca_cert_path` to its bundle. As a last resort during local dev, you can set `tls.skip_verify: true` (**never in production**).</Accordion>- <Accordion title="CKR_GENERAL_ERROR when signing">- This typically means the signing request was denied by the server. Check that you have an active signing grant for the signer. You can verify this in **Certificate Manager → Code Signing → Grants**.+ <Accordion title="server_url scheme must be http or https">+ The module rejects any other scheme (`file://`, `gopher://`, etc.) to prevent credentials being sent to unintended targets. Make sure your `server_url` starts with `http://` or `https://`.+ </Accordion>+ <Accordion title="The PKCS#11 module sees the slot but says 'signer X has no certificate'">+ The Signer is in **Pending** or **Failed** status; no certificate has been issued yet. Check the Signer's status in the UI; for external CAs (ACME, DigiCert), issuance can take minutes. Once the Signer becomes Active, the cert is fetched automatically.</Accordion></AccordionGroup>-## What's Next?+## What's next<CardGroup cols={3}><Card title="Sign JARs" icon="java" href="/documentation/platform/pki/guides/code-signing/jarsigner">- Sign Java artifacts with jarsigner+ `jarsigner` with the PKCS#11 module.+ </Card>+ <Card title="Sign containers" icon="docker" href="/documentation/platform/pki/guides/code-signing/cosign">+ `cosign sign` with Infisical.+ </Card>+ <Card title="Sign Windows binaries" icon="windows" href="/documentation/platform/pki/guides/code-signing/osslsigncode">+ `osslsigncode` for `.exe` / `.dll` / `.msi`.+ </Card>+ <Card title="Sign APKs" icon="android" href="/documentation/platform/pki/guides/code-signing/apksigner">+ `apksigner` for Android.</Card>- <Card title="Sign Containers" icon="docker" href="/documentation/platform/pki/guides/code-signing/cosign">- Sign container images with Cosign+ <Card title="Sign with OpenSSL" icon="lock" href="/documentation/platform/pki/guides/code-signing/openssl">+ Raw signing primitives.</Card><Card title="Sign with GPG" icon="key" href="/documentation/platform/pki/guides/code-signing/gpg">- Use GPG with the PKCS#11 module+ Use GPG via the PKCS#11 module.</Card></CardGroup>diff --git a/docs/documentation/platform/pki/code-signing/signers.mdx b/docs/documentation/platform/pki/code-signing/signers.mdxindex 4cc905a6c7..71137eda83 100644--- a/docs/documentation/platform/pki/code-signing/signers.mdx+++ b/docs/documentation/platform/pki/code-signing/signers.mdx@@ -1,125 +1,307 @@---title: "Signers"sidebarTitle: "Signers"-description: "Create and manage code-signing identities."+description: "Create, configure, and manage code-signing identities for your team."----A Signer is a named code-signing identity bound to an X.509 certificate with the `codeSigning` extended key usage (EKU). Signers represent signing capabilities—for example, `release-signer` for production releases or `ci-signer` for CI pipeline artifacts.+A Signer is a single signing identity inside Code Signing. It bundles three things:-<Info>- Signers are created by product admins. Team members are assigned to Signers and can then request signing access or sign directly (depending on policy).-</Info>+- A code-signing certificate issued from a CA in your project+- A list of members who are allowed to use it+- An optional approval policy that decides whether signing needs sign-off++You'll typically have one Signer per real-world signing concern, such as `mobile-app-prod`, `firmware-release`, or `ci-staging-builds`.-Private keys never leave the Infisical server. When a signing operation is requested, the server retrieves the key, computes the signature, and returns only the signature bytes.+## What's in a Signer?++<CardGroup cols={2}>+ <Card title="Certificate" icon="certificate">+ The X.509 code-signing certificate the Signer uses, backed by an internal or external CA.+ </Card>+ <Card title="Members" icon="users">+ Users, machine identities, and groups. Each member has an Administrator, Operator, or Auditor role on this Signer.+ </Card>+ <Card title="Approval policy" icon="check-double">+ Optional. Decides whether signing needs approval, who approves, and how each approval is bounded. See [Approvals](/documentation/platform/pki/code-signing/approvals).+ </Card>+ <Card title="Activity" icon="clock-rotate-left">+ Audit trail of every successful, failed, and denied signing operation.+ </Card>+</CardGroup>-## Key Characteristics+## Signer roles-| Feature | Description |-|---------|-------------|-| **Bound to certificate** | Every signer must be linked to a certificate with the `codeSigning` EKU |-| **Optional signing policy** | Attach a [signing policy](/documentation/platform/pki/code-signing/signing-policies) to require approval before signing |-| **RSA and ECDSA** | Supports RSA (2048, 3072, 4096-bit) and ECDSA (P-256, P-384, P-521) |-| **Audit trail** | Every signing operation is recorded with actor, algorithm, and grant information |+| Role | Capabilities |+|------|--------------|+| **Administrator** | Edit settings, manage members, edit the approval policy, pre-approve signing for others, sign, and export the certificate. |+| **Operator** | Sign artifacts and submit signing requests. Export the certificate. Cannot manage members or the policy. |+| **Auditor** | View members, activity, and the audit log. Export the certificate. Cannot sign or change anything. |++<Info>+ The user who creates a Signer becomes its Administrator automatically.+</Info>## Create a Signer+In **Certificate Manager → Code Signing → Signers**, click **Create Signer**. The wizard walks you through four steps in order.+<Steps>- <Step title="Issue a code-signing certificate">- You need a certificate with the `codeSigning` extended key usage. Follow the [certificate issuance guide](/documentation/platform/pki/applications/certificates#issuing-certificates) and specify `codeSigning` in the extended key usage field.+ <Step title="Basics">+ Pick a name for the Signer and (optionally) describe what it's for.++ | Field | Description |+ |-------|-------------|+ | **Signer name** | A short, slug-friendly identifier (lowercase, dashes). Example: `mobile-app-prod`. The PKCS#11 module shows this as the **token label**. |+ | **Description** | Optional. What this Signer is for, in plain English. Example: *iOS and Android production bundles*. |++ Click **Next** to move on to the certificate.+ </Step>++ <Step title="Certificate">+ Infisical issues a fresh code-signing certificate for the Signer from a CA in your project.++ | Field | Description |+ |-------|-------------|+ | **Certificate Authority** | The CA that issues the certificate. Internal CAs issue immediately. External CAs (ACME, DigiCert, Azure AD CS, AWS PCA, Venafi TPP) issue asynchronously and the Signer enters **Pending** until the cert lands. |+ | **Common Name** | The legal name shown on the certificate, for example `Acme Mobile, Inc.`. Fixed once the certificate is issued. To change it you must reissue. |+ | **Key algorithm** | The key for the signing certificate: `RSA-2048`, `RSA-3072`, `RSA-4096`, `ECDSA P-256`, `ECDSA P-384`, or `ECDSA P-521`. |+ | **Validity (days)** | How long each issued certificate is valid for. Default 365. |+ | **Renew before (days)** | Optional, 1 to 30. Auto-renew this many days before expiry. Must be less than Validity. Leave empty to disable auto-renewal. |++ Click **Next** to add members.+ </Step>++ <Step title="Members">+ Add the people and machine identities who will work with this Signer:++ - **User**+ - **Machine Identity**: a non-human caller (CI runner, build job, deploy script). Operator is the typical role.+ - **Group**: a directory group. Everyone in the group inherits the role on this Signer.++ The user who creates the Signer is added as Administrator automatically and cannot be removed at creation time. You can manage members later from the Signer's **Members** tab.++ Click **Next** to set up the approval policy.+ </Step>++ <Step title="Approval policy">+ Decide whether this Signer needs approval before signing.++ - **No approval required**: leave the policy empty. Members with sign rights can sign immediately. Recommended for dev and internal Signers.+ - **Add approval steps**: require one or more sign-offs. See [Approvals → Configure the approval policy](/documentation/platform/pki/code-signing/approvals#configure-the-approval-policy) for the step editor and per-approval limits.++ Press **Create Signer** to finish. Infisical issues the certificate (synchronously for internal CAs, asynchronously for external CAs) and the Signer appears in the list with a status badge.+ </Step>+</Steps>++## Signer statuses++| Status | Meaning |+|--------|---------|+| **Pending** | The Signer is created but the certificate has not been issued yet. Most common with external CAs that take time to respond (ACME validation, DigiCert order, etc.). The PKCS#11 module sees this slot but signing is rejected until the certificate lands. |+| **Active** | Certificate issued and bound. Signing works, subject to the approval policy. |+| **Failed** | Issuance failed. Hover the badge to see the reason. Use **Retry issuance** from the Options menu, or [Edit a Signer](#edit-a-signer) to change the CA, Common Name, or Validity and try again. |+| **Disabled** | Manually disabled. Signing is blocked. Re-enable from the Options menu. |+| **Expired** | The certificate's `notAfter` has passed and no auto-renewal was configured (or the renewal failed). Reissue with a new validity period. |++## Signer detail page++Click any Signer to open its detail page. Three tabs cover everything you can do with it.++<Tabs>+ <Tab title="Activity">+ The **Signing History** table: an audit trail of every signing operation against this Signer, with the most recent at the top.++ | Column | What you'll see |+ |--------|-----------------|+ | **Timestamp** | When the operation happened, down to the second. |+ | **Status** | `Success`, `Failed`, or `Denied`. Denied entries show why on hover (no policy access, expired access, disabled Signer, etc.). |+ | **Algorithm** | Friendly label for the signing algorithm, for example *RSA PKCS#1 v1.5 (SHA-256)* or *ECDSA (SHA-384)*. |+ | **Data Hash** | First few bytes of the SHA digest that was signed, useful for matching an entry back to a specific artifact. Hover for the full value. |+ | **Actor** | The user or machine identity that issued the call. Click through to see who else they are. |++ Paginated at the bottom (1, 5, 10, 20, 50 per page). Read-only and visible to all roles, including Auditors.+ </Tab>++ <Tab title="Approvals">+ A two-panel view that ties together **who has to approve** signing and **who currently can sign**.++ **Approval Policy** (left panel)++ Summary card for the active policy. Shows the per-approval limits (**Max signings**, **Max window**) and the list of **Approval Steps** in order, each with its name and required-approver count. The pencil icon opens the 2-step editor; see [Configure the approval policy](/documentation/platform/pki/code-signing/approvals#configure-the-approval-policy).++ If there's no policy, the panel reads *No policy required* and signing is direct for any member with sign rights.++ **Requests** (right panel)++ The full table of signing requests and active access. Includes both pending requests in flight and historical (expired, revoked, rejected) rows. Filter icon at the top right scopes the list by status.++ | Column | What you'll see |+ |--------|-----------------|+ | **Member** | The user or machine identity who will hold the access, plus a one-line justification subtitle (e.g. *"Auto-requested by PKCS#11 module"*, *"Signing release v2.4.0"*). |+ | **Status** | `Pending`, `Active`, `Expired`, `Revoked`, or `Rejected`. |+ | **When** | When the request was submitted or the pre-approval was issued. |+ | **Expires** | Live countdown plus remaining signature count for Active rows (e.g. *2 of 3 signings left*). Pending rows show *Awaiting approval*. Expired and revoked rows show the terminal reason. |++ The **Pre-approve signing** and **Request to sign** buttons live at the top of this tab. Full coverage of both flows, plus revocation and approver decisions, is in [Approvals](/documentation/platform/pki/code-signing/approvals).+ </Tab>++ <Tab title="Members">+ The **Members** table: everyone (and everything) who has access to this Signer.++ Use the **Add Member** button (top right) to add a user, machine identity, or group. Pick a role at add time. Use the role dropdown on any row to promote or demote later. The kebab (`⋯`) on each row removes the member from the Signer.++ | Column | What you'll see |+ |--------|-----------------|+ | **Member** | Display name of the user, machine identity, or group. |+ | **Type** | Badge: `User`, `Machine Identity`, or `Group`. |+ | **Role** | Dropdown: `Administrator`, `Operator`, or `Auditor`. See the [role table](#signer-roles) above for what each can do. |+ | **Added** | Date the member was first added to this Signer. |<Note>- Only certificates with the `codeSigning` EKU appear when creating a signer.+ At least one Administrator must remain on the Signer at all times. The last remaining Administrator can't be removed or demoted; promote someone else first.</Note>+ </Tab>+</Tabs>++## Edit a Signer++Open the Signer and choose **Options → Edit settings**. The edit sheet walks you through two steps.++<Steps>+ <Step title="Edit basics">+ Update the Signer's identifying information.++ - **Signer name**: rename freely. The PKCS#11 token label updates on the next refresh.+ - **Description**: edit at will.++ Click **Next** to edit the certificate.</Step>- <Step title="(Optional) Create a signing policy">- To require approval before signing, create a [Signing Policy](/documentation/platform/pki/code-signing/signing-policies) first.-- Without a policy, any authorized user or identity can sign immediately.- </Step>- <Step title="Create the signer">- Go to **Certificate Manager → Code Signing → Signers** and click **Create Signer**.- Fill in the following fields:+ <Step title="Edit certificate">+ Change the certificate parameters. Saving here can trigger a fresh issuance, so what's editable depends on the Signer's current status.++ **Always editable**- - **Name**: A slug-friendly name for the signer such as `release-signer`.- - **Description**: An optional description of the signer's purpose.- - **Certificate**: The code-signing certificate to bind to this signer.- - **Signing Policy** (optional): The signing policy that governs signing access for this signer. If omitted, signing is allowed without approval.+ - **Certificate Authority**: swap to another CA in the project. Saving with a different CA reissues the certificate immediately from the new CA.+ - **Renew before (days)**: edit any time, 1 to 30, must be less than Validity.- Press **Create** to save the signer.+ **Locked once the Signer is Active**++ Once a certificate is bound, the **Common Name**, **Validity (days)**, and **Key algorithm** are all locked together so the issued cert and the Signer's stored intent can't drift apart.++ - While the Signer is **Pending** or **Failed** (no certificate bound yet), **Common Name** and **Validity (days)** are editable so you can fix bad inputs and try issuance again. **Key algorithm** is still read-only here.+ - Once **Active**, all three fields show as read-only.++ To change any of them on an Active Signer: swap the CA (reissues with the new CN/Validity if you also fix those before going Active again) or, for **Key algorithm**, create a new Signer with the algorithm you want.++ <Note>+ Renewals always issue a new certificate from the same CA with a fresh key pair. Old artifacts remain valid under the old certificate; new sign operations use the new one.+ </Note>++ Press **Save** to apply the changes.</Step></Steps>-## Supported Signing Algorithms+## Lifecycle operations++Each operation lives under the Signer's **Options** menu in the top right of the detail page.++<Tabs>+ <Tab title="Export certificate">+ **Options → Export certificate** downloads the PEM-encoded X.509 certificate chain (leaf, intermediates, root). You'll typically ship the leaf alongside signed artifacts so verifiers can check the signature.+ </Tab>-The available signing algorithms depend on the certificate's key type:+ <Tab title="Disable / enable">+ **Options → Disable signer** marks the Signer as Disabled and rejects all sign API calls. The certificate is not revoked, so re-enabling later resumes signing immediately. Use this when you suspect a member's machine identity is compromised but don't want to invalidate every artifact already signed.-### RSA+ Re-enable the Signer from the same Options menu (**Enable signer**) when you're ready to resume signing.+ </Tab>-| Algorithm | Description |-|-----------|-------------|-| `RSASSA_PKCS1_V1_5_SHA256` | RSA PKCS#1 v1.5 with SHA-256 |-| `RSASSA_PKCS1_V1_5_SHA384` | RSA PKCS#1 v1.5 with SHA-384 |-| `RSASSA_PKCS1_V1_5_SHA512` | RSA PKCS#1 v1.5 with SHA-512 |-| `RSASSA_PSS_SHA256` | RSA-PSS with SHA-256 |-| `RSASSA_PSS_SHA384` | RSA-PSS with SHA-384 |-| `RSASSA_PSS_SHA512` | RSA-PSS with SHA-512 |+ <Tab title="Retry issuance">+ For Signers stuck in **Failed**: hover the badge to see the reason. **Options → Retry issuance** re-requests the certificate using the stored CA, Common Name, and Validity.-### ECDSA+ If the failure was caused by bad inputs (wrong CA, invalid Common Name), use [Edit a Signer](#edit-a-signer) instead to fix the fields before retrying.+ </Tab>-| Algorithm | Description |-|-----------|-------------|-| `ECDSA_SHA256` | ECDSA with SHA-256 |-| `ECDSA_SHA384` | ECDSA with SHA-384 |-| `ECDSA_SHA512` | ECDSA with SHA-512 |+ <Tab title="Delete">+ **Options → Delete signer** permanently removes:-## Signing via API+ - The Signer record+ - Its approval policy, steps, and approvers+ - All members on the Signer+ - All signing requests and active access records+ - The audit log entries-You can also sign data programmatically by making an API request to the Sign endpoint:+ The certificate object itself remains in **Certificate Manager → Inventory** and can be revoked separately if needed. Deletion cascades cleanly.++ <Note>+ Deletion is irreversible. If you're not sure, disable the Signer first.+ </Note>+ </Tab>+</Tabs>++## Signing via the API++For service-to-service signing you can call the [Sign API](/api-reference/endpoints/code-signing/signers/sign) directly (no PKCS#11 module required). The most common path is still the [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module); use the API directly only when you need precise control.```bashcurl --request POST \- --url https://app.infisical.com/api/v1/pki/signers/{signerId}/sign \+ --url https://app.infisical.com/api/v1/cert-manager/signers/{signerId}/sign \--header 'Authorization: Bearer <access-token>' \--header 'Content-Type: application/json' \--data '{- "data": "<base64-encoded-data>",- "signingAlgorithm": "RSASSA_PKCS1_V1_5_SHA256",+ "data": "<base64-encoded-digest>",+ "signingAlgorithm": "RSASSA_PKCS1_V1_5_SHA_256","isDigest": true,"clientMetadata": {"tool": "custom-pipeline",- "hostname": "build-server-1"+ "hostname": "build-runner-42"}}'```-<Note>- - The `data` field must be base64-encoded and no larger than 128 bytes (the digest of what you want to sign).- - Set `isDigest` to `true` if the data is already a hash digest, or `false` if you want the server to hash it.- - The `clientMetadata` field is optional and recorded in the signing operation audit log.-</Note>+| Field | Description |+|-------|-------------|+| `data` | Base64-encoded payload. Must be the digest itself (≤128 bytes) when `isDigest=true`, or arbitrary data otherwise. |+| `signingAlgorithm` | One of the algorithms allowed by the Signer's key (see below). |+| `isDigest` | `true` if `data` is already a hash digest. `false` to let Infisical hash first. |+| `clientMetadata` | Optional. Recorded verbatim on the audit entry. Handy for distinguishing CI jobs in the Activity log. |++### Algorithms by key type++| Key | Allowed `signingAlgorithm` values |+|-----|-----------------------------------|+| RSA (2048 / 3072 / 4096) | `RSASSA_PKCS1_V1_5_SHA_256`, `RSASSA_PKCS1_V1_5_SHA_384`, `RSASSA_PKCS1_V1_5_SHA_512`, `RSASSA_PSS_SHA_256`, `RSASSA_PSS_SHA_384`, `RSASSA_PSS_SHA_512` |+| ECDSA P-256 | `ECDSA_SHA_256` |+| ECDSA P-384 | `ECDSA_SHA_384` |+| ECDSA P-521 | `ECDSA_SHA_512` |## FAQ<AccordionGroup>- <Accordion title="Can I use the same certificate for multiple signers?">- Yes. Multiple signers can reference the same certificate, each with a different signing policy. This is useful if you want different approval workflows for different teams using the same signing key.+ <Accordion title="Can I reuse one certificate across multiple Signers?">+ No. Every Signer has its own certificate. If you want different teams or different approval workflows against the same CA, create one Signer per team or workflow. Each gets its own certificate from that CA.+ </Accordion>+ <Accordion title="What's the difference between Disable and Delete?">+ **Disable** is reversible. The Signer, its members, its policy, its history, and the certificate are all preserved; sign calls just get rejected. Re-enable to resume.++ **Delete** is permanent. The Signer and everything attached to it (members, policy, access records, audit log) is removed. The certificate object remains in the inventory unless you delete that separately.</Accordion>- <Accordion title="What happens if my certificate expires?">- Signing requests will be rejected if the signer's certificate has expired. You should issue a new certificate and update the signer's certificate binding before expiry.+ <Accordion title="Why is my new Signer stuck in Pending?">+ External CAs (ACME, DigiCert, Azure AD CS, AWS PCA, Venafi TPP) issue asynchronously. Infisical polls the CA in the background and flips the Signer to **Active** once the certificate is delivered. If it stays Pending for more than a few minutes, hover the badge; the failure reason appears there once the polling job gives up.</Accordion>- <Accordion title="Can machine identities sign without human approval?">- Yes, depending on the signing policy configuration. If the policy allows machine identity bypass, machine identities can sign without human intervention after obtaining a grant.+ <Accordion title="What happens to signed artifacts when I delete a Signer?">+ Artifacts already signed remain valid as long as the certificate they were signed with is still valid and the verifier trusts the issuing CA's chain. Deleting the Signer in Infisical only removes Infisical's ability to sign new artifacts with that certificate; it doesn't invalidate past signatures.</Accordion></AccordionGroup>-## What's Next?+## What's next?<CardGroup cols={2}>- <Card title="Configure Signing Policies" icon="file-contract" href="/documentation/platform/pki/code-signing/signing-policies">- Add approval workflows before signing operations.+ <Card title="Approvals" icon="check-double" href="/documentation/platform/pki/code-signing/approvals">+ Add approval steps and per-approval limits to a Signer.</Card><Card title="PKCS#11 Module" icon="plug" href="/documentation/platform/pki/code-signing/pkcs11-module">- Use standard signing tools with your signer.+ Use jarsigner, cosign, osslsigncode, and friends with this Signer.</Card></CardGroup>diff --git a/docs/documentation/platform/pki/code-signing/signing-policies.mdx b/docs/documentation/platform/pki/code-signing/signing-policies.mdxdeleted file mode 100644index 3cc1315fca..0000000000--- a/docs/documentation/platform/pki/code-signing/signing-policies.mdx+++ /dev/null@@ -1,97 +0,0 @@-----title: "Signing Policies"-sidebarTitle: "Signing Policies"-description: "Configure approval workflows for code signing operations."------Signing policies add a human review step before signing operations can be performed, helping enforce separation of duties and maintain compliance for software supply chain security.--<Info>- Signing policies are created by Product Admins and attached to Signers. When a policy is attached, team members must request and receive approval before signing.-</Info>--## When to Use Signing Policies--Signing policies are recommended when:--- **Separation of duties is required**: Your organization requires different people to request and authorize code signing.-- **Release signing needs oversight**: Signing production releases, firmware, or customer-facing artifacts requires additional review.-- **Compliance mandates review**: Regulatory frameworks or internal policies require documented approval before signing.-- **Preventing unauthorized signing**: You want to ensure artifacts are only signed after proper validation.--## Policy Constraints--Each signing policy must define at least one constraint that controls the scope of the signing grant issued upon approval. Constraints can be combined to enforce both time and count limits simultaneously.--### Max Window Duration--Limits how long a signing grant remains valid. The requester specifies a **Valid From** and **Valid Until** when requesting access, and the policy enforces a maximum duration.--This is useful for release cycles where a team needs signing access during a defined window (e.g., a 4-hour deployment).--### Max Signings--Limits the total number of signing operations a grant allows. Once the quota is exhausted, the grant expires automatically.--This is useful for CI pipelines that sign a known number of artifacts per build (e.g., 10 JARs per release).--### Combining Constraints--You can configure both constraints on a single policy. For example, a policy with a **4-hour max window** and **10 max signings** would grant access that expires after 4 hours or 10 signing operations, whichever comes first.--<Note>- At least one constraint is required. If you only need single-operation approvals, set **Max Signings** to 1.-</Note>--## Creating a Signing Policy--A signing policy defines the workflow that must be completed before signing access is granted for a specific signer.--Key features of signing policies include:--- **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).-- **Request expiration**: Set a maximum time-to-live (TTL) for pending requests.-- **Constraints**: Configure max window duration or max signings (or both) to control the scope of each grant.--To create a signing policy, go to **Certificate Manager → Code Signing → Signing Policies** and click **Create Policy**.--<Steps>- <Step title="Configuring the policy">- Configure the basic policy settings:-- - **Policy Name**: A descriptive name for the policy such as `release-signing-approval`.- - **Max. Window Duration**: The maximum time window a requester can ask for (e.g., `4h`, `1d`).- - **Max. Signings**: The maximum number of signing operations a requester can ask for. Set to 1 for single-operation approvals.- - **Max. Request TTL**: The maximum time a request can remain pending before it expires (optional).- - **Bypass approval for machine identities**: When enabled, machine identities can sign without requiring approval.- </Step>- <Step title="Configuring the approval sequence">- Configure the approval steps. Each step defines who can approve and how many approvals are required:-- - **Step Name**: An optional name for the step such as `Security Team Review`.- - **Approvers**: The individual users or groups who are eligible to approve this step.- - **Required Approvals**: The number of approvals needed to complete this step.-- You can add multiple steps to create a sequential approval workflow. For example:- 1. **Team Lead Review**: Requires 1 approval from the team leads group- 2. **Security Review**: Requires 2 approvals from the security team-- Each step must be completed in order before the signing grant is issued.- </Step>- <Step title="Reviewing and creating the policy">- Review your policy configuration and press **Create** to save the policy.- </Step>-</Steps>--## What's Next?--<CardGroup cols={2}>- <Card title="Create a Signer" icon="pen-nib" href="/documentation/platform/pki/code-signing/signers">- Attach this policy to a signer to enforce approvals.- </Card>- <Card title="Signing Requests" icon="paper-plane" href="/documentation/platform/pki/code-signing/signing-requests">- Learn how requests flow through the approval process.- </Card>-</CardGroup>diff --git a/docs/documentation/platform/pki/code-signing/signing-requests.mdx b/docs/documentation/platform/pki/code-signing/signing-requests.mdxdeleted file mode 100644index 2f7fa454bf..0000000000--- a/docs/documentation/platform/pki/code-signing/signing-requests.mdx+++ /dev/null@@ -1,84 +0,0 @@-----title: "Signing Requests"-sidebarTitle: "Signing Requests"-description: "Request, approve, and manage signing access through approval workflows."------When a [Signing Policy](/documentation/platform/pki/code-signing/signing-policies) is attached to a signer, users and machine identities must request signing access before they can sign. This page explains how to request access and how approvers review those requests.--<Info>- If a signer has no signing policy attached, signing is allowed immediately without a request/approval flow.-</Info>--## Requesting Signing Access--Go to **Certificate Manager → Approval Requests** and open the **Signing Requests** tab. Click **Request Signing Access**.--<Steps>- <Step title="Selecting a signer and configuring parameters">- Select the signer you want to use. The form will automatically load the constraints associated with that signer's policy.-- Depending on the policy constraints, provide the required parameters:-- - **Valid From / Valid Until**: If the policy defines a max window duration, specify the time range for when you need signing access.- - **Allowed Sign Operations**: If the policy defines a max signings count, specify how many signing operations you need.- - **Justification**: Optionally provide a reason for the request (e.g., "Release v2.4.0 signing").- </Step>- <Step title="Submitting the request">- Press **Submit** to create the request. Eligible approvers will be notified.- </Step>-</Steps>--## Viewing Requests--Go to **Certificate Manager → Approval Requests** and open the **Signing Requests** tab to view all signing requests. You can filter requests by status:--- **Open**: Requests currently pending approval-- **Approved**: Requests that have been approved and grants issued-- **Rejected**: Requests that were rejected by an approver-- **Cancelled**: Requests cancelled by the requester-- **Expired**: Requests that exceeded their maximum TTL--## Approving a Request--<Steps>- <Step title="Opening the request">- Press on a pending request to view its details.- </Step>- <Step title="Reviewing the request details">- Review the signing access request information including:- - Requester name- - Signer name and certificate- - Grant parameters (valid from/until, allowed sign operations, etc.)- - Justification- </Step>- <Step title="Approve or add comments">- If you are an eligible approver for the current step, press **Approve** to approve the request.- </Step>-</Steps>--Once all required approvals for all steps are obtained, a signing grant is automatically issued and the requester can begin signing.--## Rejecting a Request--<Steps>- <Step title="Opening the request">- Press on a pending request to view its details.- </Step>- <Step title="Rejecting with reason">- If you are an eligible approver for the current step, press **Reject** to reject the request. Optionally add a comment explaining the rejection.- </Step>-</Steps>--When a request is rejected, no signing grant is issued.--## What's Next?--<CardGroup cols={2}>- <Card title="Manage Grants" icon="key" href="/documentation/platform/pki/code-signing/grants">- View and revoke active signing grants.- </Card>- <Card title="PKCS#11 Module" icon="plug" href="/documentation/platform/pki/code-signing/pkcs11-module">- Use your grant with standard signing tools.- </Card>-</CardGroup>diff --git a/docs/documentation/platform/pki/concepts/access-control.mdx b/docs/documentation/platform/pki/concepts/access-control.mdxindex 232db5c95d..e7a94a5592 100644--- a/docs/documentation/platform/pki/concepts/access-control.mdx+++ b/docs/documentation/platform/pki/concepts/access-control.mdx@@ -42,7 +42,7 @@ Only members assigned to an Application can see or interact with its certificateProduct Admins create Signers and assign members. Assigned members can then use the Signer to sign artifacts through the PKCS#11 module or request signing through approval workflows.-[Signing Policies](/documentation/platform/pki/code-signing/signing-policies) can add additional controls, requiring approval before signing operations are allowed.+[Signing Policies](/documentation/platform/pki/code-signing/approvals) can add additional controls, requiring approval before signing operations are allowed.## Principle of Least Privilegediff --git a/docs/documentation/platform/pki/guides/code-signing/apksigner.mdx b/docs/documentation/platform/pki/guides/code-signing/apksigner.mdxindex ffdaf90cab..56d00b357d 100644--- a/docs/documentation/platform/pki/guides/code-signing/apksigner.mdx+++ b/docs/documentation/platform/pki/guides/code-signing/apksigner.mdx@@ -5,7 +5,7 @@ description: "Use the Infisical PKCS#11 module to sign Android APK and AAB files---<Info>- This guide assumes your Product Admin has already created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If the signer has a signing policy, you'll also need an approved [grant](/documentation/platform/pki/code-signing/grants) before signing.+ This guide assumes your Product Admin has already created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If the signer has an approval policy, you'll also need [active access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) before signing.</Info>Sign Android APK and Android App Bundle (AAB) files using `apksigner` with the Infisical PKCS#11 module. Since `apksigner` is a Java-based tool, it uses the same SunPKCS11 provider approach as jarsigner.@@ -13,7 +13,7 @@ Sign Android APK and Android App Bundle (AAB) files using `apksigner` with the I## Prerequisites- A [Signer](/documentation/platform/pki/code-signing/signers) created by your Product Admin-- An active [signing grant](/documentation/platform/pki/code-signing/grants) (if a signing policy is attached)+- [Active signing access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) (if an approval policy is attached)- A [machine identity](/documentation/platform/identities/machine-identities) added to the Signer- The Infisical [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module) installed and configured- Android SDK Build Tools 30.0.0 or later (includes `apksigner`)diff --git a/docs/documentation/platform/pki/guides/code-signing/cosign.mdx b/docs/documentation/platform/pki/guides/code-signing/cosign.mdxindex 83450ac34a..2e9d3e7f62 100644--- a/docs/documentation/platform/pki/guides/code-signing/cosign.mdx+++ b/docs/documentation/platform/pki/guides/code-signing/cosign.mdx@@ -5,15 +5,15 @@ description: "Use the Infisical PKCS#11 module to sign OCI container images with---<Info>- This guide assumes your Product Admin has already created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If the signer has a signing policy, you'll also need an approved [grant](/documentation/platform/pki/code-signing/grants) before signing.+ This guide assumes your Product Admin has already created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If the signer has an approval policy, you'll also need [active access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) before signing.</Info>-Sign OCI container images using `cosign` (from the Sigstore project) with the Infisical PKCS#11 module. Container image signing is a critical part of securing software supply chains — it lets you verify that images in your registry were built by trusted pipelines.+Sign OCI container images using `cosign` (from the Sigstore project) with the Infisical PKCS#11 module. Container image signing is a critical part of securing software supply chains. It lets you verify that images in your registry were built by trusted pipelines.## Prerequisites- A [Signer](/documentation/platform/pki/code-signing/signers) created by your Product Admin-- An active [signing grant](/documentation/platform/pki/code-signing/grants) (if a signing policy is attached)+- [Active signing access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) (if an approval policy is attached)- A [machine identity](/documentation/platform/identities/machine-identities) added to the Signer- The Infisical [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module) installed and configured- `cosign` v2.0 or later, **built with PKCS#11 support** (see below)diff --git a/docs/documentation/platform/pki/guides/code-signing/gpg.mdx b/docs/documentation/platform/pki/guides/code-signing/gpg.mdxindex d563e37a4b..a3fc45677a 100644--- a/docs/documentation/platform/pki/guides/code-signing/gpg.mdx+++ b/docs/documentation/platform/pki/guides/code-signing/gpg.mdx@@ -5,15 +5,15 @@ description: "Use the Infisical PKCS#11 module with GnuPG to sign git commits, t---<Info>- This guide assumes your Product Admin has already created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If the signer has a signing policy, you'll also need an approved [grant](/documentation/platform/pki/code-signing/grants) before signing.+ This guide assumes your Product Admin has already created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If the signer has an approval policy, you'll also need [active access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) before signing.</Info>-Use GnuPG with the Infisical PKCS#11 module via `gnupg-pkcs11-scd` to sign git commits and tags, RPM/DEB packages, and any other artifact that uses GPG signatures — all backed by keys stored securely in Infisical.+Use GnuPG with the Infisical PKCS#11 module via `gnupg-pkcs11-scd` to sign git commits and tags, RPM/DEB packages, and any other artifact that uses GPG signatures.## Prerequisites- A [Signer](/documentation/platform/pki/code-signing/signers) created by your Product Admin (RSA keys recommended for GPG compatibility)-- An active [signing grant](/documentation/platform/pki/code-signing/grants) (if a signing policy is attached)+- [Active signing access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) (if an approval policy is attached)- A [machine identity](/documentation/platform/identities/machine-identities) added to the Signer- The Infisical [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module) installed and configured- GnuPG 2.2 or later@@ -87,7 +87,7 @@ gpg-connect-agent "SCD LEARN" /byeLook for lines starting with `KEY-FRIEDNLY` or `KEYPAIRINFO`. These show the available keys and their key grips (40-character hex strings). Note the key grip for the signer you want to use.<Warning>- If multiple signers use the same certificate/key, they will share the same key grip. GPG will attempt to sign using the first matching slot. Ensure the signer in the first slot has an active signing grant, or configure your signers so each key is used by only one signer.+ If multiple signers use the same certificate/key, they will share the same key grip. GPG will attempt to sign using the first matching slot. Ensure the signer in the first slot has active signing access, or configure your signers so each key is used by only one signer.</Warning>Then generate a key stub:diff --git a/docs/documentation/platform/pki/guides/code-signing/jarsigner.mdx b/docs/documentation/platform/pki/guides/code-signing/jarsigner.mdxindex 9143caab7d..d1f1e075a1 100644--- a/docs/documentation/platform/pki/guides/code-signing/jarsigner.mdx+++ b/docs/documentation/platform/pki/guides/code-signing/jarsigner.mdx@@ -5,7 +5,7 @@ description: "Use the Infisical PKCS#11 module to sign Java artifacts with jarsi---<Info>- This guide assumes your Product Admin has already created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If the signer has a signing policy, you'll also need an approved [grant](/documentation/platform/pki/code-signing/grants) before signing.+ This guide assumes your Product Admin has already created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If the signer has an approval policy, you'll also need [active access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) before signing.</Info>Sign Java JAR files using `jarsigner` with the Infisical PKCS#11 module. The module implements the PKCS#11 v2.40 standard, allowing standard signing tools to use Infisical signers without code changes.@@ -13,7 +13,7 @@ Sign Java JAR files using `jarsigner` with the Infisical PKCS#11 module. The mod## Prerequisites- A [Signer](/documentation/platform/pki/code-signing/signers) created by your Product Admin-- An active [signing grant](/documentation/platform/pki/code-signing/grants) (if a signing policy is attached)+- [Active signing access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) (if an approval policy is attached)- A [machine identity](/documentation/platform/identities/machine-identities) added to the Signer- The Infisical [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module) installed and configured- Java JDK 9 or later (for the `-addprovider` flag)@@ -99,7 +99,7 @@ jarsigner \<Note>- Use `-storepass ""` to avoid the interactive password prompt in non-interactive environments.- - Ensure your machine identity has an active signing grant before the build starts. You can automate grant requests via the Infisical API.+ - Ensure your machine identity has active signing access before the build starts. You can automate access requests via the Infisical API.</Note>## Troubleshooting@@ -115,7 +115,7 @@ For any issue, start by enabling debug logging in your config file to get detail<AccordionGroup><Accordion title="CKR_GENERAL_ERROR when signing">- This typically means the signing request was denied by the server. Check that you have an active signing grant for the signer. You can verify this in the Infisical UI under **Code Signing > Approvals > Grants**.+ This typically means the signing request was denied by the server. Check that you have active signing access for the signer. You can verify this in the Infisical UI by opening the signer's **Approvals** tab and looking at the **Requests** panel.</Accordion><Accordion title="No slots visible or authentication errors">Verify that your credentials are correct and that the machine identity has been added to the Signer.diff --git a/docs/documentation/platform/pki/guides/code-signing/openssl.mdx b/docs/documentation/platform/pki/guides/code-signing/openssl.mdxindex 49a119b92c..5dd5e43091 100644--- a/docs/documentation/platform/pki/guides/code-signing/openssl.mdx+++ b/docs/documentation/platform/pki/guides/code-signing/openssl.mdx@@ -5,15 +5,15 @@ description: "Use the Infisical PKCS#11 module with OpenSSL's pkcs11 engine for---<Info>- This guide assumes your Product Admin has already created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If the signer has a signing policy, you'll also need an approved [grant](/documentation/platform/pki/code-signing/grants) before signing.+ This guide assumes your Product Admin has already created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If the signer has an approval policy, you'll also need [active access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) before signing.</Info>-Use OpenSSL with the Infisical PKCS#11 module via the `libp11` engine for general-purpose signing. OpenSSL is a versatile foundation for signing any file format — useful when you need raw signatures, custom signing pipelines, or integration with tools that wrap OpenSSL.+Use OpenSSL with the Infisical PKCS#11 module via the `libp11` engine for general-purpose signing. OpenSSL is a versatile foundation for signing any file format, useful when you need raw signatures, custom signing pipelines, or integration with tools that wrap OpenSSL.## Prerequisites- A [Signer](/documentation/platform/pki/code-signing/signers) created by your Product Admin-- An active [signing grant](/documentation/platform/pki/code-signing/grants) (if a signing policy is attached)+- [Active signing access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) (if an approval policy is attached)- A [machine identity](/documentation/platform/identities/machine-identities) added to the Signer- The Infisical [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module) installed and configured- OpenSSL 1.1.1 or laterdiff --git a/docs/documentation/platform/pki/guides/code-signing/osslsigncode.mdx b/docs/documentation/platform/pki/guides/code-signing/osslsigncode.mdxindex c12648a9c4..a9eff4a5ce 100644--- a/docs/documentation/platform/pki/guides/code-signing/osslsigncode.mdx+++ b/docs/documentation/platform/pki/guides/code-signing/osslsigncode.mdx@@ -5,7 +5,7 @@ description: "Use the Infisical PKCS#11 module to sign Windows executables, DLLs---<Info>- This guide assumes your Product Admin has already created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If the signer has a signing policy, you'll also need an approved [grant](/documentation/platform/pki/code-signing/grants) before signing.+ This guide assumes your Product Admin has already created a [Signer](/documentation/platform/pki/code-signing/signers) and assigned you to it. If the signer has an approval policy, you'll also need [active access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) before signing.</Info>Sign Windows Authenticode artifacts using `osslsigncode` with the Infisical PKCS#11 module. osslsigncode is a cross-platform tool that lets you sign Windows binaries from Linux and macOS, making it ideal for CI/CD pipelines that don't run on Windows.@@ -13,7 +13,7 @@ Sign Windows Authenticode artifacts using `osslsigncode` with the Infisical PKCS## Prerequisites- A [Signer](/documentation/platform/pki/code-signing/signers) created by your Product Admin-- An active [signing grant](/documentation/platform/pki/code-signing/grants) (if a signing policy is attached)+- [Active signing access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) (if an approval policy is attached)- A [machine identity](/documentation/platform/identities/machine-identities) added to the Signer- The Infisical [PKCS#11 module](/documentation/platform/pki/code-signing/pkcs11-module) installed and configured- `osslsigncode` 2.5 or later (includes native PKCS#11 support)@@ -135,7 +135,7 @@ For any issue, enable debug logging in your config file (`"log_level": "debug"`,<AccordionGroup><Accordion title="Key not found or signing errors">- Verify the object name in the PKCS#11 URI matches your signer name exactly and that you have an active signing grant. You can list available signers with `pkcs11-tool --module /path/to/lib --list-slots`.+ Verify the object name in the PKCS#11 URI matches your signer name exactly and that you have active signing access. You can list available signers with `pkcs11-tool --module /path/to/lib --list-slots`.</Accordion><Accordion title="Certificate not found in PKCS#11">The `-pkcs11cert` URI must match your signer name exactly. Use `pkcs11-tool --module /path/to/lib --list-objects --type cert` to verify available certificate labels.diff --git a/docs/documentation/platform/pki/quick-starts/sign-first-code.mdx b/docs/documentation/platform/pki/quick-starts/sign-first-code.mdxindex 6dd2c62736..dfcd659c68 100644--- a/docs/documentation/platform/pki/quick-starts/sign-first-code.mdx+++ b/docs/documentation/platform/pki/quick-starts/sign-first-code.mdx@@ -25,7 +25,7 @@ Sign a Java JAR file using Infisical-managed keys in about 10 minutes. You'll isThen create a profile and issue a certificate following the same flow as the [Issue Certificate quick start](/documentation/platform/pki/quick-starts/issue-first-certificate), but using the `code-signing` policy.- Download the certificate — you'll need it for the signer.+ Download the certificate. You'll need it for the signer.</Step><Step title="Create a Signer">Go to **Code Signing → Signers** and click **Create**.@@ -73,6 +73,6 @@ You should see `jar verified` with details about the signing certificate.## Next Steps-- Add [Signing Policies](/documentation/platform/pki/code-signing/signing-policies) for approval workflows-- Request signing access with [Grants](/documentation/platform/pki/code-signing/grants)+- Add an [approval policy](/documentation/platform/pki/code-signing/approvals) for sign-off workflows+- Learn how [signing access](/documentation/platform/pki/code-signing/approvals#access-lifecycle) is requested and revoked- See the full [jarsigner guide](/documentation/platform/pki/guides/code-signing/jarsigner) for advanced optionsdiff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningGrantsTab/CodeSigningGrantsTab.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningGrantsTab/CodeSigningGrantsTab.tsxindex 6e75e95965..454e5c3b10 100644--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningGrantsTab/CodeSigningGrantsTab.tsx+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningGrantsTab/CodeSigningGrantsTab.tsx@@ -219,7 +219,7 @@ export const CodeSigningGrantsTab = () => {<CardHeader><CardTitle>Signing Grants- <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.grants} />+ <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.approvals.grantLifecycle} /></CardTitle><CardDescription>View and revoke signing access grants.</CardDescription></CardHeader>diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningPolicyTab/CodeSigningPolicyTab.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningPolicyTab/CodeSigningPolicyTab.tsxindex 9eee7d9cb9..e406c29fc7 100644--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningPolicyTab/CodeSigningPolicyTab.tsx+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningPolicyTab/CodeSigningPolicyTab.tsx@@ -62,7 +62,7 @@ export const CodeSigningPolicyTab = () => {<CardHeader><CardTitle>Signing Policies- <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signingPolicies} />+ <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.approvals.policy} /></CardTitle><CardDescription>Define policies that require approval before signing operations.diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningRequestsTab/CodeSigningRequestsTab.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningRequestsTab/CodeSigningRequestsTab.tsxindex 5db59a966d..db09448b0d 100644--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningRequestsTab/CodeSigningRequestsTab.tsx+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningRequestsTab/CodeSigningRequestsTab.tsx@@ -157,7 +157,7 @@ export const CodeSigningRequestsTab = () => {<div><div className="flex items-center gap-x-2"><p className="text-xl font-medium text-mineshaft-100">Signing Requests</p>- <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signingRequests} />+ <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.approvals.requestToSign} /></div><p className="text-sm text-bunker-300">Review and manage signing requests</p></div>diff --git a/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/CreateSignerWizard.tsx b/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/CreateSignerWizard.tsxindex 8720b31471..a52f834393 100644--- a/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/CreateSignerWizard.tsx+++ b/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/CreateSignerWizard.tsx@@ -241,7 +241,7 @@ export const CreateSignerWizard = ({ isOpen, onOpenChange, projectId }: Props) =<div><div className="flex items-center gap-x-2 text-mineshaft-300">Create Signer- <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers} />+ <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers.create} /></div><p className="text-sm leading-4 text-mineshaft-400">A Signer bundles a code-signing certificate, the members allowed to use it, and an@@ -330,7 +330,7 @@ export const CreateSignerWizard = ({ isOpen, onOpenChange, projectId }: Props) =<p className="text-[11px] font-medium tracking-wider text-muted uppercase">Step {step + 1} · {currentStep.rightLabel}</p>- <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers} />+ <DocumentationLinkBadge href={currentStep.docsUrl} /></div><p className="mt-4 text-sm font-semibold text-foreground">What this step does</p><p className="mt-2 text-sm leading-relaxed text-muted">diff --git a/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/types.ts b/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/types.tsindex e1c4abc248..2b45328a8c 100644--- a/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/types.ts+++ b/frontend/src/pages/cert-manager/CodeSigningPage/components/CreateSignerWizard/types.ts@@ -1,5 +1,7 @@import { SignerKeyAlgorithm, SignerMemberRole } from "@app/hooks/api/signers";+import { PkiDocsUrls } from "../../../pki-docs-urls";+export type CaGroup = "internal" | "external";export type CaOption = { id: string; name: string; groupType: CaGroup };export type MemberOption = { value: string; label: string };@@ -66,6 +68,7 @@ export type WizardStep = {subtitle: string;rightLabel: string;rightDescription: string;+ docsUrl: string;};export const STEPS: WizardStep[] = [@@ -76,7 +79,8 @@ export const STEPS: WizardStep[] = [subtitle: "A short name and what this signer is for.",rightLabel: "BASICS",rightDescription:- "Set the signer's name and a short description so your team knows what it signs (for example, mobile-app-prod for production iOS and Android bundles)."+ "Set the signer's name and a short description so your team knows what it signs (for example, mobile-app-prod for production iOS and Android bundles).",+ docsUrl: PkiDocsUrls.codeSigning.signers.basics},{name: "Certificate",@@ -85,7 +89,8 @@ export const STEPS: WizardStep[] = [subtitle: "Pick the Certificate Authority and the name on the certificate.",rightLabel: "CERTIFICATE",rightDescription:- "Tells Infisical which CA issues the signing certificate, the name shown on it, and how long it stays valid. The Common Name is fixed once issued."+ "Tells Infisical which CA issues the signing certificate, the name shown on it, and how long it stays valid. The Common Name is fixed once issued.",+ docsUrl: PkiDocsUrls.codeSigning.signers.certificate},{name: "Members",@@ -94,7 +99,8 @@ export const STEPS: WizardStep[] = [subtitle: "Add users, machine identities, or groups that can work with this signer.",rightLabel: "MEMBERS",rightDescription:- "Choose who gets access. Each member has a role: Administrators manage the signer, Operators sign artifacts, Auditors read activity but cannot sign."+ "Choose who gets access. Each member has a role: Administrators manage the signer, Operators sign artifacts, Auditors read activity but cannot sign.",+ docsUrl: PkiDocsUrls.codeSigning.signers.members},{name: "Approval Policy",@@ -103,7 +109,8 @@ export const STEPS: WizardStep[] = [subtitle: "Decide if signing needs approval, who approves it, and what each approval allows.",rightLabel: "APPROVAL POLICY",rightDescription:- "When approval is on, members ask before signing. Steps run in order with approvers per step. Limits cap how many signatures and how long each approval is valid."+ "When approval is on, members ask before signing. Steps run in order with approvers per step. Limits cap how many signatures and how long each approval is valid.",+ docsUrl: PkiDocsUrls.codeSigning.approvals.policy}];diff --git a/frontend/src/pages/cert-manager/CodeSigningPage/components/SignersTable.tsx b/frontend/src/pages/cert-manager/CodeSigningPage/components/SignersTable.tsxindex d785192f8e..720e1c83cf 100644--- a/frontend/src/pages/cert-manager/CodeSigningPage/components/SignersTable.tsx+++ b/frontend/src/pages/cert-manager/CodeSigningPage/components/SignersTable.tsx@@ -77,7 +77,7 @@ export const SignersTable = ({ projectId, onCreateSigner }: Props) => {<CardHeader><CardTitle>Signers- <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers} />+ <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers.overview} /></CardTitle><CardDescription>Manage signers and control who can sign artifacts.</CardDescription><CardAction>diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/SignerDetailPage.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/SignerDetailPage.tsxindex 238de8e1af..da98ae4b91 100644--- a/frontend/src/pages/cert-manager/SignerDetailPage/SignerDetailPage.tsx+++ b/frontend/src/pages/cert-manager/SignerDetailPage/SignerDetailPage.tsx@@ -141,7 +141,7 @@ export const SignerDetailPage = () => {title={<span className="inline-flex items-center gap-x-2 align-middle">{signer.name}- <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers} />+ <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers.overview} />{signer.status === SignerStatus.Failed && signer.failureReason ? (<TooltipProvider><Tooltip>diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerModal/EditSignerModal.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerModal/EditSignerModal.tsxindex f8d3046589..85982bbffe 100644--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerModal/EditSignerModal.tsx+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerModal/EditSignerModal.tsx@@ -176,7 +176,7 @@ export const EditSignerModal = ({ isOpen, onOpenChange, signer }: Props) => {<div><div className="flex items-center gap-x-2 text-mineshaft-300">Edit Signer- <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers} />+ <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers.edit} /></div><p className="text-sm leading-4 text-mineshaft-400">Update the signer's name, validity, and certificate authority.@@ -244,7 +244,7 @@ export const EditSignerModal = ({ isOpen, onOpenChange, signer }: Props) => {<p className="text-[11px] font-medium tracking-wider text-muted uppercase">Step {step + 1} · {currentStep.rightLabel}</p>- <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers} />+ <DocumentationLinkBadge href={currentStep.docsUrl} /></div><p className="mt-4 text-sm font-semibold text-foreground">What this step does</p><p className="mt-2 text-sm leading-relaxed text-muted">diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerModal/types.ts b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerModal/types.tsindex ef834ecaf0..cf8f9dd9ab 100644--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerModal/types.ts+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerModal/types.ts@@ -1,3 +1,5 @@+import { PkiDocsUrls } from "../../../pki-docs-urls";+export type CaGroup = "internal" | "external";export type CaOption = { id: string; name: string; groupType: CaGroup };@@ -8,6 +10,7 @@ export type StepConfig = {subtitle: string;rightLabel: string;rightDescription: string;+ docsUrl: string;};export const STEPS: StepConfig[] = [@@ -18,7 +21,8 @@ export const STEPS: StepConfig[] = [subtitle: "A short name and what this signer is for.",rightLabel: "BASICS",rightDescription:- "Update the signer's name and description so your team can recognize it. Changing these does not affect the certificate."+ "Update the signer's name and description so your team can recognize it. Changing these does not affect the certificate.",+ docsUrl: PkiDocsUrls.codeSigning.signers.editBasics},{name: "Certificate",@@ -27,6 +31,7 @@ export const STEPS: StepConfig[] = [subtitle: "The certificate behind this signer.",rightLabel: "CERTIFICATE",rightDescription:- "Adjust how early to auto-renew, and which CA issues the certificate. Swapping the CA reissues the certificate right away."+ "Adjust how early to auto-renew, and which CA issues the certificate. Swapping the CA reissues the certificate right away.",+ docsUrl: PkiDocsUrls.codeSigning.signers.editCertificate}];diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/EditSignerPolicyModal.tsx b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/EditSignerPolicyModal.tsxindex f9a0446b20..d2b5beb4e1 100644--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/EditSignerPolicyModal.tsx+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/EditSignerPolicyModal.tsx@@ -215,7 +215,7 @@ export const EditSignerPolicyModal = ({<div><div className="flex items-center gap-x-2 text-mineshaft-300">Edit approval policy- <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers} />+ <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.approvals.policy} /></div><p className="text-sm leading-4 text-mineshaft-400">Choose who approves, and how much each approval gives.@@ -271,12 +271,12 @@ export const EditSignerPolicyModal = ({<p className="text-[11px] font-medium tracking-wider text-muted uppercase">Step {safeStep + 1} · {WIZARD_STEPS[safeStep].title.toUpperCase()}</p>- <DocumentationLinkBadge href={PkiDocsUrls.codeSigning.signers} />+ <DocumentationLinkBadge href={WIZARD_STEPS[safeStep].docsUrl} /></div><p className="mt-4 text-sm font-semibold text-foreground">What this step does</p><p className="mt-2 text-sm leading-relaxed text-muted">{!showLimitsTab- ? 'Approvals run in order. Each step has its own approvers and "required" count — the number of approvers that must approve before moving on.'+ ? 'Approvals run in order. Each step has its own approvers and a "required" count: the number of approvers that must approve before moving on.': "Limits decide how many signatures one approval can make and how long it stays valid before expiring."}</p></div>diff --git a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/types.ts b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/types.tsindex a25caf86c6..0498a6e0e2 100644--- a/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/types.ts+++ b/frontend/src/pages/cert-manager/SignerDetailPage/components/EditSignerPolicyModal/types.ts@@ -1,3 +1,5 @@+import { PkiDocsUrls } from "../../../pki-docs-urls";+export type ApproverKind = "user" | "group";export type ApproverOption = { value: string; label: string; kind: ApproverKind };@@ -10,10 +12,15 @@ export type StepDraft = {export const approverKey = (kind: ApproverKind, id: string) => `${kind}:${id}`;-export const APPROVERS_STEP = { title: "Approvers", subtitle: "Who approves" } as const;+export const APPROVERS_STEP = {+ title: "Approvers",+ subtitle: "Who approves",+ docsUrl: PkiDocsUrls.codeSigning.approvals.approvers+} as const;export const LIMITS_STEP = {title: "Approval limits",- subtitle: "What each approval allows"+ subtitle: "What each approval allows",+ docsUrl: PkiDocsUrls.codeSigning.approvals.limits} as const;export const NO_WINDOW_LIMIT = "__no_limit__";diff --git a/frontend/src/pages/cert-manager/pki-docs-urls.ts b/frontend/src/pages/cert-manager/pki-docs-urls.tsindex c5ba35dbe4..270ff6685d 100644--- a/frontend/src/pages/cert-manager/pki-docs-urls.ts+++ b/frontend/src/pages/cert-manager/pki-docs-urls.ts@@ -81,10 +81,25 @@ export const PkiDocsUrls = {// Code SigningcodeSigning: {overview: `${PKI_DOCS_BASE_URL}/code-signing/overview`,- signers: `${PKI_DOCS_BASE_URL}/code-signing/signers`,- signingPolicies: `${PKI_DOCS_BASE_URL}/code-signing/signing-policies`,- grants: `${PKI_DOCS_BASE_URL}/code-signing/grants`,- signingRequests: `${PKI_DOCS_BASE_URL}/code-signing/signing-requests`,+ signers: {+ overview: `${PKI_DOCS_BASE_URL}/code-signing/signers`,+ create: `${PKI_DOCS_BASE_URL}/code-signing/signers#create-a-signer`,+ basics: `${PKI_DOCS_BASE_URL}/code-signing/signers#basics`,+ certificate: `${PKI_DOCS_BASE_URL}/code-signing/signers#certificate`,+ members: `${PKI_DOCS_BASE_URL}/code-signing/signers#members`,+ edit: `${PKI_DOCS_BASE_URL}/code-signing/signers#edit-a-signer`,+ editBasics: `${PKI_DOCS_BASE_URL}/code-signing/signers#edit-basics`,+ editCertificate: `${PKI_DOCS_BASE_URL}/code-signing/signers#edit-certificate`+ },+ approvals: {+ overview: `${PKI_DOCS_BASE_URL}/code-signing/approvals`,+ policy: `${PKI_DOCS_BASE_URL}/code-signing/approvals#configure-the-approval-policy`,+ approvers: `${PKI_DOCS_BASE_URL}/code-signing/approvals#approvers`,+ limits: `${PKI_DOCS_BASE_URL}/code-signing/approvals#approval-limits`,+ preApprove: `${PKI_DOCS_BASE_URL}/code-signing/approvals#pre-approve-signing`,+ requestToSign: `${PKI_DOCS_BASE_URL}/code-signing/approvals#request-to-sign`,+ grantLifecycle: `${PKI_DOCS_BASE_URL}/code-signing/approvals#access-lifecycle`+ },pkcs11Module: `${PKI_DOCS_BASE_URL}/code-signing/pkcs11-module`},