mirror of
https://github.com/ghndrx/k8s-game-2048.git
synced 2026-02-10 06:45:07 +00:00
fix: Use hex encoding for webhook signature instead of base64
- Webhook handler expects hexdigest() format - Deploy workflow was using base64 encoding - This fixes the 401 signature validation error
This commit is contained in:
2
.github/workflows/deploy-dev.yml
vendored
2
.github/workflows/deploy-dev.yml
vendored
@@ -75,7 +75,7 @@ jobs:
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Generate HMAC signature for webhook security
|
# Generate HMAC signature for webhook security
|
||||||
SIGNATURE=$(echo -n "$PAYLOAD" | openssl dgst -sha256 -hmac "${{ secrets.WEBHOOK_SECRET }}" -binary | base64)
|
SIGNATURE=$(echo -n "$PAYLOAD" | openssl dgst -sha256 -hmac "${{ secrets.WEBHOOK_SECRET }}" | sed 's/^.* //')
|
||||||
|
|
||||||
# Send webhook
|
# Send webhook
|
||||||
HTTP_CODE=$(curl -s -o /tmp/webhook_response.json -w "%{http_code}" \
|
HTTP_CODE=$(curl -s -o /tmp/webhook_response.json -w "%{http_code}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user