Skip to content

SamhammerAG/Samhammer.Configuration.Vault.Sag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Samhammer.Configuration.Vault.Sag

This is an internally used convenience library to add Samhammer.ConfigurationVault.

It does the following in addition:

  • Locally: Uses the url and token returned by sagctl
  • Kubernetes: Does a kubernetes role auth

Prerequirements

Locally

Sagctl has to be installed: https://samhammer.atlassian.net/wiki/spaces/K8S/pages/158793743/How+to+use+sagctl

In the cluster

Use following environment variables for configuration:

  • VaultUrl: With the url to vault (required)
  • VaultKubernetesRole: The vault role of the application (required)
  • VaultDisabled: When true skips adding vault and healthchecks. (optional)

How to use in Program.cs

configurationBuilder.AddAuthenticatedVault(vaultOptions);

builder.Services
        .AddHealthChecks()
        .AddAuthenticatedVault()

See this documentation for the vault options: https://github.com/SamhammerAG/Samhammer.Configuration.Vault#vaultoptions

About

This is an internally used convenience library to add Samhammer.Configuration.Vault

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages