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.28</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.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>© 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.28*
*What this documentation covers, how it relates to the repository docs, and the conventions it follows · Checked against tacctl 0.2.29*

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

Expand Down
30 changes: 21 additions & 9 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.28*
*Joiners, movers and leavers · Checked against tacctl 0.2.29*

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

Expand Down Expand Up @@ -80,12 +80,23 @@ tacctl user email alice clear # remove it
`<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 every user has an account on the tacctl server and a
period cannot be part of a Linux account name. Every `user` verb, `passwd`
and `config linux uid` refuse it, whether the user exists or not, with
`Username must contain only letters, numbers, underscores and hyphens (a
period cannot be part of a Linux account name).` `root` and `tacquito` are
reserved.
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,
underscores and hyphens (a period cannot be part of a Linux account name).`
`root` and `tacquito` are reserved.

A new name is at most 32 characters, the longest a Linux account name can
be (0.2.29). `user add` and the new name of `user rename` refuse a longer
one and change nothing: `Username '<name>' is 33 characters; a user name is
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.

**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 Expand Up @@ -267,8 +278,9 @@ make the change; otherwise the command says why and sets nothing. A user
cannot when:

- the server is not enrolled (`tacctl host enroll --local`);
- the name has upper case letters, so it is no Linux account name (a
leftover from before new names were lower case; rename it);
- the name is no Linux account name: it has upper case letters or more
than 32 characters (a leftover from an earlier release), or starts with
a digit or `-` (rename it);
- the user is disabled;
- the user's group has no privilege level;
- the server is still registered in a scope it shares with devices (an
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.28*
*Audit trail, evidence and periodic reviews · Checked against tacctl 0.2.29*

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

Expand Down
70 changes: 42 additions & 28 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.28*
*Snapshots, comparing them, and restoring tacctl's configuration · Checked against tacctl 0.2.29*

[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.27 # the dry run: its steps and warnings; writes nothing
tacctl rollback 0.2.27 --apply # convert the state (add --yes when it warns)
tacctl upgrade --branch 0.2.27 # install 0.2.27
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` takes fourteen targets: `0.2.27`, the release before this
one, and also `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
`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`,
`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.27`, `0.2.26`, `0.2.25`, `0.2.24`, `0.2.23`,
- 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.27`, `0.2.26`, `0.2.25`, `0.2.24` and `0.2.23`, while an emergency
- 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
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,38 +241,52 @@ 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 removes it**. With the settings
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
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.28 state, which only 0.2.28 restores. The settings are
snapshot holds the 0.2.29 state, which only 0.2.29 restores. The settings are
kept nowhere else: **set them again after the upgrade.**

The target `0.2.27` converts nothing else. 0.2.27 reads every file this
release writes but that one setting, so with the file transfer settings unset
The target `0.2.28` converts **nothing**. 0.2.28 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
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.

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,
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
members of the pull records, every report in the users' homes (the PDF ones
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 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
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
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 and this release changed no other stored file 0.2.26 reads
above. 0.2.27, 0.2.28 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 and this release changed outside the stored files is
0.2.26`. What 0.2.27, 0.2.28 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 @@ -290,16 +304,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, 0.2.27 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.28 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.28 state and is
to be restored with 0.2.28 only,
a snapshot first, and says that the snapshot holds the 0.2.29 state and is
to be restored with 0.2.29 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 @@ -312,7 +326,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, 0.2.27 and this release write: the dry run shows the step, `--apply` writes it after
0.2.26 to 0.2.28 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 @@ -336,11 +350,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.27`, `0.2.26`, `0.2.25` and `0.2.24` does; the nftables
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
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, 0.2.27 and this release write.
0.2.24 and 0.2.25 wrote, or the one 0.2.26 to 0.2.28 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 @@ -380,8 +394,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.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.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.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 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 @@ -390,7 +404,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 removes the file transfer
`list-max` that never asks as 1000. Every target but `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 @@ -432,7 +446,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.27` | Superuser |
| Prepare the release before this one (dry run) | `tacctl rollback 0.2.28` | Superuser |

---

Expand Down
17 changes: 16 additions & 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.28*
*Local emergency accounts, and holding a device or host back from the server · Checked against tacctl 0.2.29*

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

Expand Down Expand Up @@ -162,6 +162,18 @@ refuses the connection before tacquito sees it.
| WTI | Works only if the unit's TACACS+ *Fallback Local* is `On`. With `Off`, nobody gets in until you release the hold; use the serial console. |
| Linux host | The host's local administrator and its console work. tacctl users cannot log in or use `sudo` there. |

From the tacctl server (its console included), an engineer or superuser
reaches a held device as its local account with `--login` (0.2.29):

```bash
tacctl ssh sw1 --login netadmin # the device asks for netadmin's password
```

The device needs a pinned host key and must be in one of your scopes. The
device asks for the account's password itself; tacctl never asks for it or
keeps it. The session's audit lines carry `login=netadmin`. An enrolled host
is refused: hosts are reached as you.

The engineer can print the back-out for the failed change with
`tacctl device config plan sw1 --backout`.

Expand All @@ -175,6 +187,8 @@ The engineer can print the back-out for the failed change with
- `host sync`, `enroll`, `move`, `unenroll` and `forget` refuse a held host,
and `host sync --all` skips it (and names it).
- `tacctl ssh` warns you and connects; your tacctl login will fail there.
With `--login <local-user>` (§3) the warning says you log in as the
device's local account, and the session goes on.

---

Expand Down Expand Up @@ -206,6 +220,7 @@ held address again ([Backups and Undo](backups-and-undo.md) §5).
| Record Junos `root` | `tacctl scope breakglass <scope> add root` | Superuser |
| Hold | `tacctl breakglass hold <name> --reason "<ticket>"` | Superuser |
| List holds | `tacctl breakglass list` | Engineer (own scopes) |
| Log in to a held device as a local account | `tacctl ssh <name> --login <local-user>` | Engineer (own scopes) |
| Release | `tacctl breakglass release <name>` | Superuser |
| Set what the server does with a held address's TCP connections | `tacctl config breakglass-firewall [reject\|drop\|off]` | Superuser |
| Back-out for the failed change | `tacctl device config plan <name> --backout` | Engineer |
Expand Down
Loading