db_setup_save
Commit staged database credentials from a scan token to the secret store and create a db_profile to enable query monitoring.
Instructions
Commit a staged DB credential (from db_setup_scan) to the secret store and write a db_profile, making db_processlist / db_top_queries work for the instance. The password is read from server-side staging by token — never from your context. Mutating: confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Staging token from db_setup_scan. | |
| instance_id | No | Instance to attach the profile to. | |
| engine | No | Override engine (mysql|postgres). | |
| host | No | Override DB host. | |
| port | No | Override DB port. | |
| user | No | Override DB user. | |
| database | No | Override default database. | |
| password_secret | No | Secret-store key name (default db/<instance>). |