Implement JupyterHub deployment with GEOAxis authentication#1368
Merged
rfecher merged 1 commit intolocationtech:masterfrom Aug 13, 2018
Merged
Implement JupyterHub deployment with GEOAxis authentication#1368rfecher merged 1 commit intolocationtech:masterfrom
rfecher merged 1 commit intolocationtech:masterfrom
Conversation
2d92ae7 to
07c77ee
Compare
rfecher
approved these changes
Aug 13, 2018
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Current deployment explanation:
Deployment modifies single jupyter server deployment (bootstrap-jupyter) while keeping that deployment option intact. My thought behind this was the single server deployment option still provides the quickest and easiest route for someone just trying to demo what geowave + jupyter is capable of with the least additional configuration needed. JupyterHub with GEOAxis seemed a more specific deployment route that wouldn't traditionally be used by common public users.
For JupyterHub:
Current deployment assumes GEOAxis OAuthenticator will be used along with ssl certificates. These settings are configured within the jupyterhub_config.py. JupyterHub is configured as a Upstart service and started when the bootstrapping is complete. When JupyterHub starts it will run jupyterhub_config.py which loads ssl settings and sets up the user whitelist from files mentioned below.
Files used by the runtime configuration are expected to be located in the following directory:
/srv/jupyterhub/Some examples of runtime config files would be the ssl certs and user list
/srv/jupyterhub/ssl/ssl.key/srv/jupyterhub/ssl/ssl.cert/srv/jupyterhub/userlist/srv/jupyterhub/env_blacklistFiles used for configuring jupyterhub are expected to be in the following directory:
/etc/jupyterhub/The jupyterhub config file will be located here, and the user is expected to put OAuth environment variables in a file here if they want the Upstart service to recognize them.
/etc/jupyterhub/oauth_env.shWhen the Upstart service starts it will source conda + oauth dependencies to make sure they are available to the jupterhub daemon.
Questions about deployment: