-
Notifications
You must be signed in to change notification settings - Fork 113
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
How to run revad with TLS enabled #1962
Comments
While it seems to be impossible to run revad with https directly, it does refer to itself with https for instance here: So should revad always be run behind a TLS-offloading proxy, then? Or am I missing something? |
I think it's probably easier to include https support in reva than to tell people (including myself with the ocm-test-suite) to run a separate proxy. I'll see if I can make it work. |
In starting the grpc server and starting the http server we would then probably just use s.ServeTLS instead of |
Making good progress with this in the pass-ocm-test-suite branch and the 'revad' docker image in the dev branch of ocm-test-suite. Now seeing:
|
Next error:
|
Also seeing
before that |
Ah, this is because of https://github.com/cs3org/reva/blob/v1.14.0/pkg/rgrpc/todo/pool/pool.go#L90 |
It's leading to quite a big diff because all grpc clients need to know the filename of the grpc server's public certificate, but I seem to have a working version now. |
aah wait, I could just have done tlsconf := &tls.Config{InsecureSkipVerify: skipverify}
creds := credentials.NewTLS(tlsconf)
return grpc.Dial(conf.Host, grpc.WithTransportCredentials(creds)) like reva-cli does... hm that is probably preferable over such a big refactor |
Ah but that wouldn't have avoided the refactor, you would still need to know whether to connect securely or insecurely, so you would still need to pass at least a boolean around. |
There is some problem where revad closes its connection to itself, not sure why. For the ocm-test-suite t's important to have tls on http but maybe not so important to have it on grpc. I therefore parked the grpc-with-tls work in a https://github.com/michielbdejong/reva/tree/grpc-with-tls. In the context of the ocm-test-suite, I'll continue in the https://github.com/michielbdejong/reva/tree/pass-ocm-test-suite with tls for http but not for grpc. |
Settings for GRPC have been added in Reva edge in this PR: #3332 |
Can I run revad with a TLS certificate for grpc and https? If so, how?
I searched for this in the docs and in the code but couldn't find how to do it.
The text was updated successfully, but these errors were encountered: