appsec: use CA from client credentials when connecting to LAPI (#3505)

This commit is contained in:
mmetc 2025-03-12 10:36:30 +01:00 committed by GitHub
parent 50a5ef5345
commit c4f9adb799
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -283,8 +283,8 @@ func (w *AppsecSource) Configure(yamlConfig []byte, logger *log.Entry, metricsLe
caCertPath := ""
if csConfig.API.Server.TLS != nil {
caCertPath = csConfig.API.Server.TLS.CACertPath
if csConfig.API.Client != nil && csConfig.API.Client.Credentials != nil {
caCertPath = csConfig.API.Client.Credentials.CACertPath
}
w.lapiCACertPool, err = loadCertPool(caCertPath, w.logger)