Bastionhost provides the automatic password change feature. The feature can periodically rotate passwords or keys of host accounts or rotate passwords or keys of host accounts at a scheduled time based on the password or key rules that you configure. This effectively improves the security of your business. This topic describes how to use the automatic password change feature.
Background information
Multi-Level Protection Scheme (MLPS) requires that the logon credentials, such as passwords and keys, of host accounts be changed on a regular basis. If the passwords or keys are not changed for a long period of time, security risks may arise. However, regular and manual password or key rotation is inefficient and is prone to errors. To resolve this issue, Bastionhost provides the automatic password change feature. This improves the O&M efficiency and ensures security.
Limits
Limits on editions: Only Bastionhost Enterprise Edition and SM Edition support the automatic password change feature. For more information about how to purchase and upgrade a bastion host, see Purchase a bastion host and Upgrade a bastion host.
Limits on password change tasks:
The password change tasks do not support the rotation of shared keys.
A host account can be associated with only one password change task.
Supported versions of operating systems
Prerequisites
Hosts are imported to a bastion host and a host account is hosted in the console of a bastion host. For more information, see Add hosts and Manage a host account.
Create a password change task
Log on to the console of a bastion host. For more information, see Log on to the console of a bastion host.
In the left-side navigation pane, choose .
On the Password Change page, click Create Password Change Task.
In the Create Password Change Task panel, configure parameters that are described in the following table and click Create.
Parameter
Description
Task Name
The name of the password change task.
Task Type
The type of the password change task. Valid values: Key Rotation and Password Rotation.
Execution Method
The execution method of the password change task. Valid values:
Periodic: Bastionhost automatically runs the password change task based on the values that you specify for Executed At and Period.
You must set Executed At to a point in time that is at least 5 minutes later than the current time.
The maximum value of Period is 365.
Scheduled: When the specified execution time is reached, Bastionhost automatically runs the password change task. You must set Executed At to a point in time that is at least 5 minutes later than the current time.
Password Rules
The complexity and length settings of the new password. If you set Task Type to Password Rotation, you can configure these settings.
Password Strength: the complexity settings of the new password. You can select Digits, Lowercase Letters, Uppercase Letters, and Other Characters. Bastionhost randomly generates a new password based on the character types that you select. We recommend that you select at least two characters types.
Password Length: the minimum number of characters and maximum number of characters of the new password in length. Valid values: 8 to 32. If you set the minimum length to 8 characters and the maximum length to 32 characters, Bastionhost randomly generates a new password that is 8 to 32 characters in length.
Password Policies: the minimum number of each type of characters in the new password, the maximum number of times that a character can appear in the new password, and the characters that the new password cannot contain. The sum of the minimum number of letters and the minimum number of other characters in a password cannot exceed the length of the password.
Valid values for the minimum numbers of digits, lowercase letters, uppercase letters, and other characters that the new password must contain: 0 to 32.
Valid values for the maximum number of times a character can appear in the new password: 1 to 32.
A set of characters that the new password cannot contain.
Key Rule
The key algorithm, key length, and encryption password settings. If you set Task Type to Key Rotation, you can configure these settings.
Key Algorithm: Select RSA or ED25519.
Key Length: If you set Key Algorithm to RSA, you can set the key length to 2,048, 3,072, or 4,096 bits.
Encryption Password: Configure the key encryption password. A key encryption password is a security mechanism used to protect encryption keys.
Remarks
The remarks of the password change task.
Click Associate Account. On the Managed Accounts tab, click Add Host Account.
In the Add Host Account dialog box, select the host account that you want to add and click Add.
After the host account is added, a message appears, which indicates that the password change task is associated with the host account. You can view the created task on the Password Change page.
NoteA host account can be associated with only one password change task.
If you set Task Type to Password Rotation, you can add only accounts that have passwords hosted on your bastion host to the password change task. If you set Task Type to Key Rotation, you can add only accounts that have SSH private keys hosted on the bastion host to the password change task. You cannot rotate shared keys.