You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
Issue details
When webhooks are sent with step-ca, no Content-Type header is added to the request. This should be Content-Type: application/json as stated in the webhook documentation here https://smallstep.com/docs/step-ca/webhooks/#requests. For more context, here is where headers are attached to a webhook request:
This will make it easier for webhook consumers to parse the request body. This should not effect clients from validating webhook signatures properly.
Do note this could cause a issues for current webhook implementation depending on how clients are parsing the current requests. Adding the Content-Type header could cause the expected body to change if they have existing support for JSON body types.
The text was updated successfully, but these errors were encountered:
Hello!
Issue details
When webhooks are sent with
step-ca
, noContent-Type
header is added to the request. This should beContent-Type: application/json
as stated in the webhook documentation here https://smallstep.com/docs/step-ca/webhooks/#requests. For more context, here is where headers are attached to a webhook request:certificates/authority/provisioner/webhook.go
Line 135 in 1b2d999
Example headers received from a
step-ca
webhook:Why is this needed?
This will make it easier for webhook consumers to parse the request body. This should not effect clients from validating webhook signatures properly.
Do note this could cause a issues for current webhook implementation depending on how clients are parsing the current requests. Adding the
Content-Type
header could cause the expected body to change if they have existing support for JSON body types.The text was updated successfully, but these errors were encountered: