ansible / ansible/eda-server

Event streams

Open
#1,278 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
93
Forks
76
Avg merge
2d 12h
Merged PRs (30d)
14

Description

Hello,

How do we use event streams? I can send data to webhook and everything works as expected. Now I am trying to test event stream and not sure how to send data there.

I see that ALB has two rule - one for EDA UI and one for EDA event stream.. Both listen to the same host header though... My public_base_url is set to https://test.test.local/. This is the URL that we use to access UI and API.

UI is accessible - no issues. API access - no issues.

I replaced webhook with event stream... Webhook listened on port 5000 and was exposed to outside via Ingress port 443. Now, when I replace webhook with event stream... Where do I send data to with curl? I tried URL provided by event stream - no luck (event stream uses basic auth). All i get back it Error 405 Not Allowed.

My event stream URL looks like that:

https://test.test.local/eda-event-streams/api/eda/v1/external_event_stream/b2df3e1c-f35e-9056-8774-8783c22be0c9/post/

Curl:

```
curl -H 'Content-Type: application/json' -d "{\"message\": \"Run test\"}" https://test.test.local/eda-event-streams/api/eda/v1/external_event_stream/b2df3e1c-f35e-9056-8774-8783c22be0c9/post/ -k -u user:password
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported curl request against the event stream URL, then inspect the ALB and Ingress rules described in the issue. Trace how the event-stream endpoint handles its authenticated request and determine whether the 405 is expected or indicates a routing problem; done means the supported request and endpoint behavior are clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.