content/kapacitor/v1/administration/auth/_index.md
Enable and require user-based authentication when using the Kapacitor HTTP API. Kapacitor can either store user roles and permissions locally or use InfluxDB Enterprise authorizations to authenticate requests.
{{% note %}} If you are already using the InfluxDB Enterprise user authorization and authentication service to manage users, we recommend using the same for Kapacitor. {{% /note %}}
{{< children hlevel="h2">}}
The following authentication-related configuration options are available in the
kapacitor.conf and can also be set with environment variables:
{{< req type="key" color="magenta" text="Required only when using InfluxDB Enterprise authentication" >}}
true when using a self-signed TLS certificate.[http]
# ...
auth-enabled = true
# ...
[auth]
# Enable authentication for Kapacitor.
enabled = false
# User permissions cache expiration time.
cache-expiration = "10m"
# Cost to compute bcrypt password hashes.
# bcrypt rounds = 2^cost
bcrypt-cost = 10
# Address of an InfluxDB Enterprise meta server.
# If empty, InfluxDB Enterprise meta nodes are not used as a user store.
# host:port
meta-addr = "172.17.0.2:8091"
meta-use-tls = false
# Absolute path to PEM encoded Certificate Authority (CA) file.
# A CA can be provided without a key/certificate pair.
meta-ca = "/etc/kapacitor/ca.pem"
# Absolute paths to PEM encoded private key and server certificate files.
meta-cert = "/etc/kapacitor/cert.pem"
meta-key = "/etc/kapacitor/key.pem"
meta-insecure-skip-verify = false