Skip to content

Commit a9647a9

Browse files
[sonic-utilities] Add user management CLI commands
Add comprehensive CLI interface for SONiC local user management: - config user add/modify/delete - User lifecycle management - config user add-ssh-key/remove-ssh-key - SSH key management - config user import-existing - Import system users to SONiC - show user [username] - Display user information and status - show user roles - Display available roles and permissions Features: - Role-based access control (administrator/operator) - Secure password handling with confirmation prompts - SSH key format validation and management - CONFIG_DB integration for persistent configuration - Comprehensive input validation and error handling - Complete test suite with unit and integration tests Commands integrate with userd daemon for system-level user operations.
1 parent 2657ee3 commit a9647a9

File tree

7 files changed

+3483
-1
lines changed

7 files changed

+3483
-1
lines changed

config/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
from . import kube
5959
from . import muxcable
6060
from . import nat
61+
from . import user
6162
from . import vlan
6263
from . import vxlan
6364
from . import plugins
@@ -1560,6 +1561,7 @@ def config(ctx):
15601561
config.add_command(kube.kubernetes)
15611562
config.add_command(muxcable.muxcable)
15621563
config.add_command(nat.nat)
1564+
config.add_command(user.user)
15631565
config.add_command(vlan.vlan)
15641566
config.add_command(vxlan.vxlan)
15651567

0 commit comments

Comments
 (0)