what insecure_skip_verify will do

623 views
Skip to first unread message

Sameer Modak

unread,
May 15, 2024, 11:04:07 AM5/15/24
to Prometheus Users
Hello Team,

If i set  insecure_skip_verify: true will my data be unsecured. Will it be non ssl??

Alexander Wilke

unread,
May 15, 2024, 11:20:18 AM5/15/24
to Prometheus Users
It will skip the certificate Check. So certificate May be valid or invalid and is Always trusted.
Connection is still encrypted

Sameer Modak

unread,
May 16, 2024, 2:33:31 AM5/16/24
to Prometheus Users
Thanks a lot . Any easy way to check if traffic is secure apart from wireshark. 

Brian Candler

unread,
May 16, 2024, 3:58:43 AM5/16/24
to Prometheus Users
It depends what you mean by "secure".

It's encrypted, because you've told it to use HTTPS (HTTP + TLS). If the remote end doesn't talk TLS, then the two won't be able to establish a connection at all.

However it is also insecure, because the client has no way of knowing whether the remote device is the one it's expecting to talk to, or an imposter. If it's an imposter, they can capture any data sent by the client, and return any data they like to the client. It's the job of a certificate to verify the identity of the server, and you've told it to skip that check.

Sameer Modak

unread,
May 16, 2024, 10:12:14 AM5/16/24
to Prometheus Users
So here is the update i did try this insecure skip but i am still getting below error,

 tls: failed to verify certificate: x509: certificate signed by unknown authority


Brian Candler

unread,
May 16, 2024, 10:35:58 AM5/16/24
to Prometheus Users
Then you did something wrong in your config, but you'll need to show the config if you want help fixing it.

It also depends on what you're talking to: is this a scrape job talking to an exporter? Is this service discovery? Something else?

Sameer Modak

unread,
May 24, 2024, 11:55:16 AM5/24/24
to Prometheus Users
insecure_skip_verify worked for me. I put insecure_skip_verify: false hence it was not working.
Thanks brian 

Reply all
Reply to author
Forward
0 new messages