EncryptedSecrets.ReadSecrets (encrypted_secrets v0.2.3) View Source

Provides methods for reading encrypted secrets into unencrypted maps or files

Link to this section Summary

Functions

Reads encrypted secrets file at input_path using key, saving results in a tempfile

Reads encrypted secrets file at input_path using key, returning a map

Link to this section Functions

Link to this function

read_into_file(key, input_path)

View Source

Reads encrypted secrets file at input_path using key, saving results in a tempfile

Returns {:ok, temp_filepath} | {:error, message}

Link to this function

read_into_map(key, input_path)

View Source

Reads encrypted secrets file at input_path using key, returning a map

Returns {:ok, secrets_map} | {:error, message}