shadowbq / nomnomlog

Functional enhanced fork of remote_syslog2
Other
1 stars 1 forks source link

Make TLS root CA loading more extensible #17

Open shadowbq opened 6 years ago

shadowbq commented 6 years ago

In config.go there is hardcoded papertrail CA loading

We should be able to point at a root CA file instead in the config or flag options

    // Make this more extensible
    // add the papertrail root CA if necessary
    if c.Destination.Protocol == "tls" && c.Destination.Host == "logs.papertrailapp.com" {
        c.RootCAs = papertrail.RootCA()
    }
shadowbq commented 6 years ago

More reasons why this becomes a bad idea.. https://github.com/vedarthk/remote_syslog2/commit/e87f17e0e3baa1a6a3b9b0a5db14af0135305eac