[Git][security-tracker-team/security-tracker][master] 3 commits: tracker_service: Move the homepage intro to a method
Emilio Pozuelo Monfort (@pochu)
pochu at debian.org
Tue Nov 17 08:18:26 GMT 2026
Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker
Commits:
eb113f42 by Emilio Pozuelo Monfort at 2026-11-17T09:13:54+01:00
tracker_service: Move the homepage intro to a method
And the title to a class property. This makes it easy to override
them downstream if necessary.
- - - - -
5ad26b58 by Emilio Pozuelo Monfort at 2026-11-17T09:13:54+01:00
tracker_service: add a fallback make_ref method
It does nothing, but it can be overriden.
- - - - -
f453d7ca by Emilio Pozuelo Monfort at 2026-11-17T08:18:22+00:00
Merge branch 'tracker-service' into 'master'
tracker_service: Move the homepage intro to a method
See merge request security-tracker-team/security-tracker!345
- - - - -
1 changed file:
- bin/tracker_service.py
Changes:
=====================================
bin/tracker_service.py
=====================================
@@ -108,6 +108,7 @@ class TrackerService(WebServiceBase):
remediation level, and others). Human intervention is involved in
determining the values of these factors, but the rating itself comes
from a fully automated formula.''')
+ title = 'Security Bug Tracker'
def __init__(self, db_name: str):
WebServiceBase.__init__(self)
@@ -180,6 +181,27 @@ class TrackerService(WebServiceBase):
content=f.read()
return BinaryResult(content,'text/javascript')
+ def get_homepage_introduction(self, url: URLFactory) -> HTMLContents:
+ return [P(
+ """The data in this tracker comes solely from the bug database maintained
+by Dn's security team located in the security-tracker Git """,
+ A("https://salsa.debian.org/security-tracker-team/security-tracker/tree/master/data", "repository"),
+ """. The data represented here is derived from: """,
+ A("https://www.debian.org/security/#DSAS", "DSAs"),
+ """ issued by the Security Team; issues tracked in the """,
+ A("https://www.cve.org/", "CVE database"),
+ """, issues tracked in the """,
+ A("https://nvd.nist.gov/", "National Vulnerability Database"),
+ """ (NVD), maintained by NIST; and security issues
+discovered in Debian packages as reported in the BTS."""),
+ P("""All external data (including Debian bug reports and official Debian
+security advisories) must be added to this database before it appears
+here. Please help us keep this information up-to-date by """,
+ A(url.scriptRelative("data/report"), "reporting"),
+ """ any discrepancies or change of status that you are
+aware of and/or help us improve the quality of this information by """,
+ A(url.scriptRelative("data/report"), "participating"),
+ ".")]
def page_home(self, path: tuple[str, ...], params: Params, url: URLFactory) -> Result:
query = params.get('query', ('',))[0]
@@ -200,27 +222,8 @@ class TrackerService(WebServiceBase):
return links
return self.create_page(
- url, 'Security Bug Tracker',
- [P(
- """The data in this tracker comes solely from the bug database maintained
-by Debian's security team located in the security-tracker Git """,
- A("https://salsa.debian.org/security-tracker-team/security-tracker/tree/master/data", "repository"),
- """. The data represented here is derived from: """,
- A("https://www.debian.org/security/#DSAS", "DSAs"),
- """ issued by the Security Team; issues tracked in the """,
- A("https://www.cve.org/", "CVE database"),
- """, issues tracked in the """,
- A("https://nvd.nist.gov/", "National Vulnerability Database"),
- """ (NVD), maintained by NIST; and security issues
-discovered in Debian packages as reported in the BTS."""),
- P("""All external data (including Debian bug reports and official Debian
-security advisories) must be added to this database before it appears
-here. Please help us keep this information up-to-date by """,
- A(url.scriptRelative("data/report"), "reporting"),
- """ any discrepancies or change of status that you are
-aware of and/or help us improve the quality of this information by """,
- A(url.scriptRelative("data/report"), "participating"),
- "."),
+ url, self.title,
+ [*self.get_homepage_introduction(url),
NAV(make_menu(
url.scriptRelative,
@@ -394,7 +397,7 @@ data source.""")],
source_xref = (
'Automatically generated temporary name. Not for external reference.')
else:
- source_xref = None
+ source_xref = self.make_ref(url, bug.name, source)
if source_xref:
yield B("Source"), source_xref
@@ -1558,6 +1561,9 @@ Debian bug number.'''),
title = pkg
return A(self.url_source_package(url, pkg), title)
+ def make_ref(self, url: URLFactory, name: str, source: str) -> HTMLContent:
+ return None
+
def make_red(self, contents: HTMLContent) -> Tag:
return SPAN(contents, _class="red")
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/9c5863dd0bef90b4592673a413085800c61bc8b8...f453d7cad21290bcb28beb0eedc69f6d4441a06b
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/9c5863dd0bef90b4592673a413085800c61bc8b8...f453d7cad21290bcb28beb0eedc69f6d4441a06b
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20261117/bef36255/attachment-0001.htm>
More information about the debian-security-tracker-commits
mailing list