sealed-secrets-key generates Secret Objects that github.com/bitnami-labs/sealed-secrets use for encryption.
sealed-secrets-key fork the source code for github.com/bitnami-labs/sealed-secrets, and creates the same RSA Key pair that github.com/bitnami-labs/sealed-secrets generates internally.
See github.com/d-kuro/sealed-secrets-key/releases for the latest release.
Build sealed-secrets-key:
$ make build
and run sealed-secrets-key:
$ ./dist/sealed-secrets-key -o secret.yaml
For more information about available options run:
$ ./dist/sealed-secrets-key -h
Generate sealed-secrets-key
Usage:
sealed-secrets-key [flags]
sealed-secrets-key [command]
Examples:
$ sealed-secrets-key -o secret.yaml
Available Commands:
help Help about any command
version Show version
Flags:
-h, --help help for sealed-secrets-key
--key-size int Size of encryption key. (default 4096)
--key-ttl duration Duration that certificate is valid for. (default 87600h0m0s)
--namespace string Namespace of Secret. (default "kube-system")
-o, --output string Output file.
--secret-name string Name of Secret containing public/private key. (default "sealed-secrets-key")
Use "sealed-secrets-key [command] --help" for more information about a command.
$ sealed-secrets-key
apiVersion: v1
data:
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVyVENDQXBXZ0F3SUJBZ0lRTjdKemhaSkpLNmNNQUozNmRQQ3dSVEFOQmdrcWhraUc5dzBCQVFzRkFEQUEKTUI0WERURTVNRFl5TmpFMU1qZ3lOVm9YRFRJNU1EWXlNekUxTWpneU5Wb3dBRENDQWlJd0RRWUpLb1pJaHZjTgpBUUVCQlFBRGdnSVBBRENDQWdvQ2dnSUJBTTJoSkJsSGh5UXR5Q2hsN1JsVWRBMlJIU1luaDl5SlpWQTJROSs3ClZNbCtiMThsM2pLNVJiTjNxZ0c1eGJMN2FraVBlYlFnb1pIRVA2d1dZVXNMQVM1Tm1hVTZYT2hOMFJUYlRIQ0IKamtObjhxRVAwa2VVS0tSTHZmTStMSU94UytaUkF3UUpGMnc0TG9ESkRUajdhZWRYU0FsOWlRcUoydUR5SWNwcAp3Tnp3VDlWSUM4U1ZSY1lTMEpoMHdvL1EzdVVMRmo2RWlU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