Skip to content

A simple CLI tool to encrypt a string using https://github.com/bitnami-labs/sealed-secrets that is deployed on your Kubernetes cluster.

Notifications You must be signed in to change notification settings

mataberat/kubeseal-encrypt-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubeseal-encrypt-string

A simple CLI tool to encrypt a string using Bitnami's Sealed Secrets for Kubernetes. This tool provides a simple way to encrypt sensitive data that can be safely stored in Git repositories and decrypted only within your Kubernetes cluster.

kubeseal-encrypt-string.mov

Prerequisites

Before using this tool, ensure you have the following installed:

  • kubectl (v1.29+)

Installing kubectl

  • kubeseal (v0.24.0+)

Installing kubeseal

Features

  • Automatic validation of encrypted secrets
  • Namespace-scoped encryption

Unsupported

  • Labels and annotations

Installation

//TODO

Building from Source

git clone https://github.com/mataberat/kubeseal-encrypt-string.git
cd kubeseal-encrypt-string
make build

Usage

# Basic usage with required flags
kubeseal-encrypt-string --key mysecret --value supersecret --namespace production --secret-name my-secret

# Using custom controller namespace
kubeseal-encrypt-string --key mysecret --value supersecret --namespace production --controller-namespace sealed-secrets --secret-name my-secret

# Using custom controller name and namespace
kubeseal-encrypt-string --key mysecret --value supersecret --namespace production --controller-namespace sealed-secrets --controller-name sealed-secrets --secret-name my-secret

# Using environment variables for controller config
export SEALED_SECRETS_CONTROLLER_NAMESPACE=sealed-secrets
export SEALED_SECRETS_CONTROLLER_NAME=sealed-secrets
kubeseal-encrypt-string --key mysecret --value supersecret --namespace production

About

A simple CLI tool to encrypt a string using https://github.com/bitnami-labs/sealed-secrets that is deployed on your Kubernetes cluster.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published