Skip to content

Comments

feat: add debug payload logging for troubleshooting#16

Merged
nickmarden merged 1 commit intomainfrom
feature/debug-payload-dump
Jan 27, 2026
Merged

feat: add debug payload logging for troubleshooting#16
nickmarden merged 1 commit intomainfrom
feature/debug-payload-dump

Conversation

@nickmarden
Copy link
Contributor

Add debug mode that dumps request/response payloads to stdout for both gatekeeperd and gatekeeper-relay. This helps diagnose webhook delivery issues in development and staging environments.

Enable via:

  • CLI: -debug-payloads flag
  • Env: GATEKEEPERD_DEBUG_PAYLOADS=true or GATEKEEPER_RELAY_DEBUG_PAYLOADS=true
  • Helm: debug.payloads: true in values.yaml

Bodies over 8KB are truncated to prevent log flooding. Warning is logged at startup when debug mode is enabled.

Add debug mode that dumps request/response payloads to stdout for both
gatekeeperd and gatekeeper-relay. This helps diagnose webhook delivery
issues in development and staging environments.

Enable via:
- CLI: -debug-payloads flag
- Env: GATEKEEPERD_DEBUG_PAYLOADS=true or GATEKEEPER_RELAY_DEBUG_PAYLOADS=true
- Helm: debug.payloads: true in values.yaml

Bodies over 8KB are truncated to prevent log flooding. Warning is logged
at startup when debug mode is enabled.
@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@nickmarden nickmarden merged commit c5bf192 into main Jan 27, 2026
9 checks passed
@nickmarden nickmarden deleted the feature/debug-payload-dump branch January 27, 2026 13:36
@github-actions
Copy link

Docker Images Built

Images are available for testing:

# gatekeeperd
docker pull ghcr.io/tight-line/gatekeeperd:pr-16-33f4fb2

# gatekeeper-relay
docker pull ghcr.io/tight-line/gatekeeper-relay:pr-16-33f4fb2

docker-compose.yml

GATEKEEPERD_IMAGE=ghcr.io/tight-line/gatekeeperd:pr-16-33f4fb2 \
RELAY_IMAGE=ghcr.io/tight-line/gatekeeper-relay:pr-16-33f4fb2 \
docker-compose --profile relay up

Helm (values override)

image:
  repository: ghcr.io/tight-line/gatekeeperd  # or gatekeeper-relay
  tag: "pr-16-33f4fb2"

Images expire ~15 days after PR closes.

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