feat: handle Microsoft Graph subscription validation automatically#17
Merged
nickmarden merged 1 commit intomainfrom Jan 27, 2026
Merged
feat: handle Microsoft Graph subscription validation automatically#17nickmarden merged 1 commit intomainfrom
nickmarden merged 1 commit intomainfrom
Conversation
When creating or renewing a Microsoft Graph subscription, Graph sends a validation request with the validationToken as a query parameter and an empty body. Previously this would fail json_field verification since there was no body to parse. Now gatekeeper detects validationToken query params on json_field verifier routes and responds immediately with the token value, bypassing verification. This mirrors how Slack URL verification challenges are handled. This enables Graph webhook subscription setup without backend involvement, which is especially important in relay mode where latency could cause validation timeouts.
|
Docker Images BuiltImages are available for testing: # gatekeeperd
docker pull ghcr.io/tight-line/gatekeeperd:pr-17-66f793d
# gatekeeper-relay
docker pull ghcr.io/tight-line/gatekeeper-relay:pr-17-66f793ddocker-compose.ymlGATEKEEPERD_IMAGE=ghcr.io/tight-line/gatekeeperd:pr-17-66f793d \
RELAY_IMAGE=ghcr.io/tight-line/gatekeeper-relay:pr-17-66f793d \
docker-compose --profile relay upHelm (values override)image:
repository: ghcr.io/tight-line/gatekeeperd # or gatekeeper-relay
tag: "pr-17-66f793d"Images expire ~15 days after PR closes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



When creating or renewing a Microsoft Graph subscription, Graph sends a validation request with the validationToken as a query parameter and an empty body. Previously this would fail json_field verification since there was no body to parse.
Now gatekeeper detects validationToken query params on json_field verifier routes and responds immediately with the token value, bypassing verification. This mirrors how Slack URL verification challenges are handled.
This enables Graph webhook subscription setup without backend involvement, which is especially important in relay mode where latency could cause validation timeouts.