napalm-device-types 4.29.0 adds remove_local_account_keys(name, keys, *, clear_password=False) (NAPALM/napalm-device-types#92, see NetOrk/netork#2033). This driver's _account_clear_password already does the work (usermod -p '*'), so no code changes here:
a test pins what the call does on this host: the keys go as the person, then the password, then the sudo rule and the admin groups; the account stays open;
the floor rises to napalm-device-types>=4.29.0;
a CHANGELOG entry under [Unreleased].
Why
When a person deletes their key, netOrk forgets the account password that went with it, but the host kept it, and sudo with it.
Tests
The new test fails against napalm-device-types 4.28.0 (TypeError: no clear_password) and passes against the dt PR. The full suite, ruff, mypy, napalm-standard check and ratchet pass. CI stays red until 4.29.0 is on PyPI.
## What
napalm-device-types 4.29.0 adds `remove_local_account_keys(name, keys, *, clear_password=False)` (NAPALM/napalm-device-types#92, see NetOrk/netork#2033). This driver's `_account_clear_password` already does the work (usermod -p '*'), so no code changes here:
- a test pins what the call does on this host: the keys go as the person, then the password, then the sudo rule and the admin groups; the account stays open;
- the floor rises to `napalm-device-types>=4.29.0`;
- a CHANGELOG entry under [Unreleased].
## Why
When a person deletes their key, netOrk forgets the account password that went with it, but the host kept it, and sudo with it.
## Tests
The new test fails against napalm-device-types 4.28.0 (`TypeError`: no `clear_password`) and passes against the dt PR. The full suite, ruff, mypy, `napalm-standard check` and `ratchet` pass. CI stays red until 4.29.0 is on PyPI.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What
napalm-device-types 4.29.0 adds
remove_local_account_keys(name, keys, *, clear_password=False)(NAPALM/napalm-device-types#92, see NetOrk/netork#2033). This driver's_account_clear_passwordalready does the work (usermod -p '*'), so no code changes here:napalm-device-types>=4.29.0;Why
When a person deletes their key, netOrk forgets the account password that went with it, but the host kept it, and sudo with it.
Tests
The new test fails against napalm-device-types 4.28.0 (
TypeError: noclear_password) and passes against the dt PR. The full suite, ruff, mypy,napalm-standard checkandratchetpass. CI stays red until 4.29.0 is on PyPI.