Skip to content
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

Suppress 403 when try getting access key #1943

Merged
merged 8 commits into from
May 21, 2024

Conversation

terencefan
Copy link
Member

@terencefan terencefan commented May 17, 2024

Suppress 403 errors when try getting access key

The ServiceManager is designed to try getting the access key even in Transient mode, as it may need to handle negotiate requests.

However, considering some cases where the given TokenCredential lacks permission for the GetAccessKey API, the error messages from failed attempts can be annoying. Therefore, we have chosen to suppress these errors and only throw the latest exception when necessary.

Fixes #1913

Throw it only when necessary
@terencefan terencefan marked this pull request as ready for review May 17, 2024 07:35
@terencefan terencefan enabled auto-merge (squash) May 21, 2024 06:29
@terencefan terencefan merged commit ee962c3 into Azure:dev May 21, 2024
8 checks passed
@terencefan terencefan deleted the tefa/shadow-unauthorized-error-log branch May 21, 2024 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should not require temporary access key for management SDK in transient mode.
3 participants