-
Notifications
You must be signed in to change notification settings - Fork 989
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve SDK, quickstart, token, features docs
- Loading branch information
1 parent
bb2bcb8
commit 3ac98ba
Showing
13 changed files
with
150 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
--- | ||
title: "Infisical Token" | ||
description: "Use Infisical service token as one of the authentication methods." | ||
description: "Use the Infisical Token as one of the authentication methods." | ||
--- | ||
|
||
An Infisical Token is needed to authenticate the CLI when there isn't an easy way to input your login credentials. | ||
An Infisical Token is useful for: | ||
|
||
It's useful for your CI/CD environments and integrations such as [Docker](/integrations/platforms/docker) and [Docker Compose](/integrations/platforms/docker-compose). | ||
- Authenticating the [Infisical CLI](/cli/overview) when there isn't an easy way to input your login credentials. | ||
- Granting the [Infisical SDKs](/sdks/overview) access to secrets scoped to a project and environment. | ||
|
||
To generate the the token, head over to your project settings as shown below. | ||
It's also useful for CI/CD environments and integrations such as [Docker](/integrations/platforms/docker) and [Docker Compose](/integrations/platforms/docker-compose). | ||
|
||
To generate the the token, head over to your project settings as shown below. | ||
|
||
![token add](../../images/project-token-add.png) | ||
|
||
## Feeding Infisical Token to the CLI | ||
|
||
The Infisical CLI checks for the presence of an environment variable called `INFISICAL_TOKEN`. | ||
The Infisical CLI checks for the presence of an environment variable called `INFISICAL_TOKEN`. | ||
If it detects this variable in the terminal where it is being run, it will use it to authenticate and retrieve the environment variables that the token is authorized to access. | ||
This allows you to use the CLI in environments where you are unable to run the `infisical login` command. | ||
|
||
<Note> | ||
The token grants read-only access to a particular environment and project for | ||
a specified amount of time. Once the token is expired, the CLI using it will no longer be able to make | ||
requests with it. | ||
</Note> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: "Overview" | ||
description: "How to use Infisical SDKs to fetch back secrets for your app" | ||
--- | ||
|
||
Infisical SDKs provide the easiest way for your app to fetch back secrets using an [Infisical Token](/getting-started/dashboard/token) and has a few benefits: | ||
|
||
- Local development: Replace 10s of environment variables in your `.env` file with 1 environment variable (the [Infisical Token](/getting-started/dashboard/token)). | ||
- Production: Fetch secrets back to any cloud regardless of if an integration exists between Infisical and the cloud platform. | ||
|
||
We currently only have the [Node SDK](/sdks/languages/node) available but more language SDKs are coming out soon: | ||
|
||
- [Node](/sdks/languages/node) | ||
- [Python](/sdks/languages/python) | ||
- [Java](/sdks/languages/java) | ||
- [Ruby](/sdks/languages/ruby) | ||
- [Go](/sdks/languages/go) | ||
- [Rust](/sdks/languages/rust) |