-
Notifications
You must be signed in to change notification settings - Fork 276
Add pathStyleAccess
to AwsStorageConfigInfo
#2012
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
Conversation
polaris-core/src/main/java/org/apache/polaris/core/storage/aws/AwsStorageConfigurationInfo.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
public AwsStorageConfigurationInfo( | ||
@Nonnull StorageType storageType, | ||
@Nonnull List<String> allowedLocations, | ||
@Nonnull String roleARN, | ||
@Nullable String region) { | ||
this(storageType, allowedLocations, roleARN, null, region, null, null); | ||
this(storageType, allowedLocations, roleARN, null, region, null, null, false); |
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.
We could use the default here, or just leave it null to leverage the default used in orElse
. Better not to proliferate the constants around like this.
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.
changed to use PATH_STYLE_ACCESS_DEFAULT
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.
Now that we have a default at the API level, is this actually nullable?
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 had to remove the API default.
polaris-core/src/main/java/org/apache/polaris/core/storage/aws/AwsStorageConfigurationInfo.java
Outdated
Show resolved
Hide resolved
polaris-core/src/main/java/org/apache/polaris/core/storage/aws/AwsStorageConfigurationInfo.java
Outdated
Show resolved
Hide resolved
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 !
I had to remove one commit (discussed in the API yaml comment thread). PTAL. |
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.
Let's clarify if this is a breaking change (does it need to target 2.0? Go into API version 2?) and plan accordingly before merging.
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
@eric-maynard : I believe I addressed your backward-compatibility concern in the latest push. Could you review again? |
6157bc0
to
85bbabe
Compare
This change allows configuring the "path-style" access mode in S3 clients (both in Polaris Servers and Iceberg REST Catalog API clients). This change is applicable both to AWS storage and to non-AWS S3-compatible storage (apache#1530). The Management API change is backward-compatible.
spec/polaris-management-service.yml
Outdated
type: boolean | ||
description: >- | ||
Whether S3 requests to files in this catalog should use 'path-style addressing for buckets'. | ||
Default: false. |
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.
nit: With the default in the spec, I don't think we need the default in the doc. Other similar variables don't have it.
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.
removed 👍
* Add `pathStyleAccess` to AwsStorageConfigInfo This change allows configuring the "path-style" access mode in S3 clients (both in Polaris Servers and Iceberg REST Catalog API clients). This change is applicable both to AWS storage and to non-AWS S3-compatible storage (apache#1530).
This change allows configuring the "path-style" access mode in S3 clients (both in Polaris Servers and Iceberg REST Catalog API clients).
This change is applicable both to AWS storage and to non-AWS S3-compatible storage (#1530).
The Management API change is backward-compatible with clients lenient to unknown JSON properties.
Includes a fix to AWS config object round-trip via generated API classes.
Dev ML discussion: https://lists.apache.org/thread/oxy2yd4mbq06zr4z57lfptgy95c3lyhb