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 PKI approval docs
Carlos Monastyrski660862eeaef0
diff --git a/docs/docs.json b/docs/docs.jsonindex 58d0fa3a70..32339ea919 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -680,7 +680,8 @@"pages": ["documentation/platform/pki/guides/request-cert-agent","documentation/platform/pki/guides/request-cert-api",- "documentation/platform/pki/guides/request-cert-acme"+ "documentation/platform/pki/guides/request-cert-acme",+ "documentation/platform/pki/guides/certificate-approvals"]}]@@ -702,6 +703,7 @@"documentation/platform/pki/certificates/overview","documentation/platform/pki/certificates/profiles","documentation/platform/pki/certificates/policies",+ "documentation/platform/pki/certificates/approvals","documentation/platform/pki/certificates/certificates"]},diff --git a/docs/documentation/platform/pki/certificates/approvals.mdx b/docs/documentation/platform/pki/certificates/approvals.mdxnew file mode 100644index 0000000000..b767570c5e--- /dev/null+++ b/docs/documentation/platform/pki/certificates/approvals.mdx@@ -0,0 +1,159 @@+---+title: "Approval Policies & Requests"+sidebarTitle: "Approvals"+description: "Learn how to configure approval workflows for certificate issuance."+---++Certificate approval workflows add a human review step before certificates are issued, helping organizations enforce security controls and compliance requirements.++## When to Use Approval Workflows++Approval workflows are recommended when:++- **Separation of duties is required**: Your organization requires different people to request and approve certificate issuance.+- **Sensitive certificate issuance needs oversight**: Certificates for production environments, customer-facing services, or internal PKI require additional review.+- **Compliance mandates review**: Regulatory frameworks or internal policies require documented approval before certificate issuance.+- **Preventing unauthorized issuance**: You want to ensure certificates are only issued after proper validation of the request.++If your use case involves fully automated certificate management for workloads (e.g., using [Infisical Agent](/documentation/platform/pki/guides/request-cert-agent)), you may want to enable the machine identity bypass option instead of requiring approval.++## Approval Policies++An approval policy defines the workflow that must be completed before certificates can be issued from specific [certificate profiles](/documentation/platform/pki/certificates/profiles). When a certificate request is made against a profile with an approval policy, the request is placed in a pending state until the required approvers review and approve it.++Key features of approval 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).+- **Machine identity bypass**: Allow [machine identities](/documentation/platform/identities/machine-identities) to issue certificates without approval for automated workloads.+- **Request expiration**: Set a maximum time-to-live (TTL) for pending requests.++### Guide to Creating an Approval Policy++To create an approval policy, head to your Certificate Management Project > Certificate Manager > Approvals > Policies and press **Create Policy**.++++<Steps>+ <Step title="Configuration">+ Configure the basic policy settings:++ - **Policy Name**: A descriptive name for the policy such as `production-cert-approval`.+ - **Max. Request TTL**: The maximum time a request can remain pending before it expires (optional).+ - **Certificate Profiles**: Select one or more certificate profiles that this policy applies to. Any certificate request made against these profiles will require approval.+ - **Bypass approval for machine identities**: When enabled, machine identities can issue certificates from the selected profiles without requiring approval. This is useful for automated workloads that need certificates without human intervention.++ + </Step>+ <Step title="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**: Select individual users or groups who are eligible to approve this step. Multiple approvers can be selected.+ - **Required Approvals**: The number of approvals needed to complete this step. For example, if you select 5 approvers and require 2 approvals, any 2 of the 5 can approve to complete the step.+ - **Notify Approvers**: When enabled, eligible approvers receive a notification when their approval is required.++ 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 certificate is issued.++ + </Step>+ <Step title="Review">+ Review your policy configuration and click **Create** to save the policy.++ ++ + </Step>+</Steps>++## Approval Requests++When a certificate request is made against a profile with an approval policy, an approval request is created. Approvers can then review and approve or reject the request.++### Viewing Requests++Navigate to your Certificate Management Project > Certificate Manager > Approvals > Requests to view all approval requests. You can filter requests by status:++++- **Open Requests**: Requests currently pending approval+- **Approved**: Requests that have been approved and certificates 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="Open the request">+ Click on a pending request to view its details.++ + </Step>+ <Step title="Review the certificate details">+ Review the certificate request information including:+ - Requester name and email+ - Certificate profile+ - Common name and subject alternative names (SANs)+ - Key usages and extended key usages+ - Validity period+ - Basic Constraints++ + </Step>+ <Step title="Approve or add comments">+ If you are an eligible approver for the current step, click **Approve** to approve the request.+ + + </Step>+</Steps>++Once all required approvals for all steps are obtained, the certificate is automatically issued.++### Rejecting a Request++<Steps>+ <Step title="Open the request">+ Click on a pending request to view its details.+ + </Step>+ <Step title="Review the certificate details">+ Review the certificate request information.+ + </Step>+ <Step title="Reject with reason">+ If you are an eligible approver for the current step, click **Reject** to reject the request. Optionally add a comment explaining the rejection.++ + </Step>+</Steps>++When a request is rejected, the workflow ends and no certificate is issued.++## FAQ++<AccordionGroup>+ <Accordion title="I approved a certificate request but the certificate wasn't issued">+ If the approval policy has multiple steps, your approval may have completed only one step. The certificate is issued only after all approval steps are completed. Check the request details to see which step is currently pending and ensure all required approvers have approved.+ </Accordion>+ <Accordion title="I don't see the Approve button on a request">+ The Approve button only appears if you are an eligible approver for the current step. Verify that:+ - You are listed as an approver (either directly or through a group) for the current approval step+ - The request is still in a pending state and hasn't expired+ - A previous step hasn't already been rejected+ </Accordion>+ <Accordion title="Can I use approval workflows with ACME or EST enrollment?">+ Approval policies can be configured on profiles using any enrollment method, including [API](/documentation/platform/pki/enrollment-methods/api), [ACME](/documentation/platform/pki/enrollment-methods/acme), and [EST](/documentation/platform/pki/enrollment-methods/est). However, automated clients like Certbot typically cannot wait for human approval.+ </Accordion>+ <Accordion title="What happens when a request expires?">+ When a pending request exceeds the maximum TTL configured in the approval policy, it automatically moves to an **Expired** status. No certificate is issued for expired requests. The requester will need to submit a new certificate request.+ </Accordion>+ <Accordion title="Can an approver also be the requester?">+ By default, an approver can approve their own requests if they are listed as an eligible approver. If your organization requires separation of duties where requesters cannot approve their own requests, configure the approval policy with approver groups that exclude potential requesters.+ </Accordion>+</AccordionGroup>diff --git a/docs/documentation/platform/pki/certificates/overview.mdx b/docs/documentation/platform/pki/certificates/overview.mdxindex b645dcaa02..e79a93d616 100644--- a/docs/documentation/platform/pki/certificates/overview.mdx+++ b/docs/documentation/platform/pki/certificates/overview.mdx@@ -6,10 +6,12 @@ sidebarTitle: "Overview"To issue a certificate with Infisical, you create a certificate profile and a certificate policy to go along with it. You then issue a certificate againsta specific profile depending on the enrollment method associated with it.-There are three components to understand:+There are four components to understand:- [Certificate Profile](/documentation/platform/pki/certificates/profiles): A configuration set specifying how certificates should be issued under that profile including the [issuing CA](/documentation/platform/pki/ca/overview), a certificate policy, and the [enrollment method](/documentation/platform/pki/enrollment-methods/overview) (such as ACME, EST, API, etc.) used to enroll certificates.- [Certificate Policy](/documentation/platform/pki/certificates/policies): A policy structure specifying the permitted attributes for requested certificates including subject naming conventions, SAN fields, key usages, and extended key usages.+- [Approval Policy](/documentation/platform/pki/certificates/approvals): An optional approval workflow requiring human review before certificates are issued. Approval policies can enforce multi-step review processes with configurable approvers for each step.+- [Certificate](/documentation/platform/pki/certificates/certificates): The actual X.509 certificate issued for a profile. Once issued, a certificate kept track of in the certificate inventory.diff --git a/docs/documentation/platform/pki/concepts/certificate-lifecycle.mdx b/docs/documentation/platform/pki/concepts/certificate-lifecycle.mdxindex cf19ac8670..f3e441202b 100644--- a/docs/documentation/platform/pki/concepts/certificate-lifecycle.mdx+++ b/docs/documentation/platform/pki/concepts/certificate-lifecycle.mdx@@ -27,6 +27,21 @@ Common approaches to certificate enrollment include:Enrollment can be manually completed via API or fully automated using protocols like EST or ACME. The choice of enrollment method depends on security requirements, operational constraints, and integration context.+## Approval++Certificate approval is an optional workflow that adds a human review step before certificates are issued. When an [approval policy](/documentation/platform/pki/certificates/approvals) is configured for a [certificate profile](/documentation/platform/pki/certificates/profiles), certificate requests are placed in a pending state until the required approvers review and approve them.++Approval workflows help organizations:++- Enforce separation of duties between certificate requesters and approvers+- Add oversight for certificates issued to sensitive domains or systems+- Meet compliance requirements that mandate review before certificate issuance+- Prevent unauthorized certificate issuance++Approval policies can be configured with multiple sequential steps, each requiring a specified number of approvals from designated users or groups. [Machine identities](/documentation/platform/identities/machine-identities) can optionally bypass approval when automated certificate issuance is required for workloads.++Once all approval steps are completed, the certificate is automatically issued and made available to the requester. If rejected, the request is closed and no certificate is issued.+## DeploymentCertificate deployment involves installing the issued certificate on the appropriate systems and services, such as web servers, load balancers, or internal endpoints. It can also include distributing or [synchronizing certificates](/documentation/platform/pki/certificate-syncs/overview) to external systems like cloud key stores (e.g., AWS Secrets Manager, Google Secret Manager, Azure Key Vault) so they can be securely consumed by workloads running in the cloud.diff --git a/docs/documentation/platform/pki/guides/certificate-approvals.mdx b/docs/documentation/platform/pki/guides/certificate-approvals.mdxnew file mode 100644index 0000000000..0b87d223d1--- /dev/null+++ b/docs/documentation/platform/pki/guides/certificate-approvals.mdx@@ -0,0 +1,152 @@+---+title: "Set Up Certificate Approvals"+description: "Step-by-step guide to configuring certificate approval workflows."+---++This guide walks through setting up [approval workflows](/documentation/platform/pki/certificates/approvals) for certificate issuance. Approval workflows add a human review step before certificates are issued, helping enforce separation of duties and meet compliance requirements.++## Diagram++The following sequence diagram illustrates the certificate issuance workflow when an approval policy is configured.++```mermaid+sequenceDiagram+ autonumber+ participant Client as Client+ participant Infis as Infisical+ participant Approver as Approver(s)+ participant CA as CA<br/>(Internal or External)++ Client->>Infis: POST /certificate<br/>(profileId, subject, SANs, etc.)++ Infis->>Infis: Look up certificate profile<br/>(by profileId)+ Infis->>Infis: Check for approval policy<br/>matching profile++ alt Approval Policy Found+ Infis->>Infis: Create certificate request<br/>in PENDING_APPROVAL status+ Infis-->>Client: Return certificate request ID<br/>with PENDING_APPROVAL status++ Infis->>Approver: Notify eligible approvers<br/>(if notifications enabled)++ loop For Each Approval Step+ Approver->>Infis: Review and approve request+ Infis->>Infis: Check if step complete<br/>(required approvals met)+ end++ Infis->>Infis: All steps approved+ end++ alt Issuer Type = Self-Signed+ Infis->>Infis: Generate keypair<br/>and self-sign certificate+ else Issuer Type = CA+ Infis->>CA: Request certificate issuance<br/>(CSR)+ CA-->>Infis: Signed certificate<br/>(+ chain)+ end++ Infis-->>Client: Certificate available<br/>(poll or webhook)+```++## Guide++In the following steps, we set up an approval workflow for certificate issuance.++<Steps>+ <Step title="Create a certificate authority">+ First, follow the guide to create a [certificate authority](/documentation/platform/pki/ca/overview) to issue certificates from.+ </Step>+ <Step title="Create a certificate policy">+ Next, create a [certificate policy](/documentation/platform/pki/certificates/policies) that defines permitted certificate attributes. See the [guide to creating a certificate policy](/documentation/platform/pki/certificates/policies#guide-to-creating-a-certificate-policy) for detailed instructions.+ </Step>+ <Step title="Create a certificate profile">+ Create a [certificate profile](/documentation/platform/pki/certificates/profiles) that references your CA and certificate policy. See the [guide to creating a certificate profile](/documentation/platform/pki/certificates/profiles#guide-to-creating-a-certificate-profile) for detailed instructions.++ Select an [enrollment method](/documentation/platform/pki/enrollment-methods/overview) (API, ACME, or EST) based on how certificates will be requested.+ </Step>+ <Step title="Create an approval policy">+ Navigate to your Certificate Management Project > Certificate Manager > Approvals > Policies and click **Create Policy**. See the [guide to creating an approval policy](/documentation/platform/pki/certificates/approvals#guide-to-creating-an-approval-policy) for detailed instructions.++ Configure the policy:++ 1. **Configuration Step**:+ - Enter a descriptive policy name (e.g., `production-cert-approval`)+ - Optionally set a maximum request TTL (e.g., `7d` for requests to expire after 7 days)+ - Select the certificate profile(s) that require approval+ - Optionally enable bypass for [machine identities](/documentation/platform/identities/machine-identities) if automated workloads need to issue certificates without approval++ 2. **Approval Sequence Step**:+ - Add one or more approval steps+ - For each step, select the users or groups who can approve+ - Set the required number of approvals per step+ - Enable notifications to alert approvers when their review is needed++ 3. **Review Step**:+ - Review your configuration and click **Create**++ </Step>+ <Step title="Request a certificate">+ Request a certificate using your chosen enrollment method:++ - **[API](/documentation/platform/pki/enrollment-methods/api)**: Make a request to the [Issue Certificate](/api-reference/endpoints/certificates/create-certificate) endpoint+ - **[ACME](/documentation/platform/pki/enrollment-methods/acme)**: Use an ACME client to request a certificate+ - **[EST](/documentation/platform/pki/enrollment-methods/est)**: Use an EST client to enroll for a certificate++ Since an approval policy is configured, the request will be placed in a `PENDING_APPROVAL` status.++ ### Sample API Request++ ```bash+ curl --location --request POST 'https://app.infisical.com/api/v1/cert-manager/certificates' \+ --header 'Authorization: Bearer <access-token>' \+ --header 'Content-Type: application/json' \+ --data-raw '{+ "profileId": "<profile-id>",+ "attributes": {+ "commonName": "example.com",+ "altNames": [+ { "type": "DNS", "value": "www.example.com" }+ ],+ "ttl": "365d"+ }+ }'+ ```++ ### Sample Response (Pending Approval)++ ```json+ {+ "status": "PENDING_APPROVAL",+ "certificateRequestId": "<request-id>",+ "message": "Certificate request requires approval",+ "projectId": "<project-id>"+ }+ ```++ </Step>+ <Step title="Approve the request">+ Navigate to your Certificate Management Project > Certificate Manager > Approvals > Requests.++ 1. Find the pending request in the list+ 2. Click on it to view the details+ 3. Review the certificate request information:+ - Requester identity+ - Common name and SANs+ - Key usages and validity period+ 4. Click **Approve** to approve the request (or **Reject** to deny it)++ If the policy has multiple approval steps, the request advances to the next step after each approval.++ Once all approval steps are complete, the certificate is automatically issued.++ </Step>+ <Step title="Retrieve the issued certificate">+ After approval, retrieve the certificate using the certificate request ID or by fetching the latest certificate from the profile:++ ### Get Certificate by Request ID++ ```bash+ curl --location --request GET 'https://app.infisical.com/api/v3/cert-manager/certificate-requests/<request-id>' \+ --header 'Authorization: Bearer <access-token>'+ ```++ </Step>+</Steps>diff --git a/docs/images/platform/pki/approvals/approval-policies.png b/docs/images/platform/pki/approvals/approval-policies.pngnew file mode 100644index 0000000000..e7f280a875Binary files /dev/null and b/docs/images/platform/pki/approvals/approval-policies.png differdiff --git a/docs/images/platform/pki/approvals/approval-policy-configuration.png b/docs/images/platform/pki/approvals/approval-policy-configuration.pngnew file mode 100644index 0000000000..f17f13741cBinary files /dev/null and b/docs/images/platform/pki/approvals/approval-policy-configuration.png differdiff --git a/docs/images/platform/pki/approvals/approval-policy-created.png b/docs/images/platform/pki/approvals/approval-policy-created.pngnew file mode 100644index 0000000000..dbc6fd887bBinary files /dev/null and b/docs/images/platform/pki/approvals/approval-policy-created.png differdiff --git a/docs/images/platform/pki/approvals/approval-policy-review.png b/docs/images/platform/pki/approvals/approval-policy-review.pngnew file mode 100644index 0000000000..c0b8e0ba78Binary files /dev/null and b/docs/images/platform/pki/approvals/approval-policy-review.png differdiff --git a/docs/images/platform/pki/approvals/approval-policy-sequence.png b/docs/images/platform/pki/approvals/approval-policy-sequence.pngnew file mode 100644index 0000000000..e9eafd4119Binary files /dev/null and b/docs/images/platform/pki/approvals/approval-policy-sequence.png differdiff --git a/docs/images/platform/pki/approvals/approval-request-approve-modal.png b/docs/images/platform/pki/approvals/approval-request-approve-modal.pngnew file mode 100644index 0000000000..2b4e6943beBinary files /dev/null and b/docs/images/platform/pki/approvals/approval-request-approve-modal.png differdiff --git a/docs/images/platform/pki/approvals/approval-request-approved.png b/docs/images/platform/pki/approvals/approval-request-approved.pngnew file mode 100644index 0000000000..a69d4d70e6Binary files /dev/null and b/docs/images/platform/pki/approvals/approval-request-approved.png differdiff --git a/docs/images/platform/pki/approvals/approval-request-detail.png b/docs/images/platform/pki/approvals/approval-request-detail.pngnew file mode 100644index 0000000000..96069db271Binary files /dev/null and b/docs/images/platform/pki/approvals/approval-request-detail.png differdiff --git a/docs/images/platform/pki/approvals/approval-request-open.png b/docs/images/platform/pki/approvals/approval-request-open.pngnew file mode 100644index 0000000000..9d53981e0cBinary files /dev/null and b/docs/images/platform/pki/approvals/approval-request-open.png differdiff --git a/docs/images/platform/pki/approvals/approval-request-rejected.png b/docs/images/platform/pki/approvals/approval-request-rejected.pngnew file mode 100644index 0000000000..edb40a2b96Binary files /dev/null and b/docs/images/platform/pki/approvals/approval-request-rejected.png differdiff --git a/docs/images/platform/pki/approvals/approval-requests.png b/docs/images/platform/pki/approvals/approval-requests.pngnew file mode 100644index 0000000000..a54b4ee797Binary files /dev/null and b/docs/images/platform/pki/approvals/approval-requests.png differ