<p>I plan to make secret in k8s from appsetting.json but how to store the file before using by devops pipelines</p>
<p>I want to store the appsettings.json and pipeline can fetch it to make a secret</p>

agungardiyanta
<p>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.</p>
<p>If that is not an option, create an encrypted configuration provider that would allow encrypting data inside the <code>appsettings.json</code>. Here are some examples: <a href="https://stackoverflow.com/questions/36062670/encrypted-configuration-in-asp-net-core">Encrypted configuration in ASP.NET Core</a></p>
<p>Kubernetes secrets are not really secrets and are accessible to anyone who has access to the infrastructure. <a href="https://auth0.com/blog/kubernetes-secrets-management/" rel="nofollow noreferrer">https://auth0.com/blog/kubernetes-secrets-management/</a></p>
