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

Configure the TLD, change from ddev.local to something else #834

Closed
mdyoung3 opened this issue May 8, 2018 · 9 comments
Closed

Configure the TLD, change from ddev.local to something else #834

mdyoung3 opened this issue May 8, 2018 · 9 comments

Comments

@mdyoung3
Copy link

mdyoung3 commented May 8, 2018

Feature request:

Would it be possible to completely remove the .dev.local and replace it with another domain name? For example, dev.example.edu.

We have SSO that only works with one domain naming convention.

What you expected to happen:

Alter the YAML file to specific a completely different hostname.

@rfay rfay changed the title Complete Hostname overhaul Configure the TLD, change from ddev.local to something else May 8, 2018
@rfay
Copy link
Member

rfay commented May 8, 2018

Changed the title, hope it reflects your request.

@rfay
Copy link
Member

rfay commented May 11, 2018

I would love it if you could explain more why it's important to use a specific domain name. Most local dev environments don't matter what the FQDN is. Could you please explain more about that? Why would SSO matter for a local dev environment? Wouldn't putting a bogus site (like mysite.yoursso.domain) be a bad thing? And since it wasn't in DNS, wouldn't that break things?

@cweagans
Copy link
Contributor

It's really important for SAML authentication and similar authentication mechanisms. When you authenticate against a SAML identity provider (IDP), you are redirected to the IDP, you login, and then you get redirected back to a specific hostname set up in the IDP (with auth information in the URL in query params). Many SAML IDPs will not support redirecting back to an arbitrary URL, so your local environment has to live at a specific hostname. Since the IDP doesn't talk directly to the site you're logging into, not having the site in DNS doesn't affect the success.

@rickmanelius
Copy link
Contributor

Adding tags. Noting a somewhat related issue that could open the door for other FQDNs #416.

@mdyoung3
Copy link
Author

mdyoung3 commented May 12, 2018

To answer the question of why you would want SSO for local development, it largely boils down to being able to test application(s) in development. In these apps, the user logs in, are registered as a Drupal user via CAS, and the SSO username is used to fetch additional information via another server. These data are added to user fields--and used for other applications.

As to your second point, I am not sure exactly what you mean by 'bad thing.' We have gotten SSO to work on local environments before (via Vagrant and Lando) by using dev.*.edu, and the applications worked in those environments.

@mglaman
Copy link
Contributor

mglaman commented May 21, 2018

In https://github.com/drud/ddev/blob/06267550c4af2a96d595ec89507c9e59e67a4032/pkg/version/version.go#L50 I see

// DDevTLD defines the tld to use for DDev site URLs.
const DDevTLD = "ddev.local"

The other items are var. Does that mean they can be overridden by environment variables? Or are these only considered when building the tooling itself, not on configuration

@rfay
Copy link
Member

rfay commented May 21, 2018

The others can be overridden by make a build time. Doesn't mean that this shouldn't be configurable at runtime.

@rfay
Copy link
Member

rfay commented Jun 7, 2018

Closing this one in favor of #868, which solves this problem as well as others. Ever project can have a unique full URL.

@rfay rfay closed this as completed Jun 7, 2018
@rfay
Copy link
Member

rfay commented May 23, 2019

The TLD does become configurable in #1611, in ddev v1.9

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

No branches or pull requests

6 participants