Commit e259a61
feat: add Kerberos authentication for Kafka (#762)
* added enum for either vector of autentication classes or kerberos secret name
* initial kerberos impl
* implement kerberos specifics
* wip: integration test
* revert complex enum and use parallel struct (CRD decision pending)
* call shell explicitly for kerberos probe to allow variable substitution
* working test
* revert class name change and formatting
* added validation
* linting
* more linting
* refactor: add kerberos to list of authentication classes instead of dedicated struct
* changelog
* reverted operator-rs ref and corrected test
* fixed changes due to operator-rs to 0.78.0
* added docs/example
* improved comments
* Update rust/crd/src/authentication.rs
Co-authored-by: Sebastian Bernauer <[email protected]>
* Update rust/crd/src/lib.rs
Co-authored-by: Sebastian Bernauer <[email protected]>
* Update rust/operator-binary/src/kafka_controller.rs
Co-authored-by: Sebastian Bernauer <[email protected]>
* Update rust/operator-binary/src/kafka_controller.rs
Co-authored-by: Sebastian Bernauer <[email protected]>
* fixed review suggestions
* formatting: new lines between enum elements
* review suggestions
* add use-client-tls dimension and cleanup test
* add constants for kerberos paths
* test: Update kerberos tests to always use TLS
* added check that TLS is enabled for Kerberos
* regenerate charts
* formatting
* corrected validation check
* Update rust/operator-binary/src/kerberos.rs
Co-authored-by: Sebastian Bernauer <[email protected]>
* use listener volume scope for kerberos volume and replace FQDN with listener in advertised listeners
* added custom iamge usage from previous merge from main
* Update rust/crd/src/authentication.rs
Co-authored-by: Siegfried Weber <[email protected]>
* remove unecessary test
* removed unused Error
* regenerate charts
* combine cases where internal tls is required
* working test with broker listeners instead of listener bootstrap
* add listener for bootstrapper
* removed duplicate check
* add bootstrap configs for client_auth as well
* use correct port in discovery for kerberos. Removed bootstrap changes for non-kerberos.
* use discovery in kerberos test
* added unit test for kerberos config
* added note about client connections and ports
* Update docs/modules/kafka/pages/usage-guide/security.adoc
Co-authored-by: Siegfried Weber <[email protected]>
* clarified comment
---------
Co-authored-by: Sebastian Bernauer <[email protected]>
Co-authored-by: Sebastian Bernauer <[email protected]>
Co-authored-by: Siegfried Weber <[email protected]>1 parent f82d8d8 commit e259a61
File tree
26 files changed
+1155
-74
lines changed- deploy/helm/kafka-operator/crds
- docs/modules/kafka/pages/usage-guide
- rust
- crd/src
- operator-binary/src
- tests
- templates/kuttl/kerberos
26 files changed
+1155
-74
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
568 | 572 | | |
569 | 573 | | |
570 | 574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
104 | 167 | | |
105 | 168 | | |
106 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
93 | 107 | | |
94 | 108 | | |
95 | 109 | | |
| |||
101 | 115 | | |
102 | 116 | | |
103 | 117 | | |
104 | | - | |
105 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
106 | 123 | | |
107 | 124 | | |
108 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
335 | 338 | | |
336 | 339 | | |
337 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
338 | 348 | | |
339 | 349 | | |
340 | 350 | | |
| |||
0 commit comments