Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matthewhartstonge/b64secrets
Simple globbing util to transform Opaque k8s Secret yaml files
https://github.com/matthewhartstonge/b64secrets
base64 encoded-secrets go golang k8s kubernetes secret-files secrets yaml
Last synced: 5 days ago
JSON representation
Simple globbing util to transform Opaque k8s Secret yaml files
- Host: GitHub
- URL: https://github.com/matthewhartstonge/b64secrets
- Owner: matthewhartstonge
- License: apache-2.0
- Created: 2017-10-10T09:23:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-14T12:05:25.000Z (about 7 years ago)
- Last Synced: 2024-11-10T20:12:07.281Z (about 2 months ago)
- Topics: base64, encoded-secrets, go, golang, k8s, kubernetes, secret-files, secrets, yaml
- Language: Go
- Size: 2.25 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# b64secrets
> An extremely simple globbing util to transform k8s Secret definition file values to base64
> encoded secrets ready for upload via kubectl.I love Infrastructure as Code (IaC). It drove me nuts that k8s secret values in
secret files had to have values in base64 encoding.This little utility globs recursively with the pattern `./**/*.yml` writing the encoded secrets
to `./**/*.base64.yml` ready for uploading to a k8s cluster via applicable `kubectl` commands.## Usage
in a given directory containing `*.yml` files, simply run:```sh
$ b64secrets
INFO[0000] b64secrets is converting secrets.. method=main
INFO[0000] Created conformed secrets file conformedPath="super-secrets-development.base64.yml" method=createSecretsFile originalPath="config\\super-secrets-development.yml"
INFO[0000] Created conformed secrets file conformedPath="/secrets/within/a/folder/finds-love.base64.yml" method=createSecretsFile originalPath="secrets/within/a/folder/finds-love.yml"
INFO[0000] b64secrets file conversions completed! method=main
```