-
Notifications
You must be signed in to change notification settings - Fork 27
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
1203 add config option to disable ssl #1255
1203 add config option to disable ssl #1255
Conversation
✅ Deploy Preview for papaya-valkyrie-395400 canceled.
|
9f4a317
to
9874c1d
Compare
c09506f
to
04b4c97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UI code looks good to me
|
||
val config = VuuServerConfig( | ||
VuuHttp2ServerOptions() | ||
//only specify webroot if we want to load the source locally, we'll load it from the jar | ||
//otherwise | ||
.withWebRoot(webRoot) | ||
.withSsl(certPath, keyPath) | ||
.withSsl(sslEnabled, certPath, keyPath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to not call this method at all, or indeed call .withUnencryptedWs()?
It looks a bit odd calling withSsl, passing in certs, but not using them....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Decided to not call this when ssl is disabled. Can always add another method to do withUnencryptedWs or withoutWss
if/when needed. Let me know what you think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, that is fine to get this over the line. Can we add another ticket to make opting out of Ssl explicit pls?
The reason I say is if you don't have to choose explicitly one or the other, we may well find lots of poeple deploying unencrypted websockets or http connections without really understanding they've done that.
It would be good to have a project under the examples/ folder that has unencrypted websockets/http and explains in a readme what our intended use of this would be (i.e. only in containerized environments where the ssl termination occurs in a sidecar setup at the pod level.)
As said, am happy to approve for now, but lets create another ticket to track this.
Chris
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah makes sense. Let me do that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: #1258
04b4c97
to
13ae49f
Compare
13ae49f
to
d652bdf
Compare
Summary of the changes:
ssl
in the demo app by setting the propertyvuu.ssl
totrue/false
.build:app:insecure
orbuild:app -- --insecure
. Or if thevuuConfig
is to be directly used then either specify thewebsocketUrl
directly or set thessl
property so the fallback/default websocket url reflects the required protocol (ws
vswss
).