cyberark-conjur-cli-docker-based
cyberark-conjur-cli-docker-based copied to clipboard
CLI returns error if `-h` flag is missing when rotating a host's API key
If you forget to include -h
in your request to rotate a host's API key, the CLI returns the error:
# conjur host rotate_api_key host-id
error: undefined method `start_with?' for nil:NilClass
Calling conjur host rotate_api_key -h host-id
worked fine.
This error was discovered using hosted eval Conjur and the conjurinc/cli5
Docker image.
For comparison, if you run conjur user rotate_api_key user-id
and forget the -u
flag, the CLI returns Unable to authenticate with Conjur. Please check your credentials.