# Secret managers

If your apps get their secrets from a secret manager, store the canary there, next to the real ones. Everything that loads secrets from that path or project carries the canary, and an intruder who gets read access to the secret manager finds it too.

For cloud secret managers, see [AWS](/docs/aws) (Secrets Manager and Parameter Store) and [Google Cloud and Azure](/docs/gcp-azure) (Secret Manager and Key Vault).

## HashiCorp Vault and OpenBao

`--decoy json:-` produces one JSON object, which `vault kv put` reads from stdin as the secret's fields. It prints the new version's details, not the values:

```sh
curl -fsSL https://get.snitchwallet.com | sh -s -- --decoy json:- --name vault-prod | vault kv put -mount=secret payout-signer -
```

`kv put` replaces everything at that path, so give the canary a path of its own. OpenBao's `bao` command takes the same arguments.

## Doppler

`doppler secrets upload` reads a file, so hand it the pipe with process substitution (bash or zsh). `--silent` stops it printing every secret in the config afterwards:

```sh
doppler secrets upload --project YOUR-PROJECT --config prd --silent \
  <(curl -fsSL https://get.snitchwallet.com | sh -s -- --decoy env:- --name doppler-prd)
```

Apps started with `doppler run` get it as two environment variables.

## 1Password

Store the canary as a document in the vault your services or team read from. `op document create -` reads it from stdin and prints only the new item's ID:

```sh
curl -fsSL https://get.snitchwallet.com | sh -s -- --decoy env:- --name 1password-prod \
  | op document create - --vault YOUR-VAULT --title "Payout signer env" --file-name payout.env
```

Anyone who gets into that vault, through a leaked service account token or a member's account, finds it there.

## Infisical

`infisical secrets set --file` reads a .env file, so hand it the pipe with process substitution (bash or zsh). It shows values masked:

```sh
infisical secrets set --env=prod \
  --file=<(curl -fsSL https://get.snitchwallet.com | sh -s -- --decoy env:- --name infisical-prod)
```

Always pass `--env`: it defaults to `dev`. Apps started with `infisical run` get it as two environment variables.
