-
Notifications
You must be signed in to change notification settings - Fork 186
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
400 Headers Missing When Firing Multiple Alerts via HTTP Post #375
Comments
Simple http server used as aws lambda:
Config used:
|
I'm not sure the Lock solved the issue after all, I'm updating the Loki output to work with Grafana Logs (SaaS), and I'm facing this issue:
|
It might need a refactor at this point. It seems like because there are 2
methods that can manipulate the headers there is definitely a non zero
chance one might beat the other. Wondering if the post call can accept the
headers and just do it locally in scope. If you move the lock unlock into
the Loki client I assume it fixes it?
…On Wed, Nov 2, 2022 at 7:49 AM Thomas Labarussias ***@***.***> wrote:
I'm not sure the Lock solved the issue after all, I'm updating the Loki
output to work with Grafana Logs (SaaS), and I'm facing this issue:
2022/11/02 12:47:48 [ERROR] : Loki - authentication error (401): {"status":"error","error":"authentication error: no credentials provided"}
2022/11/02 12:47:48 [ERROR] : Loki - authentication error
2022/11/02 12:47:48 [INFO] : Loki - Post OK (204)
2022/11/02 12:47:48 [INFO] : Loki - Post OK (204)
—
Reply to this email directly, view it on GitHub
<#375 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2XKELHBT5T5M6SEWHV4JZLWGJILPANCNFSM6AAAAAAROEFM6Y>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes, your first solution by locking at output level seems the only way for now. Sorry for having led you in a wrong direction. |
@bc-sb can you submit a new PR or do you want me to do it? |
@Issif sorry...last week got away from me...so you want the original version I posted put up for PR? If so, I can certainly quickly get that done. |
I think it's the better for now, adding the mutex in each concerned output. Another solution would take much more time and refacto. I adding new outputs since your first draft, take care. Thanks |
Describe the bug
When testing the falco/spyderbat integration we were seeing 400's header missing
How to reproduce it
setup a simple http service with a nonzero delay and a required header and point the webhook integration at it and fire 2 test events
Expected behaviour
200 responses for both request
Screenshots
Environment
Saw first in aws hosted kubernetes, but able to reproduce locally
Kubernetes helm chart and local build from source
Additional context
The text was updated successfully, but these errors were encountered: