mark modules with security issues

Pasqualle - March 7, 2007 - 23:28
Project:Update Status
Version:5.x-2.x-dev
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:dww
Status:closed
Description

Is it possible to add such functionality to this module, that it would inform me when the (last official version of) installed module has security issue(s)?

#1

dww - March 8, 2007 - 21:05
Status:active» postponed

it would require much more than support from this module:
1) release nodes would need to have a flag to indicate they include a security fix
2) contrib maintainers would have to set this flag accordingly
3) the XML-RPC interface on drupal.org that serves the info used by this module would have to be changed to return this data

then...
4) this module would have to display the data in some useful way in the UI.

this would all be good, and in fact, has been planned for months, but none of it is done yet. in fact, there aren't even issues posted for #1 and #3, yet. so, for now, this particular request must be postponed until these other things are resolved.

thanks,
-derek

#2

dww - April 13, 2007 - 22:55

bump: i just submitted http://drupal.org/node/136172 as an issue about changing the XML-RPC protocol to be able to support this sort of thing.

#3

dww - May 8, 2007 - 19:35
Priority:normal» critical
Status:postponed» active

see http://drupal.org/node/142344 -- we've now got a "Security update" term we can apply to release nodes.
and, progress continues at full steam for http://drupal.org/node/136172

so, this issue is active again... i'm also bumping to "critical", since we need a working prototype of this functionality ASAP so we can fold it into core in time for the D6 code freeze.

#4

dww - May 13, 2007 - 03:34
Version:5.x-1.0» 5.x-2.x-dev

this is nearly done in the 5.x-2.* series...

#5

dww - May 13, 2007 - 06:31

minor visual problems with the current version. see screenshot. patch forthcoming.

AttachmentSize
update_status_security_warning_before.png 136.42 KB

#6

dww - May 13, 2007 - 06:35

screenshot of proposed fix.

AttachmentSize
update_status_security_warning_after.png 137.3 KB

#7

dww - May 13, 2007 - 06:37
Status:active» needs review

patch that accomplishes the previous screenshot

AttachmentSize
update_status_security_warning.patch.txt 1.35 KB

#8

dww - May 13, 2007 - 16:26
Category:feature request» bug report
Priority:critical» normal
Status:needs review» active

committed slightly modified version to HEAD. webchick pointed out that the underline made it seem like a link, which is a no-no. it would be slick if we could have that be a link to the right SA, but that's actually a huge can of worms that would require even more work on the server side.

setting this back to active so that we can work out the edge cases with releases marked as Security updates that have extra in the version number (e.g. project_issue 5.x-0.2-beta).

#9

dww - May 13, 2007 - 17:02

after discussion in IRC, we decided it's somewhat confusing on the case where a security update happened but another (non-security) release is already available. audio.module is a good example. 5.x-0.3 was a security update, but 5.x-1.0 is now out. before, if you were running 5.x-0.1 and ran update_status, it'd correctly tell you that you need to upgrade b/c of a security update, and it would correctly recommend you install 5.x-1.0, but it wouldn't give you any link to 5.x-0.3 to see what the security problem was. attached patch fixes this. it's somewhat simplistic, in that it always lists a "Security update:" row in the table, even if it's the same info as the "Recommended version:" row. however, we think that might be a feature, not a bug, since it helps drive home the point there's a security update. ;) screenshot coming next.

AttachmentSize
update_status_show_security_releases.patch.txt 2.62 KB

#10

dww - May 13, 2007 - 17:08

screenshot of the above. doesn't show the case where the security update == the recommended version, but i think you can imagine that.

also, this is just a list, so if you're running something really old and there have been N security updates, each one will be listed in the table for that project. i can't find any real examples of that to demo yet, though i guess i could put some bogus data on s.d.o and point my install at that if we really wanted to test it. ;)

AttachmentSize
update_status_show_security_releases.png 152.1 KB

#11

dww - May 13, 2007 - 17:15

now, with the "Security update:" label wrapped in a span with the same class as the "Security update required!" stuff.

AttachmentSize
update_status_show_security_releases_2.png 152.59 KB

#12

dww - May 13, 2007 - 17:34

i like #10 better than #11: if the recommended version is newer than the security update, we really want them to upgrade to the recommended version, so extra visual attention to the security update release might be counter-productive. so, i committed #9 to HEAD.

#13

dww - June 6, 2007 - 23:38

bump for clarity: the only reason this issue is still active is because of the edge case where the latest release for a given major version we're tracking is both a security update and a beta, as is currently the case for project.module and project_issue.module. once we handle that, we're done here.

#14

dww - June 18, 2007 - 09:22

my patch at http://drupal.org/node/149918#comment-261116 solves this, too.

#15

dww - June 19, 2007 - 23:50
Assigned to:Anonymous» dww

Yay, this is working fully, now that http://drupal.org/node/149918 is committed.

However, over at http://drupal.org/node/149918#comment-261964 merlin rightly pointed out that the UI looks a little wonky for this. In IRC, he suggested just replacing the "Update available" text with the "Security update required!" part. Sounds good to me. I'll work on a patch now.

#16

dww - June 20, 2007 - 00:03
Status:active» needs review
AttachmentSize
update_status_security_warning.patch_1.txt 1.85 KB

#17

dww - June 20, 2007 - 00:08

screenshot of the latest. i know we talked about this before, but i'm having 2nd thoughts about including both "Recommended version" and "Security update" if they're both pointing to the same thing. If there are multiple security updates, I can see it, but what's in this screenshot is a little weird, IMHO.

AttachmentSize
update_status_security_warning.patch_1.png 150.3 KB

#18

merlinofchaos - June 20, 2007 - 00:13

This patch changes the text from a div to a span and removes padding and floating that is no longer necessary.

AttachmentSize
update_status_security_warning.patch_1_0.txt 1.84 KB

#19

dww - June 20, 2007 - 00:40

Building on merlin's fixes to my previous patch:

1) Don't bold the "Security update:" part, allow the red color to visually distinguish it. We still bold the "Security update required!" part in the status area. But, excessive use of bold makes this look cluttered, and makes it harder to use bold where we might need it.

2) If there's only 1 security update, and it's the same version as the recommended version, don't print it twice. Just print the the "Security update:" line, not the "Recommended version:" one.

AttachmentSize
update_status_security_warning.patch_2.txt 3.06 KB

#20

dww - June 20, 2007 - 00:54
Status:needs review» fixed

merlin and i discussed this more in IRC. we agree we *could* use that bold in some cases, just not all. so, we'll tackle the use of bold over at http://drupal.org/node/149079. meanwhile, committed #19 to HEAD.

#21

Anonymous - July 4, 2007 - 01:16
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.