Categorygithub.com/mataberat/kubeseal-encrypt-string
module
0.0.0-20241209064618-d6dba122e050
Repository: https://github.com/mataberat/kubeseal-encrypt-string.git
Documentation: pkg.go.dev

# README

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.

https://github.com/user-attachments/assets/6834c39c-a07f-4f1d-a4bc-b6b9e7df7146

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

# Packages

No description provided by the author