Skip to navigation

Rotates a user account’s password on a network device with auto-approval for password-only changes.

For prerequisites, detailed behavior, and troubleshooting, see the Device Password Rotation user guide.

User Interface

Form Inputs

Users interact with a device and secret selection form:

FieldDescriptionSelection TypeRequired
SiteChoose the site containing the deviceSingle dropdown from available sitesYes
DeviceSelect the device for password rotationSingle dropdown from devices in selected siteYes
Selected SecretChoose the user account to rotateSingle dropdown from configured password mappingsYes

Device Support

This workflow supports the following device platforms:

  • Cumulus Linux
  • NVOS
  • Juniper Junos
  • Cisco IOS XR
  • Arista EOS

Workflow Execution

Multi-Stage Process with Auto-Approval

  1. Load intended configuration
  2. Validate diff
  3. Apply configuration to device
  4. Post-deployment backup

Auto-Approval Logic

The workflow implements auto-approval based on diff content analysis.

The following scenarios are auto-approved:

  • Password-only changes for the target user
  • nv set/unset system aaa user <username> hashed-password (Cumulus Linux/NVOS), an encrypted-password change under system login user <username> authentication (Juniper Junos; system root-authentication for the root user, which is not a login user entry), a secret <type> <hash> change directly under username <username> (Cisco IOS XR), or a username <username> ... secret sha512 change whose removed and added lines differ only in the hash (Arista EOS; aaa root secret sha512 for the root user)
  • No other configuration modifications present

The following scenarios are not auto-approved:

  • Diff invalid if it includes non-password changes
  • Unsupported platforms
  • Missing password mappings in device config context
  • Invalid configuration syntax or structure

Configuration Requirements

Password Mappings

Devices must have password mappings configured in their Nautobot configuration context. For example:

password_mappings:
default:
cumulus:
password: "vault/path/to/cumulus/password"
rotation: "current"
admin:
password: "vault/path/to/admin/password"
rotation: "current"
# Role-specific mappings override defaults
spine:
cumulus:
password: "vault/path/to/spine/cumulus/password"
rotation: "current"

Vault Integration

  • Passwords are retrieved from HashiCorp Vault using configured backend paths
  • The rotation field specifies which version to use (e.g., “r1”, “r2”)
  • Backend paths must exist and be accessible to the workflow execution environment