Update CVE feed layouts for new JSON feed format
Also add information about last update time on CVE tablepull/38579/head
parent
883bccdbde
commit
e277fe5f8c
|
@ -67,8 +67,14 @@ other = "Issue Summary"
|
|||
[cve_table]
|
||||
other = "Official Kubernetes CVE List"
|
||||
|
||||
[cve_url]
|
||||
other = "CVE URL"
|
||||
[cve_table_date_before]
|
||||
other = "(last updated: "
|
||||
|
||||
[cve_table_date_format]
|
||||
other = "02 Jan 2006 15:04:05 MST"
|
||||
|
||||
[cve_table_date_after]
|
||||
other = ")"
|
||||
|
||||
[deprecation_title]
|
||||
other = "You are viewing documentation for Kubernetes version:"
|
||||
|
|
|
@ -1,23 +1 @@
|
|||
{
|
||||
"version": "https://jsonfeed.org/version/1.1",
|
||||
"title": "Auto-refreshing Official CVE Feed",
|
||||
"home_page_url": "https://kubernetes.io",
|
||||
"feed_url": "https://kubernetes.io/docs/reference/issues-security/official-cve-feed/index.json",
|
||||
"description": "Auto-refreshing official CVE feed for Kubernetes repository",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Kubernetes Community",
|
||||
"url": "https://www.kubernetes.dev"
|
||||
}
|
||||
],
|
||||
"items": [
|
||||
{{ range $i, $e := getJSON .Site.Params.cveFeedBucket }}
|
||||
{{ if $i }}, {{ end }}
|
||||
{
|
||||
{{ T "cve_json_id" | jsonify }}: {{ .cve_id | jsonify }},
|
||||
{{ T "cve_json_url" | jsonify }}: {{ .issue_url | jsonify }},
|
||||
{{ T "cve_json_external_url" | jsonify }}: {{ .cve_url | jsonify}},
|
||||
{{ T "cve_json_summary" | jsonify }}: {{ replace (.summary | jsonify ) "\\u003e" ">" }}
|
||||
}{{ end }}
|
||||
]
|
||||
}
|
||||
{{ getJSON .Site.Params.cveFeedBucket | jsonify }}
|
||||
|
|
|
@ -1,19 +1,20 @@
|
|||
<table class="security-cves">
|
||||
<caption>{{ T "cve_table" }}</caption>
|
||||
{{ $feed := getJSON .Site.Params.cveFeedBucket }}
|
||||
<caption style="caption-side: top;">{{ T "cve_table" }} {{ T "cve_table_date_before" }}{{ $feed._kubernetes_io.updated_at | time.Format ( T "cve_table_date_format" ) }}{{ T "cve_table_date_after" }}</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ T "cve_id" }}</th>
|
||||
<th>{{ T "cve_summary"}}</th>
|
||||
<th>{{ T "cve_summary" }}</th>
|
||||
<th>{{ T "cve_issue_url" }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ range $issues := getJSON .Site.Params.cveFeedBucket }}
|
||||
{{ range $feed.items }}
|
||||
<tr>
|
||||
<td><a href="{{ .cve_url }}">{{ .cve_id | htmlEscape | safeHTML }}</a></td>
|
||||
<td><a href="{{ .url }}">{{ .id | htmlEscape | safeHTML }}</a></td>
|
||||
<td>{{ .summary | htmlEscape | safeHTML }}</td>
|
||||
<td><a href="{{ .issue_url }}">#{{ .number }}</a></td>
|
||||
<td><a href="{{ .url }}">#{{ ._kubernetes_io.issue_number }}</a></td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue