Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
4fa9399
Merge branch 'release/0.2.29' into develop
rett Nov 10, 2026
1e56e2b
rollback: 0.2.29, the release before this one, is a target
rett Nov 10, 2026
11b9780
user: a new user name starts with a lower case letter
rett Nov 10, 2026
6fe5b35
Merge branch 'agent/user-name-rules' into feature/user-name-rules
rett Nov 10, 2026
8ba856f
test: a user from before with no Linux account name names no host
rett Nov 10, 2026
1f7015c
comments: the rollback target lists reach 0.2.29, an upper case name …
rett Nov 10, 2026
748b164
user: a name with upper case is refused with a name that is accepted
rett Nov 10, 2026
7e42f74
docs: the rule for a new user name, as the code now answers it
rett Nov 10, 2026
889d987
docs: rewrap two lines of the CHANGELOG item of the new user name
rett Nov 10, 2026
d27ef53
Merge branch 'agent/unr-review-fixes' into feature/user-name-rules
rett Nov 10, 2026
6dfd161
Merge branch 'feature/user-name-rules' into develop
rett Nov 10, 2026
4c48439
tier: the notes of the two ssh rows live in tier.Rules
rett Nov 10, 2026
1f06c29
tests: gate-go names the failing tests above its FAIL verdict
rett Nov 10, 2026
b1216af
outpath: test that a home root cannot write is refused plainly
rett Nov 10, 2026
1f421d1
docs: what a root-squashed home does to the files written as root
rett Nov 10, 2026
67d73db
console: a file transfer session ends sooner after the client leaves
rett Nov 10, 2026
46facb4
docs: the diff corpus run against the baseline is informational
rett Nov 10, 2026
cd8cda9
Merge branch 'agent/diff-docs' into feature/backlog-cleanup
rett Nov 10, 2026
05cca2e
Merge branch 'agent/tier-note-ssh' into feature/backlog-cleanup
rett Nov 10, 2026
45731df
Merge branch 'agent/gate-go-names' into feature/backlog-cleanup
rett Nov 10, 2026
5a3a4f5
Merge branch 'agent/audit-finish' into feature/backlog-cleanup
rett Nov 10, 2026
98f407e
Merge branch 'agent/outpath-squash' into feature/backlog-cleanup
rett Nov 10, 2026
37c402d
docs: tests/README.md names the FAIL: lines of gate-go
rett Nov 10, 2026
77efc6c
Merge branch 'agent/gate-go-readme' into feature/backlog-cleanup
rett Nov 10, 2026
9a794cf
console sftp: the audit queue holds 256 again, and its test checks or…
rett Nov 10, 2026
a248379
docs: what a root_squash home does to the commands that write as root
rett Nov 10, 2026
8e36819
gate-go: the package names stand in only when no test failed
rett Nov 10, 2026
ef79a91
tier: the message of the note check describes the condition
rett Nov 10, 2026
ccb8829
Merge branch 'agent/backlog-rework' into feature/backlog-cleanup
rett Nov 10, 2026
23b29af
Merge branch 'feature/backlog-cleanup' into develop
rett Nov 10, 2026
7e9ebf2
outpath: the check runs as the caller for the commands that write as …
rett Nov 10, 2026
c505db2
docs: the commands that write as the caller check the path as the caller
rett Nov 10, 2026
d9cf5b7
Merge branch 'agent/outpath-caller' into feature/backlog-more
rett Nov 10, 2026
5353e9d
sftpd: an open's attribute block is read with its flags, so permissio…
rett Nov 10, 2026
a7f4d66
docs: a file made by scp -p is created with the mode of its source
rett Nov 10, 2026
2eb86f8
Merge branch 'agent/scp-open-mode' into feature/backlog-more
rett Nov 10, 2026
1b1d550
sftpd: the open filter decides on a packet's length before it reads t…
rett Nov 10, 2026
3e6ba6c
docs: an open over 64 KiB is not read for its permissions; the path c…
rett Nov 10, 2026
c00a523
Merge branch 'agent/backlog-more-rework' into feature/backlog-more
rett Nov 10, 2026
c50e647
Merge branch 'feature/backlog-more' into develop
rett Nov 10, 2026
baf820b
docs: the release notes of 0.2.30
rett Nov 10, 2026
54fd662
docs: the rollback to 0.2.29 also undoes the path check and the scp -…
rett Nov 10, 2026
e1421f3
Merge branch 'agent/release-docs-0-2-30' into feature/release-docs-0-…
rett Nov 10, 2026
c5eb8be
Merge branch 'feature/release-docs-0-2-30' into develop
rett Nov 10, 2026
219777c
Bumped version number to 0.2.30
rett Nov 10, 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
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ groups and scopes, network devices and enrolled Linux hosts.
- Build: `make build` (binary in `dist/tacctl`)
- Go tests: `LANG=C.UTF-8 go test ./internal/...`
Two tests need the 0.2.2 tag (the rollback build, the 0.2.2 schema); without it they skip and say so, so CI must fetch the tags.
- Gate run of the Go tests: `make gate-go` (`tests/tools/gate-go.sh`). Start it with Bash `run_in_background`, never with a trailing `&`, never wait for it with `pgrep -f`; only its final `GATE-GO PASS` line counts as a pass. `GATE_TMPFS=1 make gate-go` runs the tests' sandboxes on `/dev/shm`, about three times faster.
- Gate run of the Go tests: `make gate-go` (`tests/tools/gate-go.sh`). Start it with Bash `run_in_background`, never with a trailing `&`, never wait for it with `pgrep -f`; only its final `GATE-GO PASS` line counts as a pass, and a `GATE-GO FAIL` line has up to ten `FAIL: <test>` lines above it (the packages instead, when no test failed). `GATE_TMPFS=1 make gate-go` runs the tests' sandboxes on `/dev/shm`, about three times faster.
- CI-equivalent run of the Go tests: `make gate-ci` (`tests/tools/gate-ci.sh`).
`make gate-go` runs neither the race detector nor `-tags testknobs`; CI runs both (the packages but `internal/cli` with `-race`, the two `internal/cli` shards), so run this before a pull request or a release PR. Same rules as `gate-go` (`run_in_background`, no `&`, no `pgrep -f`, `GATE_TMPFS=1`); only its final `GATE-CI PASS` line counts, a `GATE-CI FAIL` line names the failing tests, and it takes several times as long as `gate-go`.
- Lint: `make lint GOLANGCI_LINT=<path to golangci-lint>` (includes `tests/tools/no-private.sh`)
Expand Down
121 changes: 121 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,127 @@
All notable changes to tacctl. The README and the manual page describe only the
current behaviour; this file is where history lives.

## 0.2.30 (2026-11-10)

1. **`tacctl rollback 0.2.29`, the release before this one, is a target.**
This release changed no stored file 0.2.29 reads strictly (the check of the
name of a new user, item 2, writes no new form of a file, and the
documentation moved), so 0.2.29 reads everything it writes: the rollback
converts no file, removes no key and no field, takes no snapshot and needs
no `--yes`. The file transfer settings of `console.yaml`
(`settings.file_transfer`) stay, 0.2.29 has them, and so do 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`), the chassis `members` of the pull records and every
report in the users' homes, the PDF ones included, with the marker
`/var/lib/tacctl/pdf-tools-offered` and the packages `weasyprint` and
`fonts-dejavu-core`. The per-tier sudoers drop-in is left too: 0.2.29 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, and so does every
user, whatever the name. It is refused only while a device's apply is not
settled. The command ends with `tacctl upgrade --branch 0.2.29` and,
having nothing to avoid, has no closing note. `rollback 0.2.28` and older
behave as before (`0.2.28` still converts nothing, `0.2.27` and older
still remove the file transfer settings), and the lists of "every target
but" in the rollback pages and the manual page now include 0.2.29. The
top-level help, `docs/cli/conventions.md`, `docs/install/upgrading.md`
(Rolling back, To 0.2.29), `docs/releasing.md`, the manual page and the
completion list the new target, and `tacctl rollback` now takes sixteen
targets. The note that follows a rollback that took a snapshot names this
release, 0.2.30, as the state the snapshot holds ("Restore it with 0.2.30
only").

2. **A new user name starts with a lower-case letter.** Every new user gets a
Linux account, on this server and on the enrolled hosts, and a name that
starts with a digit or `-` is no account name, so `user add` and the new
name of `user rename` now refuse a first character that is not a letter, a
to z (a digit and `-`, which no Linux account name starts with, and `_`,
which Linux would take, are refused so that every new name is an account
name everywhere): `Username '1alice' must start with a letter (a to z):
every new user gets a Linux account, and a name that starts with a digit or
'-' is no account name (a new name does not start with '_' either).`, exit
status 1, nothing changed. A new name is
now a lower-case letter, then lower-case letters, digits, `_` and `-`, at
most 32 characters. The checks run in a fixed order and the first that
fails is the answer (`names.CheckNewUsername`): the shape (no period), the
reserved names, upper case, the length, the first character. A name with
upper case is told its lower-case spelling (`Names are lower case: use
'alice'.`) only when that spelling passes every other check, so the
suggestion is always a name the command takes; for `1Alice`, `_Alice`,
`Root`, `Tacquito` or `Alice` followed by 41 characters the answer is the
first check the lower-case spelling fails, said with the name as typed and
with the lower case among what to fix (`Username '1Alice' must be lower
case and start with a letter (a to z): ...`). Only a new name is checked:
a user that exists as `9dave`, `_svc` or `-x` keeps working and is shown,
changed, renamed away, removed, restored and carried by the upgrade as
before. `config validate` warns, under `Names:`, of an existing user
whose name starts with a digit or `-` (no Linux account, here or on a host)
and names `tacctl user rename <name> <new-name>`; a name that starts with
`_` has an account and gets no warning, unless it is also longer than 32
characters, when the warning gives the letter rule next to the length so
that the replacement is not refused in turn. A user stored as `-x` is
reached by the verbs as a bare word (`tacctl user show -x`); `--` is not
an end-of-options marker of the user verbs. `config validate --fix-names`
offers the rename to the lower-case spelling of a name with upper case only
when that spelling would pass all the rules of a new name: for `1Alice`,
`_Alice`, `Root` or `Alice` followed by 41 characters it offers nothing,
and the user gets exactly one warning, which names the rename to a name of
your choice and says what else is wrong with the name (`--fix-names`
counts nothing as not offered or failed for it and exits 0). The rollback
to 0.2.29 (item 1) leaves every user as it is. `docs/cli/user.md`
(`user add`, `user rename`, A new name starts with a letter),
`docs/cli/config.md`, `docs/install/upgrading.md` and the manual page say
so.

3. **What a home on an NFS `root_squash` export does to the two commands
that write as root is documented and tested.** `config render --dry-run`
and `config linux script|remove-script` check the path as root, so a home
that others may not search is refused by the check
(`cannot be resolved (Permission denied)`), and in one that others may
search they write nothing and say `Permission denied`, with the path.
Tests pin both, and `docs/cli/conventions.md` and the manual page say to
write the file on the local disk of the host and copy it to the home as
yourself.

4. **The three commands that write as you work in a root-squashed home that
others cannot search, and a path that cannot be resolved is not told to
be spelled differently.** `device config plan --out|--out-dir`,
`device reports export --out` and `device support-bundle` write as the
person who ran `sudo`, but their check of the path (inside the home, links
resolved) ran as root: on an NFS home with `root_squash` that others may
not search (0700, 0750) root could not look at the path and the check
refused it, `cannot be resolved (Permission denied)`, although the write,
as you, would work. The check now runs as you for these three, and the
other rules are unchanged. `config render --dry-run` and
`config linux script|remove-script` write as root and still check as root
(item 3). A refusal that says `cannot be resolved (<cause>)` (permission
denied, a link that leads nowhere) now gives the cause and the path and no
longer ends with `tacctl does not expand ~ or variables; name a path inside
your home, relative to the current directory`, which is about the
spelling of the path and stays on the other refusals (an empty path, a
NUL, a `$` or backtick, a `~`, a path outside the home).
`docs/cli/conventions.md` and the manual page (`device config plan`) say so.

5. **A file uploaded with `scp -p` is created with its mode.** The `scp` of
OpenSSH 9 or later sends the permissions together with the times in the
request that opens the file (twelve bytes of attributes), and the console
read only a block of four bytes, because the library that speaks SFTP does
not say which attributes a request holds: the file was created 0644 (0600
after the umask, 077) and got its mode only from the permissions that
follow the data. The console now reads the attribute flags of the open
request itself, before the library sees it, so the permissions are found
whatever else the request carries (the times, a size, an owner), and a
size is never read as a mode. A new file is created with the permission
bits asked for, reduced by the umask as before: a script asked at 0755 is
0700 from the start, and an upload of `scp -p` that is interrupted leaves
that mode and not 0600. A request without permissions, or that asks for no
permission bit, still gives 0644 (0600), a file that exists keeps its
mode, and the mode and the times the client sets at the end are applied as
given, as before. The page of the console (`docs/cli/console.md`, file
transfer) and the manual page say so.

## 0.2.29 (2026-11-09)

1. **A file uploaded through the console keeps the owner's execute bit.** The
Expand Down
27 changes: 18 additions & 9 deletions docs/cli/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,19 @@ config validate [--json | --fix-names [--yes]]
names of new ones are lower case) gets a `Names:` warning that names the rename which fixes it
(`tacctl user rename Alice alice`; for a user it adds that devices match the typed login name
exactly, so the rename changes what the person types); the superuser's view only. A user from
an earlier release whose name is longer than 32 characters (a new name is at most 32, see
cli/user.md) gets a `Names:` warning too: it works but has no Linux account, here or on a
host, and the warning names `tacctl user rename <name> <new-name>`; `--fix-names` does not
offer that rename, since it has no name to propose. A user whose name is both longer than 32
characters and has upper case gets that one warning only, which says so (the lower-case
spelling is longer than 32 characters too, and `user rename` refuses it). Exits 1 on
an earlier release whose name is longer than 32 characters or starts with a digit or `-` (a
new name is at most 32 and starts with a lower-case letter, see cli/user.md) gets a `Names:`
warning too: it works but has no Linux account, here or on a host, and the warning names
`tacctl user rename <name> <new-name>` (the new name must pass the rules of a new name);
`--fix-names` does not offer that rename, since it has no name to propose. A name that starts
with `_` has an account and is not warned of, unless it is longer than 32 characters: its
warning then gives the letter rule next to the length, so that the replacement (`_svc` is no
new name) is not refused in turn. A user with several of these faults, upper
case included (`1Alice`, or `Alice` followed by 41 characters), gets that one warning only,
which says so: the lower-case spelling would be refused by `user rename` too (it is longer than
32 characters, or does not start with a letter, or is reserved), so no warning proposes it. A
user with upper case and a name that starts with `_` gets one warning that names
`tacctl user rename <name> <new-name>` the same way. Exits 1 on
errors. The verb takes no argument: a word other than its options is refused (`Unknown
argument`) and no report is printed. `--json` prints the findings as one JSON object and
nothing else on standard output (the schema is below); the exit status is the same.
Expand Down Expand Up @@ -373,9 +380,11 @@ leftover under the new name, the scope) after this one. The findings are
read again after each rename, so a scope that a host rename carried is not
offered twice.

A user whose name is longer than 32 characters is not offered, whatever its case:
its lower-case spelling would be refused by `user rename` too, and the `Names:` warning for
its length names the rename (it is counted neither as not offered nor as failed).
A user whose lower-case spelling `user rename` would refuse, because it is longer than 32
characters, does not start with a lower-case letter (`1Alice`, `_Alice`) or is reserved
(`Root`), is not offered it: the `Names:` warning of that user names the rename to a name of
your choice (it is counted neither as not offered nor as failed, and the run ends with status
0 for it).

A name whose lower-case spelling is another name's (`Alice` beside `alice`,
two hosts equal ignoring case, a device and a host that are one name) is not
Expand Down
Loading