Skip to content

KofTerm 0.7.0

Choose a tag to compare

@DATAdotPDF DATAdotPDF released this 23 Oct 04:50
· 27 commits to main since this release
v0.7.0
15b9704

Security, reliability and tests first, following the review by Mariana (@marianabsctba).

Security

  • Secrets stay out of the history. A line that looks like a password, token or key (mysql -pPASSWORD, export GITHUB_TOKEN=..., curl -u user:pass, https://user:pass@host) still runs, but it is not saved and does not teach the model. Lines that start with a space are also kept out. Secrets saved by older versions are removed on start.
  • Risk judged by context. Every command on the line counts (;, &&, |...), and so do sudo or root and the current folder. There are two levels, each with its reason shown in the column:
    • DANGER (red, never suggested), e.g. echo ok; rm -rf /, cd / && rm -rf *, dd onto a disk;
    • Caution (yellow), e.g. curl … | sh, reboot, git push --force.
  • The prompt marker can no longer be faked. Before, any output (a file, a page, a program asking for a password) could imitate KofTerm's invisible prompt marker and make it capture the next keystrokes. The marker now carries a random token drawn at each start.

Tests

  • New kofterm selftest: opens KofTerm in a new terminal and checks 19 things in about 30 seconds:

    • exit codes;
    • SIGTERM, a closed terminal and a killed bash (terminal restored, no orphan bash);
    • 300,000 lines, binary output and a resize storm;
    • a fake marker;
    • no network socket;
    • secrets kept out of the history.

    CI runs it on every push. 81 unit tests.

Changed

  • New "100% brasileiro" identity on the README banner, the site and the cover.

Install (no KOF needed)

sha256sum -c SHA256SUMS
tar -xzf kofterm-0.7.0-linux-x86_64.tar.gz && ./kofterm-0.7.0-linux-x86_64/kofterm install
kofterm selftest

Site: https://datadotpdf.github.io/kofterm/ · Full changelog: CHANGELOG.md