Commit 049db25
authored
feat: delete acl (#167)
* bump kafka-go to include acl apis
* add acl interfaces and aclinfo type stub
* pull latest kafka-go and use kafka-go aclresource type
* wip
* fix test
* fix typos
* get acls working
* getacls working
* upgrade cobra to latest
* finish separating get into separate subcommands
* remove unneeded variables
* wip
* pr feedback
* Revert "upgrade cobra to latest"
This reverts commit 7b8ee42.
* use getCliRunnerAndCtx in get acls
* more consistent variable names
* custom cobra type
* bring in new kafka-go
* support resource pattern type
* add support for acloperationtype and remove options for unknown
* improve descriptions
* support permissiontype and host filters
* add resource name filter and fix permission type formatting
* support principal filtering
* improve docs
* add examples
* remove comment
* remove TODOs that are complete
* remove TODOs that are complete
* update README
* fix test
* wip
* fix error handling
* error handling for zk
* more consistent error msg
* clean up createacl
* add TestBrokerClientCreateACLReadOnly
* improve zk tests
* run acl tests in ci
* enable acls for kafka 2.4.1 in ci
* fix zk tests
* skip TestBrokerClientCreateACLReadOnly on old versions of kafka
* try to debug
* handle nested errors from createacls
* operations -> operation
* operations -> operation
* remove setting log level in test
* clean up allowed types in help command
* fix merge conflict
* fix test
* add json annotations
* bump kafka-go to version on main
* wip
* basic tests
* start on getusers cmd
* add json annotations
* get users working
* wip
* add todos and fix type annotaitons
* improve test
* use CanTestBrokerAdminSecurity to feature flag test
* update README
* remove duplicate test from merge conflicts
* fix more merge conflicts
* create user working
* add uncommitted files
* start adding validation
* meta validation for users
* wip
* support dry run and skip confirm
* wip
* wip
* add more files
* resourcemta
* consistency checking for acls
* remove emacs backups
* remove user stuff
* remove diff from cluster.yaml file
* remove diff from topic file
* remove debug log
* smaller diff
* remove completed todos
* remove unused error helper
* add missing meta file
* skip ACL tests when ACLs cannot be used due to kafka version limitations
* fix loadacls test
* add more todos
* add validation and set defaults
* don't use ioutil
* move confirm to util package
* move confirm to util package
* add create to README
* use validation and setdefaults
* add example acl
* fix formatting in readme
* use released version of kafka-go
* fix spelling
* make invalid field more obvious
* fix dryrun and skip confirm
* stub out delete cli and implement admin
* integrate cli and add docs
* improve formatting
* add read only test
* improve documentation
* fix docstring and error message
* move things into new acl package and start on dry run
* finish dry run
* support deleting multiple acls
* add test for multiple deletes
* allow deleting multiple acls
* remove starting deletion log
* harden test
* remove unused highlighter
* rearrange plan for deletion
* fix grammar
* fix merge conflict1 parent e9241f4 commit 049db25
File tree
12 files changed
+1319
-11
lines changed- cmd/topicctl/subcmd
- pkg
- acl
- admin
- cli
12 files changed
+1319
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
167 | 178 | | |
168 | 179 | | |
169 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 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 | + | |
0 commit comments