Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhaus committed Mar 5, 2020
1 parent ea7c739 commit 1f58ba0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,20 @@ ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["bash", "-c", "eval $(./aws_sm_loader) && exec printenv"]
```

## Writing binary secrets to file

If secret contains binary data it will be written to file. Value after last `/` from secret name will be used as filename.
Path for files can be set using `SM_SECRETS_PATH` env variable. Default is current directory.

## Ignoring secrets

If tag `aws_sm_loader_ignore` with value `true` is set for a secret, it won't be exported into the env.

## File permissions for binary secrets

File permissions for secrets that will be outputted into files can be set using `SM_SECRETS_FILEMODE` env variable.

Values in *octal permissions notation* with leading zero is expected.

Default value is read only: `0440`.

0 comments on commit 1f58ba0

Please sign in to comment.