HTTP trigger - is the Host header ignored? #3683
Unanswered
fabricebrito
asked this question in
Q&A
Replies: 1 comment
-
Looking at argo-events/pkg/sensors/triggers/http/http.go Lines 148 to 152 in 9e888c7 request.Host and request.URL.Host (not sure it's needed) should be set if Host is in trigger.Headers
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use the HTTP trigger to POST requests to knative serving services. For that I need to set the
Host
header:The trigger logs
policy application resulted in failure. http response status 404 is not allowed
This works:
kubectl run -it --rm test-curl --image=curlimages/curl -- curl -H "Host: execute.cool-api.example.com" http://knative-local-gateway.istio-system.svc.cluster.local/ns1/cool-endpoint
My guess is that the http client used sets the Host and doesn't allow setting it via the trigger configuration.
Is my guess correct or am I doing something wrong?
Could this be a feature request for Argo Events HTTP trigger?
Beta Was this translation helpful? Give feedback.
All reactions