Giter Site home page Giter Site logo

kubeseal-auto's Introduction

kubeseal-auto

kubeseal-auto is an interactive wrapper for kubeseal binary used to encrypt secrets for sealed-secrets.

GitHub last commit (branch) PyPI - Python Version PyPI license

Showcase

Installation

The recommended way to install this script is pipx:

pipx install kubeseal-auto

Usage

By default, the script will check the version of sealed-secret controller and download the corresponding kubeseal binary to ~/bin directory.

To run the script in fully interactive mode:

kubeseal-auto

Additionally, a "detached" mode is supported:

# Download sealed-secrets certificate for local signing
kubeseal-auto --fetch
# Generate SealedSecret with local certificate
kubeseal-auto --cert <kubectl-context>-kubeseal-cert.crt

Important

In the detached mode kubeseal-auto will not download the kubeseal binary and will look for it in the system $PATH.

To select kubeconfig context:

kubeseal-auto --select

To append or change key values in the existing secret:

kubeseal-auto --edit secret-name.yaml

To reencrypt all secrets in a directory (not working in a detached mode):

kubeseal-auto --re-encrypt /path/to/directory

To back up the encryption and decryption keys (not working in a detached mode):

kubeseal-auto --backup

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

kubeseal-auto's People

Contributors

dependabot[bot] avatar shini4i avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

sourcery-ai-bot

kubeseal-auto's Issues

feat: support multi keys

Context: we run 4 k8s clusters, with different kubeseal keys.

I would like to be able to generate severals kubeseal secrets in a single command.

Upgrade kubernetes version

I am using a newer version of kuberenetes and requesting upgrade on the kubernetes python client api from "23.3.0" to "24.2.0" or even greater.

add support to load secrets from env file

There was an internal request to support loading secrets from the env file.

The user wants to be able to select one of the env files from the list of the files in the current directory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.