-
Notifications
You must be signed in to change notification settings - Fork 81
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
Use the request context throughout the code, and add retries & timeouts to more Azure auth provider calls #358
Merged
kodiakhq
merged 7 commits into
kubeguard:master
from
AzureMarker:fix/azure-timeouts-retries
Mar 16, 2023
Merged
Use the request context throughout the code, and add retries & timeouts to more Azure auth provider calls #358
kodiakhq
merged 7 commits into
kubeguard:master
from
AzureMarker:fix/azure-timeouts-retries
Mar 16, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com>
Also includes a 3 second timeout per request. Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com>
amanohar
reviewed
Mar 4, 2023
# Conflicts: # auth/providers/azure/graph/aks_tokenprovider.go # auth/providers/azure/graph/clientcredential_tokenprovider.go # auth/providers/azure/graph/obo_tokenprovider.go # auth/providers/github/github_test.go # auth/providers/google/google_test.go
Anumita
reviewed
Mar 13, 2023
Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com>
# Conflicts: # server/server.go # util/azure/utils.go
Anumita
approved these changes
Mar 14, 2023
Anumita
approved these changes
Mar 15, 2023
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.
lgtm. @AzureMarker should we go ahead and merge?
Yes, if possible (we need an approval from someone who is authorized to merge). |
krdhruva
approved these changes
Mar 16, 2023
krdhruva
pushed a commit
that referenced
this pull request
Mar 16, 2023
…ts to more Azure auth provider calls (#358) * Use the request context to cancel processing if request is canceled Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> * Use a retrying HTTP client wherever possible in azure auth provider Also includes a 3 second timeout per request. Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> * Reformat Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> * Clarify a comment Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> --------- Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com>
krdhruva
pushed a commit
that referenced
this pull request
Mar 16, 2023
…ts to more Azure auth provider calls (#358) * Use the request context to cancel processing if request is canceled Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> * Use a retrying HTTP client wherever possible in azure auth provider Also includes a 3 second timeout per request. Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> * Reformat Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> * Clarify a comment Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> --------- Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> Signed-off-by: Krupesh Dhruva <krdhruva@microsoft.com>
kodiakhq bot
pushed a commit
that referenced
this pull request
Mar 16, 2023
* Bump golang.org/x/net from 0.0.0-20220725212005-46097bf591d3 to 0.7.0 (#357) Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220725212005-46097bf591d3 to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](https://github.com/golang/net/commits/v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Krupesh Dhruva <krdhruva@microsoft.com> * Update clientauthentication api to v1beta1 (#355) v1alpha1 is removed in k8s v24, so this needs updating to allow forward compatibility. v1 does now exist, but k8s deps will have to be updated to v22 to use that, and this is a more minimal first step. Signed-off-by: andrew.suffield <andrew.suffield@robinhood.com> Signed-off-by: Krupesh Dhruva <krdhruva@microsoft.com> * Use Go 1.20 and update dependencies (#359) Signed-off-by: Tamal Saha <tamal@appscode.com> Signed-off-by: Krupesh Dhruva <krdhruva@microsoft.com> * Add support for reconciling discover resources (#354) * add check for metrics error Signed-off-by: Anumita <ansheno@microsoft.com> * add reconciling of discover resources Signed-off-by: Anumita <ansheno@microsoft.com> * add lock and map interface Signed-off-by: Anumita <ansheno@microsoft.com> * add deepcopy of map Signed-off-by: Anumita <ansheno@microsoft.com> * address comments Signed-off-by: Anumita <ansheno@microsoft.com> * add tests for reconcile Signed-off-by: Anumita <ansheno@microsoft.com> --------- Signed-off-by: Anumita <ansheno@microsoft.com> Co-authored-by: Krupesh <krdhruva@microsoft.com> Signed-off-by: Krupesh Dhruva <krdhruva@microsoft.com> * fix log line for correlation id (#360) Signed-off-by: Anumita <ansheno@microsoft.com> Signed-off-by: Krupesh Dhruva <krdhruva@microsoft.com> * Use the request context throughout the code, and add retries & timeouts to more Azure auth provider calls (#358) * Use the request context to cancel processing if request is canceled Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> * Use a retrying HTTP client wherever possible in azure auth provider Also includes a 3 second timeout per request. Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> * Reformat Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> * Clarify a comment Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> --------- Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> Signed-off-by: Krupesh Dhruva <krdhruva@microsoft.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Krupesh Dhruva <krdhruva@microsoft.com> Signed-off-by: andrew.suffield <andrew.suffield@robinhood.com> Signed-off-by: Tamal Saha <tamal@appscode.com> Signed-off-by: Anumita <ansheno@microsoft.com> Signed-off-by: Mark Drobnak <markdrobnak@microsoft.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Suffield <andrew.suffield@robinhood.com> Co-authored-by: Tamal Saha <tamal@appscode.com> Co-authored-by: Anumita Shenoy <ansheno@microsoft.com> Co-authored-by: Mark Drobnak <markdrobnak@microsoft.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are two improvements in this PR:
Tested by deploying to an Azure Resource Bridge and verifying auth calls to Guard still worked.