/conjur-intro

Miscellaneous utilities that make it easier to make, manage, and run demos

Primary LanguageShellApache License 2.0Apache-2.0

Conjur Intro

Tools and scripts utilities that make it easier to make, manage, and run demos

Demos

Tools

Instructions

./start

start provides a dead simple mechanism for starting a Conjur Appliance.

Start a V5 appliance master with:

$ ./start

The start command pulls down the latest version of the V5 appliance and CLI, and configures Conjur with the following:

  • Account: test
  • Admin password: secret

Once started, logs are streamed to the console.

ctr-c stops the appliance, and cleans up the environment.

Start Flags

The start script accepts the following flags:

SYNOPSIS
    start [global options]

GLOBAL OPTIONS
    -h, --help                          - Show this message

    --skip-pull                         - Does not pull a fresh Conjur master before starting

    -t, --tag <appliance-tag>           - Starts a Conjur Appliance of the version specified

    --with-config                       - Configures the Appliance using the `config/conjur.json` file

To run a particular version of the Appliance:

$ ./start --tag 5.2.0

To start Conjur with the configuration file found in ./config/conjur.json:

$ ./start --with-config

./cli

cli is a proxy script, sending all subsequent arguments to a Conjur CLI container. This provides a simple mechanism for loading policy and interacting with Conjur.

Loading policy

The policy folder contains sample policy which can be loaded with:

$ ./cli conjur policy load --replace root policy/users.yml
$ ./cli conjur policy load root policy/policy.yml
$ ./cli conjur policy load staging policy/apps/myapp.yml
$ ./cli conjur policy load production policy/apps/myapp.yml
$ ./cli conjur policy load root policy/application_grants.yml
$ ./cli conjur policy load root policy/hosts.yml

Setting/Retrieving a Variable

$ ./cli conjur variable values add production/myapp/database/username foo-bar
$ ./cli conjur variable value production/myapp/database/username

Validating Packages

This project can also be used to verify PRs, by installing the branch specific package (created by Jenkins). To begin, download the .deb package. After starting Conjur, packages can be installed with:

# Start Conjur
$ ./start

Next in a new tab:

$ ./install ~/Downloads/conjur-ui_2.10.9.1-e389f20_amd64.deb

The install script will install the package into the running Conjur appliance and restart the Conjur service.

License

This repository is licensed under Apache License 2.0 - see LICENSE for more details.