cyberark / conjur

CyberArk Conjur automatically secures secrets used by privileged users and machine identities

Home Page:https://conjur.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IP ranges are not considered valid using new configuration system

jtuttle opened this issue · comments

Summary

IP ranges are not considered valid when setting trusted proxies through the new file-based configuration system. i.e. this configuration file:

trusted_proxies:
  - 192.0.2.1 - 192.0.2.2

will fail validation.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Start a Conjur container
  2. Create a configuration file with an IP range
  3. Run conjurctl configuration show (or evoke configuration show for Enterprise)
  4. Observe that config validation files

Expected Results

Validation succeeds and the configuration show command displays configuration.

Actual Results (including error logs, if applicable)

root@297c94030698:/# cat /etc/conjur/config/conjur.yml
trusted_proxies:
  - 192.0.2.1 - 192.0.2.2

root@297c94030698:/# evoke configuration show
Invalid values for configured attributes: trusted_proxies

Reproducible

  • Always
  • Sometimes
  • Non-Reproducible

Version/Tag number

root@297c94030698:/# cat /opt/conjur/possum/VERSION
1.11.7

Environment setup

Tested this by running a Conjur Enterprise container using cyberark/conjur-intro.

Additional Information

May have something to do with YAML using dash as a delimiter.

This was a misunderstanding with the docs. Dashes are not supported, CIDR ranges are used instead.