Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Add CA:true policy constraint to docs

Carlos Monastyrskic495f3ce180c
diff --git a/docs/documentation/platform/pki/certificates/policies.mdx b/docs/documentation/platform/pki/certificates/policies.mdx
index aaada199fe..c692fca8d7 100644
--- a/docs/documentation/platform/pki/certificates/policies.mdx
+++ b/docs/documentation/platform/pki/certificates/policies.mdx
@@ -28,3 +28,9 @@ Here's some guidance on each field:
- Key Usages: The cryptographic purposes of the certificate such as Digital Signature, Key Encipherment, etc.
- Extended Key Usages: The higher-level intended uses of the certificate such as Server Authentication, Client Authentication, etc.
- Certificate Validity: The maximum lifetime of certificates that can be requested for certificates validated against this policy. You can specify both a duration and unit (days, months, or years).
+- Basic Constraints: Controls whether certificates issued under this policy can act as Certificate Authorities (CAs).
+ - **CA Certificate Property**: Determines whether issued certificates can have the `CA:TRUE` flag, allowing them to sign other certificates. Options are:
+ - **Forbid**: Certificates cannot be CAs. Use for standard TLS certificates (servers, clients).
+ - **Allow**: Certificates can optionally be CAs, depending on the request.
+ - **Require**: Certificates must be CAs. Use when the policy only allow to issue intermediate CA certificates.
+ - **Maximum Allowed Path Length**: Limits how many levels of intermediate CAs can exist below the issued certificate. For example, `0` means the CA can only sign end-entity certificates, `1` allows one level of intermediate CAs, and so on. Leave empty for no restriction.
diff --git a/docs/documentation/platform/pki/k8s-cert-manager.mdx b/docs/documentation/platform/pki/k8s-cert-manager.mdx
index 997676f8d1..ca64fd2a00 100644
--- a/docs/documentation/platform/pki/k8s-cert-manager.mdx
+++ b/docs/documentation/platform/pki/k8s-cert-manager.mdx
@@ -168,6 +168,8 @@ The following steps show how to install cert-manager (using `kubectl`) and obtai
duration: 48h
# cert-manager will attempt renewal 12 hours before expiry
renewBefore: 12h
+ # set to true to issue a CA certificate (policy must allow/require CA)
+ isCA: false
privateKey:
algorithm: ECDSA
# uses NIST P-256 curve
@@ -185,6 +187,10 @@ The following steps show how to install cert-manager (using `kubectl`) and obtai
The `enableDurationFeature: true` flag in the Issuer configuration (Step 4) is required for cert-manager to honor the `duration` field. Without it, certificates default to 47 days regardless of what you specify. This flag is disabled by default in cert-manager because public ACME servers like Let's Encrypt don't support custom durations.
</Note>
+ <Info>
+ cert-manager does not currently support specifying a `pathLen` in the Certificate resource. When issuing CA certificates with `isCA: true`, ensure your Infisical certificate policy does not set a **Maximum Allowed Path Length** restriction, otherwise the request will fail validation.
+ </Info>
+
You can check that the certificate was created successfully by running the following command:
```bash