Skip to content

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

Address PR suggestions

Carlos Monastyrski4e669ac225c7
diff --git a/backend/src/services/pki-sync/cloudflare-custom-certificate/cloudflare-custom-certificate-pki-sync-fns.ts b/backend/src/services/pki-sync/cloudflare-custom-certificate/cloudflare-custom-certificate-pki-sync-fns.ts
index 149f6290d8..ca453f0979 100644
--- a/backend/src/services/pki-sync/cloudflare-custom-certificate/cloudflare-custom-certificate-pki-sync-fns.ts
+++ b/backend/src/services/pki-sync/cloudflare-custom-certificate/cloudflare-custom-certificate-pki-sync-fns.ts
@@ -233,6 +233,12 @@ export const cloudflareCustomCertificatePkiSyncFactory = ({
let fullCertificate: string;
const bundleMethod = isPrivateCA ? "force" : "ubiquitous";
+ // Certificate chain ordering differs based on bundle method:
+ // - Private CAs (bundle_method: "force"): Chain first, then leaf cert.
+ // Cloudflare cannot resolve private CA chains, so we provide the full chain
+ // - Public CAs (bundle_method: "ubiquitous"): Leaf cert first, then chain.
+ // Cloudflare resolves and optimizes the chain itself, so we provide
+ // the leaf certificate first followed by any intermediates.
if (isPrivateCA) {
let chain = certificateChain?.trim() || "";
const rootCa = caCertificate.trim();
diff --git a/docs/docs.json b/docs/docs.json
index 356cccba9a..26a5c5d8b1 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -740,7 +740,7 @@
"documentation/platform/pki/certificate-syncs/aws-secrets-manager",
"documentation/platform/pki/certificate-syncs/azure-key-vault",
"documentation/platform/pki/certificate-syncs/chef",
- "documentation/platform/pki/certificate-syncs/cloudflare-custom-ssl"
+ "documentation/platform/pki/certificate-syncs/cloudflare-custom-certificate"
]
},
{
diff --git a/docs/documentation/platform/pki/certificate-syncs/aws-certificate-manager.mdx b/docs/documentation/platform/pki/certificate-syncs/aws-certificate-manager.mdx
index 22285be8ee..4e4550c464 100644
--- a/docs/documentation/platform/pki/certificate-syncs/aws-certificate-manager.mdx
+++ b/docs/documentation/platform/pki/certificate-syncs/aws-certificate-manager.mdx
@@ -128,12 +128,12 @@ These permissions allow Infisical to list, import, tag, and manage certificates
## Certificate Management
-Your AWS Certificate Manager Certificate Sync will:
+The AWS Certificate Manager Certificate Sync provides:
- **Automatic Deployment**: Deploy certificates in Infisical to AWS Certificate Manager.
- **Certificate Updates**: Update certificates in AWS Certificate Manager when renewals occur.
- **Expiration Handling**: Optionally remove expired certificates from AWS Certificate Manager (if enabled).
-- **Tagging**: Automatically tag certificates with an InfisicalCertificate tag for easy identification and management
+- **Tagging**: Automatically tag certificates with an InfisicalCertificate tag for easy identification and management.
<Note>
AWS Certificate Manager Certificate Syncs support both automatic and manual
@@ -152,9 +152,11 @@ You can manually trigger certificate synchronization to AWS Certificate Manager
To manually sync certificates, use the [Sync Certificates](/api-reference/endpoints/pki/syncs/aws-certificate-manager/sync-certificates) API endpoint or the manual sync option in the Infisical UI.
-<Note>
+## FAQ
+
+<Accordion title="Can I import certificates from AWS Certificate Manager back into Infisical?">
AWS Certificate Manager does not support importing certificates back into
Infisical due to security limitations where private keys cannot be extracted
from AWS Certificate Manager. Only certificates imported into ACM (not
AWS-issued certificates) can be managed by the sync.
-</Note>
+</Accordion>
diff --git a/docs/documentation/platform/pki/certificate-syncs/aws-secrets-manager.mdx b/docs/documentation/platform/pki/certificate-syncs/aws-secrets-manager.mdx
index 86461bb93b..4ed7e0a304 100644
--- a/docs/documentation/platform/pki/certificate-syncs/aws-secrets-manager.mdx
+++ b/docs/documentation/platform/pki/certificate-syncs/aws-secrets-manager.mdx
@@ -209,16 +209,16 @@ Any role with these permissions would work such as a custom policy with **Secret
## Certificate Management
-Your AWS Secrets Manager Certificate Sync will:
+The AWS Secrets Manager Certificate Sync provides:
-- **Automatic Deployment**: Deploy certificates in Infisical to AWS Secrets Manager as JSON secrets with customizable field names
-- **Certificate Updates**: Update certificates in AWS Secrets Manager when renewals occur
-- **Expiration Handling**: Optionally remove expired certificates from AWS Secrets Manager (if enabled)
-- **Format Preservation**: Maintain certificate format during sync operations
-- **Field Customization**: Map certificate data to custom field names that match your application requirements
-- **CA Certificate Support**: Include CA certificates in secrets for complete certificate chain management
-- **KMS Encryption**: Optionally use custom KMS keys for secret encryption
-- **Regional Deployment**: Deploy secrets to specific AWS regions
+- **Automatic Deployment**: Deploy certificates in Infisical to AWS Secrets Manager as JSON secrets with customizable field names.
+- **Certificate Updates**: Update certificates in AWS Secrets Manager when renewals occur.
+- **Expiration Handling**: Optionally remove expired certificates from AWS Secrets Manager (if enabled).
+- **Format Preservation**: Maintain certificate format during sync operations.
+- **Field Customization**: Map certificate data to custom field names that match your application requirements.
+- **CA Certificate Support**: Include CA certificates in secrets for complete certificate chain management.
+- **KMS Encryption**: Optionally use custom KMS keys for secret encryption.
+- **Regional Deployment**: Deploy secrets to specific AWS regions.
<Note>
AWS Secrets Manager Certificate Syncs support both automatic and manual
@@ -237,15 +237,17 @@ You can manually trigger certificate synchronization to AWS Secrets Manager usin
To manually sync certificates, use the [Sync Certificates](/api-reference/endpoints/pki/syncs/aws-secrets-manager/sync-certificates) API endpoint or the manual sync option in the Infisical UI.
-<Note>
- AWS Secrets Manager does not support importing certificates back into Infisical
- due to the nature of AWS Secrets Manager where certificates are stored as JSON secrets
- rather than managed certificate objects.
-</Note>
-
## Secret Naming Constraints
AWS Secrets Manager has specific naming requirements for secrets:
- **Allowed Characters**: Letters, numbers, hyphens (-), and underscores (_) only
- **Length**: 1-512 characters
+
+## FAQ
+
+<Accordion title="Can I import certificates from AWS Secrets Manager back into Infisical?">
+ AWS Secrets Manager does not support importing certificates back into Infisical
+ due to the nature of AWS Secrets Manager where certificates are stored as JSON secrets
+ rather than managed certificate objects.
+</Accordion>
\ No newline at end of file
diff --git a/docs/documentation/platform/pki/certificate-syncs/azure-key-vault.mdx b/docs/documentation/platform/pki/certificate-syncs/azure-key-vault.mdx
index 4c6c81bc02..f1b589b043 100644
--- a/docs/documentation/platform/pki/certificate-syncs/azure-key-vault.mdx
+++ b/docs/documentation/platform/pki/certificate-syncs/azure-key-vault.mdx
@@ -135,12 +135,12 @@ Any role with these permissions would work such as the **Key Vault Certificates
## Certificate Management
-Your Azure Key Vault Certificate Sync will:
+The Azure Key Vault Certificate Sync provides:
- **Automatic Deployment**: Deploy certificates in Infisical to Azure Key Vault.
-- **Certificate Updates**: Update certificates in Azure Key Vault when renewals occur
-- **Expiration Handling**: Optionally remove expired certificates from Azure Key Vault (if enabled)
-- **Format Preservation**: Maintain certificate format and metadata during sync operations
+- **Certificate Updates**: Update certificates in Azure Key Vault when renewals occur.
+- **Expiration Handling**: Optionally remove expired certificates from Azure Key Vault (if enabled).
+- **Format Preservation**: Maintain certificate format and metadata during sync operations.
<Note>
Azure Key Vault Certificate Syncs support both automatic and manual
@@ -159,8 +159,10 @@ You can manually trigger certificate synchronization to Azure Key Vault using th
To manually sync certificates, use the [Sync Certificates](/api-reference/endpoints/pki/syncs/azure-key-vault/sync-certificates) API endpoint or the manual sync option in the Infisical UI.
-<Note>
+## FAQ
+
+<Accordion title="Can I import certificates from Azure Key Vault back into Infisical?">
Azure Key Vault does not support importing certificates back into Infisical
due to security limitations where private keys cannot be extracted from Azure
Key Vault.
-</Note>
+</Accordion>
diff --git a/docs/documentation/platform/pki/certificate-syncs/chef.mdx b/docs/documentation/platform/pki/certificate-syncs/chef.mdx
index ec3eedafd2..ec715edd53 100644
--- a/docs/documentation/platform/pki/certificate-syncs/chef.mdx
+++ b/docs/documentation/platform/pki/certificate-syncs/chef.mdx
@@ -208,14 +208,14 @@ Any role with these permissions would work such as a custom role with **Data Bag
## Certificate Management
-Your Chef Certificate Sync will:
+The Chef Certificate Sync provides:
-- **Automatic Deployment**: Deploy certificates in Infisical to Chef data bags with customizable field names
-- **Certificate Updates**: Update certificates in Chef data bags when renewals occur
-- **Expiration Handling**: Optionally remove expired certificates from Chef data bags (if enabled)
-- **Format Preservation**: Maintain certificate format during sync operations
-- **Field Customization**: Map certificate data to custom field names that match your Chef cookbook requirements
-- **CA Certificate Support**: Include CA certificates in data bag items for complete certificate chain management
+- **Automatic Deployment**: Deploy certificates in Infisical to Chef data bags with customizable field names.
+- **Certificate Updates**: Update certificates in Chef data bags when renewals occur.
+- **Expiration Handling**: Optionally remove expired certificates from Chef data bags (if enabled).
+- **Format Preservation**: Maintain certificate format during sync operations.
+- **Field Customization**: Map certificate data to custom field names that match your Chef cookbook requirements.
+- **CA Certificate Support**: Include CA certificates in data bag items for complete certificate chain management.
<Note>
Chef Certificate Syncs support both automatic and manual
@@ -234,8 +234,10 @@ You can manually trigger certificate synchronization to Chef using the sync cert
To manually sync certificates, use the [Sync Certificates](/api-reference/endpoints/pki/syncs/chef/sync-certificates) API endpoint or the manual sync option in the Infisical UI.
-<Note>
+## FAQ
+
+<Accordion title="Can I import certificates from Chef back into Infisical?">
Chef does not support importing certificates back into Infisical
due to the nature of Chef data bags where certificates are stored as data
rather than managed certificate objects.
-</Note>
\ No newline at end of file
+</Accordion>
\ No newline at end of file
diff --git a/docs/documentation/platform/pki/certificate-syncs/cloudflare-custom-ssl.mdx b/docs/documentation/platform/pki/certificate-syncs/cloudflare-custom-certificate.mdx
similarity index 80%
rename from docs/documentation/platform/pki/certificate-syncs/cloudflare-custom-ssl.mdx
rename to docs/documentation/platform/pki/certificate-syncs/cloudflare-custom-certificate.mdx
index 8273ded166..9b12b80c3c 100644
--- a/docs/documentation/platform/pki/certificate-syncs/cloudflare-custom-ssl.mdx
+++ b/docs/documentation/platform/pki/certificate-syncs/cloudflare-custom-certificate.mdx
@@ -1,6 +1,6 @@
---
-title: "Cloudflare Custom SSL"
-description: "Learn how to configure a Cloudflare Custom SSL Certificate Sync for Infisical PKI."
+title: "Cloudflare Custom Certificate"
+description: "Learn how to configure a Cloudflare Custom Certificate Sync for Infisical PKI."
---
**Prerequisites:**
@@ -19,39 +19,39 @@ description: "Learn how to configure a Cloudflare Custom SSL Certificate Sync fo
1. Navigate to **Project** > **Integrations** > **Certificate Syncs** and press **Add Sync**.
![Certificate Syncs Tab](/images/platform/pki/certificate-syncs/general/create-certificate-sync.png)
- 2. Select the **Cloudflare Custom SSL** option.
- ![Select Cloudflare](/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/select-cloudflare-option.png)
+ 2. Select the **Cloudflare Custom Certificate** option.
+ ![Select Cloudflare](/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/select-cloudflare-option.png)
3. Configure the **Destination** to where certificates should be deployed, then click **Next**.
- ![Configure Destination](/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-destination.png)
+ ![Configure Destination](/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-destination.png)
- **Cloudflare Connection**: The Cloudflare Connection to authenticate with.
- **Zone**: The Cloudflare zone (domain) where certificates should be uploaded.
4. Configure the **Sync Options** to specify how certificates should be synced, then click **Next**.
- ![Configure Options](/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-options.png)
+ ![Configure Options](/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-options.png)
- **Enable Removal of Expired/Revoked Certificates**: If enabled, Infisical will remove certificates from the destination if they are no longer active in Infisical.
- **Certificate Name Schema** (Optional): Customize how certificate names are generated. Must include `{{certificateId}}` as a placeholder. If not specified, defaults to `Infisical-{{certificateId}}`.
- **Auto-Sync Enabled**: If enabled, certificates will automatically be synced when changes occur. Disable to enforce manual syncing only.
- 5. Configure the **Details** of your Cloudflare Custom SSL Certificate Sync, then click **Next**.
- ![Configure Details](/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-details.png)
+ 5. Configure the **Details** of your Cloudflare Custom Certificate Sync, then click **Next**.
+ ![Configure Details](/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-details.png)
- **Name**: The name of your sync. Must be slug-friendly.
- **Description**: An optional description for your sync.
6. Select which certificates should be synced to Cloudflare.
- ![Select Certificates](/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-certificates.png)
+ ![Select Certificates](/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-certificates.png)
- 7. Review your Cloudflare Custom SSL Certificate Sync configuration, then click **Create Sync**.
- ![Confirm Configuration](/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-review.png)
+ 7. Review your Cloudflare Custom Certificate Sync configuration, then click **Create Sync**.
+ ![Confirm Configuration](/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-review.png)
- 8. If enabled, your Cloudflare Custom SSL Certificate Sync will begin syncing your certificates to the destination endpoint.
- ![Sync Certificates](/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-synced.png)
+ 8. If enabled, your Cloudflare Custom Certificate Sync will begin syncing your certificates to the destination endpoint.
+ ![Sync Certificates](/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-synced.png)
</Tab>
<Tab title="API">
- To create a **Cloudflare Custom SSL Certificate Sync**, make an API request to the [Create Cloudflare Custom SSL Certificate Sync](/api-reference/endpoints/pki/syncs/cloudflare-custom-certificate/create) API endpoint.
+ To create a **Cloudflare Custom Certificate Sync**, make an API request to the [Create Cloudflare Custom Certificate Sync](/api-reference/endpoints/pki/syncs/cloudflare-custom-certificate/create) API endpoint.
### Sample request
@@ -116,15 +116,15 @@ description: "Learn how to configure a Cloudflare Custom SSL Certificate Sync fo
## Certificate Management
-Your Cloudflare Custom SSL Certificate Sync will:
+The Cloudflare Custom Certificate Sync provides:
-- **Automatic Deployment**: Deploy certificates in Infisical to Cloudflare as Custom SSL certificates.
+- **Automatic Deployment**: Deploy certificates in Infisical to Cloudflare as Custom certificates.
- **Certificate Updates**: Update certificates in Cloudflare when renewals occur.
- **Expiration Handling**: Optionally remove expired certificates from Cloudflare (if enabled).
- **Chain Management**: Properly bundle certificate chains for optimal browser compatibility.
<Note>
- Cloudflare Custom SSL Certificate Syncs support both automatic and manual
+ Cloudflare Custom Certificate Syncs support both automatic and manual
synchronization modes. When auto-sync is enabled, certificates are
automatically deployed as they are issued or renewed.
</Note>
@@ -140,7 +140,9 @@ You can manually trigger certificate synchronization to Cloudflare using the syn
To manually sync certificates, use the [Sync Certificates](/api-reference/endpoints/pki/syncs/cloudflare-custom-certificate/sync-certificates) API endpoint or the manual sync option in the Infisical UI.
-<Note>
+## FAQ
+
+<Accordion title="Can I import certificates from Cloudflare back into Infisical?">
Cloudflare does not support importing certificates back into Infisical
due to security limitations where private keys cannot be extracted from Cloudflare.
-</Note>
+</Accordion>
diff --git a/docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-certificates.png b/docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-certificates.png
similarity index 100%
rename from docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-certificates.png
rename to docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-certificates.png
diff --git a/docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-destination.png b/docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-destination.png
similarity index 100%
rename from docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-destination.png
rename to docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-destination.png
diff --git a/docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-details.png b/docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-details.png
similarity index 100%
rename from docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-details.png
rename to docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-details.png
diff --git a/docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-options.png b/docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-options.png
similarity index 100%
rename from docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-options.png
rename to docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-options.png
diff --git a/docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-review.png b/docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-review.png
similarity index 100%
rename from docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-review.png
rename to docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-review.png
diff --git a/docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-synced.png b/docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-synced.png
similarity index 100%
rename from docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/cloudflare-synced.png
rename to docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/cloudflare-synced.png
diff --git a/docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/select-cloudflare-option.png b/docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/select-cloudflare-option.png
similarity index 100%
rename from docs/images/platform/pki/certificate-syncs/cloudflare-custom-ssl/select-cloudflare-option.png
rename to docs/images/platform/pki/certificate-syncs/cloudflare-custom-certificate/select-cloudflare-option.png