Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 site/_includes/footer_custom.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p>Checked against <strong>tacctl 0.2.29</strong> · Reference: the <a href="https://github.com/rett/tacctl/blob/master/docs/README.md">repository docs</a> and <code>man tacctl</code> · <a href="{{ '/about-these-docs/' | relative_url }}">About These Docs</a></p>
<p>Checked against <strong>tacctl 0.2.30</strong> · Reference: the <a href="https://github.com/rett/tacctl/blob/master/docs/README.md">repository docs</a> and <code>man tacctl</code> · <a href="{{ '/about-these-docs/' | relative_url }}">About These Docs</a></p>
<p>© 2026 Everett C. Haimes III. <a href="https://github.com/rett/tacctl/blob/master/LICENSE">MIT licensed</a>.</p>
{%- capture issue_title %}docs: {{ page.title }}{% endcapture -%}
{%- capture issue_body %}Page: {{ page.url | absolute_url }}
Expand Down
2 changes: 1 addition & 1 deletion site/about-these-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ doctype: explanation

# About These Docs

*What this documentation covers, how it relates to the repository docs, and the conventions it follows · Checked against tacctl 0.2.29*
*What this documentation covers, how it relates to the repository docs, and the conventions it follows · Checked against tacctl 0.2.30*

[Printable PDF](../pdf/tacctl-about-these-docs.pdf){: .pdf-link }

Expand Down
49 changes: 43 additions & 6 deletions site/access-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doctype: how-to

# Access Lifecycle

*Joiners, movers and leavers · Checked against tacctl 0.2.29*
*Joiners, movers and leavers · Checked against tacctl 0.2.30*

[Printable PDF](../pdf/tacctl-access-lifecycle.pdf){: .pdf-link }

Expand Down Expand Up @@ -79,8 +79,8 @@ tacctl user email alice clear # remove it
- The address is never in an audit line: the `--email` value is written as
`<redacted>`, and the `user email` line says only `op=set` or `op=clear`.

Names are lower case: letters, digits, `_` and `-` (`alice-smith`). A period
is refused, because a user gets an account on the tacctl server only when
Names are lower case and start with a letter: a lower-case letter, then
letters, digits, `_` and `-` (`alice-smith`). A period is refused, because a user gets an account on the tacctl server only when
the name is a Linux account name, and a period cannot be part of one. Every
`user` verb, `passwd` and `config linux uid` refuse it, whether the user
exists or not, with `Username must contain only letters, numbers,
Expand All @@ -94,9 +94,46 @@ at most 32 (the longest a Linux account name can be).` A user an earlier
release stored with a longer name keeps working (shown, changed, renamed
and removed as before; `backup restore` and `tacctl upgrade` carry it), but
has no account on the server or on a host; `tacctl config validate` lists it
under `Names:`. Rename it with `tacctl user rename <name> <shorter name>`. A
name that starts with a digit or `-` (`1alice`) is still accepted, but has
no account either.
under `Names:`. Rename it with `tacctl user rename <name> <shorter name>`.

**A new name starts with a letter (0.2.30).** Every new user gets a Linux
account, on the tacctl 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` take a lower-case letter, `a` to `z`, as the first
character, and refuse a digit, `-` and `_` (Linux itself would take a leading
`_`, but a new name does not start with one, so that every new name is an
account name everywhere). Nothing is changed, and the command says `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).`

- **The first check that fails is the answer.** The checks run in this
order: the shape (letters, digits, `_` and `-`; no period), the reserved
names, upper case, the length (at most 32) and the first character. The
lower-case spelling is suggested (`Names are lower case: use 'alice'.`)
only when it passes the other checks, so the retry is accepted. For
`1Alice` or `_Alice` the answer is that the name must be lower case and
start with a letter.
- **Existing users are unaffected.** Only a new name is checked. A user from
an earlier release named `9dave`, `_svc` or `-x` keeps working: shown,
changed, renamed away to a name that passes the rules, removed and restored
as before, and `tacctl upgrade` and `backup restore` carry it. A name that
starts with `-` is typed as an ordinary word, and `--` is not an
end-of-options marker of the `user` verbs.
- **`tacctl config validate` warns once per user with no account.** Under
`Names:` it warns of a name that starts with a digit or `-` 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.
- **`--fix-names` never offers a refused rename.** `tacctl config validate
--fix-names` offers the lower-case spelling of a name with upper case only
when a new name of that spelling would be accepted. For `1Alice`, or a name
over 32 characters, it offers nothing: the warning names the rename to a
name of your choice, and the run still exits 0.

```bash
tacctl user rename 9dave dave
tacctl config validate
```

**A user stored with a period: the upgrade renames it (0.2.26).** 0.2.20 and
0.2.21 accepted a period, so a store from then can still hold a name with one
Expand Down
2 changes: 1 addition & 1 deletion site/audit-and-compliance.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doctype: how-to

# Audit and Compliance

*Audit trail, evidence and periodic reviews · Checked against tacctl 0.2.29*
*Audit trail, evidence and periodic reviews · Checked against tacctl 0.2.30*

[Printable PDF](../pdf/tacctl-audit-and-compliance.pdf){: .pdf-link }

Expand Down
78 changes: 47 additions & 31 deletions site/backups-and-undo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doctype: how-to

# Backups and Undo

*Snapshots, comparing them, and restoring tacctl's configuration · Checked against tacctl 0.2.29*
*Snapshots, comparing them, and restoring tacctl's configuration · Checked against tacctl 0.2.30*

[Printable PDF](../pdf/tacctl-backups-and-undo.pdf){: .pdf-link }

Expand Down Expand Up @@ -217,21 +217,21 @@ before it again, a superuser converts the state with `tacctl rollback`
first, then installs that release:

```bash
tacctl rollback 0.2.28 # the dry run: its steps and warnings; writes nothing
tacctl rollback 0.2.28 --apply # convert the state (add --yes when it warns)
tacctl upgrade --branch 0.2.28 # install 0.2.28
tacctl rollback 0.2.29 # the dry run: its steps and warnings; writes nothing
tacctl rollback 0.2.29 --apply # convert the state (add --yes when it warns)
tacctl upgrade --branch 0.2.29 # install 0.2.29
```

`tacctl rollback` takes fifteen targets: `0.2.28`, the release before this
one, and also `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24`, `0.2.23`, `0.2.22`, `0.2.21`,
`tacctl rollback` takes sixteen targets: `0.2.29`, the release before this
one, and also `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24`, `0.2.23`, `0.2.22`, `0.2.21`,
`0.2.20`, `0.2.19`, `0.2.18`, `0.2.17`, `0.2.16`, `0.2.9` and `0.2.3`. It refuses, the
dry run too and with nothing changed:

- while a Junos apply is not settled (`PENDING` or unknown);
- when the store cannot be read: a limit that cannot be seen is not hidden;
- for every target but `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24`, `0.2.23`,
`0.2.22`, `0.2.21`, `0.2.20` and `0.2.19`, while an emergency lockdown locks a group;
- for every target but `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24` and `0.2.23`, while an emergency
- for every target but `0.2.29`, `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24`,
`0.2.23`, `0.2.22`, `0.2.21`, `0.2.20` and `0.2.19`, while an emergency lockdown locks a group;
- for every target but `0.2.29`, `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24` and `0.2.23`, while an emergency
lockdown has enrolled hosts, or a lifted one still waits for a host: an
older release cannot lift sshd's lockdown drop-in on a host. The refusal
names the hosts: lift the lockdown, then `tacctl host sync <hosts>`.
Expand All @@ -241,30 +241,46 @@ dry run too and with nothing changed:
who has file transfer, and the quotas and rates). No release before 0.2.28
reads that key, 0.2.27 included (its reader answers `settings: unknown key
'file_transfer'`, the console falls back to its defaults and the commands
that write the file fail), so **every target but `0.2.28` removes it**
(0.2.28 reads it, as this release does). With the settings
that write the file fail), so **every target but `0.2.29` and `0.2.28` removes it**
(0.2.28 and 0.2.29 read it, as this release does). With the settings
set, `--apply` takes a snapshot first, removes the key, keeps every other
setting and needs no `--yes`; the dry run lists the removal as a step of its
own with what it held. It ends with a note: until the older release is
installed, run no `tacctl console file-transfer` that sets something (it
writes the key again; run the rollback again if one was run), and the
snapshot holds the 0.2.29 state, which only 0.2.29 restores. The settings are
snapshot holds the 0.2.30 state, which only 0.2.30 restores. The settings are
kept nowhere else: **set them again after the upgrade.**

The target `0.2.28` converts **nothing**. 0.2.28 reads every file this
The target `0.2.29` converts **nothing**. 0.2.29 reads every file this
release writes, so the rollback removes no key and no field, takes no
snapshot, needs no `--yes` and leaves every file alone: the file transfer
settings, the limits of the stored reports, the chassis members of the pull
records, the reports in the users' homes, the per-tier sudoers drop-in and
everything else stay. It still refuses while a device's apply is not settled,
and it ends with `tacctl upgrade --branch 0.2.28`, with no closing note. What
every user, whatever the name, stay. It still refuses while a device's apply
is not settled, and it ends with `tacctl upgrade --branch 0.2.29`, with no
closing note. What this release changed outside the stored files is 0.2.29's
to undo or keep: after that upgrade `user add` and `user rename` take a new
name that starts with a digit, `-` or `_` again; `device config plan`,
`device reports export` and `device support-bundle` check the path as root
again, so in a home on an NFS `root_squash` export that others may not
search they refuse it with `cannot be resolved (Permission denied)` and the
sentence about `~` and variables; and a file uploaded with `scp -p` is
created 0644 (0600 after the umask) and gets the mode of its source only
from the permissions sent after the data. What was done in between keeps its
name and its mode.

The target `0.2.28` converts **nothing** either. 0.2.28 reads every file
0.2.29 and this release write, so the rollback removes no key and no field,
takes no snapshot, needs no `--yes` and leaves every file alone, and it ends
with `tacctl upgrade --branch 0.2.28`, with no closing note. What 0.2.29 and
this release changed outside the stored files is 0.2.28's to undo or keep:
after that upgrade a file uploaded through the console is 0600 again (0644
less the umask) whatever mode the client asks for; the files uploaded in
between keep their mode.
less the umask) whatever mode the client asks for, and `user add` and `user
rename` take a new name that starts with a digit, `-` or `_` again; the files
uploaded and the users added in between keep their mode and their name.

The target `0.2.27` converts nothing but the file transfer settings above.
0.2.27 reads every file 0.2.28 and this release write but that one setting,
0.2.27 reads every file 0.2.28, 0.2.29 and this release write but that one setting,
so with the file transfer settings unset
the rollback removes no key and no field, takes no snapshot, needs no `--yes`
and leaves every file alone. The limits of the stored reports, the chassis
Expand All @@ -273,20 +289,20 @@ included), the marker `/var/lib/tacctl/pdf-tools-offered` with its packages,
the per-tier sudoers drop-in, the break-glass firewall and the other
settings 0.2.27 knows all stay. It still refuses while a device's apply is
not settled, and it ends with `tacctl upgrade --branch 0.2.27`. What 0.2.28
and this release changed outside the stored files is 0.2.27's to undo or
to 0.2.29 and this release changed outside the stored files is 0.2.27's to undo or
keep: after the rollback the support bundle of a Cisco IOS device starts its identity
lines with the tail of a long command's echo again; bundles made in between
stay as they were made.

The target `0.2.26` converts **nothing but the file transfer settings**
above. 0.2.27, 0.2.28 and this release changed no other stored file 0.2.26 reads
above. 0.2.27 to 0.2.29 and this release changed no other stored file 0.2.26 reads
strictly, so with those settings unset the rollback removes no key and no
field, takes no snapshot, needs no `--yes` and leaves every file alone. The
limits of the stored reports, the chassis members of the pull records, every
report in the users' homes, the per-tier sudoers drop-in, the break-glass
firewall and the other settings 0.2.26 knows all stay. It still refuses while
a device's apply is not settled, and it ends with `tacctl upgrade --branch
0.2.26`. What 0.2.27, 0.2.28 and this release changed outside the stored files is
0.2.26`. What 0.2.27 to 0.2.29 and this release changed outside the stored files is
0.2.26's to undo or keep: after the rollback a row of `show switch` with a
blank version column is not read again, and the reports of a user below the
operator tier hold the model, serial number and release again, as in 0.2.26.
Expand All @@ -304,16 +320,16 @@ rename it before a rollback to 0.2.26 or older.

The target `0.2.25` removes the **limits of the stored reports** and converts
nothing else but the file transfer settings above. 0.2.25 reads every file
0.2.26 to 0.2.28 and this release write but those limits, so the rollback removes `reports.max_size` and `reports.max_count` from
0.2.26 to 0.2.29 and this release write but those limits, so the rollback removes `reports.max_size` and `reports.max_count` from
`tacctl.yaml` and the users' own `reports_max_size` and `reports_max_count`
from `store.yaml` (0.2.25 refuses both: its `config validate` reports the
keys, its `backup restore` refuses a snapshot that has them, and every store
command fails on the fields).

- With none of them set (and no file transfer settings), it converts nothing,
takes no snapshot and needs no `--yes`. With a setting or a limit it takes
a snapshot first, and says that the snapshot holds the 0.2.29 state and is
to be restored with 0.2.29 only,
a snapshot first, and says that the snapshot holds the 0.2.30 state and is
to be restored with 0.2.30 only,
and says what 0.2.25's restore refuses: a `tacctl.yaml` with a key it does
not know (a setting was removed), a `store.yaml` with a field it does not
know (only a user's own limit was), or both.
Expand All @@ -326,7 +342,7 @@ command fails on the fields).
or `max-count <value>`); `backup recover` does not bring them back.
- It puts back the per-tier sudoers drop-in 0.2.25 wrote (this release's
without the rows of `device reports`) when the file is exactly the text
0.2.26 to 0.2.28 and this release write: the dry run shows the step, `--apply` writes it after
0.2.26 to 0.2.29 and this release write: the dry run shows the step, `--apply` writes it after
`visudo -cf`, and a file `tacctl` did not write is left.
- **What stays.** The chassis `members` of the pull records (0.2.25 ignores
the key) and every report in the users' homes. The reports are the users'
Expand All @@ -350,11 +366,11 @@ master prints its own label is rolled back again, as in 0.2.24.
The target `0.2.23` removes the limits as above, and the one key 0.2.24 added
to the stored files, the setting of the break-glass firewall: after a snapshot,
when the setting is set, together with the nftables table, its rules file and
its boot unit (every target but `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25` and `0.2.24` does; the nftables
its boot unit (every target but `0.2.29`, `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25` and `0.2.24` does; the nftables
package stays). With the key unset, no firewall file and no limit it takes no
snapshot and needs no `--yes`. It also puts back 0.2.23's sudoers drop-in,
without the operator's `log failures *`, when the file is exactly the text
0.2.24 and 0.2.25 wrote, or the one 0.2.26 to 0.2.28 and this release write.
0.2.24 and 0.2.25 wrote, or the one 0.2.26 to 0.2.29 and this release write.

> **A hold that stands stays, without the firewall.** The older release's
> server completes the TCP handshake of the held address again, so a device
Expand Down Expand Up @@ -394,8 +410,8 @@ you add `--yes`:

| The dry run warns of | What happens after the rollback | What to do first |
|---|---|---|
| Users who log in to the server and lack its scope (every target but `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24`, `0.2.23`, `0.2.22` and `0.2.21`) | The plan adds the scope of the server's own login (`tacctl`) to the scopes of each, and names them, because an older release answers that login only for users who have it. A warning, so `--apply` needs `--yes`. | Nothing: it is part of the rollback |
| Users with an email address, or SNMPv3 users beyond one per level (every target but `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24` and `0.2.23`) | They are removed, and the rollback keeps the snapshot that holds them | After the upgrade, `tacctl backup recover <snapshot>` (§4.3) |
| Users who log in to the server and lack its scope (every target but `0.2.29`, `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24`, `0.2.23`, `0.2.22` and `0.2.21`) | The plan adds the scope of the server's own login (`tacctl`) to the scopes of each, and names them, because an older release answers that login only for users who have it. A warning, so `--apply` needs `--yes`. | Nothing: it is part of the rollback |
| Users with an email address, or SNMPv3 users beyond one per level (every target but `0.2.29`, `0.2.28`, `0.2.27`, `0.2.26`, `0.2.25`, `0.2.24` and `0.2.23`) | They are removed, and the rollback keeps the snapshot that holds them | After the upgrade, `tacctl backup recover <snapshot>` (§4.3) |
| Users with a limit of their own for the stored reports (every target before `0.2.26`) | The limits are removed (`--apply` needs `--yes`), and the snapshot holds them. The dry run names each user with the values; the audit line names the users, never a value | After the upgrade, set them again with `tacctl user reports-limit` (`backup recover` does not bring them back) |
| Users who must change their password | The requirement is removed. Once the older release renders, those users (superusers aside) can log in to the devices with the password they were to change. | Have them change it, or keep this release |
| Scopes with a strict Junos management filter | The mode is removed. The older release plans the `ssh-only` filter, which accepts by default again. | Keep this release, or leave those scopes' filters out of the older release's plans |
Expand All @@ -404,7 +420,7 @@ you add `--yes`:

Without a warning, the rollback also removes the console's colour setting
and the per-user system-shell and password-cache choices, and writes a
`list-max` that never asks as 1000. Every target but `0.2.28` removes the file transfer
`list-max` that never asks as 1000. Every target but `0.2.29` and `0.2.28` removes the file transfer
settings (see above), with a snapshot first and no `--yes`.

> **Until the older release is installed,** do not run
Expand Down Expand Up @@ -446,7 +462,7 @@ Every step, per target, is in the repository's
| Remove the kept copy | `tacctl backup unkeep <ts>` | Superuser |
| Put back only email addresses or SNMPv3 users | `tacctl backup recover <ts> [--only email,snmp-users]` | Superuser |
| Find the snapshot before a change | `journalctl -t tacctl \| grep 'cmd end'` | Superuser |
| Prepare the release before this one (dry run) | `tacctl rollback 0.2.28` | Superuser |
| Prepare the release before this one (dry run) | `tacctl rollback 0.2.29` | Superuser |

---

Expand Down
2 changes: 1 addition & 1 deletion site/break-glass.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doctype: how-to

# Break Glass

*Local emergency accounts, and holding a device or host back from the server · Checked against tacctl 0.2.29*
*Local emergency accounts, and holding a device or host back from the server · Checked against tacctl 0.2.30*

[Printable PDF](../pdf/tacctl-break-glass.pdf){: .pdf-link }

Expand Down
Loading