Skip to content

Latest commit

 

History

History
60 lines (35 loc) · 1.73 KB

README.md

File metadata and controls

60 lines (35 loc) · 1.73 KB

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