Skip to main content
Reset ClickHouse user passwords using the Private API.

Prerequisites

  • ClickHouse Private API installed and accessible (e.g., via port-forward to http://localhost:8080/)
  • At least one ClickHouse cluster deployed (this guide uses default-xx-01)

1. Generate a Hashed Password

Hash the new password using SHA-256 and base64-encode the result:

2. Create the Request Body

Create a JSON file with the hashed password:
Save this as password_reset.json.

3. Send the Request

A successful response:

4. Verify the Change

The password reset takes effect after the operator processes the change. Verify by connecting to the cluster with the new password. You can also monitor the operation via the status endpoint:

Limitation for Compute-Compute Separation

Password resets cannot be performed on child instances. To reset the password for a child instance, reset it on the parent instance instead.
Last modified on August 7, 2026