Coder Social home page Coder Social logo

tegamckinney / kubernetes-secret-decode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ashleyschuett/kubernetes-secret-decode

0.0 1.0 0.0 18 KB

shows kubernetes secret with values base64 decoded

License: Apache License 2.0

Makefile 3.70% Go 96.30%

kubernetes-secret-decode's Introduction

Kubernetes Secret Decode

Description

Be able to easily see the values of a secret.

YAML and JSON are both supported and detection of the input type is performed automatically.

Before:

$ kubectl get secret my-secret -o yaml
apiVersion: v1
data:
  password: cGFzc3dvcmQ=
  username: dXNlcm5hbWU=
kind: Secret
metadata:
  creationTimestamp: 2018-05-09T21:01:37Z
  name: my-secret
  namespace: default
  resourceVersion: "20229"
  selfLink: /api/v1/namespaces/default/secrets/my-secret
  uid: 29ef8024-53cc-11e8-967d-080027cd91ae
type: Opaque

After:

$ kubectl ksd get secret my-secret -o yaml
apiVersion: v1
stringData:
  password: password
  username: username
kind: Secret
metadata:
  creationTimestamp: "2018-05-09T21:01:37Z"
  name: my-secret
  namespace: default
  resourceVersion: "20229"
  selfLink: /api/v1/namespaces/default/secrets/my-secret
  uid: 29ef8024-53cc-11e8-967d-080027cd91ae
type: Opaque

Installation

Prebuilt

Download the appropriate binary for your OS from the releases section, make it executable and add it to your path.

Compile From Source

These instructions assume you have go installed and a $GOPATH set. The binary needs to be installed somewhere in your $PATH. The binary also needs to be named either kubectl-ksd or kubectl-kubernetes-secret-decode

For easy install running the following:

make install

Usage

kubectl ksd get secret my-secret -o yaml

kubectl ksd get secret my-secret -o json

kubernetes-secret-decode's People

Contributors

jglick avatar aarongorka avatar mfuentesg avatar mattkelly avatar vishnoisuresh avatar

Watchers

James Cloos avatar

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.