-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shell): add alias to enable RBAC and GUI-auth
- Loading branch information
Showing
6 changed files
with
35 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
# ensure to source this file, not run it | ||
export KONG_ENFORCE_RBAC=on | ||
export KONG_ADMIN_GUI_AUTH=basic-auth | ||
export KONG_ADMIN_GUI_SESSION_CONF='{"secret":"pongo","storage":"kong","cookie_secure":false}' | ||
export KONG_ADMIN_GUI_URL=http://localhost:8002/ | ||
|
||
echo "RBAC and GUI-auth have been enabled, restart Kong for it to take effect" | ||
echo " GUI user: 'kong_admin'" | ||
echo " GUI pwd : '$KONG_PASSWORD'" | ||
echo " GUI url : '$KONG_ADMIN_GUI_URL' (use 'pongo expose' to access the GUI from the host)" | ||
echo "" | ||
echo "The password should also to be used as 'Kong-Admin-Token' on API requests." |
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