You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Follow the git credential approve/reject contract for helper-sourced credentials #3765
area/enterpriseAir-gapped/GHE configurability, registry proxy, rulesets, adoption playbook.status/acceptedHuman scope approval; verify the issue's approval record and review contact before work.type/enhancementLegacy classification name; prefer type/feature. Retained for history.
Proposals are welcome before implementation. For substantive changes, wait
for a responsible human maintainer to approve the scope and identify a review
contact. An automated recommendation, label alone, or silence is not approval.
See Contributing.
Is your feature request related to a problem? Please describe.
APM asks the Git credential helper for credentials (git credential fill) but never reports the outcome back. Git's documented contract is to call git credential approve after a credential works and git credential reject after the server rejects it (https://git-scm.com/docs/git-credential, "TYPICAL USE OF GIT CREDENTIAL"). Without reject, a helper such as Git Credential Manager keeps returning an expired credential, and users must clear it by hand.
Describe the solution you'd like
After a helper-sourced credential is accepted, call approve; after the server verifiably rejects THAT credential (classified credential_rejected, not network/TLS/throttle/not-found/sign-in redirect), call reject once, for exactly the host/path the credential was filled for.
Never call reject for env tokens, gh or az credentials, or on any ambiguous outcome; never on a host the classifier did not derive from the dependency reference.
Non-interactive in CI; failures of approve/reject are logged at debug and never fail the install.
Hermetic tests with a fake helper recording the protocol calls.
Describe alternatives you've considered
Call neither (0.36.1 behavior: safe, but dead credentials are never rotated). Approve only.
Additional context
Follow-up named in the 0.36.1 T1 auth brief (decision D3, supply-chain lens sec 10), approved 2026-11-17. Builds on the 0.36.1 auth outcome classifier (#3752).
Decision: approve
Area: project
Scope: Report helper-sourced credential outcomes back to Git per the git-credential contract: approve after the credential is accepted, and reject once after a verified credential_rejected outcome for that exact credential and host/path, through the auth outcome classifier and fallback chain owner.
Done when: A fake helper sees approve on success and reject only on a classified credential rejection; no approve/reject for env, gh or az credentials, ambiguous, network, TLS, throttle, not-found or sign-in-redirect outcomes, or underived hosts; helper protocol failures never fail an install; hermetic tests cover each case and auth docs are updated.
Out of scope: Interactive prompting changes; storing credentials APM did not obtain from the helper; non-Git credential stores.
Review contact: Daniel Meppiel (@danielmeppiel)
Context: this scope is the follow-up to decision D3 in the 0.36.1 auth design, approved by Daniel Meppiel (@danielmeppiel) on 2026-11-17. It builds on the 0.36.1 auth outcome classifier and fallback chain (#3752). PRs are held until v0.36.1 is tagged.
area/enterpriseAir-gapped/GHE configurability, registry proxy, rulesets, adoption playbook.status/acceptedHuman scope approval; verify the issue's approval record and review contact before work.type/enhancementLegacy classification name; prefer type/feature. Retained for history.
Activity
danielmeppiel commentedon Nov 17, 2026
Decision: approve
Area: project
Scope: Report helper-sourced credential outcomes back to Git per the git-credential contract: approve after the credential is accepted, and reject once after a verified credential_rejected outcome for that exact credential and host/path, through the auth outcome classifier and fallback chain owner.
Done when: A fake helper sees approve on success and reject only on a classified credential rejection; no approve/reject for env, gh or az credentials, ambiguous, network, TLS, throttle, not-found or sign-in-redirect outcomes, or underived hosts; helper protocol failures never fail an install; hermetic tests cover each case and auth docs are updated.
Out of scope: Interactive prompting changes; storing credentials APM did not obtain from the helper; non-Git credential stores.
Review contact: Daniel Meppiel (@danielmeppiel)
danielmeppiel commentedon Nov 17, 2026
Context: this scope is the follow-up to decision D3 in the 0.36.1 auth design, approved by Daniel Meppiel (@danielmeppiel) on 2026-11-17. It builds on the 0.36.1 auth outcome classifier and fallback chain (#3752). PRs are held until v0.36.1 is tagged.
danielmeppiel commentedon Nov 17, 2026
Follow-up of #3752 (credential helper contract deferred from the 0.36.1 fix).
fix(auth): fold panel findings on helper credential reporting (#3765)
docs(security): describe credential helper reports and their limits (#…
fix(auth): never verify a rejection from a proxy or another host (#3765)
feat(auth): report helper credential outcomes back to Git (#3765)
fix(auth): fold panel findings on helper credential reporting (#3765)
docs(security): describe credential helper reports and their limits (#…
fix(auth): never verify a rejection from a proxy or another host (#3765)
18 remaining items
fix(auth): fold panel findings on helper credential reporting (#3765)
docs(security): describe credential helper reports and their limits (#…
fix(auth): never verify a rejection from a proxy or another host (#3765)
fix(auth): check accepted secrets without hashing them (#3765)
fix(auth): fold Copilot review on helper credential reporting (#3765)
feat(auth): report helper credential outcomes back to Git (#3765)
fix(auth): fold panel findings on helper credential reporting (#3765)
docs(security): describe credential helper reports and their limits (#…
fix(auth): never verify a rejection from a proxy or another host (#3765)
fix(auth): check accepted secrets without hashing them (#3765)
fix(auth): fold Copilot review on helper credential reporting (#3765)
feat(auth): report helper credential outcomes back to Git (#3818)
docs(changelog): enforce one-line entries in agent and contributor gu…