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 images to API reference authentication for getting API keys and notes on crypto
Tuan Dangda251d3d2d1b
diff --git a/docs/api-reference/endpoints/secrets/create.mdx b/docs/api-reference/endpoints/secrets/create.mdxindex 27c167f76c..2fba642a75 100644--- a/docs/api-reference/endpoints/secrets/create.mdx+++ b/docs/api-reference/endpoints/secrets/create.mdx@@ -2,3 +2,10 @@title: "Create"openapi: "POST /api/v2/secrets/"---++<Tip>+ Using this route requires understanding Infisical's system and cryptography.+ It may be helpful to read through the+ [introduction](/api-reference/overview/introduction) and [guide for creating+ secrets](/api-reference/overview/examples/create-secrets).+</Tip>diff --git a/docs/api-reference/endpoints/secrets/read.mdx b/docs/api-reference/endpoints/secrets/read.mdxindex c88fb0ec78..bc30ec8f29 100644--- a/docs/api-reference/endpoints/secrets/read.mdx+++ b/docs/api-reference/endpoints/secrets/read.mdx@@ -2,3 +2,10 @@title: "Retrieve"openapi: "GET /api/v2/secrets/"---++<Tip>+ Using this route requires understanding Infisical's system and cryptography.+ It may be helpful to read through the+ [introduction](/api-reference/overview/introduction) and [guide for retrieving+ secrets](/api-reference/overview/examples/retrieve-secrets).+</Tip>diff --git a/docs/api-reference/endpoints/secrets/update.mdx b/docs/api-reference/endpoints/secrets/update.mdxindex 2193fccc35..c77a9de12c 100644--- a/docs/api-reference/endpoints/secrets/update.mdx+++ b/docs/api-reference/endpoints/secrets/update.mdx@@ -2,3 +2,10 @@title: "Update"openapi: "PATCH /api/v2/secrets/"---++<Tip>+ Using this route requires understanding Infisical's system and cryptography.+ It may be helpful to read through the+ [introduction](/api-reference/overview/introduction) and [guide for updating+ secrets](/api-reference/overview/examples/update-secrets).+</Tip>diff --git a/docs/api-reference/overview/authentication.mdx b/docs/api-reference/overview/authentication.mdxindex 8cc2182532..9c155a96ad 100644--- a/docs/api-reference/overview/authentication.mdx+++ b/docs/api-reference/overview/authentication.mdx@@ -2,10 +2,14 @@title: "Authentication"----To authenticate requests with Infisical, you must include an API key in the `X-API-KEY` header of HTTP requests made to the platform. You can obtain an API key from your user settings.+To authenticate requests with Infisical, you must include an API key in the `X-API-KEY` header of HTTP requests made to the platform. You can obtain an API key in User Settings > API Keys++++<Info>It's important to keep your API key secure, as it grants access to your- secrets in Infisical. For added security, consider rotating your API key on a- regular basis.+ secrets in Infisical. For added security, set a reasonable expiration time and+ rotate your API key on a regular basis.</Info>diff --git a/docs/api-reference/overview/examples/create-secrets.mdx b/docs/api-reference/overview/examples/create-secrets.mdxindex b2afe1467f..319bd9d468 100644--- a/docs/api-reference/overview/examples/create-secrets.mdx+++ b/docs/api-reference/overview/examples/create-secrets.mdx@@ -11,12 +11,12 @@ Prerequisites:## Flow-1. Get your (encrypted) private key.+1. [Get your (encrypted) private key](/api-reference/endpoints/users/me).2. Decrypt your (encrypted) private key with your password.-3. Get the (encrypted) project key for the project.+3. [Get the (encrypted) project key for the project.](/api-reference/endpoints/workspaces/workspace-key)4. Decrypt the (encrypted) project key with your private key.5. Encrypt your secret(s) with the project key.-6. Send (encrypted) secret(s) to the Infical API+6. [Send (encrypted) secret(s) to the Infical API](/api-reference/endpoints/secrets/create)## Examplediff --git a/docs/api-reference/overview/examples/retrieve-secrets.mdx b/docs/api-reference/overview/examples/retrieve-secrets.mdxindex 2f34339c5b..19d2d777b2 100644--- a/docs/api-reference/overview/examples/retrieve-secrets.mdx+++ b/docs/api-reference/overview/examples/retrieve-secrets.mdx@@ -11,11 +11,11 @@ Prerequisites:## Flow-1. Get your (encrypted) private key.+1. [Get your (encrypted) private key.](/api-reference/endpoints/users/me)2. Decrypt your (encrypted) private key with your password.-3. Get the (encrypted) project key for the project.+3. [Get the (encrypted) project key for the project.](/api-reference/endpoints/workspaces/workspace-key)4. Decrypt the (encrypted) project key with your private key.-5. Get secrets for a project and environment.+5. [Get secrets for a project and environment.](/api-reference/endpoints/secrets/read)6. Decrypt the (encrypted) secrets## Examplediff --git a/docs/api-reference/overview/examples/update-secrets.mdx b/docs/api-reference/overview/examples/update-secrets.mdxindex b8566d9b37..99e3530ee1 100644--- a/docs/api-reference/overview/examples/update-secrets.mdx+++ b/docs/api-reference/overview/examples/update-secrets.mdx@@ -11,12 +11,12 @@ Prerequisites:## Flow-1. Get your (encrypted) private key.+1. [Get your (encrypted) private key.](/api-reference/endpoints/users/me)2. Decrypt your (encrypted) private key with your password.-3. Get the project key for the project.-4. Decrypt the project key with your private key.+3. [Get the (encrypted) project key for the project.](/api-reference/endpoints/workspaces/workspace-key)+4. Decrypt the (encrypted) project key with your private key.5. Encrypt your secret(s) with the project key.-6. Send (encrypted) updated secret(s) to the Infical API+6. [Send (encrypted) updated secret(s) to the Infical API.](/api-reference/endpoints/secrets/update)## Examplediff --git a/docs/api-reference/overview/introduction.mdx b/docs/api-reference/overview/introduction.mdxindex 7babef955c..9865a644a4 100644--- a/docs/api-reference/overview/introduction.mdx+++ b/docs/api-reference/overview/introduction.mdx@@ -2,11 +2,6 @@title: "Introduction"----<Warning>- Infisical's REST API is currently unavailable and scheduled to go live on Jan- 16!-</Warning>-Infisical's REST API provides users an alternative way to programmatically access and managesecrets via HTTPS requests. This can be useful for automating tasks, such asrotating credentials, or for integrating secret management into a larger system.@@ -24,8 +19,9 @@ Using Infisical's API to manage secrets requires a basic understanding of the sy- Infisical uses AES256-GCM and [TweetNaCl.js](https://tweetnacl.js.org/#/) for symmetric and asymmetric encryption/decryption operations.<Info>- Infisical's system ensures greater security such that secrets are- encrypted/decrypted on the client-side but requires users to properly- implement cryptographic operations to maintain end-to-end encryption (E2EE).- We're+ Infisical's system requires that secrets be encrypted/decrypted on the+ client-side to maintain E2EE. We strongly recommend you read up on the system+ prior to using the Infisical API. The (opt-in) ability to retrieve secrets+ back in decrypted format if you choose to share secrets with Infisical is on+ our roadmap.</Info>diff --git a/docs/images/api-key-add.png b/docs/images/api-key-add.pngnew file mode 100644index 0000000000..a59e59cbe2Binary files /dev/null and b/docs/images/api-key-add.png differdiff --git a/docs/images/api-key-dashboard.png b/docs/images/api-key-dashboard.pngnew file mode 100644index 0000000000..29fb265194Binary files /dev/null and b/docs/images/api-key-dashboard.png differdiff --git a/docs/images/api-key-settings.png b/docs/images/api-key-settings.pngnew file mode 100644index 0000000000..847a1e7b37Binary files /dev/null and b/docs/images/api-key-settings.png differ