-
Notifications
You must be signed in to change notification settings - Fork 186
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
OCM_OCM_PROVIDER_AUTHORIZER_VERIFY_REQUEST_HOSTNAME must be always set to false
#10355
Comments
@wkloucek could you help run it in a minikube on mac
What should I add for the ocm? |
@wkloucek Can you share the providers.json file you're using? |
|
Ok, I guess there a multiple issues at play here:
See: https://github.com/cs3org/reva/blob/edge/pkg/ocm/provider/authorizer/json/json.go#L171
|
Actually, the proxy tries to set the But does Additionally in many setups you can not really rely on the fact the IP which a DNS lookup resolves to is actually the IP you'll see in a client connection from that very same service. |
💯
From what what I understood, it might do so only in very constrained environments (no reverse proxies (which is not recommend from oCIS from what I remember). How are we going forward? This are the options in descending order of my preference:
|
I am fine with 1. |
./services/ocm/pkg/config/config.go:
That options was already introduce in 5.0. So to play by our own rules we would need to go through a deprecation cycle and could only remove the setting in the next major release after 7.0 @micbar Does that really make sense here? Is ocm really supposed to be working in 5.0? |
The feature never really worked correctly and it's added value is at least arguable. Fixes #10355
The feature never really worked correctly and it's added value is at least arguable. Fixes #10355
Describe the bug
I couldn't find a configuration where I can set
OCM_OCM_PROVIDER_AUTHORIZER_VERIFY_REQUEST_HOSTNAME
totrue
(or leave it on the defaulttrue
for newer oCIS versions)Steps to reproduce
verfiyHostnameIncomingRequests
totrue
Expected behavior
I'm still able to perform the OCM invitation flow.
Actual behavior
The OCM invitation flow fails:
Setup
oCIS 6.5 with the oCIS chart and deployment example from owncloud/ocis-charts#701
Additional context
The text was updated successfully, but these errors were encountered: