-
Notifications
You must be signed in to change notification settings - Fork 294
TLS should use https scheme on a different port #1696
Comments
It seems that Snap only has GRPC TLS implementation but not Rest API implementation. I'm going to change this issue catalog to feature enhancement instead of a bug. |
Your post seems to indicate a deficit in Snap and a possibility for enhancement.
Right now If you propose automatic switching of REST API to HTTPS in case of TLS for GRPC then few more details need to be considered:
I do believe this subject is worth consideration, so perhaps you could come up with a RFC? |
@marcintao, very good questions. We need discussions on these. We can work on the RFC.
|
Could you tell more about your idea? Which API version: do you refer to? v1 or v2?
Nothing has changed here. Plugins are servers and are awaiting connection from
TLS for GRPC was implemented with mutual authentication in mind, it's already working. That's why |
@marcintao, thanks for your reply. As https are globally enabled not per operation, this posts as none issue unless we decided to run both HTTP and HTTPS at the same time. Currently, the main issue is: Non-GRPC plugins cannot be loaded with GRPC plugin TLS is enabled. snapteld has to be restarted in a different state in order to load both types of plugins. Did I miss anything? please share your thoughts if we can detect plugin types and act accordingly. |
When Snap is secured with TLS, the scheme should be HTTPS instead of HTTP. Usually, different ports are used for HTTPS and HTTP. Currently, when Snap started in TLS, multiplexing both HTTP and HTTPS requests on the same port does not work. The sample errors are:
The text was updated successfully, but these errors were encountered: