You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "JayavarmaS318 (via GitHub)" <gi...@apache.org> on 2026/06/02 13:11:33 UTC

[PR] fix: surface S3 endpoint/path-style/region when credential subscoping is skipped [polaris]

JayavarmaS318 opened a new pull request, #4596:
URL: https://github.com/apache/polaris/pull/4596

   ## Summary
   
   Fixes #4595
   
   When `SKIP_CREDENTIAL_SUBSCOPING_INDIRECTION` is enabled, `StorageAccessConfigProvider.getStorageAccessConfig()` returned an empty `StorageAccessConfig`, silently discarding the S3 endpoint, `path-style-access`, and region properties. This caused `S3FileIO` to use **virtual-hosted-style addressing** (`bucket.s3-endpoint.example.com`), which fails TLS validation when the certificate covers only the base hostname.
   
   The error manifests as a misleading PKIX path-building failure on CTAS and CREATE TABLE operations.
   
   ## Root cause
   
   ```java
   // StorageAccessConfigProvider.java — before fix
   if (skipCredentialSubscopingIndirection) {
       return StorageAccessConfig.builder().build(); // empty: loses endpoint/path-style/region
   }
   ```
   
   The early-return path bypassed `AwsCredentialsStorageIntegration`'s endpoint/path-style population code entirely.
   
   ## Changes
   
   - **`StorageAccessConfigProvider`**: add `buildStoragePropertiesOnlyConfig()` — when subscoping is skipped, extract `s3.endpoint`, `s3.path-style-access`, and `client.region` from `AwsStorageConfigurationInfo` and return them in the `StorageAccessConfig`.
   - **`RestCatalogSkipSubscopingMinIOIT`**: new integration test running against MinIO with `SKIP_CREDENTIAL_SUBSCOPING_INDIRECTION=true` that reproduces the failure and verifies the fix.
   
   ## Testing
   
   - New integration test `RestCatalogSkipSubscopingMinIOIT` exercises the exact failure scenario (path-style S3-compatible endpoint + subscoping skipped).
   - Fix verified in production against a ZeroSSL-certified S3-compatible endpoint: CTAS succeeds after patch, failed before.
   
   ## Notes
   
   > This contribution was developed with AI assistance (Kiro). The author understands the implementation end-to-end and is responsible for the change.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: surface S3 endpoint/path-style/region when credential subscoping is skipped [polaris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #4596:
URL: https://github.com/apache/polaris/pull/4596#issuecomment-4884538540

   This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: surface S3 endpoint/path-style/region when credential subscoping is skipped [polaris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #4596: fix: surface S3 endpoint/path-style/region when credential subscoping is skipped
URL: https://github.com/apache/polaris/pull/4596


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: surface S3 endpoint/path-style/region when credential subscoping is skipped [polaris]

Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on PR #4596:
URL: https://github.com/apache/polaris/pull/4596#issuecomment-4626365577

   @JayavarmaS318 : appreciate your interest and involvements with Polaris :+1: 
   
   However, as I [commented](https://github.com/apache/polaris/issues/4595#issuecomment-4626350991) on #4595, current behaviour of `SKIP_CREDENTIAL_SUBSCOPING_INDIRECTION` looks correct and intentional to me.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org