-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add TLS, QoS and retain options to the MQTT receiver #232
Add TLS, QoS and retain options to the MQTT receiver #232
Conversation
4982a99
to
bccfd21
Compare
bccfd21
to
454aa94
Compare
receivers/mqtt/config.go
Outdated
Retain bool `json:"retain,omitempty" yaml:"retain,omitempty"` | ||
TLSCACertificate string `json:"tlsCACertificate,omitempty" yaml:"tlsCACertificate,omitempty"` | ||
TLSClientCertificate string `json:"tlsClientCertificate,omitempty" yaml:"tlsClientCertificate,omitempty"` | ||
TLSClientKey string `json:"tlsClientKey,omitempty" yaml:"tlsClientKey,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if we group these fields into a struct (similar to what upstream does). This schema will let us group fields in UI as well.
There are some problems with nested secrets right now but it should be fixed in grafana/grafana#92035.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Later we may reuse it in other integrations such as webhook
fd0c2cd
to
8fd94d3
Compare
8fd94d3
to
2a01a54
Compare
15d5b7b
to
aa46696
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @alexander-akhmetov, hope I'm on time for a last comment here. I'm investigating how to inject TLS config in the webhook receiver and this could help a lot (in the scope of grafana/grafana#9548).
I could also tackle the suggested changes in a separate PR once you merge it, if you'd prefer 👍
ca50133
to
99614a5
Compare
99614a5
to
c2f1eec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Add TLS, QoS and Retain parameters to the MQTT receiver.
Grafana PR: grafana/grafana#92331
Related: grafana/grafana#16858 and #227