File tree Expand file tree Collapse file tree 2 files changed +43
-10
lines changed
content/en/docs/reference/issues-security Expand file tree Collapse file tree 2 files changed +43
-10
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
title : Official CVE Feed
3
+ linkTitle : CVE feed
3
4
weight : 25
4
5
outputs :
5
6
- json
6
- - html
7
+ - html
8
+ - rss
7
9
layout : cve-feed
8
10
---
9
11
@@ -14,19 +16,25 @@ the Kubernetes Security Response Committee. See
14
16
[ Kubernetes Security and Disclosure Information] ( /docs/reference/issues-security/security/ )
15
17
for more details.
16
18
17
- The Kubernetes project publishes a programmatically accessible
18
- [ JSON Feed] ( /docs/reference/issues-security/official-cve-feed/index.json ) of
19
- published security issues. You can access it by executing the following command:
20
-
21
- {{< comment >}}
22
- ` replace ` is used to bypass known issue with rendering ">"
23
- : https://github.com/gohugoio/hugo/issues/7229 in JSON layouts template
24
- ` layouts/_default/cve-feed.json `
25
- {{< /comment >}}
19
+ The Kubernetes project publishes a programmatically accessible feed of published
20
+ security issues in [ JSON feed] ( /docs/reference/issues-security/official-cve-feed/index.json )
21
+ and [ RSS feed] ( /docs/reference/issues-security/official-cve-feed/feed.xml )
22
+ formats. You can access it by executing the following commands:
26
23
24
+ {{< tabs name="CVE feeds" >}}
25
+ {{% tab name="JSON feed" %}}
26
+ [ Link to JSON format] ( /docs/reference/issues-security/official-cve-feed/index.json )
27
27
``` shell
28
28
curl -Lv https://k8s.io/docs/reference/issues-security/official-cve-feed/index.json
29
29
```
30
+ {{% /tab %}}
31
+ {{% tab name="RSS feed" %}}
32
+ [ Link to RSS format] ( /docs/reference/issues-security/official-cve-feed/feed.xml )
33
+ ``` shell
34
+ curl -Lv https://k8s.io/docs/reference/issues-security/official-cve-feed/feed.xml
35
+ ```
36
+ {{% /tab %}}
37
+ {{< /tabs >}}
30
38
31
39
{{< cve-feed >}}
32
40
Original file line number Diff line number Diff line change
1
+ {{ $feed := getJSON .Site.Params.cveFeedBucket -}}
2
+ <rss version =" 2.0" xmlns : atom =" http://www.w3.org/2005/Atom" >
3
+ <channel >
4
+ <title >{{ $feed.title }}</title >
5
+ <link >{{ .Site.BaseURL }}docs/reference/issues-security/official-cve-feed/</link >
6
+ <description >{{ $feed.description }}</description >
7
+ <generator >Hugo -- gohugo.io</generator >
8
+ <language >en-US</language >
9
+ <copyright >{{ .Site.Params.Copyright_k8s }}</copyright >
10
+ <lastBuildDate >{{ time.Format "Mon, 02 Jan 2006 15:04:05 -0700" $feed._kubernetes_io.updated_at | safeHTML }}</lastBuildDate >
11
+ {{ with .OutputFormats.Get "RSS" -}}
12
+ {{ printf "<atom : link href =%q rel =\" self\" type =%q />" .Permalink .MediaType | safeHTML }}
13
+ {{ end -}}
14
+ {{ range $feed.items -}}
15
+ <item >
16
+ <title >{{ .id }}</title >
17
+ <link >{{ .url }}</link >
18
+ <pubDate >{{ time.Format "Mon, 02 Jan 2006 15:04:05 -0700" .date_published | safeHTML }}</pubDate >
19
+ <guid >{{ .external_url }}</guid >
20
+ <description >{{ htmlEscape .summary }}</description >
21
+ </item >
22
+ {{ end -}}
23
+ </channel >
24
+ </rss >
25
+
You can’t perform that action at this time.
0 commit comments