Secrex v0.2.1 Mix.Secrex View Source

Utility functions to work with secret files.

Link to this section Summary

Functions

Checks if the local decrypted files are in sync with the encrypted ones.

Link to this section Functions

Link to this function

secret_files_changed?() View Source
secret_files_changed?() :: boolean()

Checks if the local decrypted files are in sync with the encrypted ones.

This could be useful in deployment process. For instance, to abort deployment if secrets diverge:

if Mix.Secrex.secret_files_changed?() do
  Mix.raise(
    "Secret files are not in sync. Please run \"mix secrex.decrypt\" to retrieve latest updates."
  )
end