Description
For our system tests, we currently connect to an azure keyvault, we want to replace it with a docker container running something that mimics the keyvault. This will help developer setup not requiring an azure keyvault, and should decrease costs of running tests.
lowkey-vault looks like a good option, has a prebuilt docker image and test containers
Haven't deeply investigated but it looks like the auth flow should work and we can configure it with secret name & secret values for keyvault names.
The .env.sample file in the test directory will need to be updated, adding in the URI for the key vault URI. The top level docker-compose file should have a azure_uri variable that defaults to vault.azure.net if not filled passed through to hasher-api and export-api, and that is used in _setup_client() in the core project config.
Dev setup requirements
Other options considered
Acceptance
Description
For our system tests, we currently connect to an azure keyvault, we want to replace it with a docker container running something that mimics the keyvault. This will help developer setup not requiring an azure keyvault, and should decrease costs of running tests.
lowkey-vault looks like a good option, has a prebuilt docker image and test containers
Haven't deeply investigated but it looks like the auth flow should work and we can configure it with secret name & secret values for keyvault names.
The .env.sample file in the
testdirectory will need to be updated, adding in the URI for the key vault URI. The top level docker-compose file should have a azure_uri variable that defaults tovault.azure.netif not filled passed through tohasher-apiandexport-api, and that is used in _setup_client() in the core project config.Dev setup requirements
Other options considered
Acceptance
.secrets.envfor setup instructions and in github actions