Configuring access to debug/vars endpoint

Is it possible to configure InfluxDB to disable access to debug/vars endpoint in InfluxDB 2? It doesnt look possible within current InfluxDB 1.7.

There is no authentication to this http endpoint and allows anyone to access this potentially sensitive information.