Skip to content

nagyesta/lowkey-vault-example-docker

Repository files navigation

LowkeyVault

GitHub license Docker test Lowkey secure

Lowkey Vault - Example Docker

This is an example for Lowkey Vault. It shows how you can start Lowkey Vault while using most of the features it provides.

Points of interest

  • docker/example.sh shows how you can
    • start up your Lowkey Vault container attaching the keyvault.json.hbs backup file from the import sub-folder as well as using an external configuration file named application.properties from the config sub-folder.
    • start up an Assumed Identity container listening on port 8080 (only needed for the Managed Identity tests).
  • docker-compose/docker-compose.yml shows how to
    • start up your container using Docker compose including the import of the keyvault.json.hbs backup and use configuration overrides from application.properties.
    • start up an Assumed Identity container listening on port 8080 (only needed for the Managed Identity tests).
  • docker-compose-multiarch/docker-compose.yml shows how you need to change the Docker compose setup to use a multiarch image and achieve the same outcome, i.e.
    • import the keyvault.json.hbs backup and load the configuration from application.properties.
    • start up an Assumed Identity container listening on port 8080 (only needed for the Managed Identity tests).
  • The two sets of tests are the following
    • example_test.go contains the core set of tests using the Lowkey Vault container with a FakeCredential for authentication.
    • example_managed_id_test.go is focusing on the changes that are necessary to allow using the DefaultAzureCredential utilizing the fake Managed Identity tokens provided by the Assumed Identity container. For these cases to work, please don't forget to set the following environment variables:

About

POC example for using Lowkey Vault with Docker

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •