All Projects → crtomirmajer → secode

crtomirmajer / secode

Licence: GPL-3.0 license
Utility for encoding/decoding Kubernetes secrets (base64)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to secode

envkey-python
EnvKey's python library. Protect API keys and credentials. Keep configuration in sync.
Stars: ✭ 24 (+4.35%)
Mutual labels:  configuration-management
efs2
A dead-simple configuration management tool powered by stupid shell scripts.
Stars: ✭ 82 (+256.52%)
Mutual labels:  configuration-management
gitlab-configuration-as-code
Manage GitLab configuration as code to make GitLab easily managable, traceable and reproducible.
Stars: ✭ 31 (+34.78%)
Mutual labels:  configuration-management
i3configger
i3 config manipulation tool
Stars: ✭ 23 (+0%)
Mutual labels:  configuration-management
ctrip-apollo-client
This is a client library for Apollo(A reliable configuration management system) written in Node.js.
Stars: ✭ 49 (+113.04%)
Mutual labels:  configuration-management
stavka
Stavka manages configuration from various sources, for your Clojure application.
Stars: ✭ 40 (+73.91%)
Mutual labels:  configuration-management
dynamic-config
A dynamic config library for Node.js implemented in TypeScript
Stars: ✭ 29 (+26.09%)
Mutual labels:  configuration-management
1config
A command line tool and a library to manage application secrets and configuration safely and effectively.
Stars: ✭ 24 (+4.35%)
Mutual labels:  configuration-management
envkey-node
EnvKey's official Node.js client library
Stars: ✭ 46 (+100%)
Mutual labels:  configuration-management
infraverse
Infrastructure Platforms and Applications Comparison
Stars: ✭ 77 (+234.78%)
Mutual labels:  configuration-management
CoSky
High-performance, low-cost microservice governance platform. Service Discovery and Configuration Service | 高性能、低成本微服务治理平台
Stars: ✭ 57 (+147.83%)
Mutual labels:  configuration-management
ansible-sshjail
An Ansible connection plugin for provisioning FreeBSD jails remotely
Stars: ✭ 57 (+147.83%)
Mutual labels:  configuration-management
go-microepoch
A complete DevOps cycle for Building and Deploying a Go Application to Kubernetes cluster.
Stars: ✭ 34 (+47.83%)
Mutual labels:  kubernetes-secrets
Pokedex
Pokedex is a robust Discord bot that mimics the iconic Pokedex from the Pokemon games and show. It's loaded with features to help players of all skill levels to learn and better enjoy Pokemon! The goal of Pokedex is to provide users with as much data about the Pokemon games as they desire conveniently and with minimal effort.
Stars: ✭ 18 (-21.74%)
Mutual labels:  configuration-management
alpine-conf
[MIRROR] Alpine configuration management scripts
Stars: ✭ 38 (+65.22%)
Mutual labels:  configuration-management
climatecontrol
Python library for loading settings and config data from files and environment variables
Stars: ✭ 20 (-13.04%)
Mutual labels:  configuration-management
puppet-jboss
Installs JBoss EAP and WildFly application servers and manage their resources and applications in either a domain or a stand-alone mode
Stars: ✭ 15 (-34.78%)
Mutual labels:  configuration-management
parse it
A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.
Stars: ✭ 86 (+273.91%)
Mutual labels:  configuration-management
spock
spock is a framework that helps manage complex parameter configurations during research and development of Python applications
Stars: ✭ 65 (+182.61%)
Mutual labels:  configuration-management
BepInEx.ConfigurationManager
Plugin configuration manager for BepInEx
Stars: ✭ 115 (+400%)
Mutual labels:  configuration-management

Secode

CircleCI

About

secode, short for secrets encode, is a utility for base64 encoding/decoding Kubernetes secrets. It takes a .yaml file or a stream as an input and replaces values with base64 encoded/decoded strings.

Also works with multiple Secret definitions per file - kind: List or --- separated.

Requires Python 3+

Install

Using pip3:

pip3 install git+http://github.com/crtomirmajer/secode.git

Usage

Run:

secode secrets.yaml > secrets_base64.yaml

on secrets.yaml containing:

apiVersion: v1
kind: Secret
metadata:
  name: secret_1
type: Opaque
data:
  secret_val_1: 'this-is-secret-1'
  secret_val_2: 1337
  secret_val_3: v/pp;QTh|F%@G5,9g,%qeh9j+ubQ3dM\

to get secrets_base64.yaml:

apiVersion: v1
kind: Secret
metadata:
  name: secret_1
type: Opaque
data:
  secret_val_1: dGhpcy1pcy1zZWNyZXQtMQ==
  secret_val_2: MTMzNw==
  secret_val_3: di9wcDtRVGh8RiVARzUsOWcsJXFlaDlqK3ViUTNkTVw=

Use -d (--decode) flag to get the original:

secode secrets_base64.yaml -d

Pipe kubectl get secret output through secode -d to decode a deployed K8s secret on-the-fly:

kubectl get secret <name-of-the-secret> -o yaml | secode -d
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].