Skip to content

Conversation

@kristapratico
Copy link
Contributor

Resolves #17954

Makes sure we do not redact non-sensitive information that could be helpful when debugging.

api_version=self._api_version,
sdk_moniker=USER_AGENT,
authentication_policy=authentication_policy,
http_logging_policy=get_http_logging_policy(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

asking as I don't know how this works on Python... if the service introduces new headers/query parameters, this needs to be updated? or will the user be able to add more logging policies if they desire? -> it might not be needed if the list is always updated though

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a list of allowed headers in the policy, but it's general and doesn't include service-specific headers or query params. It can always be updated if the service starts sending anything new.

@kristapratico kristapratico merged commit 2ada230 into Azure:master Apr 19, 2021
@kristapratico kristapratico deleted the dt-logging branch April 19, 2021 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[translation] add headers/query params to logging allowlist

2 participants