interserver_http_credentials
A username and a password used to connect to other servers during replication. Additionally, the server authenticates other replicas using these credentials.interserver_http_credentials must therefore be the same for all replicas in a cluster.
- By default, if
interserver_http_credentialssection is omitted, authentication is not used during replication. interserver_http_credentialssettings do not relate to a ClickHouse client credentials configuration.- These credentials are common for replication via
HTTPandHTTPS.
user— Username.password— Password.allow_empty— Iftrue, then other replicas are allowed to connect without authentication even if credentials are set. Iffalse, then connections without authentication are refused. Default:false.old— Contains olduserandpasswordused during credential rotation. Severaloldsections can be specified.
interserver_http_credentials.allow_empty to true and add credentials. This allows connections with authentication and without it.
allow_empty to false or remove this setting. It makes authentication with new credentials mandatory.
To change existing credentials, move the username and the password to interserver_http_credentials.old section and update user and password with new values. At this point the server uses new credentials to connect to other replicas and accepts connections with either new or old credentials.
interserver_http_host
The hostname that can be used by other servers to access this server. If omitted, it is defined in the same way as the<hostname -f> command.
Useful for breaking away from a specific network interface.
Example