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

/etc/hosts management #32

Closed
nico-loeber opened this issue Apr 24, 2022 · 5 comments
Closed

/etc/hosts management #32

nico-loeber opened this issue Apr 24, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request
Projects
Milestone

Comments

@nico-loeber
Copy link
Contributor

Currently the hosts management is skipped when starting a project via the plugin, as this is a non interactive process and entering the sudo password is required for this step.
Another problem is, that using ddev inside wsl the host entry needs to be set in Windows and not the WSL environment.
The ddev integration plugin should have all required information and permissions to do the /etc/hosts management bypassing the ddev internal one to allow a better OS compatible permission management and a better WSL integration.

@nico-loeber nico-loeber added the enhancement New feature or request label Apr 24, 2022
@nico-loeber nico-loeber added this to the v1.0.0 milestone Apr 24, 2022
@nico-loeber nico-loeber added this to New in Development via automation Apr 24, 2022
@nico-loeber nico-loeber moved this from New to To do in Development Apr 25, 2022
@nico-loeber nico-loeber self-assigned this Apr 25, 2022
@nico-loeber
Copy link
Contributor Author

This issue might be solved or at least by changing the way DDEV is used inside WSL.
As I currently discuss this with @rfay, I will delay the work on this issue.

@nico-loeber nico-loeber moved this from To do to Waiting / Blocked in Development May 1, 2022
@nico-loeber
Copy link
Contributor Author

Installing DDEV like like described in this documentation, solves the WSL part of this issue.
It is based on this concept: https://gist.github.com/nico-loeber/6d6e8261827c5e4efa4ccf5b5cd04140

Sadly this way will probably no become the officially supported one.

@rfay
Copy link
Collaborator

rfay commented May 8, 2022

Note that /etc/hosts is not a part of the picture when using *.ddev.site, only when using additional_fqdns or an alternate tld. The hosts file does not have to be touched either on Windows or inside WSL2 in the "normal" workflow.

I would like to see dual-hosts-file management for the non-ddev.site situation though in

@nico-loeber
Copy link
Contributor Author

Created the issue ddev/ddev#3818 for this.

@rfay, sorry noticed your comment just after creating the issue. In case I normally don't need to touch the hosts file, there might be a misconfiguration or misunderstand on my side. Lets discuss this in the ddev issue.

@nico-loeber
Copy link
Contributor Author

As @rfay already stated there is no need for editing host files in common sitations.
The problem we encountered here was that the resolution of *.ddev.site was rejected by the router for sercurity reasons.
This behavior is explained in the DDEV documentation: https://ddev.readthedocs.io/en/latest/users/troubleshooting/#dns-rebinding-prohibited
There seems to be no need to resolve this issue on the plugin side, so this issue is closed.

Development automation moved this from Waiting / Blocked to Done May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants