Giter VIP home page Giter VIP logo

ccli's People

Contributors

dependabot[bot] avatar lkleisa avatar mtnstar avatar severinraez avatar thewalkingleek avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

ccli's Issues

FEATURE: Introduce custom attrs to ccli

Currently, only username and password work with the ccli, since Cryptopus 5.0, new attributes were introduced, such as pin, token, email and also a custom attribute. We have to adjust some parts of ccli for this to work to, encrypted_data structure is still the same for every attribute. We just have to include them everywhere we need in ccli

FEATURE: sync to local filesystem

I would like to sync from a source (cryptopus, openshift, kubernetes) to the local file system to edit the secrets there. These secrets do not need to be in plain-text. They could be encrypted and editable only by another command like cry edit ....

My main pain point is that I want fewer moving parts. Also, I want to have a little more control from where and to where I transfer the secrets.

Incorrectly decoding data

We haven't pinned down the reason 100% but it seems that the ccli can come to a point when syncing secrets that it tries to Base64-decode non-Base64 encoded strings.

This method:

def decoded_data(data)
    return {} unless data

    data.transform_values do |value|
      Base64.strict_decode64(value)
    rescue ArgumentError
      value
    end
end

is probably the biggest culprit as normally a non Base64 encoded String will just throw an error and return its value but in my case a non-Base64 encoded string was recognized as Base64, was therefore decoded and broke everything.

I have an example string for this case that I can share when needed.

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.