Skip to content

Commit

Permalink
Add permission for reading workspaces (#50)
Browse files Browse the repository at this point in the history
* add permission for reading workspaces

* fix permission setup for test
  • Loading branch information
HenryT-CG authored Jul 13, 2024
1 parent 481078b commit 47f1de1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@ app:
spec:
permissions:
announcement:
read: permission on all GET requests and POST search
read: permission on all GET requests and POST search including assigned meta data
write: permission on PUT, POST, PATCH requests, where objects are saved or updated
delete: permission on all DELETE requests
product:
read: permission on all GET requests and POST search
read: permission to read available products/applications
workspace:
read: permission to read available workspaces
keycloak:
client:
enabled: true
Expand Down
6 changes: 4 additions & 2 deletions src/main/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ app:
spec:
permissions:
announcement:
read: permission on all GET requests and POST search
read: permission on all GET requests and POST search including assigned meta data
write: permission on PUT, POST, PATCH requests, where objects are saved or updated
delete: permission on all DELETE requests
product:
read: permission on all GET requests and POST search
read: permission to read available products/applications
workspace:
read: permission to read available workspaces
keycloak:
client:
enabled: true
Expand Down
2 changes: 1 addition & 1 deletion src/main/openapi/openapi-bff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ paths:
get:
x-onecx:
permissions:
announcement:
workspace:
- read
tags:
- AnnouncementInternal
Expand Down
2 changes: 2 additions & 0 deletions src/test/resources/mockserver/permissions.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"delete"
],
"product": ["read"],
"workspace": ["read"],
"permissions": [
"admin-write",
"admin-read"
Expand Down Expand Up @@ -51,6 +52,7 @@
"read"
],
"product": ["read"],
"workspace": ["read"],
"permissions": [
"admin-write",
"admin-read"
Expand Down

0 comments on commit 47f1de1

Please sign in to comment.