I plan to make secret in k8s from appsetting.json but how to store the file before using by devops pipelines
I want to store the appsettings.json and pipeline can fetch it to make a secret
I plan to make secret in k8s from appsetting.json but how to store the file before using by devops pipelines
I want to store the appsettings.json and pipeline can fetch it to make a secret
Is your k8s cluster hosted in a cloud? If so, you should be using AWS Secret Manager or Azure Key Vault to store secret settings.
If that is not an option, create an encrypted configuration provider that would allow encrypting data inside the appsettings.json
. Here are some examples: Encrypted configuration in ASP.NET Core
Kubernetes secrets are not really secrets and are accessible to anyone who has access to the infrastructure. https://auth0.com/blog/kubernetes-secrets-management/