Skip to content

[Enhancement]: Add Lowkey Vault Test Container #1334

Description

@Xor-el

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmoduleAn official Testcontainers module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions