Commit fdb47c7
authored
feat: replace Redpanda Admin API with Kafka SCRAM API for user management (#2325)
Replace all Redpanda Admin API calls in the user service (v1, v1alpha2,
and REST handlers) with Kafka SCRAM protocol operations
(DescribeUserSCRAMCredentials / AlterUserSCRAMCredentials). This removes
the dependency on the Redpanda Admin API for user management, making the
user service work across Redpanda and non-Redpanda Kafka clusters.
- Add DescribeUserSCRAMCredentials and AlterUserSCRAMs to console servicer
- Add NewConnectErrorFromKafkaError helper for Kafka error translation
- ListUsers now uses DescribeUserSCRAMCredentials and returns mechanism
- CreateUser/UpdateUser use AlterUserSCRAMs with UpsertSCRAM
- DeleteUser describes credentials first, then deletes all mechanisms
- REST handlers no longer gate behind RedpandaClientProvider
- Remove HasRedpandaAPI from user endpoint compatibility checks
- Update proto annotations from API_REDPANDA_ADMIN to API_KAFKA
- Add unit tests using kfake and update integration tests1 parent c4563b9 commit fdb47c7
File tree
18 files changed
+1112
-390
lines changed- backend/pkg
- api
- connect
- errors
- integration
- service/user
- v1alpha2
- v1
- console
- protogen/redpanda/api/dataplane
- v1alpha2
- v1
- frontend/src/protogen/redpanda/api/dataplane
- v1alpha2
- v1
- proto/redpanda/api/dataplane
- v1alpha2
- v1
18 files changed
+1112
-390
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
24 | 38 | | |
25 | 39 | | |
26 | 40 | | |
| |||
78 | 92 | | |
79 | 93 | | |
80 | 94 | | |
81 | | - | |
82 | | - | |
| 95 | + | |
83 | 96 | | |
84 | 97 | | |
85 | 98 | | |
| |||
0 commit comments