-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve users block and allow custom user ACLs (#14)
- Loading branch information
Showing
18 changed files
with
471 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
coverage: | ||
status: | ||
patch: | ||
default: | ||
enabled: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/resources/plans/custom-service-acls-apply-output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Executing apply... | ||
|
||
Applying: [CREATE] | ||
|
||
+ [ACL] test-service-0 | ||
+ resource_name: kafka. | ||
+ resource_type: TOPIC | ||
+ resource_pattern: PREFIXED | ||
+ resource_principal: User:test | ||
+ host: * | ||
+ operation: READ | ||
+ permission: ALLOW | ||
|
||
|
||
Successfully applied. | ||
|
||
[SUCCESS] Apply complete! Resources: 1 created, 0 updated, 0 deleted. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"topicPlans": [], | ||
"aclPlans": [ | ||
{ | ||
"name": "test-service-0", | ||
"aclDetails": { | ||
"name": "kafka.", | ||
"type": "TOPIC", | ||
"pattern": "PREFIXED", | ||
"principal": "User:test", | ||
"host": "*", | ||
"operation": "READ", | ||
"permission": "ALLOW" | ||
}, | ||
"action": "ADD" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
services: | ||
test-service: | ||
type: application | ||
principal: User:test | ||
|
||
customServiceAcls: | ||
test-service: | ||
read-all-kafka: | ||
name: kafka. | ||
type: TOPIC | ||
pattern: PREFIXED | ||
host: "*" | ||
principal: User:test | ||
operation: READ | ||
permission: ALLOW |
17 changes: 17 additions & 0 deletions
17
src/test/resources/plans/custom-user-acls-apply-output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Executing apply... | ||
|
||
Applying: [CREATE] | ||
|
||
+ [ACL] test-user-0 | ||
+ resource_name: kafka. | ||
+ resource_type: TOPIC | ||
+ resource_pattern: PREFIXED | ||
+ resource_principal: User:test | ||
+ host: * | ||
+ operation: READ | ||
+ permission: ALLOW | ||
|
||
|
||
Successfully applied. | ||
|
||
[SUCCESS] Apply complete! Resources: 1 created, 0 updated, 0 deleted. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"topicPlans": [], | ||
"aclPlans": [ | ||
{ | ||
"name": "test-user-0", | ||
"aclDetails": { | ||
"name": "kafka.", | ||
"type": "TOPIC", | ||
"pattern": "PREFIXED", | ||
"principal": "User:test", | ||
"host": "*", | ||
"operation": "READ", | ||
"permission": "ALLOW" | ||
}, | ||
"action": "ADD" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
users: | ||
test-user: | ||
principal: User:test | ||
|
||
customUserAcls: | ||
test-user: | ||
read-all-kafka: | ||
name: kafka. | ||
type: TOPIC | ||
pattern: PREFIXED | ||
host: "*" | ||
operation: READ | ||
permission: ALLOW |
5 changes: 5 additions & 0 deletions
5
src/test/resources/plans/invalid-missing-user-principal-output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Generating execution plan... | ||
|
||
[ERROR] Missing required configuration: Missing principal for user test-user | ||
|
||
[ERROR] An error has occurred during the planning process. No plan was created. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
users: | ||
test-user: | ||
roles: | ||
- reader |
Oops, something went wrong.