SamsonSecretPuller
Library to read secrets generated by the puller.
-
When
/secretsfolder exists it will wait for it to be filled and then build a key-value list of secrets.
Installation
If available in Hex, the package can be installed as:
-
Add
samson_secret_pullerto your list of dependencies inmix.exs:
```elixir
def deps do
[{:samson_secret_puller, "~> 0.1.0"}]
end
```-
Ensure
samson_secret_pulleris 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!
```