Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @soluto-asurion/kamus-cli with all npm packages installed. Try it out:

@soluto-asurion/kamus-cli lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("@soluto-asurion/kamus-cli/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@soluto-asurion/kamus-cli v0.2.2

CLI Tool to encrypt secrets for kamus

npm version Known Vulnerabilities docker hub

Kamus CLI

This cli was created to provide an easy interface to interact with Kamus API.

It supports azure device flow authentication out of the box.

To install, use the following NPM command:

npm install -g @soluto-asurion/kamus-cli

Alternatively, you can use docker to run the CLI (for example, to run it inside the cluster when the encryptor is deployed without ingress):

docker run -it --rm soluto/kamus-cli encrypt <arguments>

Or, using kubectl:

kubectl run -it --rm --restart=Never kamus-cli --image=soluto/kamus-cli -- encrypt <arguments>

Supported commands:

Encrypt

kamus-cli encrypt --secret <data> --service-account <serviceAccount> --namespace <namespace> --kamus-url <kamus-url>


How to enable azure active directory authentication

You need working active directory tenant and designated native app registration, Then just set all the auth prefixed options. Once the user will run the cli with the auth options, he will get a small code and and azure URL to login into.


CLI options:
OptionRequiredDescriptionDefault Value
--auth-tenantfalseazure authentication tenant id
--auth-applicationfalseazure authentication application id
--auth-resourcefalseazure authentication resource id
--cert-fingerprintfalsecertificate fingerprint of encrypt api for validation
--kamus-urltrueurl of kamus encrypt api
--allow-insecure-urlfalseallow or block non https endpointsfalse
--log-level <debug|verbose|info|warn|error|fatal>falsespecify global logger level
--log-flag <[no-](date|inline|colorful)>falsethe prefix no- represent negation. date: whether to print date. default value is false. inline: each log record output in one line. default value is false. colorful: whether to print with colors. default value is true.
--log-output falsespecify the output path (default behavior is output directory to stdout).
--log-encoding falsespecify the log file's encoding.
--secret or --secret-filetruethe secret to encrypt, or the file containing it
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free