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

[FEATURE] DNS validation of reverse proxy configuration during config generation. #1220

Open
1 task done
dragon2611 opened this issue May 29, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@dragon2611
Copy link

dragon2611 commented May 29, 2024

What's needed and why?

If you have a service defined that uses reverse proxy and is set to proxy to hostname. If the hostname is not resolvable for whatever reason (Container down, DNS issue/whatever) then Nginx will refuse to start/config reload because it was unable to resolve the DNS name specified in the proxy pass directive. This will either prevent new configs being applied or in case of first start may prevent any services behind bunker web from being accessible.

Implementations ideas (optional)

See if it's possible to do a DNS resolution test either with the scheduler or from the Bunkerweb container(s) prior to loading the service config, If DNS resolution fails, set the service to draft/disabled and log the reason why. (Ideally also in the UI)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@dragon2611 dragon2611 added the enhancement New feature or request label May 29, 2024
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
None yet
Development

No branches or pull requests

1 participant