diff --git a/utils/kayobe-automation-redact b/utils/kayobe-automation-redact index 258900d..2bae110 100755 --- a/utils/kayobe-automation-redact +++ b/utils/kayobe-automation-redact @@ -5,11 +5,18 @@ import hashlib import base64 import sys +annotation_exceptions = { + 'prometheus_bcrypt_salt': 'prometheusbcryptsalt' +} + def annotate(ctx, value): if not isinstance(value, str): return value path_str = map(str, ctx['path']) - return f"{'.'.join(path_str)}.{ value }" + if path_str in annotation_exceptions: + return f"{'.'.join(annotation_exceptions['prometheus_bcrypt_salt'])}.{value}" + else: + return f"{'.'.join(path_str)}.{ value }" def redact_int(ctx, x): # For numbers we can't indicate change with a string, so use sentinal values