The previous version of my message maybe got a bit long and ranty.. (click to see it anyway)
I find the new behavior weird for security-motivated removals, too, though.
The previous behavior was completely adequate. Just hide all the revisions that contain the security sensitive information. Leave those that are fine. The diffs that users would be shown then would only be based on those revisions that are still visible.
Perhaps the only thing that was missing was a more intuitive UI, for instance an easy way to view an edit history as-if you weren’t permitted to see hidden entries. (Perhaps a “reveal hidden revisions” button. Similar to deleted content where it’s also obvious what less priviledged users can and cannot see.)
This change just takes away so much control now. Touch anything and half of your entire edit history is semi-invisible now. (I’d also call this - remarkably - a result that’s now much harder to ever intuitively understand. On top of that, there’s also an added “unlisted” option now, which makes it even harder to ever understand how to properly hide something and what exactly is or isn’t hidden.)
The only up side may be that it’s easier to hide something by doing the conceptually wrong thing now. Which is also a downside, because that becomes an argument against ever reverting this change ![]()
So I would stand on my interpretation that this can have been a misunderstanding of what security was supposed to be offered in the first place; if a human can make fencepost errors, an LLM can, too.
LLMs are great at finding edge cases
but they can also make up edge cases. False bug reports from LLMs are extremely common.
On the other hand, if this was some deliberate decision and change - and addressing any real concerns - it would be nice to be able to understand what the exact broken behavior was.
Is there any way to at least find out more on that at least? If I’m going to have edit histories broken for ever now for “security” reasony, then I’d at least want to understand for what purpose…
The only public thing on the “security issue” that started this all, that I seem to have to work with here, is this Hidden post revisions leak through adjacent visible diffs · Advisory · discourse/discourse · GitHub page.
Impact
Post revision that should be hidden to regular users can be leaked through visible diffs on adjacent revisions
That’s about as useless a summary as you could ever get.
And the commit I also linked already contains a link like this
## Source
- Patch Triage: https://patch.discourse.org/patch-triage/965
- Original commit:
but this “patch-triage” link - if there was any additional info to be found there - seems to be access protected, so it looks like it won’t help me either.
Thank you for coming in to reply here @sam. TL;DR: I still feel strongly like the wrong things may have been “fixed” here but have little information & context: is there any way to find out any additional details about what the supposed security issue was meant to be in the first place?
Going by the commit and Advisory I’ve linked before, I only have a very minimal summary of
Post revision that should be hidden to regular users can be leaked through visible diffs on adjacent revisions
to work with here.
(I had also done a longer session with ChatGPT Pro on this before my reply yesterday, to make sure I’m not missing anything obvious from my practical experience of how the implementation used to work; but it wasn’t able to point out more context, nor did it give me any better explanations for the change, either.)