Giter Site home page Giter Site logo

bufferapp / kubesecret Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 473 KB

A tool to manage secrets in kubernetes

Home Page: https://www.npmjs.com/package/@bufferapp/kubesecret

License: MIT License

JavaScript 100.00%
kuberentes kubesecret manage-secrets kubectl

kubesecret's Issues

Ejected for not confirming a change

Version 0.4.0-rc1

I was playing around and had a potiential edit to the valur of a key. However, I decided not to confirm, and as a result I was ejected from my kubesecret session, rather than returning to an appropriate menu.

? Please input the new value for "last-one":
Here are the changes:
Old value: Hope all is well
New value:

? Proceed with change: No
Colins-MacBook-Pro:buffer-web colin$

Behaviour when not specifying namespace

Version 0.4.0-rc1

I did a kubesecret get and forgot to specify the namespace (a common habit I have with kubectl too ๐Ÿ˜… ).

The output then says Working with namespace undefined and it looks like what ends up happening is that the default namespace is used.

I'm just wondering if making the namespace required would help to avoid any potential confusion here. Or, at the very least, the informational message could say Working with namespace default?

Mixture of numerical and selectable options

Version 0.4.0-rc1

I found it a bit weird that in some menus, I am promped to choose a number while in others I have to use the cursor keys to select the option I want. It's not a huge deal, I just find it a bit jarring to use.

Compare:

? Choose a secret to work with:
  1) buffer-analyze-keys
  2) buffer-publish-buffer-api-client
  3) buffer-publish-keys
  4) buffer-session-service-keys
  5) buffer-web-secret
  6) log-aggregator-aws
  7) log-aggregator-dd
  8) marketing-site
  9) twitter-friends-aws
  Answer:

with

? Choose next action:
โฏ View all keys
  View a specific key
  Edit secret
  Remove secret (TODO)
  Exit

Position of 'results' after choosing an option

Version 0.4.0-rc1

I think this is partly related to the tool being interactive, but I find it tricky sometimes to know where I should be looking when I choose an option - often text changes above where I am making my option, forcing me to constantly have to look up and down to find the result of an action.

Add README w/ install info

Purpose

To make it easier to get started with this tool ๐Ÿ˜„

What it could look like:


kubesecret

A tool to manage secrets in kubernetes

Installation

Run t

VERSION="0.3"
curl -L https://github.com/bufferapp/kubesecret/releases/download/$VERSION/kubesecret-`uname -s` > /usr/local/bin/kubesecret
chmod +x /usr/local/bin/kubesecret

Notes

  • We currently make the binary lowercase so to use uname -s we could make the binary -Linux-...
  • Can we drop the amd64 part of the binary file name for brevity?
  • We could also add some basic usage of the tool on the readme as well ๐Ÿ‘

Add get all command

Purpose

Instead of having to switch back and forth between kubectl and kubsecret it would be awesome to quickly list all secrets in a given namespace.

Idea

Instead of having to run kubectl -n reply get secrets then run kubesecret -n reply get secret <secret-name> we could list all of the secrets via kubesecret to have a smooth workflow.

If we wanted to make it more interactive one day we could even make it put out a numbered list and prompt the user for a number to read. ex.

kubesecret -n reply get
1) secret-a
2) secret-b
What secret would you like to view?
> _

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.