Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
5f5b498
Merge branch 'release/0.2.27' into develop
rett Nov 9, 2026
ccceb07
fakedev: WithTailEcho and WithRedrawnEcho simulate IOS scrolling a lo…
rett Nov 9, 2026
5e9292c
devssh: drop the tail of a long command's echo when its start is not …
rett Nov 9, 2026
91cc6ec
docs: a long command's echo is dropped as well when only its tail arr…
rett Nov 9, 2026
da4d111
Merge branch 'agent/ios-echo-impl' into feature/ios-echo
rett Nov 9, 2026
aacd466
rollback: 0.2.27, the release before this one, is a target
rett Nov 9, 2026
a0a6925
docs: the rollback pages and the man page list the 0.2.27 target
rett Nov 9, 2026
268b89b
tests: a bats case for the rollback to 0.2.27, the release before thi…
rett Nov 9, 2026
24d3121
Merge branch 'agent/rollback-0227' into feature/ios-echo
rett Nov 9, 2026
fa46714
Merge branch 'feature/ios-echo' into develop
rett Nov 9, 2026
3f9b82c
vendor: add github.com/pkg/sftp for the console's SFTP server
rett Nov 9, 2026
87a5cd0
sftpd: add the rooted SFTP server core
rett Nov 9, 2026
40c5eac
sftpd: add the quota and statvfs
rett Nov 9, 2026
ed462f8
sftpd: add the rate limit
rett Nov 9, 2026
4b3e286
console: file transfer settings and policy in console.yaml
rett Nov 9, 2026
43ce998
console: the file-transfer command
rett Nov 9, 2026
4f681cd
console: carry the file transfer settings to the console's process
rett Nov 9, 2026
3410303
rollback: take the file transfer settings out of console.yaml
rett Nov 9, 2026
be322ec
rollback: say 'switches' in the file transfer line of the plan
rett Nov 9, 2026
eb77f93
docs: the file transfer settings and the rollback that removes them
rett Nov 9, 2026
dcb0e1e
tests: bats cases for console file-transfer
rett Nov 9, 2026
f3e44a0
Merge branch 'agent/sftpd-server' into feature/sftp
rett Nov 9, 2026
adffdf5
Merge branch 'agent/sftp-policy' into feature/sftp
rett Nov 9, 2026
d582f2c
sftpd: an incomplete measure of the home counts it as full
rett Nov 9, 2026
657788a
sftpd: a removed file with an open handle keeps its room
rett Nov 9, 2026
e32bfcb
sftpd: files with more than one name are not served
rett Nov 9, 2026
5b3e525
sftpd: bound the open handles and stream directory listings
rett Nov 9, 2026
1c92ef2
sftpd: a read request on a write-only handle writes nothing
rett Nov 9, 2026
83f3b3b
sftpd: audit an upload or download the kernel refuses
rett Nov 9, 2026
d2f0019
sftpd: say what the quota and the audit callback guarantee
rett Nov 9, 2026
744f797
sftpd: tests for a FIFO, the directory swap and the standard descriptors
rett Nov 9, 2026
4da7e43
sftpd: tests: apply De Morgan's law in wantTooMany (staticcheck QF1001)
rett Nov 9, 2026
8554501
console: serve the sftp subsystem to the accounts that have file tran…
rett Nov 9, 2026
18c2d08
console: audit every file transfer request in the console's own log
rett Nov 9, 2026
d1a7e50
console: report whether sshd defines an sftp subsystem
rett Nov 9, 2026
81001e0
console: correct who may read 'console file-transfer'
rett Nov 9, 2026
4afd325
docs: file transfer through the console serves SFTP
rett Nov 9, 2026
e24c3e9
tests: bats cases for the console's file transfer
rett Nov 9, 2026
664d0bf
Merge branch 'agent/sftpd-fixes' into feature/sftp
rett Nov 9, 2026
a59923f
Merge branch 'agent/sftp-wire' into feature/sftp
rett Nov 9, 2026
611986f
sftpd: cut a truncating open's file and its usage under the quota lock
rett Nov 9, 2026
7274645
sftpd: setstat pins the entry it judged and changes that
rett Nov 9, 2026
479e94c
sftpd: audit the refusals of Readlink and RealPath
rett Nov 9, 2026
3a0e963
console: bound the escaped text of a logged file name, so an audit li…
rett Nov 9, 2026
64ac983
console: name the tier in every sftp event line
rett Nov 9, 2026
a81d7e2
console: ParseSize of a bare unit, and a tier's rate of off in the file
rett Nov 9, 2026
a519201
tests: a transfer with logger down keeps stdout the protocol's
rett Nov 9, 2026
5652077
docs: describe what the console's file transfer does with links, hand…
rett Nov 9, 2026
7d40b72
Merge branch 'agent/sftpd-fixes2' into feature/sftp
rett Nov 9, 2026
d7fb4c0
Merge branch 'agent/sftp-wire-fixes' into feature/sftp
rett Nov 9, 2026
868812f
Merge branch 'feature/sftp' into develop
rett Nov 9, 2026
11f2f90
sftpd: set the size of a file by setstat and fsetstat
rett Nov 9, 2026
36913ee
docs: file transfer sets sizes, and what the OpenSSH clients show
rett Nov 9, 2026
e49fd8f
Merge branch 'agent/sftp-fsetstat' into feature/sftp-fix
rett Nov 9, 2026
c3c2592
Merge branch 'feature/sftp-fix' into develop
rett Nov 9, 2026
d4730c9
docs: release notes of 0.2.28
rett Nov 9, 2026
2d0ade9
docs: backlog row of 0.2.28
rett Nov 9, 2026
4123f97
Merge branch 'agent/notes-0-2-28' into feature/notes-0-2-28
rett Nov 9, 2026
bd8f44c
Merge branch 'feature/notes-0-2-28' into develop
rett Nov 9, 2026
c47c5f2
Bumped version number to 0.2.28
rett Nov 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 175 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,181 @@
All notable changes to tacctl. The README and the manual page describe only the
current behaviour; this file is where history lives.

## 0.2.28 (2026-11-09)

1. **A support bundle from a Cisco IOS device no longer starts the identity
lines with the tail of the command.** Item 9 of 0.2.27 dropped the echo
of a command longer than the terminal is wide, but only when the first
line of the answer was the start of the command. On a Cisco 2811 the
`show running-config | include ^(hostname|ip domain|clock
timezone|snmp-server location|snmp-server contact)` file began with the
line `$clock timezone|snmp-server location|snmp-server contact)` (the `$`
is where the device cut its display) and then the `hostname` line: the
start of the echo was not a line of its own, so only the tail reached
the check, which wanted the start. The tail is dropped as well now: a
first line of `$` and pieces of the command, the last of which ends the
command, is the echo, whether or not the start of the echo stands before it.
Nothing else is dropped: a line with text that is not in the command, a
tail that does not end the command, and an output line that begins with
`$` stay. `docs/devices/support-bundle.md` and the manual page say so.

2. **`tacctl rollback 0.2.27`, the release before this one, is a target.** It
converts nothing but the file transfer settings of `console.yaml` (item 3).
This release changed no other stored file 0.2.27 reads strictly (how the
answer of a Cisco IOS device to a long command is read, and the
documentation, are all that moved), so 0.2.27 reads everything else it
writes: with those settings unset the rollback removes no key and no field,
takes no snapshot and needs no `--yes`. The limits of the stored reports (`reports.max_size` and
`reports.max_count` in `tacctl.yaml`, and a user's own `reports_max_size`
and `reports_max_count` in `store.yaml`) stay, 0.2.27 has them, and so do
the chassis `members` of the pull records and every report in the users'
homes, the PDF ones included, which 0.2.27 reads, and the marker
`/var/lib/tacctl/pdf-tools-offered` with the packages `weasyprint` and
`fonts-dejavu-core`. The per-tier sudoers drop-in is left too: 0.2.27 and
this release write the same text. The break-glass firewall, the users'
email addresses, the SNMPv3 users, the covered staging entries, the server
name, the timing scale and an emergency lockdown with enrolled hosts,
which the older targets drop or refuse, stay as well. It is refused only
while a device's apply is not settled. The command ends with `tacctl
upgrade --branch 0.2.27` and, having nothing to avoid, has no closing note
unless it removed the file transfer settings (item 3).
`rollback 0.2.26` and older behave as before, and the lists of "every target
but" in the rollback pages and the manual page now include 0.2.27. The
top-level help, `docs/cli/conventions.md`, `docs/install/upgrading.md`
(Rolling back, To 0.2.27), `docs/releasing.md`, the manual page and the
completion list the new target, and `tacctl rollback` now takes fourteen
targets. The note that follows a rollback that took a snapshot names this
release, 0.2.28, as the state the snapshot holds ("Restore it with 0.2.28
only").

3. **File transfer through the console: its settings, off by default.** The
console is to get a built-in file transfer, and a superuser decides who
has it. `tacctl console file-transfer <tier> enable|disable` opens it to a
tier and `tacctl console file-transfer user <name> enable|disable|clear`
to one user, over the tier's setting in both directions, as `console
system-shell` does: an enable lasts only while the user stays in the tier
it was set for (a move to another tier leaves it listed as stale), a
disable holds in any tier, `clear` returns the user to the tier's setting,
and `user rename` and `user remove` move or drop a user's settings. It is
off for every tier but the superuser tier, which always has it and cannot
be disabled; unlike the system shell and forwarding the engineer tier is
not closed to it, because a transfer reaches the user's home only, and a
caller with no tier never has it. `console file-transfer quota` is the
bytes the whole home may hold, 256M for the readonly, operator and
engineer tiers and none for the superuser tier until it is set
(`quota <tier> <size>|unlimited|default`, `quota user <name>
<size>|unlimited|clear`), and `console file-transfer rate` is the bytes a
second a transfer may go at, off by default (`rate <tier> <size>|off`,
`rate user <name> <size>|off|clear`). A size is a number of bytes or a
number with `K`, `M`, `G` or `T` (powers of 1024, `512K`, `256M`, `2G`),
printed back in the largest unit that holds it exactly; zero, a negative
number, a fraction, an overflow and more than `1T` are refused, and a
user's value wins over the tier's. With no argument, `console
file-transfer`, `quota` and `rate` list the tiers and the users with a
setting of their own, and `console show` lists each tier's state, quota and
rate and each user's next to the system shell. The settings are
`settings.file_transfer` in `console.yaml` (written only when something in
it is not the built-in setting), apply from the next console login, are
logged as `console set key=file-transfer` at `auth.notice`, and reach the
console through `tacctl _console-policy` (`file_transfer=yes ft_quota=
ft_rate=` for a caller who has it). The settings decide who may transfer
files, and the console's file transfer (item 4) reads them. Setting them is the
superuser's, and so are the read forms: the verb has no row in the tier
table, so every form of `console file-transfer` is refused below the
superuser tier, while `console show`, which the operator tier and up can
run, lists every user's state, quota and rate. 0.2.27 and
every older release reject the key (their reader answers `settings:
unknown key 'file_transfer'`, the console falls back to its defaults and
writes fail), so every `tacctl rollback` target removes it with the
snapshot of `--apply`, keeps every other setting, needs no `--yes` and
ends with a note on what to avoid until the older release is installed.
`docs/cli/console.md`, `docs/security/login-console.md`, `docs/cli/user.md`,
`docs/security/audit.md`, `docs/install/upgrading.md` (Rolling back, To
0.2.27) and the manual page say so.

4. **The console serves SFTP to the accounts that have file transfer.** The
sftp subsystem, which sshd's `ForceCommand` hands to the console as the
`-c` string `/usr/lib/openssh/sftp-server` or `internal-sftp`, is no longer
refused for everyone: for an account that item 3's settings give file
transfer, the console serves the protocol itself on standard input and
output, as the logged-in user (no change of privilege). The user's home
directory, as the account database names it and never `$HOME`, is the root:
`/` is the home, `..` does not leave it, `.ssh` is not listed and every
request for it is refused, no symbolic link is followed, and neither a
symbolic link nor a hard link can be created through the console. A file
that already has more than one name (a hard link made outside SFTP)
cannot be opened, downloaded or written, and its mode and times cannot be
changed (refused, reason `link`); it can still be listed, renamed and
removed. Setting the mode of a directory without the owner's read and
search bits is refused. The size of a regular file can be set (cut, or
extended with zeros), which is what `scp` does after an upload to give the
file its final size; it counts against the quota like a write, and a request
that also asks for a new owner is refused whole. A new directory gets the
mode the client asks for and a new file 0644, both reduced by the console's
umask, 077; the set-user-ID, set-group-ID and sticky bits are ignored.
Changing a mode or times goes through `/proc/self/fd`, so file transfer
needs `/proc` mounted. A listing comes in the order of the file system,
not sorted (the OpenSSH `sftp` client sorts what its `ls` prints itself),
and a session has at most 256 files and listings open at once (reason
`too-many-open-files`). `sftp` and the `scp` of OpenSSH 9 or later (which
uses SFTP) work; `scp -O`, `rsync`, programs and shell words stay refused,
with a text that no longer says file transfer is unavailable: `the tacctl
console does not run programs or shell commands; file transfer is SFTP only
(sftp, scp of OpenSSH 9 or later)`. The quota (the bytes the home may hold:
the sizes of its regular files, each inode once, never directories, links
or inodes; the reports and support bundles of the user are included)
refuses a write that would go over it; an upload refused part way leaves
what was written before in the home (the client does not remove it), and
the OpenSSH `sftp` and `scp` show only `Failure` for it, the reason
(`reason=quota`) being in the console's audit log. It is measured per session, so N
sessions at once can reach about N times the quota; a deleted file that a
handle still holds stays counted until the handle is closed; and a
directory of the home that the session cannot read or search (for example
one owned by root with mode 0700) makes the home count as full, so every
upload that grows it is refused with `disk quota exceeded` until the
directory is readable. The rate (bytes a second, reads and writes
together, a burst of one second) slows the session. For an account without
file transfer the subsystem is refused with status 126 and `file transfer is
not enabled for this account; an administrator can switch it on (tacctl
console file-transfer)`, which `sftp` and `scp` show only as `Connection
closed` (sshd shows no error text of a subsystem; the audit log has
`reason=file-transfer`); a session held to a required password change, or
one whose policy cannot be read (a user who is no superuser), and a missing
home are refused with a text of their own. The console's idle timeout does
not apply to a transfer: it lasts as long as the connection, ends with
status 0 when the client closes it, and a protocol error ends it with
status 1 and one line on standard error; nothing but protocol is written
to standard output. A transfer is in the console's own log under the tag
`tacctl-console`: `console sftp start` (the tier, the home, the quota and the
rate in effect), `console sftp upload|download|delete|rename|mkdir|setstat`
(each with `tier=`, like the refusals), `console sftp DENY ... reason=` for a
refused request of any kind (`.ssh`, `outside-the-home`, `symlink`, `link`,
`quota`, `unsupported`, `bad-path`, `too-many-open-files`; a refused
`readlink` or `realpath` too) at `auth.warning`, `console sftp end` (the
bytes up and down, the requests, the refusals), and `mode=sftp` and
`reason=sftp` on the session's start and end lines; the successful `stat`,
listing, `readlink` and `realpath` are not logged. The subsystem refused is
`console DENY ... reason=file-transfer|password-change|policy|home|stream
subsystem=sftp`. A path is a file name, so unlike a refused command it is
logged, but as a double-quoted string with control characters, quotes,
backslashes and bytes that are not UTF-8 escaped, cut at 200 bytes of the
escaped text, so that no name forges a field or a line and `logger` keeps
the whole line (the error text does not repeat the path). If `logger`
cannot write a line, the warning `The audit line was not written (logger:
<reason>); the command continues.` can appear on standard error during a
transfer and the transfer goes on, unaudited. sshd starts the subsystem only if its configuration defines
`Subsystem sftp ...`, which a `Match` block cannot: `console file-transfer`
with no argument and the server section of `console show` now print `sshd
sftp subsystem: <program>` or `none` (from `sshd -T`) and warn in red when
file transfer is on for a tier other than the superuser tier, or for a user,
and sshd defines none. The reading of `console file-transfer` is the
superuser's only (item 3 said the operator tier and up could read it: the
verb has no row for them in the tier table); every user's state, quota and
rate are in `console show`, which the operator tier and up can run.
`docs/cli/console.md` (File transfer), `docs/security/login-console.md`,
`docs/security/audit.md`, `docs/devices/reports.md`, `docs/cli/device.md`
and the manual page say so.

## 0.2.27 (2026-11-09)

1. **A read-only user's device reports no longer hold what `device show`
Expand Down
Loading