-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3752 from uselagoon/platform-viewer
feat: introduce platform-viewer role
- Loading branch information
Showing
27 changed files
with
527 additions
and
207 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 |
---|---|---|
|
@@ -665,6 +665,15 @@ mutation PopulateApi { | |
id | ||
} | ||
|
||
UserExamplePlatformViewer: addUser( | ||
input: { | ||
email: "[email protected]" | ||
comment: "platform viewer user" | ||
} | ||
) { | ||
id | ||
} | ||
|
||
LagoonDemoGroup: addGroup( | ||
input: { | ||
name: "lagoon-demo-group" | ||
|
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 |
---|---|---|
|
@@ -70,6 +70,15 @@ mutation PopulateApi { | |
id | ||
} | ||
|
||
UserExamplePlatformViewer: addUser( | ||
input: { | ||
email: "[email protected]" | ||
comment: "platform viewer user" | ||
} | ||
) { | ||
id | ||
} | ||
|
||
LagoonDemoGroup: addGroup( | ||
input: { | ||
name: "lagoon-demo-group" | ||
|
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ function is_keycloak_running { | |
function configure_user_passwords { | ||
|
||
LAGOON_DEMO_USERS=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]") | ||
LAGOON_DEMO_ORG_USERS=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]") | ||
LAGOON_DEMO_ORG_USERS=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]") | ||
|
||
for i in ${LAGOON_DEMO_USERS[@]} | ||
do | ||
|
@@ -30,6 +30,11 @@ function configure_platformowner { | |
/opt/keycloak/bin/kcadm.sh add-roles --uusername [email protected] --rolename platform-owner --config $CONFIG_PATH --target-realm Lagoon | ||
} | ||
|
||
function configure_platformviewer { | ||
echo Configuring platform viewer role | ||
/opt/keycloak/bin/kcadm.sh add-roles --uusername [email protected] --rolename platform-viewer --config $CONFIG_PATH --target-realm Lagoon | ||
} | ||
|
||
function configure_keycloak { | ||
until is_keycloak_running; do | ||
echo Keycloak still not running, waiting 5 seconds | ||
|
@@ -45,6 +50,7 @@ function configure_keycloak { | |
|
||
configure_user_passwords | ||
configure_platformowner | ||
configure_platformviewer | ||
|
||
echo "Config of Keycloak users done" | ||
} | ||
|
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
Oops, something went wrong.