Giter Site home page Giter Site logo

sniptt-official / snip Goto Github PK

View Code? Open in Web Editor NEW
222.0 6.0 11.0 512 KB

๐Ÿ” A simple developer-friendly CLI for managing secrets

Home Page: https://sniptt.com

License: MIT License

JavaScript 0.78% TypeScript 99.22%
cli openpgp end-to-end-encryption secrets-management secrets sharing-secrets encryption serverless vault homebrew

snip's People

Contributors

lomigmegard avatar rogerthebest avatar samthebest avatar slavovojacek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

snip's Issues

Simple flag to have machine-readable `snip get` output.

Use-case being that if I adopt snip as a team with a shared vault, I'd want to call snip from scripts and retrieve a secret in plaintext.

For now the best option I found to get plaintext output of a secret value is:

snip get foo -q -o /dev/stdout

A convention of lots of programs would be to accept - in place of stdout to shorten the command.

A different option could be to implement a flag like snip get foo -r (-r/--raw for raw output mode).

Add os matrix to test workflow

We should use a matrix strategy with different OS versions when running the test jobs, similar to the node versions matrix.

Port CLI to Golang

It makes sense to port snip to golang, improving the overall DX and aligning with how we've built ots

Command line arg parsing not work properly when I want to add a password (using hidden text)

snip add joebloggs_aws_password_prod -v aws_initial_passwords

snip add joebloggs_aws_password_test --vault aws_initial_passwords

Also, moving the --vault not work either, nor adding the value as non-hidden text at the end.

snip --vault aws_initial_passwords add joebloggs_aws_password_test 1234
Error: Unknown argument: 1234
Hint: Use the --help option to get help about the usage

Setting or seeing a profile as context

Currently when I create a new profile it's not set as default. During command executions I also do not see what the profile is. As a result if I leave the --profile flag from the command I get errors that are quite strange and misleading. It would be good to:

  • either set a default profile and see it on command executions
  • or have some warnings / potential fixes with errors like: Are you running against the correct profile?

Listing empty vault seems fishy

samsavage@CVX-0032:/tmp snip ls --vault datauniverse_vault
โœ” Fetching existing vault memberships
โœ” Fetching vault secrets
Secret Name Owner

It looks like the vault contains 1 secret called Secret Name Owner but I don't think that is the intension.

If the vault is empty, no text should be output, or it should say "vault empty" or something.

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.