Skip to content

fix: refresh expired Azure DevOps guest git credentials - #59

Merged
wcgomes merged 1 commit into
mainfrom
fix/refresh-azure-git-credentials
Oct 9, 2026
Merged

wcgomes merged 1 commit into
mainfrom
fix/refresh-azure-git-credentials

Conversation

@wcgomes

@wcgomes wcgomes commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Guest get replayed an expired Azure DevOps JWT, so a rotated host token never replaced the stale guest entry. erase left that protocol+host entry in the store.
  • get now misses and drops a JWT whose exp is within 60 seconds. erase removes every protocol+host match. A non-JWT password, a missing exp, or a decode failure is still returned.
  • adevcontainer refresh-credentials [--name] re-seeds an already-running container from host git credential fill. It does not start, stop, fetch, pull, push, or write the workspace. A stopped target fails with a hint to start --name.
  • A real start and up start-stopped re-seed after the container is running and before restart postStart. Refresh failure soft-fails and does not fail the command. Already-running start and up reuse do not refresh.
  • Azure seeding no longer writes an empty credential.https://dev.azure.com.helper reset. Non-Azure helper chaining is unchanged. Credential material enters the guest via stdin only.

Verification

  • swift run adevcontainerTests: 1176 passed, 0 failed, 5 skipped.
  • refresh-credentials was verified on a running container.

Guest get replayed an expired Azure DevOps JWT, and erase left the
stale protocol+host entry in the store.

get now misses and drops a JWT whose exp is within 60 seconds.
erase removes every protocol+host match. refresh-credentials re-seeds
a running container. Real start and up start-stopped re-seed;
already-running start does not. Non-Azure helper chaining is unchanged.
Azure seeding no longer writes an empty URL-scoped helper reset.
@wcgomes
wcgomes merged commit 6a8dde5 into main Oct 9, 2026
1 check passed
@wcgomes
wcgomes deleted the fix/refresh-azure-git-credentials branch October 9, 2026 19:00
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