Secure the installation

Close ports



# Outside of any scope
bind-address = "localhost:8088"

bind-address = "localhost:8083"

bind-address = "localhost:8086"

bind-address = "localhost:8088"
systemctl restart influxdb



http_addr = localhost
systemctl restart grafana-server

Enable authentication


Purpose: Enable auth-only access to InfluxDB.

  1. Create admin user:

    $ curl --silent --get '' --user root:root --data-urlencode 'q=CREATE USER admin WITH PASSWORD 'admin' WITH ALL PRIVILEGES'
  1. Enable authentication by setting the auth-enabled option to true in the [http] section of the configuration file:

    # ...
    auth-enabled = true
    # ...