View Source ExSopsy (ex_sopsy v1.0.1)

A library for interacting with Mozilla SOPS to fetch secrets at runtime.

Summary

Functions

Decrypts a SOPS-encrypted file and returns the secrets as a map.

Functions

load_secrets(file_path, atom)

Decrypts a SOPS-encrypted file and returns the secrets as a map.

Examples

iex> ExSopsy.load_secrets("./test/files/doc.enc.json", :json)
{:ok, %{"example_key" => "example_value"}}