Reset a Kafka user's password

Generate a new password for the user. The old password stops working once we apply the new one to the cluster, shortly after the response. Open connections stay open, but every new connection needs the new password.

POST https://{availability_zone}.betterstackcloud.com/v1/kafka/{kafka_id}/users/{id}/reset-password
kafka_id string required

The ID of the kafka the Kafka user belongs to.

id string required

The ID of the Kafka user.

Authorization string required

Bearer $TOKEN

202 Accepted
{
  "username": "example",
  "password": "example",
  "bootstrap_servers": "example",
  "public_bootstrap_servers": "example",
  "security_protocol": "example",
  "sasl_mechanism": "example",
  "ca_certificate": "example",
  "properties": {
    "bootstrap.servers": "example",
    "security.protocol": "example",
    "sasl.mechanism": "example",
    "sasl.username": "example",
    "sasl.password": "example",
    "ssl.ca.location": "example"
  }
}

Returns the new credentials and the client settings as one object.

username string

The user's username.

password string

The new password.

bootstrap_servers string

The private bootstrap address, as host:port.

public_bootstrap_servers string

The public bootstrap address, as host:port. Only a cluster with public access has it.

security_protocol string

The protocol clients connect with, always SASL_SSL.

sasl_mechanism string

The authentication mechanism, always SCRAM-SHA-512.

ca_certificate string

The CA certificate to verify the cluster's TLS certificate with. Save it to a file for your client.

properties object

The client settings to connect with, including the new password, ready to use with librdkafka and kcat. Replace /path/to/betterstack-ca.pem with the path where you saved ca_certificate.

properties.bootstrap.servers string

The private bootstrap address, as host:port.

properties.security.protocol string

The protocol clients connect with, always SASL_SSL.

properties.sasl.mechanism string

The authentication mechanism, always SCRAM-SHA-512.

properties.sasl.username string

The user's username.

properties.sasl.password string

The user's password.

properties.ssl.ca.location string

The placeholder /path/to/betterstack-ca.pem. Replace it with the path where you saved ca_certificate.