Skip to content

Conversation

yaroslavros
Copy link
Contributor

@yaroslavros yaroslavros commented Apr 17, 2020

Description

This change makes websockets follow the same certificate validation behaviour as HTTPS.

Motivation and Context

Without this change, websockets have to work over HTTP or always require valid TLS certificate even when ssl-upstream-insecure-skip-verify setting is set.
With this change, websockets TLS verification matches HTTPS.

How Has This Been Tested?

Made a build, verified that websockets now follow same certificate validation rules as HTTPS.

Checklist:

  • My change requires a change to the documentation or CHANGELOG.
  • I have updated the documentation/CHANGELOG accordingly.
  • I have created a feature (non-master) branch for my PR.

Signed-off-by: Yaroslav Rosomakho yaroslavros@gmail.com

Fixes #493

Signed-off-by: Yaroslav Rosomakho <yaroslavros@gmail.com>
Copy link
Member

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code change seems sensible, please update the changelog and then we can merge 🙂

@JoelSpeed JoelSpeed added the bug label Apr 18, 2020
…ecure-skip-verify

Signed-off-by: Yaroslav Rosomakho <yaroslavros@gmail.com>
@yaroslavros
Copy link
Contributor Author

yaroslavros commented Apr 18, 2020

Updated changelog as requested

Copy link
Member

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks

@steakunderscore steakunderscore merged commit 4d21b8a into oauth2-proxy:master Apr 19, 2020
Jing-ze pushed a commit to Jing-ze/oauth2-proxy that referenced this pull request Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Websockets always require valid upstream cert
3 participants