ksv

command module
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

README

ksv - K8s Secrets Viewer

Build Status

decodes/encodes entire Kubernetes secrets files

Installation

ksv uses dep to manage dependencies.

go get github.com/metadave/ksv
cd ${GOPATH}/src/github.com/metadave/ksv
dep ensure
go install
# ksv will be installed in ${GOPATH}/bin

Usage

Base64 decoding secret values
ksv < some_secrets_file_with_base64_encoded_data_values.yaml

or

ksv decode < some_secrets_file_with_base64_encoded_data_values.yaml

the default subcommand for ksv is decode

Convert base64-encoded secret values to use K8s stringData
ksv -s < some_secrets_file_with_base64_encoded_data_values.yaml
Add a key/value pair to base64-encoded input
 ksv add -k foo -v bar < test.yaml

adds the key "foo" with a value of "bar" to the secret data section.

Test that it worked by sending the output back to ksv:

ksv add -k foo -v bar < test.yaml | ksv
Base64 encoding secret values
ksv encode < some_secrets_file_with_plaintext_data_values.yaml
Round trip
ksv < test.yaml | ksv encode

License

Apache Software License 2.0

Documentation

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