puzzle / ccli Goto Github PK
View Code? Open in Web Editor NEWCryptopus Command Line Client
Cryptopus Command Line Client
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.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.