Skip to content

v3.9.1

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Jul 22:52

Fixed

  • gateway keys add corrupted the key file scaffolded by gateway init
    (GH #716).
    init writes the canonical empty set keys = []; keys add
    appended a [[keys]] table to that body, leaving BOTH representations in
    the file — invalid TOML (duplicate key), so the documented onboarding flow
    (initkeys add) failed on first use, and a full revoke re-armed the
    same trap. add now strips the empty-array form before appending, and all
    key-file writers (add/rotate/revoke) validate the assembled body
    before the atomic swap — a bad assembly can never replace a good file on
    disk. Regression tests cover init → add → revoke-to-empty → add and verify
    a poisoned file is refused byte-for-byte untouched.

Upgrade

lean-ctx update                 # recommended (auto-downloads + refreshes shell hooks)
cargo install lean-ctx          # or
npm update -g lean-ctx-bin      # or
brew upgrade lean-ctx

Note: After upgrading via cargo/npm/brew, run lean-ctx setup to refresh shell aliases. lean-ctx update does this automatically.

Full Changelog: v3.9.0...v3.9.1