-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Magpie: ensure that the MAGPIE_ADMIN_USERNAME
variable is respected
#418
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c92e6a0
jupyterhub: ensure username variables are respected everywhere
mishaschwartz 4fd9d01
ensure change is backwards compatible
mishaschwartz 7390245
unittest
mishaschwartz 1c8b615
Merge branch 'fix-node-details' into security-defaults
mishaschwartz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -84,19 +84,14 @@ export SERVER_LICENSE_URL='${__DEFAULT__SERVER_LICENSE_URL}' | |
# Those will not be set explicitly as defaults to ensure they are overridden explicitly by the instance. | ||
# These values would be detected only if the instance was configured using a copy of 'env.local.example'. | ||
export __DEFAULT__MAGPIE_SECRET=itzaseekrit | ||
#export __DEFAULT__MAGPIE_ADMIN_USERNAME=admin | ||
export __DEFAULT__MAGPIE_ADMIN_PASSWORD=qwertyqwerty! | ||
#export __DEFAULT__POSTGRES_PAVICS_USERNAME=postgres-pavics | ||
export __DEFAULT__POSTGRES_PAVICS_PASSWORD=postgres-qwerty | ||
#export __DEFAULT__POSTGRES_MAGPIE_USERNAME=postgres-magpie | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These might be relevant to warn as well. They should be used everywhere in the configs. |
||
export __DEFAULT__POSTGRES_MAGPIE_PASSWORD=postgres-qwerty | ||
#export __DEFAULT__GEOSERVER_ADMIN_USER=admingeo | ||
export __DEFAULT__GEOSERVER_ADMIN_PASSWORD=geoserverpass | ||
############################################################################# | ||
# Deprecated vars (for components in the ./deprecated-components directory) | ||
############################################################################# | ||
export __DEFAULT__TOMCAT_NCWMS_PASSWORD=ncwmspass | ||
#export __DEFAULT__CATALOG_USERNAME=admin-catalog | ||
export __DEFAULT__CATALOG_PASSWORD=qwerty | ||
export __DEFAULT__PHOENIX_PASSWORD=phoenix_pass | ||
export __DEFAULT__PHOENIX_PASSWORD_HASH=sha256:123456789012:1234567890123456789012345678901234567890123456789012345678901234 | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,6 @@ export MAGPIE_ADMIN_PASSWORD=qwertyqwerty! | |
export TWITCHER_PROTECTED_PATH=/twitcher/ows/proxy | ||
export [email protected] | ||
export CMIP5_THREDDS_ROOT=birdhouse/CMIP5/CCCMA | ||
export JUPYTERHUB_ADMIN_USERS="{'admin'}" # python set syntax | ||
export POSTGRES_PAVICS_USERNAME=postgres-pavics | ||
export POSTGRES_PAVICS_PASSWORD=postgres-qwerty | ||
export POSTGRES_MAGPIE_USERNAME=postgres-magpie | ||
|
@@ -426,6 +425,12 @@ export GEOSERVER_ADMIN_PASSWORD=geoserverpass | |
#c.Spawner.pre_spawn_hook = custom_create_dir_hook | ||
#" | ||
|
||
# Usernames that should be given admin access in jupyterhub | ||
# By default, only the MAGPIE_ADMIN_USERNAME user is given admin access. Update this variable only if you wish | ||
# to give additional users admin access by default. | ||
# Note that you can also give users admin access through the jupyterhub UI. | ||
#export JUPYTERHUB_ADMIN_USERS='{"${MAGPIE_ADMIN_USERNAME}", "othername"}' # python set syntax | ||
|
||
# Extra PyWPS config for **all** WPS services (currently only Flyingpigeon, Finch and Raven supported). | ||
# export EXTRA_PYWPS_CONFIG=" | ||
# [logging] | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this one remain to warn about it not being modified?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was debating whether to keep them or remove them....
I guess I was thinking that it's OK if the username stays as "admin" as long as we recommend they change the password.
But in the end, we're just warning the user that we recommend that it should be changed from the default. If they want to keep it, they can.
I guess I can put them back in