-
Notifications
You must be signed in to change notification settings - Fork 34
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
Cache access token in unftp-sbe-gcs #435
Conversation
Very nice contribution thanks. It looks good to me although we need to think how to test this. @robklg any suggestions? |
I just extracted the token cache into its own type, and tested that. It doesn't cover the changes I made in CloudStorage, but I'm confident that the caching logic works now. |
We'll make an RC / Edge release and test it in the environment. If you're happy with this I'd like to merge it |
I'm happy when you are. Feel free to merge. |
This PR implements caching for access tokens in the Google Cloud Storage backend.
I'm using an RwLock rather than a Mutex, since the token is read much more often than it's written.
If !433 is accepted, I will change the approach of this PR, since that will make it easier to pull the caching logic out of the CloudStorage struct, and into its own type.
I also changed the name of the
workflow_identity
module toworkload_identity
.I still need to figure out how to properly test this. Any suggestions are welcome.
Resolves #384