def sanitize_secrets(secrets):
    redacted_phrase = 'REDACTED'
    if secrets is None:
        return None
    secrets_copy = secrets.copy()
    if 'password' in secrets_copy:
        secrets_copy['password'] = redacted_phrase
    elif 'X-Auth-Key' in secrets_copy:
        secrets_copy['X-Auth-Key'] = redacted_phrase
    elif 'X-Auth-User-Service-Key' in secrets_copy:
        secrets_copy['X-Auth-User-Service-Key'] = redacted_phrase
    return secrets_copy

9f304f3c161611b27b37af5252ffa1735ec85f98
<mask token>

def sanitize_secrets(secrets):
    redacted_phrase = 'REDACTED'
    if secrets is None:
        return None
    secrets_copy = secrets.copy()
    if 'password' in secrets_copy:
        secrets_copy['password'] = redacted_phrase
    elif 'X-Auth-Key' in secrets_copy:
        secrets_copy['X-Auth-Key'] = redacted_phrase
    elif 'X-Auth-User-Service-Key' in secrets_copy:
        secrets_copy['X-Auth-User-Service-Key'] = redacted_phrase
    return secrets_copy
