ksec

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 2 Imported by: 0

README

ksec

KSec is a command line tool to manage secrets in Kubernetes with the following functionallities:

  • Create a secret from an env file
  • Append a secret to an existing secret
  • Get a secret from Kubernetes secrets
  • Delete a secret from Kubernetes secrets
  • List all secrets in a namespace
  • Fill a file with a secret from Kubernetes secrets
  • Modify a secret in Kubernetes secrets using an editor

Installation

to install Ksec use the following command: go install github.com/karim-w/ksec

Usage

Create a secret from an env file

ksec -e <.env file path> -n <namespace> -s <secret name> this command will :

  • create a secret from the env file and will add it to the kubernetes secrets
  • create a yaml file with the env config map
Append a secret to an existing secret

ksec -w <.env file path> -n <namespace> -s <secret name> -a this commmand will add a secret to a existing secret in kubernetes secrets

List all secrets in a Kubernetes secret

ksec -l -n <namespace> -s <secret name> this command will retrieve the secrets embedde in a kubernetes secrets

Get a secret from Kubernetes secrets

ksec -g -n <namespace> -s <secret name> -k <key> this command will retrieve a the value of secret within an existing kubernetes secret

Delete a secret from Kubernetes secrets

ksec -d -n <namespace> -s <secret name> -k <key> this command will delete a secret from an existing kubernetes secret

Fill a file with secrets from Kubernetes secrets

ksec -f <file path> -n <namespace> -s <secret name>

Modify a secret in Kubernetes secrets using an editor

ksec -m -n <namespace> -s <secret name>

Specify the file format

ksec -m -n <namespace> -s <secret name> -F <file format: json/yaml>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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