osctrl
osctrl copied to clipboard
Osctrl assumes self-signed
Osctrl assumes self-signed certificate for Osquery deployment but that is not the case. Since we are using AWS LB with ACMs certs, our certs are signed by a trusted authority. Therefore, we don't need to provide a cert to Osquery with --tls_server_certs
and we can simply omit providing a file and this flag. When Osquery attempts to connect to osctrl it will use the OSes root cert store to verify the cert.
In addition, since ACM certs are only valid for 1 year this means we don't have to manage rotating secrets on clients.
One option is to have a CLI flag so the user can decide if they want to pin a certificate or not.