newsdev / context Goto Github PK
View Code? Open in Web Editor NEWSecurely stores and conveniently retrieves environment variables in etcd or Redis.
License: Mozilla Public License 2.0
Securely stores and conveniently retrieves environment variables in etcd or Redis.
License: Mozilla Public License 2.0
When setting some keys, I mistakenly ran the context set
command with value included on the initial line, instead of entered variable by variable. e.g., context set -g GROUP KEY=VALUE
.
This would normally simply result in a key that includes the value: KEY=VALUE
=> VALUE
. But the value pasted in was JSON that included forward slashes. I tested out variations, and the issue I saw occurs whenever the key includes a /
inside the key, but not at the beginning or end.
To reproduce:
$ sudo context set -g GROUP KEY/VALUE
KEY=VALUE=[enter any value]
This will succeed. From this point on, exec
commands for that group will fail:
$ sudo context exec -g GROUP env
stdCrypter: message signature is too short
To get it back into a working state, I had to delete the values in context for that group:
curl -XDELETE -L http://127.0.0.1:4001/v2/keys/context/GROUP?recursive=true
Ideally, this wouldn't happen. You should be able to run exec against an empty group and get just the current environment.
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.