-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: refresh auth tokens 3m45s before expiration (#1505)
- Migrate from the legacy golang.org/x/oauth2 to the new cloud.google.com/go/auth for GCP & federated auth. - Remove the 5m auth token cache in the askpass sidecar. Use the 3m45s EarlyTokenRefresh default provided by auth.DefaultCredentials instead. - Make asskpass, helm-sync, oci-sync, and reconciler-manager all use the same credential and token provider code for consistency. - Add unit tests to confirm that IsCredentialsNotFoundError works. It's fragile because it depends on an error string instead of a sentinel error. googleapis/google-cloud-go#11258 Unfortunately, the not found error is not reproducable or testable on GKE/GCE, so if the error text changes, the test may still pass in CI but fail when run locally. googleapis/google-cloud-go#4920
- Loading branch information
Showing
591 changed files
with
76,610 additions
and
13,985 deletions.
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.