taskSavane - Tasks: task #1926, integrated GPG sig checks:...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

task #1926: integrated GPG sig checks: sv_gpgcheckfiles

Submitted by:  Mathieu Roy <yeupou>
Submitted on:  Thu 23 Jun 2005 05:45:25 PM UTC  
 
Should Start On: Wed 22 Jun 2005 10:00:00 PM UTCShould be Finished on: Mon 26 Dec 2005 11:00:00 PM UTC
Category: BackendStatus: Done
Priority: 4 - HighPlanned Release: 
Assigned to: Mathieu Roy <yeupou>Open/Closed: Closed
Privacy: PublicFor/By: None

(Jump to the original submission Jump to the original submission)

Mon 18 Jul 2005 11:00:53 AM UTC, comment #9:

So far, it seems to run as expected.

Mathieu Roy <yeupou>
Project AdministratorIn charge of this item.
Tue 05 Jul 2005 08:40:10 AM UTC, comment #8:

it's being tested.

Mathieu Roy <yeupou>
Project AdministratorIn charge of this item.
Tue 28 Jun 2005 04:13:03 PM UTC, comment #7:

The script is performing fine on my test install.

I cannot put it on test on production server (ie Gna!) because this thing as to be announced first, since several projects got signed files without keys registered in Savane.

Mathieu Roy <yeupou>
Project AdministratorIn charge of this item.
Mon 27 Jun 2005 07:26:06 PM UTC, comment #6:

It would be too complex to check the content of each key (too many cases to guess, no automated way to determine what is right).

People filling garbage wont have their key registered, that's all.

Mathieu Roy <yeupou>
Project AdministratorIn charge of this item.
Mon 27 Jun 2005 06:51:35 PM UTC, comment #5:

You're right, it wasn't my key. It's the key of DIG, and it fails because he uses HTML markup. You should probably go through all keys and check if they are valid -- otherwise send a mail to the member, asking to post the correct data.

Another problem (which you cannot detect, I guess) is that the public keyblock of Loic contains not only his own key, but the key of his wife as well. She appears as a member of the Savane team on the GPG page (Marie-Christine Aubin (Dachary)). This is a bit misleading IMHO.

Tobias Quathamer <toddy>
Project Member
Mon 27 Jun 2005 05:35:43 PM UTC, comment #4:

I got it when I ran manually sv_users. But I think it was not in fact you key. The begin is very similar but after BD it's different.

Mathieu Roy <yeupou>
Project AdministratorIn charge of this item.
Mon 27 Jun 2005 05:29:42 PM UTC, comment #3:

That's strange, because it's displayed correctly on the web frontend. I can also download the keyring and use "gpg <keyring>.gpg" on it, it displays the correct information.

How/where did you get that error?

Tobias Quathamer <toddy>
Project Member
Mon 27 Jun 2005 10:41:37 AM UTC, comment #2:

There was initially something I missed. But it looks like your key is not valid

gpg: invalid armor header: mQGiBD1bRX8RBACfR6zud9HJqJKjmE1Gf+FEuUFC7NlJ0a02MBONVpBqfpQ15NQr

Mathieu Roy <yeupou>
Project AdministratorIn charge of this item.
Sun 26 Jun 2005 11:55:47 AM UTC, comment #1:

The information about the GPG keys doesn't seem to be updated properly. I've included my GPG key a few days ago, but it is not listed in the group keyring of Savane.

Is there already a script running in a cron job which updates the database accordingly?

Tobias Quathamer <toddy>
Project Member
Thu 23 Jun 2005 05:45:25 PM UTC, original submission:

Hello,

I'm rushing on this script since I made apt-get repositories for Savane. Imagine the nightmare if someone was at some point inserting malicious stuff into the packages, without our knowledge.
The only way to make sure packages are legit is to have their GPG signature checked.

But I dont think it would be necessary, neither useful, to follow a coercitive approach which would consist into restricted the way people access the download area and put uploaded stuff in a temporary area until it is checked.

Here's the little plan I wrote about it this morning, it should give you a clear overview of how it is supposed to work. I think I'll implement it tomorrow (should not be very complicated) or Monday.

## This script should be used via a cronjob to check if files in a download
## area are properly signed.
## Properly signed mean that it has been signed with a GPG signature that is
## in the related group keyring.
## The keyring should have been added by sv_groups in /home/savane-keyrings/.
##
## The approach followed is to provide security in a non-coercitive way.
## File upload is allowed through usual means, file are assumed cleaned until
## proven unclean:
## - user upload files in his download area
## - later, the cronjob look at it:
## * if no files are gpg signed, a file HEADER.html will be
## added (saving such previous file under another name), not
## user modifiable, saying files there cannot be checked using
## gpg. One should assume they are clean, but only assume.
## This HEADER.html file will be added only in top directory,
## not in subdirectories.
## * if files exists and are gpg signed properly (even if not
## all files)
## nothing is done specifically.
## If a HEADER.html added by Savane exists, it gets removed.
## The md5 of checked files is cached and will not be checked
## unless their md5 change
## * if files exists, are gpg signed and the signature is not
## ok, files are moved in a subdirectory called maybe-corrupted
## and a HEADER.html is added listing failed signature checks,
## saying that one should not assume that files are clean.
## (this one will stay until the project upload properly signed
## files)
## A mail should be sent to project admins.
## Additionnaly, a HEADER.html file would be added in
## maybe-corrupted, saying these files are questionable.
## This would happen in any directory, no matter how deep they
## are.
##
## Note: maybe-corrupted dir and HEADER.html files will not be
## modifiable by projects members. They will be added whenever
## it makes sense and they will be removed when incriminated
## files no longer exists.

Mathieu Roy <yeupou>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Digest:
   task dependencies.

 

Carbon-Copy List
  • -unavailable- added by toddy (Posted a comment)
  • -unavailable- added by yeupou (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 18 Jul 2005 11:00:53 AM UTCyeupouStatusReady For Test=>Done
      Open/ClosedOpen=>Closed
    Sun 03 Jul 2005 01:40:17 PM UTCtoddyDependencies-=>task #1955 is dependent
    Tue 28 Jun 2005 04:13:03 PM UTCyeupouShould be Finished onSun 26 Jun 2005 10:00:00 PM UTC=>Mon 26 Dec 2005 11:00:00 PM UTC
      Priority5 - Immediate=>4 - High
      StatusNone=>Ready For Test
    Thu 23 Jun 2005 05:45:49 PM UTCyeupouDependencies-=>task #1481 is dependent
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup