cyberark / cyberark-conjur-cli

CyberArk Conjur command line interface written in Python
https://www.conjur.org
Apache License 2.0
17 stars 16 forks source link

Environment variables configuration pattern #319

Open aconic-sb opened 3 years ago

aconic-sb commented 3 years ago

Summary

Docker based version of Conjur CLI allows configuration using environment variables the same way a summon-conjur does (see https://github.com/cyberark/summon-conjur#configuration). This is not possible with this implementation.

Steps to Reproduce

Steps to reproduce the behavior:

  1. export CONJUR_ACCOUNT, CONJUR_APPLIANCE_URL, CONJUR_SSL_CERTIFICATE, CONJUR_AUTHN_LOGIN and CONJUR_AUTHN_API_KEY environment variables
  2. run conjur list
  3. It will ask you to initialize Conjur CLI even though you provided all the information

Expected Results

Run conjur command without any file configuration

Actual Results (including error logs, if applicable)

Requires you to run the conjur init first

Reproducible

Version/Tag number

Works as expected in docker version cyberark/conjur-cli:5, does not work in the latest version of the Python implementation of Conjur CLI (v7.0.1)

Additional Information

I supposed this implementation should have kept the core functionality of the docker one that is why I am reporting it as a bug.