Skip to content

fix(https): stop logging the request body when callable data is missing - #1991

Draft
IzaakGough wants to merge 1 commit into
masterfrom
fix/callable-missing-data-logging
Draft

IzaakGough wants to merge 1 commit into
masterfrom
fix/callable-missing-data-logging

Conversation

@IzaakGough

@IzaakGough IzaakGough commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

When a callable or task queue function got a request without data, the warning log included the whole request body, before any auth check.

This logs the warning without the body.

Tested with a new unit test and by calling the validator directly. Not tested on a deployed function.

relnote: Callable and task queue functions no longer log the request body when it is missing data.

The check runs before auth, so the caller's body was written to the logs.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request ensures that the request body is not logged when it is missing the required data field, preventing potential leakage of sensitive information before authentication is verified. A corresponding unit test has been added to verify this behavior and ensure that secrets in the body are not logged. I have no additional feedback to provide as the changes are correct and well-tested.

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.

1 participant