Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify Secrets.toml format in Docs. #114

Merged
merged 2 commits into from
Jun 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions resources/shuttle-secrets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ If you don't have a `Secrets.dev.toml` file, `Secrets.toml` will be used locally
both secret files with some of the same secrets for both local runs and deployments, you have to duplicate the secret across both
files.

## Toml Format


The toml format is a key-value mapping with string values.
laundmo marked this conversation as resolved.
Show resolved Hide resolved

```toml
MY_API_KEY = 'the contents of my API key'
```

## Example
This snippet shows a Shuttle rocket main function that uses the `shuttle_secrets::Secrets` attribute to gain access to a `SecretStore`.

Expand Down