notification-controller icon indicating copy to clipboard operation
notification-controller copied to clipboard

[RFC-0004] Allow disabling of insecure HTTP connections for alert providers

Open gunishmatta opened this issue 2 years ago • 16 comments

Hi, Please review and suggest changes.

Thanks

Fixes: https://github.com/fluxcd/notification-controller/issues/386

gunishmatta avatar Aug 15 '22 05:08 gunishmatta

@pjbgf I have done the suggested changes. Please review

gunishmatta avatar Aug 15 '22 07:08 gunishmatta

@gunishmatta please squash your changes into a single commit.

pjbgf avatar Aug 15 '22 15:08 pjbgf

@makkes I will work on the suggested changes by you and will update the PR

Thanks for the review

gunishmatta avatar Aug 16 '22 12:08 gunishmatta

@pjbgf @makkes I'm not Ok with breaking Flux Grafana integration by disabling http by default. If you think this is acceptable please create an RFC.

stefanprodan avatar Aug 16 '22 12:08 stefanprodan

@gunishmatta please hold working on this, a decision to break Flux for all users is not something that can be taken lightly in a PR, an RFC is needed.

stefanprodan avatar Aug 16 '22 12:08 stefanprodan

@pjbgf @makkes I'm not Ok with breaking Flux Grafana integration by disabling http by default. If you think this is acceptable please create an RFC.

My line of thought is that https://github.com/fluxcd/notification-controller/pull/404#discussion_r945833752 recommends setting the default to true for backwards-compatibility to explicitly not break any existing integration.

makkes avatar Aug 16 '22 12:08 makkes

@makkes @stefanprodan just wanted to check if we can go ahead with making this flag disabled by default?

gunishmatta avatar Aug 23 '22 08:08 gunishmatta

@makkes @stefanprodan just wanted to check if we can go ahead with making this flag disabled by default?

No, I don't think we can without further discussion. Disabling plain HTTP by default would break Grafana integration as @stefanprodan pointed out. An RFC would be needed.

makkes avatar Aug 23 '22 08:08 makkes

@makkes @stefanprodan just wanted to check if we can go ahead with making this flag disabled by default?

No, I don't think we can without further discussion. Disabling plain HTTP by default would break Grafana integration as @stefanprodan pointed out. An RFC would be needed.

Sorry, what I mean is releasing with enabling http scheme by default. Anyways, please let me know whatever would be the update I will be doing it accordingly.

Thanks

gunishmatta avatar Aug 23 '22 08:08 gunishmatta

@makkes @stefanprodan just wanted to check if we can go ahead with making this flag disabled by default?

No, I don't think we can without further discussion. Disabling plain HTTP by default would break Grafana integration as @stefanprodan pointed out. An RFC would be needed.

Sorry, what I mean is releasing with enabling http scheme by default. Anyways, please let me know whatever would be the update I will be doing it accordingly.

If all comments from my and @pjbgf's reviews are addressed, this should be fine to get merged.

makkes avatar Aug 23 '22 08:08 makkes

@pjbgf I have addressed all the changes requested above, Please review and merge if everything is okay

gunishmatta avatar Oct 31 '22 07:10 gunishmatta

@makkes have enabled http by default.

gunishmatta avatar Oct 31 '22 12:10 gunishmatta

@pjbgf Please review, have updated the tests

gunishmatta avatar Nov 07 '22 12:11 gunishmatta

Other than the unnecessary condition this looks good to me now.

Done this optional change too, Please merge if everything is okay

gunishmatta avatar Nov 13 '22 17:11 gunishmatta

Hi @pjbgf , I have squashed all commits into one and it was an amazing experience contributing to Flux, Also since I am new to Golang, thanks for patiently reviewing all my changes in PR. I would love to contribute to Flux in future too.

Thanks everyone @makkes @stefanprodan

gunishmatta avatar Nov 14 '22 11:11 gunishmatta

This PR should no longer be on hold. A lot has changed since the last discussion. With notification-controller v1.2 released recently, the reconcilers for the Provider has been removed, simplifying the implementation. Disabling insecure HTTP connection should be implementable in the event handler based on the given configureation.

@gunishmatta sorry for a long hold. Since it has been a long time, if you can no longer work on this, we can make this available for others to implement or carry it forward.

Converting the PR to a draft for now as it'll require a lot of changes before it's ready for review.

darkowlzz avatar Feb 09 '24 13:02 darkowlzz