Repository navigation
Commit 8898e15
[P3b-T01] commit 2: relocate fe-common security.authentication.* (13 classes) to fe-kerberos
Relocate the Hadoop authentication mechanism from fe-common package
org.apache.doris.common.security.authentication to the neutral leaf module
fe-kerberos (org.apache.doris.kerberos), making fe-kerberos the single source
of truth (D-017 / P3b commit 2 of 3).
Root: the auth machinery lived in fe-common, so connectors that cannot depend
on fe-common were cut off from it, and it was duplicated by a fe-kerberos facts
slice (AuthType). This collapses the fe-common copy into fe-kerberos.
Moved (git mv, history-preserving, package line changed): AuthenticationConfig,
ExecutionAuthenticator, HadoopAuthenticator, HadoopExecutionAuthenticator,
HadoopKerberosAuthenticator, HadoopSimpleAuthenticator,
ImpersonatingHadoopAuthenticator, KerberosAuthenticationConfig,
KerberosTicketUtils, PreExecutionAuthenticator, PreExecutionAuthenticatorCache,
SimpleAuthenticationConfig (+ moved tests AuthenticationTest,
KerberosTicketUtilsTest).
AuthType merge: the fe-common AuthType (mutable getCode/setCode/setDesc - all
dead, zero callers) is folded into the existing immutable fe-kerberos AuthType;
added isSupportedAuthType(String) (sole caller HiveTable), kept getDesc/fromString.
fe-common AuthType deleted.
Retargeted 41 consumer imports (24 fe-core main + 14 fe-core test + 3
be-java-extensions JNI scanners) common.security.authentication.* -> kerberos.*
(import-line only, no logic change - incl. the otherwise-forbidden
datasource.property.{storage,metastore} packages under the D-017 import-only
exception), with import blocks re-sorted to satisfy CustomImportOrder.
pom: fe-kerberos gains hadoop-common(provided)+guava+commons-lang3+lombok+
log4j-api (mirroring fe-common; leaf invariant intact - zero FE module deps);
fe-common gains a compile edge to fe-kerberos (re-provides the relocated classes
transitively to fe-core et al.); java-common gains an explicit fe-kerberos edge
for the BE-java scanner plugins.
Leaf invariant confirmed: none of the 13 classes import any non-kerberos doris
type (recon wf_d5566c5f-7b1, adversarially verified); build order already correct
(fe-kerberos before fe-common).
Verify: fe-kerberos 11/0 (incl. moved AuthenticationTest + KerberosTicketUtilsTest);
fe-core + java-common + 3 scanners test-compile BUILD SUCCESS; checkstyle 0;
connector import-gate exit 0; whole-repo grep common.security.authentication = 0.
docker kerberos e2e NOT run (the real gate; lands after commit 3 unifies the two
HadoopAuthenticator interfaces + deletes the fe-filesystem-hdfs copies).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_011mTrPcvMZtFjsxWJM5TRnG1 parent 4a740e1 commit 8898e15
60 files changed
Lines changed: 127 additions & 136 deletions
File tree
- fe
- be-java-extensions
- hadoop-hudi-scanner/src/main/java/org/apache/doris/hudi
- iceberg-metadata-scanner/src/main/java/org/apache/doris/iceberg
- java-common
- paimon-scanner/src/main/java/org/apache/doris/paimon
- fe-common
- src/main/java/org/apache/doris/common/security/authentication
- fe-core/src
- main/java/org/apache/doris
- catalog
- common
- connector
- datasource
- hive
- iceberg
- source
- property
- metastore
- storage
- test/java/org/apache/doris
- connector
- datasource
- hive
- iceberg
- property
- metastore
- storage
- fe-kerberos
- src
- main/java/org/apache/doris/kerberos
- test/java/org/apache/doris/kerberos
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments