Skip to content

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 19 Sep 13:17
· 341 commits to main since this release

jit 2.1: ignore a doctor finding you've decided to keep

New

  • jit doctor ignore <name> stops counting a finding you've decided to keep. jit doctor unignore <name> (or --all) brings it back, and jit doctor --show-ignored lists what you've ignored. The report ends with a one-line [ignored] N.
    • An ignored finding comes back when it changes. jit keeps a fingerprint of what each finding says, so an edit to that ~/.aws/config section, a new file or a different secret brings it back, marked └ was ignored; that entry changed since.
    • Ignored findings don't count toward the exit code, ok, --strict or the problem count. Ignoring a real problem says so: "still fails; doctor just stops counting it".
    • Ambiguous names are refused. A name that's in more than one section asks you to pick one with --kind.
    • Doctor only reads the list and never edits it. It lives in ~/.jit/doctor-ignore.json (0600), and only ignore and unignore write to it.
  • [not logged in]: an ~/.aws/config profile whose jit profile clisso creates at first login is now an amber note with the command to run (clisso get dev), not a red [profile missing] problem. It doesn't make doctor exit 2.

JSON (schema_version 2, additions only)

  • Every finding carries ignore {kind, name, argv}.
  • A new top-level ignored list. Its items also carry ignored_since, severity and unignore {argv}.
  • ignore_changed: true on a finding that came back.
  • missing, corrupt, bad_path and vault_error findings carry the launchers (tools) that start their profile.
  • jit doctor ignore|unignore --format json answers with {ignored, unignored, error}.