-
Notifications
You must be signed in to change notification settings - Fork 527
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
Sentry helm externalKafka SSL config #1659
Comments
When using the backend node as externalKafaka host, getting below error. Let me know to kafka SSL location
|
my config:
|
Thanks for your response. |
You can use a sketchy workaround, as there is no other way you can set this up in the config:
configYml: {}
sentryConfPy: |
KAFKA_CLUSTERS["default"] = {
"common": {
# See https://github.com/getsentry/arroyo/blob/main/arroyo/backends/kafka/configuration.py#L16-L38 for the supported options
"bootstrap.servers": "$KAFKA_HOST:$KAFKA_PORT",
"ssl.ca.location": "/usr/local/share/ca-certificates/cert.pem",
# If you need cert + key for users
# "ssl.certificate.location": os.environ.get("KAFKA_SSL_CERT_PATH", ""),
# "ssl.key.location": os.environ.get("KAFKA_SSL_KEY_PATH", ""),
"security.protocol": "SASL_SSL",
"sasl.mechanism": "PLAIN",
"sasl.username": "$KAFKA_USER_NAME",
"sasl.password": "$KAFKA_USER_OPS",
}
}
snubaSettingsPy: |
BROKER_CONFIG: Mapping[str, Any] = {
# See https://github.com/getsentry/arroyo/blob/main/arroyo/backends/kafka/configuration.py#L16-L38 for the supported options
"bootstrap.servers": "$KAFKA_HOST:$KAFKA_PORT",
"ssl.ca.location": "/usr/local/share/ca-certificates/cert.pem",
# If you need cert + key for users
# "ssl.certificate.location": os.environ.get("KAFKA_SSL_CERT_PATH", ""),
# "ssl.key.location": os.environ.get("KAFKA_SSL_KEY_PATH", ""),
"security.protocol": "SASL_SSL",
"sasl.mechanism": "PLAIN",
"sasl.username": "$KAFKA_USER_NAME",
"sasl.password": "$KAFKA_USER_OPS",
} I had to dig up in the snuba and sentry configuration to find what i needed. (also in the helm helpers) This configuration works for me but i only hit a single server, you might be able to adjust it with some more digging sentry_helper. For the maintainers maybe adding something like (sadly i dont have the time to contribute) kafka:
ssl:
ca:
secret: my-ca-cert-secret
path: '/usr/local/share/cert.pem' {{- $sentryKafkaSslCaPath := include "sentry.kafka.ssl.ca.path" .}}
{{- if $sentryKafkaSslCaPath) }}
"ssl.ca.location": {{ $sentryKafkaSslCaPath | quote}},
{{- end }} {{- $sentryKafkaSslCaPath := include "sentry.kafka.ssl.ca.path" .}}
{{- if $sentryKafkaSslCaPath) }}
- name: my-ca-cert-secret
mountPath: $sentryKafkaSslCaPath
{{ end }} |
Hi Sentry Team,
When trying to configure the sentry fresh installation with externalKafka SSL.
Getting below error and no options exist to enable SSL Cert/key on helm values.yaml.
Values.yaml:
Error:
Please share if we can enable cert and key on helm values.yaml or other workaround.
The text was updated successfully, but these errors were encountered: