Skip to content
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

Websockets defaults to wss when connecting unsecurely #8932

Closed
garnser opened this issue Dec 16, 2020 · 1 comment
Closed

Websockets defaults to wss when connecting unsecurely #8932

garnser opened this issue Dec 16, 2020 · 1 comment

Comments

@garnser
Copy link

garnser commented Dec 16, 2020

ISSUE TYPE
  • Bug Report
SUMMARY

When using AWX in a non-ssl environment with a http URL it still prefers using wss:// rather than ws:/ causing SSL termination issues towards the end-client.

ENVIRONMENT
  • AWX version: 16.0.0
  • AWX install method: docker on linux
  • Ansible version: 2.9.15
  • Operating System: CentOS 8
  • Web Browser: Chrome
STEPS TO REPRODUCE
  1. Access the job view in your browser
  2. In your console you'll find
    WebSocket connection to 'wss://<IP>:8080/websocket/' failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR
EXPECTED RESULTS

Looking through the code I would expect that the websocket should default to a non-ssl connection, however it seams like there's some defaults which is hardcoded to https and there's documentation lacking as to wether this is modifiable using ENV vars or AWX settings for BROADCAST_WEBSOCKET_PROTOCOL

ACTUAL RESULTS

Websocket connection defaults to SSL (wss://).

ADDITIONAL INFORMATION
@jakemcdermott
Copy link
Contributor

jakemcdermott commented Dec 17, 2020

👋 Hello! Thanks for creating this issue, @garnser

I've merged a patch for this bug to devel and it'll be included with the next awx release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants