-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for exceptions to annotations #44
Conversation
Some secrets when redacted are rejected due to invalid characters. One example of this would `prometheus_bcrypt_salt` which is rejected due to the use of underscores. Therefore the solution is to add support for exceptions to the standard annotation format. See: https://github.com/ansible/ansible/blob/devel/lib/ansible/utils/encrypt.py#L118C46-L118C46
2c8db41
to
84ee860
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed in Google meeting.
aa8ec22
to
4ee379d
Compare
Most recent change ensures that nested dicts are redacted and still keep the full name.
becomes
|
4ee379d
to
6feb7f6
Compare
In addition to bcrypt salt rejecting underscores amongst other characters it must also be exactly 22 characters long.
6feb7f6
to
024b83e
Compare
LGTM - nice solution :) |
@jackhodgkiss Is this planned to merge soon? |
Happy to merge it now. It was working last time I checked but don't have time this week to test again. However, if you encounter any issues please let me know. |
feat: add support for exceptions to annotations
Some secrets when redacted are rejected due to invalid characters. One example of this would
prometheus_bcrypt_salt
which is rejected due to the use of underscores. Therefore the solution is to add support for exceptions to the standard annotation format.See: https://github.com/ansible/ansible/blob/devel/lib/ansible/utils/encrypt.py#L118C46-L118C46
https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/prometheus/templates/prometheus-web.yml.j2#L3