cyberark-conjur-cli-docker-based icon indicating copy to clipboard operation
cyberark-conjur-cli-docker-based copied to clipboard

CLI returns error if `-h` flag is missing when rotating a host's API key

Open izgeri opened this issue 7 years ago • 1 comments

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.

izgeri avatar Feb 21 '18 17:02 izgeri

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.

izgeri avatar Feb 21 '18 18:02 izgeri