Skip to content

Commit

Permalink
small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
AstrakhantsevaAA committed Mar 25, 2024
1 parent 6b4a529 commit 0b3ee8f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/website/docs/general-usage/credentials/config_providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,25 +92,25 @@ sections and key names are separated by "." into the provider-specific formats.
1. For TOML, names are case-sensitive and sections are separated with ".".
1. For Environment Variables, all names are capitalized and sections are separated with double
underscore "__".

Example: To override a token in "secrets.toml":

```toml
[sources.github]
access_token = "GITHUB_API_TOKEN"
```
Use the following environment variable:
```bash
```sh
export SOURCES__GITHUB__ACCESS_TOKEN="your_token_here"
```


1. When `dlt` evaluates the request `dlt.secrets["my_section.gcp_credentials"]` it must find the `private_key` for Google credentials. It looks for it as follows:
1. It first searches for environment variable `MY_SECTION__GCP_CREDENTIALS__PRIVATE_KEY` and if not found,
1. in `secrets.toml` file under `my_section.gcp_credentials.private_key`.
1. in `secrets.toml` file under `my_section.gcp_credentials.private_key`.

This way, `dlt` prioritizes security by using environment variables before looking into configuration files.



:::info
Expand Down

0 comments on commit 0b3ee8f

Please sign in to comment.