influxdb-relay icon indicating copy to clipboard operation
influxdb-relay copied to clipboard

[feature request] Add support for specifying trusted certificates

Open rossmcdonald opened this issue 9 years ago • 6 comments

It can be difficult to configure Relay to communicate with an InfluxDB server that is using a self-signed SSL certificate that is not trusted by the host system. It would be great if there was a configuration option for specifying a set of trusted certificates to use for communication.

rossmcdonald avatar Jul 20 '16 20:07 rossmcdonald

Why does this need to be specific to influxdb-relay? Can't a trusted certificate be added to the system as a whole?

nathanielc avatar Jul 20 '16 20:07 nathanielc

@nathanielc Sometimes you want service-specific certificates that aren't trusted globally on the machine. Adding a new CA to the host machine would add an extra attack surface: If the CA used to sign the cert for the backends is compromised, it will only compromise the relay traffic, rather than potentially trusting that CA for any secure connection or authentication on the machine.

joelegasse avatar Jul 20 '16 20:07 joelegasse

@joelegasse Makes sense, thanks.

nathanielc avatar Jul 20 '16 20:07 nathanielc

@rossmcdonald Would adding this as a per-backend option ca-cert be sufficient?

joelegasse avatar Jul 20 '16 20:07 joelegasse

@joelegasse Absolutely, I think that makes perfect sense.

rossmcdonald avatar Jul 20 '16 20:07 rossmcdonald

Will this influx-relay would be helpful if I have only 1 influxdb server ?

It doesn't seem so that it works ,

luvpreet@DHARI-Inspiron-3542:/etc$ curl -i -XPOST 'http://localhost:9096/write?db=tester' --data-binary 'glass,host=server01,region=us-west value=0.64 1434055562000000000'

HTTP/1.1 503 Service Unavailable Content-Length: 35 Content-Type: application/json Date: Mon, 17 Apr 2017 12:48:33 GMT

{"error":"unable to write points"}

luvpreetsingh avatar Apr 17 '17 13:04 luvpreetsingh