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

Support websocket per-endpoint auth #14879

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

chrismeyersfsu
Copy link
Member

@chrismeyersfsu chrismeyersfsu commented Feb 14, 2024

SUMMARY

Fixes node <--> node websocket auth

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API
AWX VERSION
awx: 23.6.1.dev132+ge753c8d6d6
ADDITIONAL INFORMATION

related to #14876

* asyncio.gather expects *tasks .. gotta unpack the list
* Channels doesn't really give you an interface to support per-endpoint
  auth ... so this adds one.
* The web browser and node <--> node communication have different auth
  needs.
@TheRealHaoLiu TheRealHaoLiu merged commit b643682 into ansible:devel Feb 14, 2024
23 checks passed
@willthames
Copy link
Contributor

I would really appreciate it if changes like this actually came with tests to start with - even if the original change didn't get caught by a failing test it would be good to have a test now that would have failed before this fix.

Saying "I'll add tests later" should mean "ok, we'll merge this PR when there are tests"

@chrismeyersfsu
Copy link
Member Author

@willthames that would ideal.

I've added tests here https://github.com/ansible/awx/pull/14886/files I wasn't able to complete TestWebsocketEventConsumer::test_authorized.

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

Successfully merging this pull request may close these issues.

4 participants