v0.0.0-...-916e759 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2016 License: Apache-2.0 Imports: 12 Imported by: 0


Helm Sec: Work On Secrets

The helm-sec plugin provides a tool for working with Kubernetes secrets.

It can:

  • Handle encoding secrets for you.
  • Generate or manage some kinds of secrets for you.
  • Create or modify secrets files for you.


The simplest invocation of helm sec generates a secret file and sends it to stdout:

$ helm-sec name value
kind: Secret
apiVersion: v1
  name: name
  name: dmFsdWU=

(Note that dmFsdWU= is value base64 encoded)

You can send the output to a file by specifying the file name with the --file or -f flags:

$ helm-sec -f secret.yaml name value

And helm sec can generate passwords or tokens for you:

$ helm sec --password mysecret
---> Password: jb@OTr}k|dG<jc,m
kind: Secret
apiVersion: v1
  name: mysecret
  mysecret: amJAT1RyfWt8ZEc8amMsbQ==

Use the --length,-l flag to specify how long of a password or token you'd like. You can also use --alphanum and --alpha to generate alphanumeric or alphabetic phrases (no special characters).

helm sec can also generate keypairs. To generate a NaCl Box pair, use the --box flag:

$ helm-sec --box mysecret
kind: Secret
apiVersion: v1
  name: mysecret
    mysecret: RdueTOMUjMjSnarkdlOR0Hq1Q/abTTNQ1xFp/Wn4dNI= 9olV4AbjU6QdgJcGfevT+pCLc/0NfpbD6z9OPkfYK28=

In the future, helm-sec will also generate:

  • SSH key pairs
  • SSL certs
  • More


The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL