Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659806 - Add nagios checks for expiry of critical GPG keys
Summary: Add nagios checks for expiry of critical GPG keys
Status: CONFIRMED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-01 23:08 UTC by Robin Johnson
Modified: 2019-01-02 16:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2018-07-01 23:08:18 UTC
Add checks  of the expiry date of critical GPG keys.

Suggest:
warn @ 3 mo
crit @ 1 mo

Check should run weekly.
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2019-01-01 16:25:22 UTC
I added some tests, but I'm not sure I did it correctly, will audit later.

-A
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2019-01-02 08:20:12 UTC
(In reply to Alec Warner from comment #1)
> I added some tests, but I'm not sure I did it correctly, will audit later.
> 
> -A

Followup.

1) Each key has to be manually fetched on initial setup. This is done for the 4 keys, but we should consider doing it in check_gpg.

2) Each test needs a unique name, and I believe the current config is not doing this, leading monitoring to essentially only check the last key in teh config. This should be easily fixable.

-A
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2019-01-02 16:38:45 UTC
(In reply to Alec Warner from comment #2)
> (In reply to Alec Warner from comment #1)
> > I added some tests, but I'm not sure I did it correctly, will audit later.
> > 
> > -A
> 
> Followup.
> 
> 1) Each key has to be manually fetched on initial setup. This is done for
> the 4 keys, but we should consider doing it in check_gpg.
> 
> 2) Each test needs a unique name, and I believe the current config is not
> doing this, leading monitoring to essentially only check the last key in teh
> config. This should be easily fixable.
> 
> -A

2) is fixed and we should get alerts 30days before expiration.

-A