Skip to content

Commit

Permalink
exclude CA from auto-ops service setup config
Browse files Browse the repository at this point in the history
follow up of elastic#200073
  • Loading branch information
ashokaditya committed Nov 14, 2024
1 parent 86b3738 commit bd05f73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x-pack/plugins/data_usage/server/services/autoops_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ export class AutoOpsAPIService {
logger.debug(
`[AutoOps API] Creating autoops agent with TLS cert: ${
autoopsConfig?.api?.tls?.certificate ? '[REDACTED]' : 'undefined'
} and TLS key: ${autoopsConfig?.api?.tls?.key ? '[REDACTED]' : 'undefined'}
and TLS ca: ${autoopsConfig?.api?.tls?.ca ? '[REDACTED]' : 'undefined'}`
} and TLS key: ${autoopsConfig?.api?.tls?.key ? '[REDACTED]' : 'undefined'}`
);
const tlsConfig = this.createTlsConfig(autoopsConfig);

Expand Down Expand Up @@ -164,7 +163,6 @@ export class AutoOpsAPIService {
...requestConfig.httpsAgent.options,
cert: requestConfig.httpsAgent.options.cert ? 'REDACTED' : undefined,
key: requestConfig.httpsAgent.options.key ? 'REDACTED' : undefined,
ca: requestConfig.httpsAgent.options.ca ? 'REDACTED' : undefined,
},
},
});
Expand Down

0 comments on commit bd05f73

Please sign in to comment.