diff --git a/content/en/docs/reference/issues-security/official-cve-feed.md b/content/en/docs/reference/issues-security/official-cve-feed.md index ea0a9bffc74e5..460909091fe21 100644 --- a/content/en/docs/reference/issues-security/official-cve-feed.md +++ b/content/en/docs/reference/issues-security/official-cve-feed.md @@ -3,7 +3,8 @@ title: Official CVE Feed weight: 25 outputs: - json - - html + - html + - rss layout: cve-feed --- @@ -14,18 +15,19 @@ the Kubernetes Security Response Committee. See [Kubernetes Security and Disclosure Information](/docs/reference/issues-security/security/) for more details. -The Kubernetes project publishes a programmatically accessible -[JSON Feed](/docs/reference/issues-security/official-cve-feed/index.json) of -published security issues. You can access it by executing the following command: +The Kubernetes project publishes a programmatically accessible feed of published +security issues in [JSON feed](/docs/reference/issues-security/official-cve-feed/index.json) +and [RSS feed](/docs/reference/issues-security/official-cve-feed/feed.xml) +formats. You can access it by executing the following commands: -{{< comment >}} -`replace` is used to bypass known issue with rendering ">" -: https://github.com/gohugoio/hugo/issues/7229 in JSON layouts template -`layouts/_default/cve-feed.json` -{{< /comment >}} +For the JSON feed format: +```shell +curl -L https://k8s.io/docs/reference/issues-security/official-cve-feed/index.json +``` +For the RSS feed format: ```shell -curl -Lv https://k8s.io/docs/reference/issues-security/official-cve-feed/index.json +curl -L https://k8s.io/docs/reference/issues-security/official-cve-feed/feed.xml ``` {{< cve-feed >}} diff --git a/layouts/_default/cve-feed.rss.xml b/layouts/_default/cve-feed.rss.xml new file mode 100644 index 0000000000000..811469c924e98 --- /dev/null +++ b/layouts/_default/cve-feed.rss.xml @@ -0,0 +1,25 @@ +{{ $feed := getJSON .Site.Params.cveFeedBucket -}} + + + {{ $feed.title }} + {{ .Site.BaseURL }}docs/reference/issues-security/official-cve-feed/ + {{ $feed.description }} + Hugo -- gohugo.io + en-US + {{ .Site.Params.Copyright_k8s }} + {{ time.Format "Mon, 02 Jan 2006 15:04:05 -0700" $feed._kubernetes_io.updated_at | safeHTML }} + {{ with .OutputFormats.Get "RSS" -}} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{ end -}} + {{ range $feed.items -}} + + {{ .id }} + {{ .url }} + {{ time.Format "Mon, 02 Jan 2006 15:04:05 -0700" .date_published | safeHTML }} + {{ .external_url }} + {{ htmlEscape .summary }} + + {{ end -}} + + +