Skip to content
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

Remove support for more than 1 domain per hub #460

Merged
merged 2 commits into from
Jun 10, 2021

Conversation

yuvipanda
Copy link
Member

Multiple domains were supported primarily to make sure hubs
are reachable by both datahub.mills.edu and mills.cloudbank.2i2c.cloud.
In practice, nobody uses the second URL, and this just confuses
the deployer code. datahub.mills.edu is a CNAME to
mills.cloudbank.2i2c.cloud - but that doesn't require the latter
to actually serve any content (over HTTP). CNAME is a DNS feature,
so we don't actually have to do anything wrt HTTP serving.

Includes slight refactoring to make auth.KeyProvider a little more
agnostic to just using with JupyterHubs - could perhaps be used
with #456 in providing
OAuth credentials for grafana too

Multiple domains were supported primarily to make sure hubs
are reachable by both datahub.mills.edu and mills.cloudbank.2i2c.cloud.
In practice, nobody uses the second URL, and this just confuses
the deployer code. datahub.mills.edu is a CNAME to
mills.cloudbank.2i2c.cloud - but that doesn't require the latter
to actually serve any content (over HTTP). CNAME is a DNS feature,
so we don't actually have to do anything wrt HTTP serving.

Includes slight refactoring to make auth.KeyProvider a little more
agnostic to just using with JupyterHubs - could perhaps be used
with 2i2c-org#456 in providing
OAuth credentials for grafana too
@yuvipanda yuvipanda requested review from GeorgianaElena and consideRatio and removed request for GeorgianaElena June 9, 2021 15:14
@yuvipanda
Copy link
Member Author

Ping to @GeorgianaElena since she worked on this first. Ping to @consideRatio since we talked about this during a video call yesterday

deployer/auth.py Outdated Show resolved Hide resolved
Copy link
Contributor

@damianavila damianavila left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 on the simplification!

deployer/auth.py Outdated Show resolved Hide resolved
@yuvipanda
Copy link
Member Author

Thanks, @damianavila!

@yuvipanda yuvipanda merged commit 1896edb into 2i2c-org:master Jun 10, 2021
yuvipanda added a commit to yuvipanda/pilot-hubs that referenced this pull request Jun 10, 2021
- Follow-up to 2i2c-org#458 -
  domain can not be list anymore with 2i2c-org#460
- Support components config for each cluster is also now present
  in the cluster.yaml config files, with
  2i2c-org#456. Even though
  that has not been merged yet, it is already deployed. This PR
  updates the schema to allow the support config.
yuvipanda added a commit to yuvipanda/pilot-hubs that referenced this pull request Jun 21, 2021
yuvipanda added a commit to yuvipanda/pilot-hubs that referenced this pull request Jul 6, 2021
This is no longer supported - one hub should just stay in
one domain.

Ref 2i2c-org#460
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants