[Synthetics] Allow ssl.certificate_authorities arrays (#187952)

## Summary

Fixes https://github.com/elastic/kibana/issues/183300 !!

Allows arrays of string for `ssl.certificate_authorities`

### test project monitor

heartbeat.monitors:
- type: http
  name: Todos Lightweight
  id: todos-lightweight
  enabled: true
  urls: "https://elastic.github.io/synthetics-demo/"
  schedule: '@every 3m'
  timeout: 16s
  ssl:
    certificate_authorities: ['/etc/ca.crt']
This commit is contained in:
Shahzad 2024-07-12 10:59:09 +02:00 committed by GitHub
parent c861f63dd7
commit e017b0e8ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ const ScheduleCodec = t.interface({
// TLSFields
export const TLSFieldsCodec = t.partial({
[ConfigKey.TLS_CERTIFICATE_AUTHORITIES]: t.string,
[ConfigKey.TLS_CERTIFICATE_AUTHORITIES]: t.union([t.string, t.array(t.string)]),
[ConfigKey.TLS_CERTIFICATE]: t.string,
[ConfigKey.TLS_VERIFICATION_MODE]: VerificationModeCodec,
[ConfigKey.TLS_VERSION]: t.array(TLSVersionCodec),