Skip to content

hungran/aws-secret-parse

Repository files navigation

aws-secret-parse

  • Retrive secret and generating application's config file for every format from AWS Secret Manager
  • Image using chainguard go image with 0 CVE image

Usage & Prerequisite in k8s environment

  • Configmap, AWS Secret Manager tag key env and value as input, output is your file format you need (.env, appsetting.json)
  • Can be use as initContainer...

Eg

Input

{
    "abc": "{{ .PerfectSecret }}",
    "xyz": "{{ .FooBar }}"
}

Output

{
    "abc": "PerfectSecret_VALUE",
    "xyz": ""
}

Idea

If you looking this with helm you will need

  • Helm chart for creating configmap from template file
  • InitContainer for creating outfile under emptyDir

If you interesting with this!

"Buy Me A Coffee"

About

initContainer for generating config file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project