Database:ify the list of security patches

This finally moves the patches into the db, which makes it a lot easier
to filter patches in the views.

It also adds the new way of categorising patches, which is assigning
them a CVSSv3 score.

For now, there are no public views to this, and the old static pages
remain. This is so we can backfill all existing security patches before
we make it public.
This commit is contained in:
Magnus Hagander
2018-01-25 21:59:13 +01:00
parent d0aa8ac119
commit 0cb56d9355
10 changed files with 422 additions and 0 deletions

View File

@ -110,6 +110,7 @@ INSTALLED_APPS = [
'pgweb.contributors',
'pgweb.profserv',
'pgweb.lists',
'pgweb.security',
'pgweb.sponsors',
'pgweb.survey',
'pgweb.misc',
@ -159,6 +160,7 @@ LIST_ACTIVATORS=() # Servers that can activate lists
ARCHIVES_SEARCH_SERVER="archives.postgresql.org" # Where to post REST request for archives search
FRONTEND_SMTP_RELAY="magus.postgresql.org" # Where to relay user generated email
OAUTH={} # OAuth providers and keys
PGDG_ORG_ID=-1 # id of the PGDG organisation entry
# Load local settings overrides
from settings_local import *