Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement]: Add Lowkey Vault Test Container #1334

Open
Xor-el opened this issue Jan 11, 2025 · 0 comments · May be fixed by #1344
Open

[Enhancement]: Add Lowkey Vault Test Container #1334

Xor-el opened this issue Jan 11, 2025 · 0 comments · May be fixed by #1344
Labels
enhancement New feature or request

Comments

@Xor-el
Copy link

Xor-el commented Jan 11, 2025

Problem

While writing Integration Tests for our services that rely on Azure Key Vault to retrieve secrets and certificates, we have to basically mock the process as Azure Key Vault does not at this time provide an emulator that allows us to simply integrate this support with test containers.

Thankfully, Esta Nagy has created Lowkey Vault which aspires to be compatible with Azure Key Vault REST APIs.

Solution

Implementation of Lowkey Vault Test Container for .NET. We can take inspiration from the Test Container version for Java found here

More Details on LowKey Vault can be found from the links below

LowKey Vault Usage Wiki
LowKey Vault Example for .NET
LowKey Vault Example for .NET Tests
LowKey Vault Test Container Module For Java
LowKey Vault Assumed Identity, this allows us to use DefaultAzureCredential
Assumed Identity endpoint in Lowkey Vault

Benefit

  1. This would make writing integration tests for services that integrate Azure KeyVault a breeze using Test Containers without making any major changes to our existing codebases.

Alternatives

  • Manually Spinning up a Docker Instance of Lowkey Vault separately.
  • Mock The KeyVault Secret and Certificate Retrieval Process

Would you like to help contributing this enhancement?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant