Some customers may choose to install InfluxDB with public internet access, however doing so can inadvertently expose your data and invite unwelcome attacks on your database. Check out the sections below for how protect the data in your InfluxDB instance.
Password protect your InfluxDB instance to keep any unauthorized individuals from accessing your data.
Resources: Set up Authentication
Managing users and permissions
Restrict access by creating individual users and assigning them relevant read and/or write permissions.
Enabling HTTPS encrypts the communication between clients and the InfluxDB server. HTTPS can also verify the authenticity of the InfluxDB server to connecting clients.
Resources: Enabling HTTPS
Configure security headers
HTTP headers allow servers and clients to pass additional information along with requests. Certain headers help enforce security properties.
Resources: Configure HTTP headers
Securing your host
If you’re only running InfluxDB, close all ports on the host except for port
You can also use a proxy to port
InfluxDB uses port
8088 for remote backups and restores.
We highly recommend closing that port and, if performing a remote backup,
giving specific permission only to the remote machine.
We recommend implementing on-disk encryption; InfluxDB does not offer built-in support to encrypt the data.