Repository navigation
Answer 422 with the issuer's reason when a secret is missing - #80
Merged
Merged
Conversation
czpython
force-pushed
the
claude/issuer-refusal-422-08395b
branch
2 times, most recently
from
October 19, 2026 19:39
de4f365 to
ce9fd52
Compare
When a secret is missing, the issuer answers 4xx: the GitHub App is not on the repo, or the vault row is revoked. A retry gets the same answer, so the host create now fails at once with 422 and the issuer's reason. 5xx and transport failures keep the 502.
czpython
force-pushed
the
claude/issuer-refusal-422-08395b
branch
from
October 22, 2026 14:50
ce9fd52 to
6435813
Compare
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 a secret is missing, the issuer answers
4xx: the GitHub App is not on the repo, or the vault row is revoked. A retry gets the same answer, soPOST /hostsnow fails at once with422,SECRET_MISSINGand the issuer's reason.5xxand transport failures keep the502.MissingSecretError, the name Druks gives the condition, is anIssuerErrorthat the API answers with422.Secret.fetchraises it with the body'sdetailon a4xx. A4xxbody withoutdetailis a wrong-shaped answer like any other.HostService.provisionmarks the host failed as before and lets the error through.service.pyon the way: the pool claim reads as one positive branch, and themark_failedcomment no longer names the 502.