8000 feat(syslogexporter): add option to skip certificate verfication by kasia-kujawa · Pull Request #983 · SumoLogic/sumologic-otel-collector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(syslogexporter): add option to skip certificate verfication #983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

kasia-kujawa
Copy link
Contributor

This allows using self-signed certificates

@github-actions github-actions bot added documentation Improvements or additions to documentation go labels Feb 15, 2023
@kasia-kujawa kasia-kujawa force-pushed the kk-syslog-skip-cert-verification branch from f692e2c to c876ed8 Compare February 15, 2023 11:57
@kasia-kujawa kasia-kujawa marked this pull request as ready for review February 15, 2023 11:57
@kasia-kujawa kasia-kujawa requested a review from a team as a code owner February 15, 2023 11:57
@kasia-kujawa kasia-kujawa force-pushed the kk-syslogexporter-mtls branch from c87deec to ce5bebb Compare February 15, 2023 13:00
Base automatically changed from kk-syslogexporter-mtls to main February 15, 2023 16:01
@sumo-drosiek
Copy link
Contributor

Isn't there any helpers for http client in Otel?

Comment on lines 27 to 30
- `ca_certificate` [tcp only] - A publicly verifiable server certificate
- `certificate` [tcp only] - certificate for mTLS communication (client certificate)
- `key` [tcp only] - Key for mTLS communication (client key)
- `skip_certificate_verification` - [tcp only] If set to `true` then any certificate presented by the server is accepted and any host name in that certificate
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we group configuration under common key?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kasia-kujawa kasia-kujawa force-pushed the kk-syslog-skip-cert-verification branch from c876ed8 to 1a0d502 Compare February 16, 2023 08:09
@kasia-kujawa
Copy link
Contributor Author

Isn't there any helpers for http client in Otel?

We don't use http in syslogexporter, we use only TCP/UDP.

@swiatekm
Copy link

Isn't there any helpers for http client in Otel?

We don't use http in syslogexporter, we use only TCP/UDP.

Otel core does have a helper for TLS though: https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/configtls, which we should use, though not necessarily in this PR.

@kasia-kujawa
Copy link
Contributor Author

Isn't there any helpers for http client in Otel?

We don't use http in syslogexporter, we use only TCP/UDP.

Otel core does have a helper for TLS though: https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/configtls, which we should use, though not necessarily in this PR.

@swiatekm-sumo I mentioned it in this comment: #983 (comment)

@kasia-kujawa kasia-kujawa force-pushed the kk-syslog-skip-cert-verification branch 2 times, most recently from 4ef423d to 6d01599 Compare February 16, 2023 11:31
@kasia-kujawa
Copy link
Contributor Author

Configuration for TLS is changed in this PR and uses https://github.com/open-telemetry/opentelemetry-collector/tree/main/config/configtls, I assume that this kind of changes are not treated as breaking changes because syslog exporter has alpha stability https://github.com/open-telemetry/opentelemetry-collector#alpha

@kasia-kujawa kasia-kujawa force-pushed the kk-syslog-skip-cert-verification branch from 6d01599 to 4d376c0 Compare February 16, 2023 11:38
@kasia-kujawa kasia-kujawa force-pushed the kk-syslog-skip-cert-verification branch from 4d376c0 to 03cc8d0 Compare February 16, 2023 15:20
@kasia-kujawa kasia-kujawa merged commit 8f021b8 into main Feb 16, 2023
@kasia-kujawa kasia-kujawa deleted the kk-syslog-skip-cert-verification branch February 16, 2023 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation go
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0