gortiz commented on PR #19236: URL: https://github.com/apache/pinot/pull/19236#issuecomment-7416914404
A few compatibility and structure comments from a review pass: 1. `PinotTableRestletResource.java:524`: legacy GET-edit-PUT clients (scripts, Terraform/GitOps, older `TableAdminClient` versions) will now get `*****` back and their bare PUT fails with 400 for any table with a literal credential. That's fine for a minor release, but I don't think it's acceptable in a patch release. Could we add a controller config that keeps the previous behavior, on by default in master and off on the 1.6 patch line? 2. `BaseBasicAuthAccessControl.java:108-109`: `GetZnode` now needs an explicit grant, so the default `admin` principal with an empty permission list loses `/zk/*` and the UI ZooKeeper and instance views after the upgrade, and granting it turns off the empty-list wildcard. I'd keep the wildcard for `GetZnode`, or move this change to its own PR with a release note. 3. Batch jobs that load the table config from the controller (`BaseSegmentPushJobRunner.java:64-66`, `HadoopSegmentCreationMapper.java:152`), `ImportDataCommand` and the Flink `PinotSink` will receive `*****` and fail later with an unclear auth error. I haven't verified this end to end. It would be good to fail fast with a clear message when a fetched config holds a marker, plus a release note. 4. `PinotTableRestletResource.java:930-935`: `baseVersions` is optional, and when it's missing the current ZK version is used, so the envelope only prevents lost updates for clients that send it. Worth saying in the Javadoc, or making it required in the versioned media type. 5. There are now three credential-key classifiers (`TableConfigRedactionUtils.java:949`, `Obfuscator.java:70`, `AuditRedactor.java:77`). They will drift. One shared classifier in `pinot-spi` would keep them consistent. 6. `AuthenticationFilter.java:96`: the `protectAnnotatedOnly()` change makes deny-by-default custom `AccessControl` plugins also deny `@Authorize`-only endpoints, which covers most reads. It's an SPI behavior change independent of the rest, so I'd move it to its own PR with a release note. 7. `TableConfigRedactionUtils.java:79-93`: the possessive regexes with lookbehinds only have targeted tests. A property or fuzz test that checks the output for known credential values and that runtime stays linear in input length would make them safer to change. 8. The PR mixes redaction, a new media type and envelope, ZK multi-op commits, a basic-auth permission change, an `AuthenticationFilter` SPI change and UI changes. Splitting it would make review and backporting much easier: read-side redaction plus marker rejection first, then the envelope, `GetZnode` and `protectAnnotatedOnly` separately. -- 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]
