Repository navigation
v2.0.0
jit 2.0: jit knows which tools use every profile, and won't delete what's in use
jit 1.9 and 2.0 together change how jit deletes and migrates. Read What changed in behavior before upgrading scripts or CI that call jit doctor, jit vault rm or jit migrate remove.
What changed in behavior
jit vault rmrefuses to delete a secret something still uses (since 1.9): a global profile, a project profile anywhere under~, a mount, or ajit://pointer file. It exits 1 and writes nothing.--yesnever overrides this; pass--break-profilesto delete anyway.--dry-run --format jsonshows what would be deleted and what uses it.jit vault orphans --prune,jit vault duplicates --pruneandjit migrate removeuse the same strict check, so a secret that only a project outside the current directory, or a pointer file, uses is no longer treated as an orphan.jit migrate remove <project>keeps a profile another config still uses or records. It only removes the project from that profile's record, and the plan shows these under[Profiles kept, still used outside this project].jit migrateon a copied MCP config reuses the original's profiles when the config they record is deleted, instead of creating-2/-3copies. Two configs with identical values share one profile. Migrating a config is now all-or-nothing across its servers.- A profile's record (its
.sourcefile) can list several configs, one per line. An older jit reading such a file makes a copy rather than overwriting. jit doctorcan now exit 2 on a setup that used to pass, when a config names a jit profile that doesn't exist ([profile missing]) or ajit://pointer names a missing secret ([pointer missing]).jit doctorfrom~labels~/.jit/profilesasglobal, notproject. Doctor JSON isschema_version2 and carries structuredfixes.
Words
A tool (an MCP server, aws, kubectl) gets its secrets from a profile. A config (.mcp.json, ~/.aws/config) starts tools. Each profile keeps a record of the configs that use it.
New
jit profile attach <config> [profile...]: record a config on the profiles its tools use.jit profile rm <name>: delete a profile together with the secrets nothing else uses. It refuses while any tool uses the profile.- Doctor sections:
[profile missing],[pointer missing],[config deleted],[config not recorded],[no known tool]. Shell-history archives are never offered for deletion. jit auditrecords whatvault rmandprofile rmdeleted, and which profiles lost a secret.
Why
A one-click cleanup in the app ran jit vault rm on secrets two live MCP servers used. It was unrecoverable, because rm deletes history too. The full account and the plan it led to are in design/doctor-repair.md.
Changelog
- 379d970 Merge pull request #141 from jitpass/rename-owner-to-config
- de25c91 Rename owner and launcher to record, config and tool in what users read
- 927f737 Merge pull request #140 from jitpass/remove-kept-profiles
- cb189d4 doctor: a broken-launcher note for several AWS profiles names none
- f9eaf86 migrate remove: list the profiles it keeps, and drop an owner line alone
- 985ffbd Merge pull request #139 from jitpass/profile-fix-classes
- ac47979 Merge pull request #138 from jitpass/doctor-ownership
- 4f2c651 Merge pull request #137 from jitpass/migrate-adopt
- 65be5f3 Merge pull request #136 from jitpass/profile-cmds
- 4d15e7d doctor: classify the profile adopt and rm fixes
- 59fe24a Merge remote-tracking branch 'origin/doctor-ownership' into p2-integration
- 95f8a13 Merge remote-tracking branch 'origin/migrate-adopt' into p2-integration
- d0d861d Merge remote-tracking branch 'origin/profile-cmds' into p2-integration
- 42c2a09 doctor: never offer to delete a shell-history archive; no guessed origins
- b6a7d87 Merge pull request #135 from jitpass/launcher-map
- 36313fc doctor: who launches each profile, and what nobody does
- 645cdf4 migrate remove: read the whole owner list, keep what something else needs
- 28d84d0 profile: jit profile adopt and jit profile rm
- d8b3214 migrate: adopt a gone owner's profile, share one with identical values
- 30d12d1 launchers: one map of what launches each profile, discovered from home
- 772e950 migrate: the .source sidecar is an owner list, and launch readers