Skip to content

Vault-HOA

HOA short for: Higher Order Application

HigherOrderApplication is a simple and secure way to get the secrets into the end applications.

It is a wrapper application that is placed around the actual application and loads all secrets readable from given identity into the environment variables.

Finally, the Vault HOA is set with two configurations:

  • VAULT_IDENTITY_KEY => Private key of the identity to allow access to secrets
  • VAULT_ID => the ID of the vault to be used

These should be determined by environmental variables.

All loaded secrets are made available as environment variables only to the application.

And startet with: VAULT_VALUES_

These can be renamed using a mapping table (default file is vault.env).

Terminal window
VAULT_VALUES_NAME_OF_SECRET=YOUR_NEW_ENV_NAME
...

By renaming the environment variables, the Vault can be wrapped around any application.

Even standard applications like databases.

Terminal window
vault-hoa you_application
© 2024 CryptVault. All rigths reserved.