-
Notifications
You must be signed in to change notification settings - Fork 332
Make StorageAccessConfigProvider request-scoped #2974
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
Make StorageAccessConfigProvider request-scoped #2974
Conversation
662a47e to
95cd2cf
Compare
dimas-b
left a comment
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.
This PR LGTM as it stands 👍 but I wonder if we could take it one step further (as commented below) 🤔 WDYT?
| ? tableLocations | ||
| : Set.of(); | ||
| AccessConfig accessConfig = | ||
| storageCredentialCache.getOrGenerateSubScopeCreds( |
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.
WDYT about making AccessConfigProvider and interface and hiding StorageCredentialCache in one of the implementations?
StorageCredentialCache will remain application-scoped, of course?
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.
i agree with splitting out an interface, however i think we should do it in a follow-up PR as its not directly related to the goal of this PR, wdyt?
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.
Sure. A follow-up PR for this SGTM 👍
- add `StorageCredentialsVendor` as request-scoped wrapper around `PolarisCredentialVendor` - make `FileIOFactory` request-scoped - make `TaskFileIOSupplier` request-scoped
95cd2cf to
ada4731
Compare
|
rebased after conflict with aa72157 |
- add `StorageCredentialsVendor` as request-scoped wrapper around `PolarisCredentialVendor` - make `FileIOFactory` request-scoped - make `TaskFileIOSupplier` request-scoped
StorageCredentialsVendoras request-scoped wrapper aroundPolarisCredentialVendorFileIOFactoryrequest-scopedTaskFileIOSupplierrequest-scoped