Skip to content

fix: omit request headers and payload from CloudEvent 400 errors - #450

Merged
taeold merged 1 commit into
mainfrom
fix/cloudevent-400-errors
Dec 2, 2026
Merged

taeold merged 1 commit into
mainfrom
fix/cloudevent-400-errors

Conversation

@taeold

@taeold taeold commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Removes request.headers, request.get_data(), and full exception repr(...) strings from HTTP 400 CloudEvent error responses in both sync and ASGI CloudEvent handlers, returning only exception class names.

Adds regression tests in tests/test_cloud_event_functions.py confirming malformed CloudEvent requests do not reflect headers or payload bytes in 400 responses.

@taeold
taeold force-pushed the fix/cloudevent-400-errors branch from ba40edf to cd042b8 Compare December 1, 2026 19:59
@taeold
taeold merged commit 22843e4 into main Dec 2, 2026
52 checks passed
@taeold
taeold deleted the fix/cloudevent-400-errors branch December 2, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants