You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
Conjur CLI seems to be logging errors to stdout instead of stderr.
Steps to Reproduce
Steps to reproduce the behavior:
Create invalid Conjur YAML file
Apply it
See expected error message
Apply it again redirecting stdout to /dev/null
No error message is shown
[myuser@myserver ~]$ cat bad-policy.yml
---
- !group
iid: admin
[myuser@myserver ~]$ conjur policy load -b root -f bad-policy.yml
Failed to execute command. Reason: 422 Client Error: Unprocessable Entity forurl: https://conjur-server.mycompany.com/policies/slsp/policy/root. The policy was empty or its contents were notin valid YAML.
Run the command again in debug mode for more information.
[myuser@myserver ~]$ echo$?
1
[myuser@myserver ~]$ conjur policy load -b root -f bad-policy.yml > /dev/null
[myuser@myserver ~]$ echo$?
1
[myuser@myserver ~]$
Expected Results
Write error messages to stderr
Actual Results (including error logs, if applicable)
Error messages are written to stdout
Reproducible
Always
Sometimes
Non-Reproducible
Version/Tag number
Latest version of the Python implementation of Conjur CLI (v7.0.1)
Additional Information
When applying a policy sensitive information might get printed to stdout (e.g. API keys for hosts and users). I would like to redirect stdout to /dev/null but still be able to see any error messages (not just the exit code).
The text was updated successfully, but these errors were encountered:
Summary
Conjur CLI seems to be logging errors to stdout instead of stderr.
Steps to Reproduce
Steps to reproduce the behavior:
Expected Results
Write error messages to stderr
Actual Results (including error logs, if applicable)
Error messages are written to stdout
Reproducible
Version/Tag number
Latest version of the Python implementation of Conjur CLI (v7.0.1)
Additional Information
When applying a policy sensitive information might get printed to stdout (e.g. API keys for hosts and users). I would like to redirect stdout to /dev/null but still be able to see any error messages (not just the exit code).
The text was updated successfully, but these errors were encountered: