From fff4e79ba95e472bf3632d2ceef00eb8c27d2405 Mon Sep 17 00:00:00 2001 From: sakulali Date: Sun, 15 Oct 2023 20:15:36 +0800 Subject: [PATCH 1/2] [internal/kafka] define a common validation function for kafka authentication --- .chloggen/kafka-validate-authentication.yaml | 27 ++++++++ exporter/kafkaexporter/config.go | 29 +------- internal/kafka/authentication.go | 66 +++++++++++++++---- internal/kafka/authentication_test.go | 8 +-- receiver/kafkametricsreceiver/config_test.go | 7 +- .../testdata/certs/ca.pem | 19 ++++++ .../testdata/certs/cert.pem | 20 ++++++ .../testdata/certs/key.pem | 27 ++++++++ .../kafkametricsreceiver/testdata/config.yaml | 6 +- receiver/kafkareceiver/config_test.go | 12 ++-- receiver/kafkareceiver/testdata/certs/ca.pem | 19 ++++++ .../kafkareceiver/testdata/certs/cert.pem | 20 ++++++ receiver/kafkareceiver/testdata/certs/key.pem | 27 ++++++++ receiver/kafkareceiver/testdata/config.yaml | 12 ++-- 14 files changed, 238 insertions(+), 61 deletions(-) create mode 100755 .chloggen/kafka-validate-authentication.yaml create mode 100644 receiver/kafkametricsreceiver/testdata/certs/ca.pem create mode 100644 receiver/kafkametricsreceiver/testdata/certs/cert.pem create mode 100644 receiver/kafkametricsreceiver/testdata/certs/key.pem create mode 100644 receiver/kafkareceiver/testdata/certs/ca.pem create mode 100644 receiver/kafkareceiver/testdata/certs/cert.pem create mode 100644 receiver/kafkareceiver/testdata/certs/key.pem diff --git a/.chloggen/kafka-validate-authentication.yaml b/.chloggen/kafka-validate-authentication.yaml new file mode 100755 index 000000000000..6c178b91c777 --- /dev/null +++ b/.chloggen/kafka-validate-authentication.yaml @@ -0,0 +1,27 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: enhancement + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: internal/kafka, kafkaexporter, kafkametricsreceiver, kafkareceiver + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: "define a common validation function for kafka authentication" + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [27486] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: + +# If your change doesn't affect end users or the exported elements of any package, +# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [api] diff --git a/exporter/kafkaexporter/config.go b/exporter/kafkaexporter/config.go index e893d71385b7..432810cdee06 100644 --- a/exporter/kafkaexporter/config.go +++ b/exporter/kafkaexporter/config.go @@ -115,34 +115,7 @@ func (cfg *Config) Validate() error { return err } - return validateSASLConfig(cfg.Authentication.SASL) -} - -func validateSASLConfig(c *kafka.SASLConfig) error { - if c == nil { - return nil - } - - if c.Username == "" { - return fmt.Errorf("auth.sasl.username is required") - } - - if c.Password == "" { - return fmt.Errorf("auth.sasl.password is required") - } - - switch c.Mechanism { - case "PLAIN", "AWS_MSK_IAM", "SCRAM-SHA-256", "SCRAM-SHA-512": - // Do nothing, valid mechanism - default: - return fmt.Errorf("auth.sasl.mechanism should be one of 'PLAIN', 'AWS_MSK_IAM', 'SCRAM-SHA-256' or 'SCRAM-SHA-512'. configured value %v", c.Mechanism) - } - - if c.Version < 0 || c.Version > 1 { - return fmt.Errorf("auth.sasl.version has to be either 0 or 1. configured value %v", c.Version) - } - - return nil + return cfg.Authentication.Validate() } func saramaProducerCompressionCodec(compression string) (sarama.CompressionCodec, error) { diff --git a/internal/kafka/authentication.go b/internal/kafka/authentication.go index 835244fc10dc..9478976fcf98 100644 --- a/internal/kafka/authentication.go +++ b/internal/kafka/authentication.go @@ -6,10 +6,12 @@ package kafka // import "github.com/open-telemetry/opentelemetry-collector-contr import ( "crypto/sha256" "crypto/sha512" + "crypto/tls" "fmt" "github.com/IBM/sarama" "go.opentelemetry.io/collector/config/configtls" + "go.uber.org/multierr" "github.com/open-telemetry/opentelemetry-collector-contrib/internal/kafka/awsmsk" ) @@ -91,13 +93,8 @@ func configurePlaintext(config PlainTextConfig, saramaConfig *sarama.Config) { } func configureSASL(config SASLConfig, saramaConfig *sarama.Config) error { - - if config.Username == "" { - return fmt.Errorf("username have to be provided") - } - - if config.Password == "" { - return fmt.Errorf("password have to be provided") + if err := validateSASL(config); err != nil { + return err } saramaConfig.Net.SASL.Enable = true @@ -119,7 +116,7 @@ func configureSASL(config SASLConfig, saramaConfig *sarama.Config) error { } saramaConfig.Net.SASL.Mechanism = awsmsk.Mechanism default: - return fmt.Errorf(`invalid SASL Mechanism %q: can be either "PLAIN", "AWS_MSK_IAM", "SCRAM-SHA-256" or "SCRAM-SHA-512"`, config.Mechanism) + // Do nothing, validateSASL validate mechanism } switch config.Version { @@ -128,17 +125,18 @@ func configureSASL(config SASLConfig, saramaConfig *sarama.Config) error { case 1: saramaConfig.Net.SASL.Version = sarama.SASLHandshakeV1 default: - return fmt.Errorf(`invalid SASL Protocol Version %d: can be either 0 or 1`, config.Version) + // Do nothing, validateSASL validate version } return nil } func configureTLS(config configtls.TLSClientSetting, saramaConfig *sarama.Config) error { - tlsConfig, err := config.LoadTLSConfig() + tlsConfig, err := validateTLS(config) if err != nil { - return fmt.Errorf("error loading tls config: %w", err) + return err } + saramaConfig.Net.TLS.Enable = true saramaConfig.Net.TLS.Config = tlsConfig return nil @@ -159,3 +157,49 @@ func configureKerberos(config KerberosConfig, saramaConfig *sarama.Config) { saramaConfig.Net.SASL.GSSAPI.Realm = config.Realm saramaConfig.Net.SASL.GSSAPI.ServiceName = config.ServiceName } + +// Validate validates authentication config +func (auth Authentication) Validate() error { + var errs error + if auth.TLS != nil { + _, err := validateTLS(*auth.TLS) + errs = multierr.Append(errs, err) + } + if auth.SASL != nil { + err := validateSASL(*auth.SASL) + errs = multierr.Append(errs, err) + } + return errs +} + +func validateTLS(c configtls.TLSClientSetting) (*tls.Config, error) { + tlsConfig, err := c.LoadTLSConfig() + if err != nil { + return nil, fmt.Errorf("error loading tls config: %w", err) + } + + return tlsConfig, nil +} + +func validateSASL(c SASLConfig) error { + if c.Username == "" { + return fmt.Errorf("auth.sasl.username is required") + } + + if c.Password == "" { + return fmt.Errorf("auth.sasl.password is required") + } + + switch c.Mechanism { + case "PLAIN", "AWS_MSK_IAM", "SCRAM-SHA-256", "SCRAM-SHA-512": + // Do nothing, valid mechanism + default: + return fmt.Errorf("auth.sasl.mechanism should be one of 'PLAIN', 'AWS_MSK_IAM', 'SCRAM-SHA-256' or 'SCRAM-SHA-512'. configured value %v", c.Mechanism) + } + + if c.Version < 0 || c.Version > 1 { + return fmt.Errorf("auth.sasl.version has to be either 0 or 1. configured value %v", c.Version) + } + + return nil +} diff --git a/internal/kafka/authentication_test.go b/internal/kafka/authentication_test.go index 071a7ec8bf18..7adaf51164ec 100644 --- a/internal/kafka/authentication_test.go +++ b/internal/kafka/authentication_test.go @@ -110,22 +110,22 @@ func TestAuthentication(t *testing.T) { { auth: Authentication{SASL: &SASLConfig{Username: "jdoe", Password: "pass", Mechanism: "SCRAM-SHA-222"}}, saramaConfig: saramaSASLSCRAM512Config, - err: "invalid SASL Mechanism", + err: "auth.sasl.mechanism should be one of 'PLAIN', 'AWS_MSK_IAM', 'SCRAM-SHA-256' or 'SCRAM-SHA-512'", }, { auth: Authentication{SASL: &SASLConfig{Username: "", Password: "pass", Mechanism: "SCRAM-SHA-512"}}, saramaConfig: saramaSASLSCRAM512Config, - err: "username have to be provided", + err: "auth.sasl.username is required", }, { auth: Authentication{SASL: &SASLConfig{Username: "jdoe", Password: "", Mechanism: "SCRAM-SHA-512"}}, saramaConfig: saramaSASLSCRAM512Config, - err: "password have to be provided", + err: "auth.sasl.password is required", }, { auth: Authentication{SASL: &SASLConfig{Username: "jdoe", Password: "pass", Mechanism: "SCRAM-SHA-512", Version: 2}}, saramaConfig: saramaSASLSCRAM512Config, - err: "invalid SASL Protocol Version", + err: "auth.sasl.version has to be either 0 or 1", }, } for _, test := range tests { diff --git a/receiver/kafkametricsreceiver/config_test.go b/receiver/kafkametricsreceiver/config_test.go index 4751b3a9a35b..911664a4a286 100644 --- a/receiver/kafkametricsreceiver/config_test.go +++ b/receiver/kafkametricsreceiver/config_test.go @@ -28,6 +28,7 @@ func TestLoadConfig(t *testing.T) { require.NoError(t, err) require.NoError(t, component.UnmarshalConfig(sub, cfg)) + assert.NoError(t, component.ValidateConfig(cfg)) assert.Equal(t, &Config{ ScraperControllerSettings: scraperhelper.NewDefaultScraperControllerSettings(metadata.Type), Brokers: []string{"10.10.10.10:9092"}, @@ -37,9 +38,9 @@ func TestLoadConfig(t *testing.T) { Authentication: kafka.Authentication{ TLS: &configtls.TLSClientSetting{ TLSSetting: configtls.TLSSetting{ - CAFile: "ca.pem", - CertFile: "cert.pem", - KeyFile: "key.pem", + CAFile: "./testdata/certs/ca.pem", + CertFile: "./testdata/certs/cert.pem", + KeyFile: "./testdata/certs/key.pem", }, }, }, diff --git a/receiver/kafkametricsreceiver/testdata/certs/ca.pem b/receiver/kafkametricsreceiver/testdata/certs/ca.pem new file mode 100644 index 000000000000..fac69544dad4 --- /dev/null +++ b/receiver/kafkametricsreceiver/testdata/certs/ca.pem @@ -0,0 +1,19 @@ +-----BEGIN CERTIFICATE----- +MIIDJTCCAg2gAwIBAgIUbxyAWK9JdXkAF2CirQRQPTCIBHEwDQYJKoZIhvcNAQEL +BQAwIjEgMB4GA1UEChMXT3BlblRlbGVtZXRyeSBDb2xsZWN0b3IwHhcNMjIxMTEw +MDA1ODAwWhcNMjcxMTA5MDA1ODAwWjAiMSAwHgYDVQQKExdPcGVuVGVsZW1ldHJ5 +IENvbGxlY3RvcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANgsWxLV +7+12fZN4RWKPnDhL8FLrmZq0GjPwPeeyCtfQ9tkKuR6TsEk0A3fpQQvRTQL5bSq+ +fEnEpRlQA6jojpttK4VGygKHARbCegEUpxH+FeT0mK018M4v/II8StN/ibDXITMQ +EgWv94RwoeyuPMGI+Gccd78vWUnef4+0xhQg0prv+v5yqAxPHWV9SeeXfOHCXaqu +Bb4NR1RtHX+Ci8hYM+cn2cULgN5PJrmpP9nE/iq6S4N9niB1R3fp9Yl1Z6MEHOzI +SLkuwqPVc777YGTu4vLa4j7lu3j3rOCVX2E3EJz/zyMDBoqmkVn+L3lMG4Aq48fW +dVx59dAwp2U9Ta8CAwEAAaNTMFEwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQF +MAMBAf8wHQYDVR0OBBYEFBUOUVYqpBGRvqT/8KKq0J624/4dMA8GA1UdEQQIMAaH +BH8AAAEwDQYJKoZIhvcNAQELBQADggEBAA6tC2tnIu6v+JBqhUnp4eADxobo46fJ +tR5a4W6PxrmMq0TspTsc+Icllzs2Ekjcw/BkY8rw8UR5GxWTYJ3ftmYWUumaPa3h +1TBLhi4HlsBof0Qr2S2cyVonjF5jThMSeqA0BQrPIOAyxly8klIWG/1iHZQhXsPE +BYnXVDFSV3BdQyYE2/kj1626LNabjUYcAczk0R1aVD4WhXseIzBpTc/Soyd7R0fn +Brjy02wPFD5B8nsbGEXfpZPxd4ACOrV/LmseULJGoQ0J+KM327jOaNLqwu1AFTv8 +Pj6iaxAoxhNOKBNASo7eRGvTyvxK73iyT0dIKBG/btAGWMfzwZddrNQ= +-----END CERTIFICATE----- diff --git a/receiver/kafkametricsreceiver/testdata/certs/cert.pem b/receiver/kafkametricsreceiver/testdata/certs/cert.pem new file mode 100644 index 000000000000..2a7b22f3e60b --- /dev/null +++ b/receiver/kafkametricsreceiver/testdata/certs/cert.pem @@ -0,0 +1,20 @@ +-----BEGIN CERTIFICATE----- +MIIDTDCCAjSgAwIBAgIUEKnoi6rZUHazo6+3uJJPRDS6AOkwDQYJKoZIhvcNAQEL +BQAwIjEgMB4GA1UEChMXT3BlblRlbGVtZXRyeSBDb2xsZWN0b3IwHhcNMjIxMTEw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data/certs/key.pem b/receiver/kafkametricsreceiver/testdata/certs/key.pem new file mode 100644 index 000000000000..8a29c6811050 --- /dev/null +++ b/receiver/kafkametricsreceiver/testdata/certs/key.pem @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEA7Wnpb2OiVNo6MMsYiGj6rAoDJkVzfFrlXiPHuDdPx3cF4rfv +Gtw4YYyb0w4rC7figIbXtUJvWXaVT2ta8vGes35w8XGYctikp7bIkRr2F0nHO2Uo +M7nJgJSmcoGBQD3Dae+Psph6s2hzKQg7okQBzF9Vw/dSPWLDkJeNOKtIGkZ/eQeW +R7hZaX2LllYLcaS4G8TwTPHltkzSANJMZnLUMyQQfvIF52pTMCZXiHo5USHGKkLU +bdXwoJonC6c2bRKPcE0eal9iQDQiFZP2OrlRH1Dy4uepxQlKEq5k2LqJ0yheDEis +VJS0XT407tFJQ+ASRNIvSvJS/gsUumhkE97iXwIDAQABAoIBAET6TaFYYFSo5tlA +WMthPNt5OTsIWKpbumJkoOVL5Lj+Qs6BRE4Yh6UH9koWxrjr3zoac1etiq6CfpUJ +iu4k90gNR4FO0M0lVomH2LQYEkHn5KPEGy8UHpBmIAoKyGPCziDcQnLQTG4Nvc/B +HZpiiec4F7INDG7bYBiFf7lkQlmnbKJRwtOFxbFsbhOl8vk3CredIEioacr5sJZ3 +3TOBb25SI1D9IqrOeP//vGgdj9g1aHmhutlte2L0wnRukRmKtG4xKHutVLsrIf7z +9lUAL0lj15aVmKw290IdcSweZVxqJDgI0c8lCj3JIwWt6wwC/ZfQZse4/KCiSJnY +2+DPJ8kCgYEA+jT+pijb9Of12iMdNrMGEyiutHTboLL1C+oNHWbYUhB5ZRZgq3PS +9M200TtjlnH9E938BRhhrGt2K8FeNcFi9I4j4BLWCrMC90nbCkqxsgCpH17O3xFA +WUx0wN25JLFGlNV4+MH28Krx3uYt3uppD7BBrC0LoRIAReOplkBRwsUCgYEA8ukW +/8efs1DmJhFwRLyMjHiwTDIaZ4wVBuBvK0TxTtjmzIxB34AzVFk15FyvRix5RIj9 +b5Qn2XN0Y39MFnaHQgdr/LvxnQbhsYmCBfCrDRblcYaHIPdBUVintU2aFGnAHK0f +uetJMTgYL9AhlXsdy+q7QhwyYkEG9apRZRw7ktMCgYEAzbTuO7vSAwsGRR6jcQpE +j1HeOLzuqLMY5n+54pdgeC/VLnf0aGGkaeIJrA/ws4rp8ACMp7/A5dm/4P9srjNd +YQTPl/TEhy1f3eGZtV9tspP6d7Eh0aHETuaeAscH5ZPeHJVZjOMjXACfNIv34JLG +Z8CYba7nJbjAArXHAqHE1qUCgYBoL1tC947irScZWs9pW+l4cmdDNxYmJWn7WhW0 +XEyXgeZ0AxBZ2TWqztyThsFSes7Ee3EgA06YMLHR3w52b/4Rbvd9HetCa2ov6IeR +Hqlu4swkRgv9Mq+cQUclNxSH/td8NTDvYCAzcRjGoSFWaMjd5l7MuyVNCREAGz3v +/Qz8KwKBgQD2TxKcPehNh7I5dqB21m/2V0LdJraJwaQ8+v3dnPKG+0M5Jb31aeZX +efgqCJ2YBncf/8YZ2IDDTray3vKD6ss10cx6O5ykaf3NiEARUlMNaskAYBxdemM/ +ax45GtHjMjmtvAj3HxgZ6X2KH1POOuf5QFv7gnZVyxithDT+mQ4L2w== +-----END RSA PRIVATE KEY----- diff --git a/receiver/kafkametricsreceiver/testdata/config.yaml b/receiver/kafkametricsreceiver/testdata/config.yaml index 55932eb33f77..210576bdda21 100644 --- a/receiver/kafkametricsreceiver/testdata/config.yaml +++ b/receiver/kafkametricsreceiver/testdata/config.yaml @@ -7,8 +7,8 @@ kafkametrics: - consumers auth: tls: - ca_file: ca.pem - cert_file: cert.pem - key_file: key.pem + ca_file: ./testdata/certs/ca.pem + cert_file: ./testdata/certs/cert.pem + key_file: ./testdata/certs/key.pem topic_match: test_\w+ group_match: test_\w+ diff --git a/receiver/kafkareceiver/config_test.go b/receiver/kafkareceiver/config_test.go index c59f70d92e74..ea455459d617 100644 --- a/receiver/kafkareceiver/config_test.go +++ b/receiver/kafkareceiver/config_test.go @@ -43,9 +43,9 @@ func TestLoadConfig(t *testing.T) { Authentication: kafka.Authentication{ TLS: &configtls.TLSClientSetting{ TLSSetting: configtls.TLSSetting{ - CAFile: "ca.pem", - CertFile: "cert.pem", - KeyFile: "key.pem", + CAFile: "./testdata/certs/ca.pem", + CertFile: "./testdata/certs/cert.pem", + KeyFile: "./testdata/certs/key.pem", }, }, }, @@ -75,9 +75,9 @@ func TestLoadConfig(t *testing.T) { Authentication: kafka.Authentication{ TLS: &configtls.TLSClientSetting{ TLSSetting: configtls.TLSSetting{ - CAFile: "ca.pem", - CertFile: "cert.pem", - KeyFile: "key.pem", + CAFile: "./testdata/certs/ca.pem", + CertFile: "./testdata/certs/cert.pem", + KeyFile: "./testdata/certs/key.pem", }, }, }, diff --git a/receiver/kafkareceiver/testdata/certs/ca.pem b/receiver/kafkareceiver/testdata/certs/ca.pem new file mode 100644 index 000000000000..fac69544dad4 --- /dev/null +++ b/receiver/kafkareceiver/testdata/certs/ca.pem @@ -0,0 +1,19 @@ +-----BEGIN CERTIFICATE----- +MIIDJTCCAg2gAwIBAgIUbxyAWK9JdXkAF2CirQRQPTCIBHEwDQYJKoZIhvcNAQEL +BQAwIjEgMB4GA1UEChMXT3BlblRlbGVtZXRyeSBDb2xsZWN0b3IwHhcNMjIxMTEw +MDA1ODAwWhcNMjcxMTA5MDA1ODAwWjAiMSAwHgYDVQQKExdPcGVuVGVsZW1ldHJ5 +IENvbGxlY3RvcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANgsWxLV +7+12fZN4RWKPnDhL8FLrmZq0GjPwPeeyCtfQ9tkKuR6TsEk0A3fpQQvRTQL5bSq+ +fEnEpRlQA6jojpttK4VGygKHARbCegEUpxH+FeT0mK018M4v/II8StN/ibDXITMQ +EgWv94RwoeyuPMGI+Gccd78vWUnef4+0xhQg0prv+v5yqAxPHWV9SeeXfOHCXaqu +Bb4NR1RtHX+Ci8hYM+cn2cULgN5PJrmpP9nE/iq6S4N9niB1R3fp9Yl1Z6MEHOzI +SLkuwqPVc777YGTu4vLa4j7lu3j3rOCVX2E3EJz/zyMDBoqmkVn+L3lMG4Aq48fW +dVx59dAwp2U9Ta8CAwEAAaNTMFEwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQF +MAMBAf8wHQYDVR0OBBYEFBUOUVYqpBGRvqT/8KKq0J624/4dMA8GA1UdEQQIMAaH +BH8AAAEwDQYJKoZIhvcNAQELBQADggEBAA6tC2tnIu6v+JBqhUnp4eADxobo46fJ +tR5a4W6PxrmMq0TspTsc+Icllzs2Ekjcw/BkY8rw8UR5GxWTYJ3ftmYWUumaPa3h +1TBLhi4HlsBof0Qr2S2cyVonjF5jThMSeqA0BQrPIOAyxly8klIWG/1iHZQhXsPE +BYnXVDFSV3BdQyYE2/kj1626LNabjUYcAczk0R1aVD4WhXseIzBpTc/Soyd7R0fn +Brjy02wPFD5B8nsbGEXfpZPxd4ACOrV/LmseULJGoQ0J+KM327jOaNLqwu1AFTv8 +Pj6iaxAoxhNOKBNASo7eRGvTyvxK73iyT0dIKBG/btAGWMfzwZddrNQ= +-----END CERTIFICATE----- diff --git a/receiver/kafkareceiver/testdata/certs/cert.pem b/receiver/kafkareceiver/testdata/certs/cert.pem new file mode 100644 index 000000000000..2a7b22f3e60b --- /dev/null +++ b/receiver/kafkareceiver/testdata/certs/cert.pem @@ -0,0 +1,20 @@ +-----BEGIN CERTIFICATE----- +MIIDTDCCAjSgAwIBAgIUEKnoi6rZUHazo6+3uJJPRDS6AOkwDQYJKoZIhvcNAQEL +BQAwIjEgMB4GA1UEChMXT3BlblRlbGVtZXRyeSBDb2xsZWN0b3IwHhcNMjIxMTEw +MDEwMTAwWhcNMjMxMTEwMDEwMTAwWjAiMSAwHgYDVQQKExdPcGVuVGVsZW1ldHJ5 +IENvbGxlY3RvcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO1p6W9j +olTaOjDLGIho+qwKAyZFc3xa5V4jx7g3T8d3BeK37xrcOGGMm9MOKwu34oCG17VC +b1l2lU9rWvLxnrN+cPFxmHLYpKe2yJEa9hdJxztlKDO5yYCUpnKBgUA9w2nvj7KY +erNocykIO6JEAcxfVcP3Uj1iw5CXjTirSBpGf3kHlke4WWl9i5ZWC3GkuBvE8Ezx +5bZM0gDSTGZy1DMkEH7yBedqUzAmV4h6OVEhxipC1G3V8KCaJwunNm0Sj3BNHmpf +YkA0IhWT9jq5UR9Q8uLnqcUJShKuZNi6idMoXgxIrFSUtF0+NO7RSUPgEkTSL0ry +Uv4LFLpoZBPe4l8CAwEAAaN6MHgwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQG +CCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBS3f/g7 +olKZ+Ri0NZ6ZhGpS6dWjFzAaBgNVHREEEzARgglsb2NhbGhvc3SHBH8AAAEwDQYJ +KoZIhvcNAQELBQADggEBABM3dwB03n66kezWfPGLHnTbVkHGG5OH013MhEx0IJXB +LD307wBUM5x76PXutIUcasSrqA+xpGxRqzjP3H8qdbBDKtZA+zCypGe/TMFFD2G2 +1P/lcy0oeDnMCbMYXzoNalYBi0YZkqy+nvVm3lME3Su1+HFSGOQOwkWBtW5gW8L9 +jKNtTpM3N6WibllF8CTtOBw1gQSsZv2ZIMq0bHAyHPCr2Rxvfc1XaoGBLUR2EQFZ +kt8c+FagFhgYI4eWwUA8pOpaoJHZUsMp8d0zysRcY80fe2m6xQxQEy2uohRq24y3 +VXkah7JXyzoO6fYXjOOr1OiYSCoZMWVQY0y8Q+Btnfo= +-----END CERTIFICATE----- diff --git a/receiver/kafkareceiver/testdata/certs/key.pem b/receiver/kafkareceiver/testdata/certs/key.pem new file mode 100644 index 000000000000..8a29c6811050 --- /dev/null +++ b/receiver/kafkareceiver/testdata/certs/key.pem @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MII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CgYEAzbTuO7vSAwsGRR6jcQpE +j1HeOLzuqLMY5n+54pdgeC/VLnf0aGGkaeIJrA/ws4rp8ACMp7/A5dm/4P9srjNd +YQTPl/TEhy1f3eGZtV9tspP6d7Eh0aHETuaeAscH5ZPeHJVZjOMjXACfNIv34JLG +Z8CYba7nJbjAArXHAqHE1qUCgYBoL1tC947irScZWs9pW+l4cmdDNxYmJWn7WhW0 +XEyXgeZ0AxBZ2TWqztyThsFSes7Ee3EgA06YMLHR3w52b/4Rbvd9HetCa2ov6IeR +Hqlu4swkRgv9Mq+cQUclNxSH/td8NTDvYCAzcRjGoSFWaMjd5l7MuyVNCREAGz3v +/Qz8KwKBgQD2TxKcPehNh7I5dqB21m/2V0LdJraJwaQ8+v3dnPKG+0M5Jb31aeZX +efgqCJ2YBncf/8YZ2IDDTray3vKD6ss10cx6O5ykaf3NiEARUlMNaskAYBxdemM/ +ax45GtHjMjmtvAj3HxgZ6X2KH1POOuf5QFv7gnZVyxithDT+mQ4L2w== +-----END RSA PRIVATE KEY----- diff --git a/receiver/kafkareceiver/testdata/config.yaml b/receiver/kafkareceiver/testdata/config.yaml index 3cddc9dc1652..e17d37689239 100644 --- a/receiver/kafkareceiver/testdata/config.yaml +++ b/receiver/kafkareceiver/testdata/config.yaml @@ -8,9 +8,9 @@ kafka: group_id: otel-collector auth: tls: - ca_file: ca.pem - cert_file: cert.pem - key_file: key.pem + ca_file: ./testdata/certs/ca.pem + cert_file: ./testdata/certs/cert.pem + key_file: ./testdata/certs/key.pem metadata: retry: max: 10 @@ -26,9 +26,9 @@ kafka/logs: initial_offset: earliest auth: tls: - ca_file: ca.pem - cert_file: cert.pem - key_file: key.pem + ca_file: ./testdata/certs/ca.pem + cert_file: ./testdata/certs/cert.pem + key_file: ./testdata/certs/key.pem metadata: retry: max: 10 From 91b70ec8752ab2ae08aaceeb7ddd71bc90e15642 Mon Sep 17 00:00:00 2001 From: sakulali Date: Thu, 7 Dec 2023 13:27:33 +0800 Subject: [PATCH 2/2] chore: update valid cert Signed-off-by: sakulali --- .../testdata/certs/ca.pem | 36 ++++++------ .../testdata/certs/cert.pem | 36 ++++++------ .../testdata/certs/key.pem | 55 ++++++++++--------- receiver/kafkareceiver/testdata/certs/ca.pem | 36 ++++++------ .../kafkareceiver/testdata/certs/cert.pem | 36 ++++++------ receiver/kafkareceiver/testdata/certs/key.pem | 55 ++++++++++--------- 6 files changed, 130 insertions(+), 124 deletions(-) diff --git a/receiver/kafkametricsreceiver/testdata/certs/ca.pem b/receiver/kafkametricsreceiver/testdata/certs/ca.pem index fac69544dad4..b57a64b90a13 100644 --- a/receiver/kafkametricsreceiver/testdata/certs/ca.pem +++ b/receiver/kafkametricsreceiver/testdata/certs/ca.pem @@ -1,19 +1,21 @@ -----BEGIN CERTIFICATE----- -MIIDJTCCAg2gAwIBAgIUbxyAWK9JdXkAF2CirQRQPTCIBHEwDQYJKoZIhvcNAQEL -BQAwIjEgMB4GA1UEChMXT3BlblRlbGVtZXRyeSBDb2xsZWN0b3IwHhcNMjIxMTEw -MDA1ODAwWhcNMjcxMTA5MDA1ODAwWjAiMSAwHgYDVQQKExdPcGVuVGVsZW1ldHJ5 -IENvbGxlY3RvcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANgsWxLV -7+12fZN4RWKPnDhL8FLrmZq0GjPwPeeyCtfQ9tkKuR6TsEk0A3fpQQvRTQL5bSq+ -fEnEpRlQA6jojpttK4VGygKHARbCegEUpxH+FeT0mK018M4v/II8StN/ibDXITMQ -EgWv94RwoeyuPMGI+Gccd78vWUnef4+0xhQg0prv+v5yqAxPHWV9SeeXfOHCXaqu -Bb4NR1RtHX+Ci8hYM+cn2cULgN5PJrmpP9nE/iq6S4N9niB1R3fp9Yl1Z6MEHOzI -SLkuwqPVc777YGTu4vLa4j7lu3j3rOCVX2E3EJz/zyMDBoqmkVn+L3lMG4Aq48fW -dVx59dAwp2U9Ta8CAwEAAaNTMFEwDgYDVR0PAQH/BAQDAgEGMA8GA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WYQrUCNSYDvQaM8Rs2TK0YcGU1qnZxXQo2F +oBBqPLdPlJlSfdxmfDOXqbAgdAwXjq0dfKgBb70CAwEAAaNkMGIwHQYDVR0OBBYE +FJe6Dwd8+SvhJBpnSLBJj9bvb/AnMB8GA1UdIwQYMBaAFJe6Dwd8+SvhJBpnSLBJ +j9bvb/AnMA8GA1UdEwEB/wQFMAMBAf8wDwYDVR0RBAgwBocEfwAAATANBgkqhkiG +9w0BAQsFAAOCAQEApw698ftzFl6QMBm1hC2BZsjTxg/dZXDFvr6Ft6ZN+fksKCWx +UMJgvvd3n/6KKrufp/EC5H4Gr049KUoMq0XZg05gVna1e1Ee9XSeKzB8Pd6DcPkC +8iTahh/RbXmVdVezccq59Fri7nyzlA+fDY8PaiayGYDvqEccSeD6ouL24AESvLwd +2RDnxTjNYu5iEie3M/28h+0fUEDkC7imCQmLcpPr0XWjXMR7v0bmdzksxp79RQUx +Eq46J3UX/zc8c3r3etSara2RjUBfNW2jvUT4Ic6yeyYgYWAb/Mqr6kK1GIBT99Fk +trN2MRYD4hmvAfAqdCbpzWbKJnrHRh9d9B0UXA== -----END CERTIFICATE----- diff --git a/receiver/kafkametricsreceiver/testdata/certs/cert.pem b/receiver/kafkametricsreceiver/testdata/certs/cert.pem index 2a7b22f3e60b..8cd95ca98239 100644 --- a/receiver/kafkametricsreceiver/testdata/certs/cert.pem +++ b/receiver/kafkametricsreceiver/testdata/certs/cert.pem @@ -1,20 +1,20 @@ -----BEGIN CERTIFICATE----- -MIIDTDCCAjSgAwIBAgIUEKnoi6rZUHazo6+3uJJPRDS6AOkwDQYJKoZIhvcNAQEL -BQAwIjEgMB4GA1UEChMXT3BlblRlbGVtZXRyeSBDb2xsZWN0b3IwHhcNMjIxMTEw -MDEwMTAwWhcNMjMxMTEwMDEwMTAwWjAiMSAwHgYDVQQKExdPcGVuVGVsZW1ldHJ5 -IENvbGxlY3RvcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO1p6W9j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AyMjU1MjdaGA8zMDIzMDMx +MzIyNTUyN1owVjELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExDzAN +BgNVBAoMBlNwbHVuazENMAsGA1UECwwEbzExeTESMBAGA1UEAwwJbG9jYWxob3N0 +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvi+Fm0wFxWOaCkB/0Vf4 +hpSZ/m7Lh51T8VyJK4b6il7lSsuhVpo37epYDLP5gsPIGQxQGU5FC4bc+dug5XHp +mBEofnxDnRlZe1Oa6P9Wh/81qPf29/Ep7rCHJO3k1Pj3z7jHxDQz62yD0aRTKqk7 +l01lWSkWoaJWYaRe+oduI69utO2mNzdHtdxe5h1GXDA8MUt3EFH1xMRDD4hJSD7L +zw4VFeVr3+wAYm3bs35j7G2LktBcWhu2Du3kJ3/EVWVOmP3kWGxAT9E1ZhCtQI1J +gO9BozxGzZMrRhwZTWqdnFdCjYWgEGo8t0+UmVJ93GZ8M5epsCB0DBeOrR18qAFv +vQIDAQABozIwMDAPBgNVHREECDAGhwR/AAABMB0GA1UdDgQWBBSXug8HfPkr4SQa +Z0iwSY/W72/wJzANBgkqhkiG9w0BAQsFAAOCAQEAGGm4Fxl6uh0WOANUvCVQaCiS +712u98oU9mp0hyF2NVQjATCwEmVEmrPyARh00FmZuuFsTMNfb0zdYsrxRiG0tYqe +tRtQR91QdVQBpF+74IQr04VaoLf94CekXpokHyggC54Ak452jGht7oJY6FHsRPuu +9MB7o1AxHJkSvjCl/fU4NqVH3sjlt99iSKCv+aHau/bb+MDN+uwr+7gZiCVEqxgA +m5QZ773Zs6+SU+K8he2iD3AM5aclxQR1wT0VKnl2hMH5tcptyAcldGNEY/iqnyWf +fWebz6Gq8vakMN74qcW/UprKk4JgC9RxC80U9FkVyL37JHHQIXkVI1vJ+sIZNw== -----END CERTIFICATE----- diff --git a/receiver/kafkametricsreceiver/testdata/certs/key.pem b/receiver/kafkametricsreceiver/testdata/certs/key.pem index 8a29c6811050..529ea4609b58 100644 --- a/receiver/kafkametricsreceiver/testdata/certs/key.pem +++ b/receiver/kafkametricsreceiver/testdata/certs/key.pem @@ -1,27 +1,28 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEpAIBAAKCAQEA7Wnpb2OiVNo6MMsYiGj6rAoDJkVzfFrlXiPHuDdPx3cF4rfv -Gtw4YYyb0w4rC7figIbXtUJvWXaVT2ta8vGes35w8XGYctikp7bIkRr2F0nHO2Uo -M7nJgJSmcoGBQD3Dae+Psph6s2hzKQg7okQBzF9Vw/dSPWLDkJeNOKtIGkZ/eQeW -R7hZaX2LllYLcaS4G8TwTPHltkzSANJMZnLUMyQQfvIF52pTMCZXiHo5USHGKkLU -bdXwoJonC6c2bRKPcE0eal9iQDQiFZP2OrlRH1Dy4uepxQlKEq5k2LqJ0yheDEis -VJS0XT407tFJQ+ASRNIvSvJS/gsUumhkE97iXwIDAQABAoIBAET6TaFYYFSo5tlA -WMthPNt5OTsIWKpbumJkoOVL5Lj+Qs6BRE4Yh6UH9koWxrjr3zoac1etiq6CfpUJ -iu4k90gNR4FO0M0lVomH2LQYEkHn5KPEGy8UHpBmIAoKyGPCziDcQnLQTG4Nvc/B -HZpiiec4F7INDG7bYBiFf7lkQlmnbKJRwtOFxbFsbhOl8vk3CredIEioacr5sJZ3 -3TOBb25SI1D9IqrOeP//vGgdj9g1aHmhutlte2L0wnRukRmKtG4xKHutVLsrIf7z -9lUAL0lj15aVmKw290IdcSweZVxqJDgI0c8lCj3JIwWt6wwC/ZfQZse4/KCiSJnY -2+DPJ8kCgYEA+jT+pijb9Of12iMdNrMGEyiutHTboLL1C+oNHWbYUhB5ZRZgq3PS -9M200TtjlnH9E938BRhhrGt2K8FeNcFi9I4j4BLWCrMC90nbCkqxsgCpH17O3xFA -WUx0wN25JLFGlNV4+MH28Krx3uYt3uppD7BBrC0LoRIAReOplkBRwsUCgYEA8ukW -/8efs1DmJhFwRLyMjHiwTDIaZ4wVBuBvK0TxTtjmzI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2UlXrRAoGAWGcyg5IOWjELFw5+aLRR +/LBgbDZUQ05UmYrdAaeUO8xB2Mnm5j3uA08PAWoUag5TcMcrufkWk6ikjNphMSE9 +6jp3xn7hzHczig0xbNs6y23i5IerTxxSUaKT3myoLjSQeiab1js/kOuXie4Ss/7Z +91aAg6wAgiyKq/2TwUlThHQ= +-----END PRIVATE KEY----- diff --git a/receiver/kafkareceiver/testdata/certs/ca.pem b/receiver/kafkareceiver/testdata/certs/ca.pem index fac69544dad4..b57a64b90a13 100644 --- a/receiver/kafkareceiver/testdata/certs/ca.pem +++ b/receiver/kafkareceiver/testdata/certs/ca.pem @@ -1,19 +1,21 @@ -----BEGIN CERTIFICATE----- -MIIDJTCCAg2gAwIBAgIUbxyAWK9JdXkAF2CirQRQPTCIBHEwDQYJKoZIhvcNAQEL -BQAwIjEgMB4GA1UEChMXT3BlblRlbGVtZXRyeSBDb2xsZWN0b3IwHhcNMjIxMTEw -MDA1ODAwWhcNMjcxMTA5MDA1ODAwWjAiMSAwHgYDVQQKExdPcGVuVGVsZW1ldHJ5 -IENvbGxlY3RvcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANgsWxLV -7+12fZN4RWKPnDhL8FLrmZq0GjPwPeeyCtfQ9tkKuR6TsEk0A3fpQQvRTQL5bSq+ -fEnEpRlQA6jojpttK4VGygKHARbCegEUpxH+FeT0mK018M4v/II8StN/ibDXITMQ -EgWv94RwoeyuPMGI+Gccd78vWUnef4+0xhQg0prv+v5yqAxPHWV9SeeXfOHCXaqu -Bb4NR1RtHX+Ci8hYM+cn2cULgN5PJrmpP9nE/iq6S4N9niB1R3fp9Yl1Z6MEHOzI -SLkuwqPVc777YGTu4vLa4j7lu3j3rOCVX2E3EJz/zyMDBoqmkVn+L3lMG4Aq48fW -dVx59dAwp2U9Ta8CAwEAAaNTMFEwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQF -MAMBAf8wHQYDVR0OBBYEFBUOUVYqpBGRvqT/8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fdxmfDOXqbAgdAwXjq0dfKgBb70CAwEAAaNkMGIwHQYDVR0OBBYE +FJe6Dwd8+SvhJBpnSLBJj9bvb/AnMB8GA1UdIwQYMBaAFJe6Dwd8+SvhJBpnSLBJ +j9bvb/AnMA8GA1UdEwEB/wQFMAMBAf8wDwYDVR0RBAgwBocEfwAAATANBgkqhkiG +9w0BAQsFAAOCAQEApw698ftzFl6QMBm1hC2BZsjTxg/dZXDFvr6Ft6ZN+fksKCWx +UMJgvvd3n/6KKrufp/EC5H4Gr049KUoMq0XZg05gVna1e1Ee9XSeKzB8Pd6DcPkC +8iTahh/RbXmVdVezccq59Fri7nyzlA+fDY8PaiayGYDvqEccSeD6ouL24AESvLwd +2RDnxTjNYu5iEie3M/28h+0fUEDkC7imCQmLcpPr0XWjXMR7v0bmdzksxp79RQUx +Eq46J3UX/zc8c3r3etSara2RjUBfNW2jvUT4Ic6yeyYgYWAb/Mqr6kK1GIBT99Fk +trN2MRYD4hmvAfAqdCbpzWbKJnrHRh9d9B0UXA== -----END CERTIFICATE----- diff --git a/receiver/kafkareceiver/testdata/certs/cert.pem b/receiver/kafkareceiver/testdata/certs/cert.pem index 2a7b22f3e60b..8cd95ca98239 100644 --- a/receiver/kafkareceiver/testdata/certs/cert.pem +++ b/receiver/kafkareceiver/testdata/certs/cert.pem @@ -1,20 +1,20 @@ -----BEGIN CERTIFICATE----- -MIIDTDCCAjSgAwIBAgIUEKnoi6rZUHazo6+3uJJPRDS6AOkwDQYJKoZIhvcNAQEL -BQAwIjEgMB4GA1UEChMXT3BlblRlbGVtZXRyeSBDb2xsZWN0b3IwHhcNMjIxMTEw -MDEwMTAwWhcNMjMxMTEwMDEwMTAwWjAiMSAwHgYDVQQKExdPcGVuVGVsZW1ldHJ5 -IENvbGxlY3RvcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO1p6W9j -olTaOjDLGIho+qwKAyZFc3xa5V4jx7g3T8d3BeK37xrcOGGMm9MOKwu34oCG17VC -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AgMCkNhbGlmb3JuaWExDzAN +BgNVBAoMBlNwbHVuazENMAsGA1UECwwEbzExeTESMBAGA1UEAwwJbG9jYWxob3N0 +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvi+Fm0wFxWOaCkB/0Vf4 +hpSZ/m7Lh51T8VyJK4b6il7lSsuhVpo37epYDLP5gsPIGQxQGU5FC4bc+dug5XHp +mBEofnxDnRlZe1Oa6P9Wh/81qPf29/Ep7rCHJO3k1Pj3z7jHxDQz62yD0aRTKqk7 +l01lWSkWoaJWYaRe+oduI69utO2mNzdHtdxe5h1GXDA8MUt3EFH1xMRDD4hJSD7L +zw4VFeVr3+wAYm3bs35j7G2LktBcWhu2Du3kJ3/EVWVOmP3kWGxAT9E1ZhCtQI1J +gO9BozxGzZMrRhwZTWqdnFdCjYWgEGo8t0+UmVJ93GZ8M5epsCB0DBeOrR18qAFv +vQIDAQABozIwMDAPBgNVHREECDAGhwR/AAABMB0GA1UdDgQWBBSXug8HfPkr4SQa +Z0iwSY/W72/wJzANBgkqhkiG9w0BAQsFAAOCAQEAGGm4Fxl6uh0WOANUvCVQaCiS +712u98oU9mp0hyF2NVQjATCwEmVEmrPyARh00FmZuuFsTMNfb0zdYsrxRiG0tYqe +tRtQR91QdVQBpF+74IQr04VaoLf94CekXpokHyggC54Ak452jGht7oJY6FHsRPuu +9MB7o1AxHJkSvjCl/fU4NqVH3sjlt99iSKCv+aHau/bb+MDN+uwr+7gZiCVEqxgA +m5QZ773Zs6+SU+K8he2iD3AM5aclxQR1wT0VKnl2hMH5tcptyAcldGNEY/iqnyWf +fWebz6Gq8vakMN74qcW/UprKk4JgC9RxC80U9FkVyL37JHHQIXkVI1vJ+sIZNw== -----END CERTIFICATE----- diff --git a/receiver/kafkareceiver/testdata/certs/key.pem b/receiver/kafkareceiver/testdata/certs/key.pem index 8a29c6811050..529ea4609b58 100644 --- a/receiver/kafkareceiver/testdata/certs/key.pem +++ b/receiver/kafkareceiver/testdata/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