
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Kichi is a simple commandline tool to manage application secrets for your applications using AWS.
Often you have shell scripts like:
USERNAME=mytzypdlk \
PASSWORD=aliceinwonderland1923 \
SENDGRID_USER=koouser \
SENDGRID_PASSWORD=koolpassword \
bash deploy.sh
Which are your base things.
Sometimes you might even commit them by accident.
To test different environments with different environment variables that contain sensitive information, it is a pain to keep having to export them, and keeping files and updating them with your secrets around is a manual step no one needs to have. Even worse, sending them over chat programs and giving third parties access to your info.
Kichi reduces this to:
$ kichi in my_env run bash deploy.sh
And you can provide your colleagues with AWS keys access to your secrets bucket and have them run this instead, without having to send secrets to them over third party services.
Add this line to your application's Gemfile:
gem 'kichi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install kichi
To use kichi with an S3 bucket, you need to have your aws credentials set up with aws configure
$ kichi use s3
To set environment variables
$ kichi set USERNAME pikachu
$ kichi set PASSWORD youwashock
To view environment variables
$ kichi get USERNAME
To set files
$ kichi cp key.pem PRIVATE_KEY
when you set a file, the env var will come up as PRIVATE_KEY_PATH. This env var will be your path to the actual file that was downloaded
To get files
$ kichi dl PRIVATE_KEY
this will download to a file called PRIVATE_KEY on your current directory.
To create a new environment
$ kichi create my_env
To add environment variables to an environment
$ kichi add USERNAME my_env
$ kichi add PASSWORD my_env
To add a file to an environment
$ kichi addfile PRIVATE_KEY my_env
To list the variable names in an environment
$ kichi list my_env
To run a program using an environment
$ kichi in my_env run ./server
Kichi means "base" as in "military base" in Japanese. I chose the word because military bases generally have lots of secrets.
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/davidsiaw/kichi.
FAQs
Unknown package
We found that kichi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.