Skip to content

Commit ce0c885

Browse files
committed
🐛 Sentry signature checks
1 parent 18f894e commit ce0c885

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _verify_signature(body: bytes, header: str | None) -> None:
4848
if not header:
4949
raise HTTPException(status_code=401, detail="Missing sentry-hook-signature")
5050
expected = hmac.new(SENTRY_CLIENT_SECRET.encode(), body, hashlib.sha256).hexdigest()
51-
logger.info(f"Signature check — expected: {expected!r}, received: {header!r}")
51+
logger.info(f"Signature check — secret repr: {SENTRY_CLIENT_SECRET!r}, expected: {expected!r}, received: {header!r}")
5252
if not hmac.compare_digest(expected, header):
5353
raise HTTPException(status_code=401, detail="Invalid webhook signature")
5454

0 commit comments

Comments
 (0)