[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#761945: fixing links for DLAs in the security tracker



Hi Antoine,

On Wed, Mar 29, 2017 at 03:49:31PM -0400, Antoine Beaupré wrote:
> On 2017-03-29 17:02:44, Salvatore Bonaccorso wrote:
> > Hi Antoine,
> 
> Hi!
> 
> > If you want to look at this part: There is a ./parse-dla.pl script in
> > the webwml CVS, which is used to import the DLAs (this is an
> > analogeous script to parse-advisory.pl which is used to import the
> > DSAs).
> 
> I see... The scripts are in /english/security for anyone looking. And if
> people are (like me) thinking "... wat.. CVS?" then yes, we are still
> using this:
> 
> https://www.debian.org/devel/website/using_cvs
> 
> My cvs commandline finger memory is *definitely* still there though, so
> that works for me. :)
> 
> > The "manual" steps one would perform are roughly:
> >
> > ./parse-dla.pl $message
> > cvs add $year/dla-$nr.{wml,data}
> > cvs commit -m '[DLA $nr] $source security update'
> 
> Is this something the security team performs as part of the DSA release
> process? Or is this something the debian-www people do? I guess you need
> write access to the repository and I see that *you* do, but is this
> expected from everyone working on releasing public advisories, the same
> way we need access to the security tracker?

No it's not something we do as part of a regular DSA releasing
process, and as well not expected to do so, as the websites are under
debian-www "domain" (and btw, they do a great job!). But often, when I
have time I do as well the import (but as you will see from cvs log,
not always). For the security team the current process is: preparing
the DSA (packages, tracker work, text, releasing packages), send out
the advisory (at this stage our work is basically done).

> And to import older entries, we'll need the original templates, which we
> deliberately did *not* commit anywhere, so they are basically available
> only as mailing list archives, and thus hard to find automatically.

But given the debian-lts-announce is archived, shouldn't it be
relatively easy to frist grab all announces from
https://lists.debian.org/debian-lts-announce/ then check which one
need to still be imported, extract the mail and do the import? Or do I
missunderstand you?

> I foresee difficulties in importing the missing data...
> 
> Here's the bits that are missing:
> 
>  * the last DLA on the website is DLA-445-2, which is basically the last
>    DLA before squeeze support ended and wheezy was handed over
> 
>  * among those 445 DLAs, there are actually 31 missing:
> 
>    webwml$ cd english/security/; find -name 'dla-*.wml' | wc -l
>    424
> 
>  * even worse, it seems there are at least 20 advisories missing from
>    the website because regression uploads hide advisories, because our
>    naming convention differs from DSA ("DLA-XXX-N", where XXX is the
>    original advisory and N are regression updates)

I do not understand this point. What do you mean by hinding? For DSA's
as well only one https://www.debian.org/security/$year/dsa-$nr is ever
visible as well (and it depends if the text has been then updated
according to a regression update or not, and in DLAs cases I guess
just only the last iteration might has been imported, not the initial
-1 one).

>    $ grep DLA- data/DLA/list | sed 's/.* DLA-//;s/ .*//' | sort -n | sed '/445-2/,$d' | wc -l
>    465
> 
>  * the canonical list has 928 advisories:
> 
>    secure-testing$ grep DLA- data/DLA/list | wc -l 
>    928
> 
> So, lots of work there.
> 
> > The background work leading to that was done by Frank Lichtenheld in
> > #762255.
> 
> Great to see that! It does seem problematic to import regression updates
> however.
> 
> > having something on the debian-wwww side which does this
> > automatically, once a DSA or DLA arrives would help surely the
> > debian-www team who then "only" have to do the translations and fix
> > obvious mistakes. OTOH keep in mind: When the debian-wwww team imports
> > a DSA or DLA they may need to do some adjustments so, I'm not sure if
> > it's liked to have the automatism, since sometimes before cvs commit
> > some changes need to be done on the .wml file. 
> 
> It looks like this is something that should be discussed with the www
> people... Maybe a bug against www.debian.org?

I think yes on looking further at this with a bug against
www.debian.org and the debian www team. In particular to find out why
DLA imports ended, and if someone is willing to help doing the
remaining task. And the other aspect is if DSA and DLA imports should
be automated (and problems in the wml fixed later on manually, which
will be detected since they might cause cron errors mails to the
debian-www team).

> This begs the question, however - wouldn't it be simpler to import those
> advisories in the security tracker directly?

Feel free to, say for example data/DLA/advisories/ (or some other
directory, but below the data/DLA "namespace"); As the
testing-security team did for a while, for historical view look at
data/DTSA/advs. This is my opinion: But for displaying the advisories
well integrated I think the right place is the Debian websites.
Furthermore at least from Debian Security team view, our process in
releasing a DSA should not be increased by the need to commit the
advisory text as well in some place additionally to send the DSA (as
said above, that I import the DSAs in webwml is purely on "voluntary"
basis, the team is not required to do so; and the current debian-www
team is good on picking them up after the mail ist out).

Regards,
Salvatore


Reply to: