Skip to content

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

secret rotation doc

Matheus Nogueira257377dee0c6
diff --git a/docs/docs.json b/docs/docs.json
index 86b09fc472..bb4efcd3e8 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -483,6 +483,7 @@
"documentation/platform/secret-rotation/auth0-client-secret",
"documentation/platform/secret-rotation/aws-iam-user-secret",
"documentation/platform/secret-rotation/azure-client-secret",
+ "documentation/platform/secret-rotation/convex-access-key",
"documentation/platform/secret-rotation/databricks-service-principal-secret",
"documentation/platform/secret-rotation/datadog-application-key-secret",
"documentation/platform/secret-rotation/dbt-service-token",
diff --git a/docs/documentation/platform/secret-rotation/convex-access-key.mdx b/docs/documentation/platform/secret-rotation/convex-access-key.mdx
new file mode 100644
index 0000000000..f1d945d73d
--- /dev/null
+++ b/docs/documentation/platform/secret-rotation/convex-access-key.mdx
@@ -0,0 +1,115 @@
+---
+title: "Convex Access Key Rotation"
+description: "Learn how to automatically rotate Convex access keys."
+---
+
+<Note>
+ **Rotation Type: [Dual-Phase](/documentation/platform/secret-rotation/overview#dual-phase-rotation)**
+
+ This rotation maintains two active credential sets with overlapping validity, ensuring zero-downtime during rotation cycles.
+</Note>
+
+## Prerequisites
+
+- Create a [Convex Connection](/integrations/app-connections/convex) with a personal access token
+
+## Create a Convex Access Key Rotation in Infisical
+
+<Tabs>
+ <Tab title="Infisical UI">
+ 1. Navigate to your Secret Manager Project's Dashboard and select **Add Secret Rotation** from the actions dropdown.
+ ![Secret Manager Dashboard](/images/secret-rotations-v2/generic/add-secret-rotation.png)
+
+ 2. Select the **Convex Access Key** option.
+ ![Select Convex Access Key](/images/secret-rotations-v2/convex/01-select-type.png)
+
+ 3. Select the **Convex Connection** to use and configure the rotation behavior. Then click **Next**.
+ ![Rotation Configuration](/images/secret-rotations-v2/convex/02-configuration.png)
+
+ - **Convex Connection** - the connection that will create and delete access keys during rotation.
+ - **Rotation Interval** - the interval, in days, that once elapsed will trigger a rotation.
+ - **Rotate At** - the local time of day when rotation should occur once the interval has elapsed.
+ - **Auto-Rotation Enabled** - whether secrets should automatically be rotated once the rotation interval has elapsed. Disable this option to manually rotate secrets or pause secret rotation.
+
+ 4. Set the access key parameters. Then click **Next**.
+ ![Rotation Parameters](/images/secret-rotations-v2/convex/03-parameters.png)
+
+ - **Name Prefix** - a prefix used when naming the generated access keys in Convex (e.g. `infisical`). A timestamp is appended to ensure uniqueness.
+
+ 5. Specify the secret name that the rotated access key will be mapped to. Then click **Next**.
+ ![Rotation Secrets Mapping](/images/secret-rotations-v2/convex/04-mappings.png)
+
+ - **Access Key** - the name of the secret that the rotated Convex access key will be mapped to.
+
+ 6. Give your rotation a name and description (optional). Then click **Next**.
+ ![Rotation Details](/images/secret-rotations-v2/convex/05-details.png)
+
+ - **Name** - the name of the secret rotation configuration. Must be slug-friendly.
+ - **Description** (optional) - a description of this rotation configuration.
+
+ 7. Review your configuration, then click **Create Secret Rotation**.
+ ![Rotation Review](/images/secret-rotations-v2/convex/06-review.png)
+
+ 8. Your **Convex Access Key** rotation is created. The current access key is available as a secret at the mapped path.
+ ![Rotation Created](/images/secret-rotations-v2/convex/07-created.png)
+ </Tab>
+ <Tab title="API">
+ To create a Convex Access Key Rotation, make an API request to the [Create Convex
+ Access Key Rotation](/api-reference/endpoints/secret-rotations/convex-access-key/create) API endpoint.
+
+ ### Sample request
+
+ ```bash Request
+ curl --request POST \
+ --url https://us.infisical.com/api/v2/secret-rotations/convex-access-key \
+ --header 'Content-Type: application/json' \
+ --data '{
+ "name": "my-convex-rotation",
+ "projectId": "<project-id>",
+ "description": "Convex access key rotation",
+ "connectionId": "<convex-connection-id>",
+ "environment": "dev",
+ "secretPath": "/",
+ "isAutoRotationEnabled": true,
+ "rotationInterval": 30,
+ "rotateAtUtc": {
+ "hours": 0,
+ "minutes": 0
+ },
+ "parameters": {
+ "namePrefix": "infisical"
+ },
+ "secretsMapping": {
+ "accessKey": "CONVEX_ACCESS_KEY"
+ }
+ }'
+ ```
+
+ ### Sample response
+
+ ```bash Response
+ {
+ "secretRotation": {
+ "id": "<rotation-id>",
+ "name": "my-convex-rotation",
+ "description": "Convex access key rotation",
+ "secretsMapping": {
+ "accessKey": "CONVEX_ACCESS_KEY"
+ },
+ "isAutoRotationEnabled": true,
+ "activeIndex": 0,
+ "connectionId": "<convex-connection-id>",
+ "rotationInterval": 30,
+ "rotateAtUtc": {
+ "hours": 0,
+ "minutes": 0
+ },
+ "type": "convex-access-key",
+ "parameters": {
+ "namePrefix": "infisical"
+ }
+ }
+ }
+ ```
+ </Tab>
+</Tabs>
diff --git a/docs/images/secret-rotations-v2/convex/01-select-type.png b/docs/images/secret-rotations-v2/convex/01-select-type.png
new file mode 100644
index 0000000000..f1daf2998d
Binary files /dev/null and b/docs/images/secret-rotations-v2/convex/01-select-type.png differ
diff --git a/docs/images/secret-rotations-v2/convex/02-configuration.png b/docs/images/secret-rotations-v2/convex/02-configuration.png
new file mode 100644
index 0000000000..4a42731057
Binary files /dev/null and b/docs/images/secret-rotations-v2/convex/02-configuration.png differ
diff --git a/docs/images/secret-rotations-v2/convex/03-parameters.png b/docs/images/secret-rotations-v2/convex/03-parameters.png
new file mode 100644
index 0000000000..f0ce77d6e6
Binary files /dev/null and b/docs/images/secret-rotations-v2/convex/03-parameters.png differ
diff --git a/docs/images/secret-rotations-v2/convex/04-mappings.png b/docs/images/secret-rotations-v2/convex/04-mappings.png
new file mode 100644
index 0000000000..dd0f1dac63
Binary files /dev/null and b/docs/images/secret-rotations-v2/convex/04-mappings.png differ
diff --git a/docs/images/secret-rotations-v2/convex/05-details.png b/docs/images/secret-rotations-v2/convex/05-details.png
new file mode 100644
index 0000000000..d511bd7bd6
Binary files /dev/null and b/docs/images/secret-rotations-v2/convex/05-details.png differ
diff --git a/docs/images/secret-rotations-v2/convex/06-review.png b/docs/images/secret-rotations-v2/convex/06-review.png
new file mode 100644
index 0000000000..594528c2ba
Binary files /dev/null and b/docs/images/secret-rotations-v2/convex/06-review.png differ
diff --git a/docs/images/secret-rotations-v2/convex/07-created.png b/docs/images/secret-rotations-v2/convex/07-created.png
new file mode 100644
index 0000000000..bfceba47f2
Binary files /dev/null and b/docs/images/secret-rotations-v2/convex/07-created.png differ
diff --git a/docs/integrations/app-connections/convex.mdx b/docs/integrations/app-connections/convex.mdx
index e15d340c8d..b5b033612d 100644
--- a/docs/integrations/app-connections/convex.mdx
+++ b/docs/integrations/app-connections/convex.mdx
@@ -45,6 +45,8 @@ Infisical supports the use of [personal access tokens](https://docs.convex.dev/d
<Step title="Create the Connection">
Select the **Convex** option, fill in the connection **Name**, select the **Personal Access Token** method, paste the **Access Token** you copied earlier, and click **Connect to Convex**.
+ Optionally, you can provide an **Instance URL** if you are self-hosting Convex. If left empty, `https://api.convex.dev` is used by default.
+
![Create Convex Connection](/images/app-connections/convex/06-create-app-connection.png)
</Step>
<Step title="Connection Created">
diff --git a/docs/snippets/RotationsBrowser.jsx b/docs/snippets/RotationsBrowser.jsx
index 4ac8b1c3ca..592e9b8c0f 100644
--- a/docs/snippets/RotationsBrowser.jsx
+++ b/docs/snippets/RotationsBrowser.jsx
@@ -41,6 +41,15 @@ export const RotationsBrowser = () => {
category: "Data Analytics",
rotationType: "Dual-Phase",
},
+ {
+ name: "Convex Access Key",
+ slug: "convex-access-key",
+ path: "/documentation/platform/secret-rotation/convex-access-key",
+ description:
+ "Learn how to automatically rotate Convex access keys.",
+ category: "Cloud Providers",
+ rotationType: "Dual-Phase",
+ },
{
name: "Auth0 Client Secret",
slug: "auth0-client-secret",