Repository navigation
Conversation
When the issuer refuses a secret until a person acts, the exchange keeps its reason through the retry wait, and /authorize answers 422 with it instead of an empty 503. The proxy refuses the box's request with 403 and the reason as text/plain, which git prints as remote: lines, so a failed clone names the fix, for example that the GitHub App is not on the repo. Any other issuer failure still answers 503. Nothing is missing in that case, so MissingSecretError is now IssuerRefusedError, and POST /hosts answers ISSUER_REFUSED instead of SECRET_MISSING.
czpython
force-pushed
the
paulo/missing-secret-reason
branch
from
November 14, 2026 17:26
620bf9f to
af9f247
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.
What changed
When the issuer refuses a secret until a person acts, for example because the GitHub App is not on the repo, a box's request through the proxy failed with a bare
503. The exchange logged the issuer's reason and answered/authorizewith an empty503. The proxy then answered503 exchange unavailablewith no content type, so git printed only the status./authorizeanswers422with it while nothing valid is held. Any other issuer failure still answers503.403and the reason astext/plain. git prints such a body asremote:lines, so a failed clone names the fix.MissingSecretErroris nowIssuerRefusedError, andPOST /hostsanswersISSUER_REFUSEDinstead ofSECRET_MISSING.test_app.pyandtest_secrets.pyimport the module they test instead of four or more names from it.