Gabriel39 opened a new pull request, #71414:
URL: https://github.com/apache/doris/pull/71414

   ### Background
   
   Connector providers declare security-sensitive properties through 
ConnectorSecuritySurface so the engine can keep driver policy and property 
masking connector-agnostic. The current endpoint declaration names static raw 
properties and default ports. It cannot represent a dormant option or a target 
derived from the effective client configuration.
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: #71205 (larger change being split)
   PR Type: Enhancement
   
   Problem Summary:
   
   Provide the small, independent foundation needed to validate the 
destinations that a selected connector configuration actually uses. Add 
immutable effective-value projections, explicit endpoint-list declarations and 
a configuration-aware provider method, plus a standalone parser/policy utility. 
Existing CREATE/ALTER routing continues to use its existing gate; this PR does 
not add catalog-specific coverage or runtime SDK interception.
   
   ### Details
   
   - **Change map:** Production Java +194/-12; tests and recorded API 
signatures +309/-2; developer documentation +55/-0; build metadata +1/-1. The 
production change consists of the immutable SPI extensions and a 123-line 
standalone utility; most additions specify behavior and verify compatibility.
   - **Before and after:** Providers previously exposed raw endpoint names 
only. They can now supply effective destinations, suppress a dormant saved 
value, identify actual comma-separated lists, and derive declarations from a 
detached property map without initializing a connector. The standalone utility 
parses all active values before probing, preserves commas in single HTTP URLs, 
deduplicates destinations, and delegates to the existing enabled policy. 
Unparseable active values and placeholders are rejected without echoing 
credential-bearing URLs. Disabled policy returns before parsing or probing.
   - **Configs and defaults:** None added or changed. Existing SecurityChecker 
configuration and policy semantics are reused.
   - **Impact on existing users:** SQL syntax, persistence and existing 
CREATE/ALTER admission remain unchanged. Connector plugin API advances from 
43.0 to 44.0; rebuild external connector plugins against the new API before 
deployment. Built-in plugins are rebuilt with the FE. Static driver, MySQL URL 
and redaction declarations are preserved through every builder.
   - **Behavior change:** Security declarations snapshot caller-owned arrays 
instead of retaining mutable inputs, and the plugin version gate requires API 
44.0. New endpoint behavior is available through the standalone utility and is 
not automatically enabled on existing catalog DDL.
   
   ### Testing
   
   - Standard run-fe-ut.sh: CatalogEndpointSecurityTest (36 cases), existing 
PluginDrivenExternalCatalogSsrfGateTest (88) and 
PluginDrivenExternalCatalogDriverUrlGateTest (19); all 143 pass without 
failures, errors or skips.
   - Complete fe-connector-spi suite: 40 classes, 187 cases; all pass. This 
includes both compiled signature baselines, API version 44.0, and existing 
declaration tests. The plugin baseline contains 467 signatures; the metadata 
baseline remains unchanged.
   - build.sh --fe with Checkstyle enabled and Maven build cache disabled: 
passed. All 92 FE Checkstyle reports contain zero errors. Packaged classes 
match the tested compiled classes, and all 36 shipped connector API manifests 
report 44.0.
   - New tests use a recording connection seam and issue no external requests. 
They validate parsing, policy invocation and hook release; they do not claim to 
verify the proprietary policy SDK's IP rules.
   
   ### Notes for Reviewers
   
   The configuration-aware provider method defaults to its existing static 
surface, keeping registration-time secret and driver declarations intact. The 
utility creates no connector, loads no driver and parses no source-specific 
JDBC or filesystem configuration. Later PRs will integrate CREATE/ALTER 
ordering and per-catalog configuration selection; runtime requests, redirects, 
discovery and asynchronous refresh require separate coverage. This branch 
starts directly from master and includes no CatalogMgr lifecycle changes.
   
   ### Release note
   
   Connector plugin API advances to 44.0. Rebuild external connector plugins 
for this FE version. This foundation change does not switch existing catalog 
SQL to the new admission utility.
   
   ### Check List (For Author)
   
   - Behavior changed: Yes (see Details)
   - Does this need documentation: No user documentation change; the developer 
contract is documented in this PR.
   - Pre-submission status: Ready: 330 unit cases, strict FE Checkstyle, FE 
build and packaged API/class checks passed; complete local self-review has no 
unresolved findings.
   
   ### AI Disclosure
   
   - Tool: Codex
   - Generated: Code, tests and this description.
   - Human review: Pending. The coding agent completed local self-review; 
independent human review has not been claimed.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to