-
Notifications
You must be signed in to change notification settings - Fork 1
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
WAZO-1760 add reverse proxy #29
base: master
Are you sure you want to change the base?
Conversation
Build succeeded.
|
URL template need to be updated too to support prefix. Otherwise I don't think this config is usable. |
Not sure to understand your comment, we made test with @bloom1 yesterday and it works. |
I think the reverse proxy is useful even if it's not used by phones right now. The phone control API needs to be available to users. I think using the reverse proxy from phones is a different story and can be done later if needed. |
Nope we need it for phones who are external to the network. With the DND feature we need to have a reverse proxy. |
Yep it's linked to the DND feature i checked with @bloom1 yesterday. |
* The proxyfix is very important here, because of the IP-based authorization. Without it, all requests coming from nginx are authorized by 127.0.0.1.
a1c4814
to
53be439
Compare
The URL templates in wazo-phoned do not need updating: they use |
Build failed.
|
There is a security problem with this PR though:
|
The correct solution for the security problem would be to make wazo-phoned listen only on 127.0.0.1 and never receive an outside request directly. But wazo-provd needs to be updated first to do that. An intermediate solution would be to make nginx listen also on ports 9498,9499 and redirect requests to wazo-phoned on another port. That way:
|
I'm not sure I understand which URL template inside wazo-phoned that refers to itself you talk?
That's what I don't understand: Why adding reverse proxy on wazo-phoned if wazo-provd cannot use it? If we don't change wazo-provd at the same time, then we add a dead code. Or maybe it's for really specific scenario like manual configuration? (JIRA ticket need to be more specific about goal of this change)
Alternative, you can add a configuration key to configure phoned to only accept X-Forward-For from a specific IP (nginx) |
For example this template: https://github.com/wazo-platform/wazo-phoned/blob/master/wazo_phoned/plugins/aastra/templates/aastra_input.jinja
I'm not sure. @bloom1 could you explain us? Is it related to DND synchronization? Is it simpler to do the provisioning plugin update after this is merged?
I don't see how to implement that behavior... Subclass |
ooh yeah, you're right, thanks
yes or something similar to: https://github.com/wazo-platform/xivo-lib-python/blob/master/xivo/http_helpers.py#L22 |
Jira-Issue: https://wazo-dev.atlassian.net/browse/WAZO-1759
Jira-Issue: https://wazo-dev.atlassian.net/browse/WAZO-1760