Library to read secrets generated by the puller.
- When
/secrets
folder exists it will wait for it to be filled and then build a key-value list of secrets.
If available in Hex, the package can be installed as:
- Add
samson_secret_puller
to your list of dependencies inmix.exs
:
```elixir
def deps do
[{:samson_secret_puller, "~> 0.1.0"}]
end
```
- Ensure
samson_secret_puller
is started before your application:
```elixir
def application do
[applications: [:samson_secret_puller]]
end
```
- Call
fetch_secrets!
to wait for the secrets to appear:
```elixir
secrets = SamsonSecretPuller.fetch_secrets!
```