Skip to content
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

DEV: Remove backend diagnostics #289

Merged
merged 2 commits into from
Jan 10, 2022
Merged

DEV: Remove backend diagnostics #289

merged 2 commits into from
Jan 10, 2022

Conversation

CvX
Copy link
Contributor

@CvX CvX commented Dec 18, 2021

No description provided.

@CvX CvX marked this pull request as ready for review December 19, 2021 23:07
@CvX
Copy link
Contributor Author

CvX commented Dec 19, 2021

@benlangfeld How do you feel about dropping the diagnostics completely? That never really grew out into a full-fledged feature and seems to be unused by the vast majority of users. Its code was also untouched since #194. (three years ago 😃)

In the future, if there's any interest in better diagnostics interface, it could be created from the ground up as a separate gem/package.

@SamSaffron SamSaffron merged commit 52367e3 into main Jan 10, 2022
@SamSaffron SamSaffron deleted the drop-backend-diagnostics branch January 10, 2022 23:22
@benlangfeld
Copy link
Collaborator

benlangfeld commented Jan 11, 2022

What was the motivation for this? Was it causing any problem?

Indeed, I never did get time to work on it more. At the time I was under a bunch of pressure to improve message delivery latency and delivery rate, which were very poor in our deployment. We made a few simple obvious tweaks which made some improvement, but didn't get to what was proposed as acceptable, then the pressure dried up and several other things became an emergency. I agree, usage seems very sporadic. Important metrics are not exposed (see #248, #243) and the diagnostics UI was mostly useless (see #186), but it seems a shame to give up on it.

@benlangfeld
Copy link
Collaborator

Ah, now I see GHSA-xmgj-5fh3-xjmm, I believe that is the motivation for this, correct?

@CvX
Copy link
Contributor Author

CvX commented Jan 16, 2022

@benlangfeld Yes, that security issue was the initial motivation for dropping the diagnostics. It also wasn't being used enough (or at all) to justify keeping around this old code. And the ability to terminate server processes in production, even when correctly limited to just admins, was considered dangerous.

As I noted in the previous comment, it would be best to implement any future diagnostic tooling for message_bus as a separate, optional package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants