local_ydb_set_root_password
Rotate the local YDB root password, applying it to the runtime user and syncing host auth config and password file. Use plan-only mode to preview changes before persisting.
Instructions
Rotate the runtime root password with ALTER USER and sync the host auth config and root password file to match. YDB may reject passwords that violate auth_config.password_complexity; this tool requires a non-empty password value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to rotate and persist the root password. Omit or false for plan-only output. | |
| profile | No | Named profile from local-ydb.config.json. Defaults to config.defaultProfile. | |
| password | Yes | New non-empty root password without carriage returns or newlines to apply to the runtime root user and then persist into the host auth config and root password file. YDB defaults to no password complexity requirements, but the selected cluster may still reject the value when auth_config.password_complexity is configured. | |
| configPath | No | Absolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults. |