Validate AWS endpoint URIs and apply S3 endpoint restrictions on catalog create and update #6163
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 381 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.356
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #6163"
general
weight: 0.35
dimas-b
Summary
Applies one set of AWS endpoint checks on every catalog create and update, covering the storage configuration
endpoint,endpointInternalandstsEndpoint, and the SigV4 connectionstsEndpoint. Each value must be an absolutehttporhttpsURI with a host, and plainhttplogs a WARN. A new flag,VALIDATE_AWS_ENDPOINT_URIS, turns the URI checks off.Why
Issue #6051 and the dev-list discussion (https://lists.apache.org/thread.html/zzwbgp4vod02w44y0fjltf85sv8s319r) show that AWS endpoint settings are checked inconsistently:
stsEndpointfrom #6035 do not cover the storage configurationendpoint,endpointInternalorstsEndpoint.ALLOW_SETTING_S3_ENDPOINTSchecks storage endpoints only when an update includesstorageConfigInfo. The SigV4stsEndpointis checked only on create.Current behavior
httpvalues are not logged.ALLOW_SETTING_S3_ENDPOINTS=false, an update that omitsstorageConfigInfoskips the storage endpoint check, and a SigV4stsEndpointis not rechecked on update.Expected behavior
AwsEndpointCatalogConfigValidatorruns on every catalog create and update. It appliesALLOW_SETTING_S3_ENDPOINTSand the URI checks to the full merged catalog.httpvalues log a WARN on every validation.VALIDATE_AWS_ENDPOINT_URIS(defaulttrue) skips the URI checks.Behavior changes
VALIDATE_AWS_ENDPOINT_URISistrue. Operators can fix the value with an update or set the flag tofalse.ALLOW_SETTING_S3_ENDPOINTS=false, updates are rejected for catalogs with S3 endpoint settings or a SigV4stsEndpoint, even when the update does not change them. Upgrade notes are in the changelog fragment.Changes
AwsEndpointCatalogConfigValidator(new), withAwsEndpointCatalogConfigValidatorTest.FeatureConfiguration: newVALIDATE_AWS_ENDPOINT_URISflag. TheALLOW_SETTING_S3_ENDPOINTSdescription is updated.PolarisServiceImplandPolarisServiceImplTest: moved endpoint checks and their tests are removed.Testing
./gradlew format compileAll: passes./gradlew :polaris-core:check: passesAwsEndpointCatalogConfigValidatorTest,ManagementServiceTest,PolarisServiceImplTest./gradlew checkChangelogFragments: passesChecklist
changelog.d/(if needed, seechangelog.d/README.md)site/content/in-dev/unreleased(if needed)