mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 17:26:19 +00:00
Add images to API reference authentication for getting API keys and notes on crypto
This commit is contained in:
@@ -2,3 +2,10 @@
|
|||||||
title: "Create"
|
title: "Create"
|
||||||
openapi: "POST /api/v2/secrets/"
|
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>
|
||||||
|
|||||||
@@ -2,3 +2,10 @@
|
|||||||
title: "Retrieve"
|
title: "Retrieve"
|
||||||
openapi: "GET /api/v2/secrets/"
|
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>
|
||||||
|
|||||||
@@ -2,3 +2,10 @@
|
|||||||
title: "Update"
|
title: "Update"
|
||||||
openapi: "PATCH /api/v2/secrets/"
|
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>
|
||||||
|
|||||||
@@ -2,10 +2,14 @@
|
|||||||
title: "Authentication"
|
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>
|
<Info>
|
||||||
It's important to keep your API key secure, as it grants access to your
|
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
|
secrets in Infisical. For added security, set a reasonable expiration time and
|
||||||
regular basis.
|
rotate your API key on a regular basis.
|
||||||
</Info>
|
</Info>
|
||||||
|
|||||||
@@ -11,12 +11,12 @@ Prerequisites:
|
|||||||
|
|
||||||
## Flow
|
## 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.
|
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.
|
4. Decrypt the (encrypted) project key with your private key.
|
||||||
5. Encrypt your secret(s) with the project 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)
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ Prerequisites:
|
|||||||
|
|
||||||
## Flow
|
## 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.
|
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.
|
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
|
6. Decrypt the (encrypted) secrets
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|||||||
@@ -11,12 +11,12 @@ Prerequisites:
|
|||||||
|
|
||||||
## Flow
|
## 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.
|
2. Decrypt your (encrypted) private key with your password.
|
||||||
3. Get the project key for the project.
|
3. [Get the (encrypted) project key for the project.](/api-reference/endpoints/workspaces/workspace-key)
|
||||||
4. Decrypt the project key with your private key.
|
4. Decrypt the (encrypted) project key with your private key.
|
||||||
5. Encrypt your secret(s) with the project 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)
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,6 @@
|
|||||||
title: "Introduction"
|
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 manage
|
Infisical's REST API provides users an alternative way to programmatically access and manage
|
||||||
secrets via HTTPS requests. This can be useful for automating tasks, such as
|
secrets via HTTPS requests. This can be useful for automating tasks, such as
|
||||||
rotating credentials, or for integrating secret management into a larger system.
|
rotating 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.
|
- Infisical uses AES256-GCM and [TweetNaCl.js](https://tweetnacl.js.org/#/) for symmetric and asymmetric encryption/decryption operations.
|
||||||
|
|
||||||
<Info>
|
<Info>
|
||||||
Infisical's system ensures greater security such that secrets are
|
Infisical's system requires that secrets be encrypted/decrypted on the
|
||||||
encrypted/decrypted on the client-side but requires users to properly
|
client-side to maintain E2EE. We strongly recommend you read up on the system
|
||||||
implement cryptographic operations to maintain end-to-end encryption (E2EE).
|
prior to using the Infisical API. The (opt-in) ability to retrieve secrets
|
||||||
We're
|
back in decrypted format if you choose to share secrets with Infisical is on
|
||||||
|
our roadmap.
|
||||||
</Info>
|
</Info>
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 278 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 280 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 249 KiB |
Reference in New Issue
Block a user