github-actions[bot] commented on code in PR #62111:
URL: https://github.com/apache/doris/pull/62111#discussion_r3122420188
##########
fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java:
##########
@@ -1739,7 +1739,7 @@ private boolean loadTxnCommitImpl(TLoadTxnCommitRequest
request) throws UserExce
if (request.isSetAuthCode()) {
// TODO: deprecated, removed in 3.1, use token instead.
} else if (request.isSetToken()) {
- checkToken(request.getToken());
+ checkTokenOrThrow(request.getToken());
Review Comment:
This only runs when `auth_code` is absent, but several current callers of
these same RPCs still populate deprecated `auth_code` and therefore skip this
branch entirely. For example, `be/src/load/group_commit/group_commit_mgr.cpp`
and `be/src/load/group_commit/wal/wal_table.cpp` both call `__set_auth_code(0)`
before setting `token`, and routine-load requests go through `KafkaTaskInfo ->
task.auth_code -> set_request_auth()` with `auth_code == 0`. Those requests
still take the `isSetAuthCode()` branch above and accept commit/rollback
without validating either credential, so the PR's stated fix is still bypassed
on real production paths.
--
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]