feat(local-accounts): a deleted key can take the password with it
driver / lint (pull_request) Successful in 15s
driver / standard (pull_request) Successful in 18s
driver / types (pull_request) Successful in 1m6s
driver / test (3.13) (pull_request) Successful in 1m8s
driver / test (3.12) (pull_request) Successful in 1m12s
driver / lowest (pull_request) Successful in 30s
driver / build (pull_request) Successful in 32s
driver / security (pull_request) Successful in 1m12s
CI / driver (pull_request) Successful in 2m38s
driver / publish (pull_request) Skipped

napalm-device-types 4.29.0 lets remove_local_account_keys clear the password and sudo too (NetOrk/netork#2033). This driver's _account_clear_password already does the work; a test pins the commands, and the floor rises to 4.29.0.
This commit is contained in:
Christian Manivong committed 2026-11-04 15:22:50 +01:00
1 parent f5a5efdab3
commit 4ac854482a
3 files changed
+23 -2

No files matched your search

+5 -1
View File
@@ -14,9 +14,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
leaves the account open, and `add_local_account(..., clear_password=True)` removes the
password (`chpass -p '*'`): the account logs in with its key only and has no sudo.
Keys the person added on the host stay.
- A deleted key can take the password with it on FreeBSD (NetOrk/netork#2033): through
napalm-device-types' `remove_local_account_keys(..., clear_password=True)` the keys go
as the person, the password goes (`chpass -p '*'`), and so do the sudo rule and
`wheel`. The account stays open.
### Changed
- Needs napalm-device-types 4.28.0.
- Needs napalm-device-types 4.29.0.
### Added
- Scheduled jobs on FreeBSD and OpenBSD (NetOrk/netork#1933, #27), through