-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[KEP-3203] Fetch and Render CVE JSON Feed #35228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
k8s-ci-robot
merged 1 commit into
kubernetes:dev-1.25
from
PushkarJ:kep-3203-k-website-updates
Aug 8, 2022
+122
−2
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,9 @@ To report a security issue, please follow the [Kubernetes security disclosure pr | |
|
|
||
| Work on Kubernetes code and public issues are tracked using [GitHub Issues](https://github.com/kubernetes/kubernetes/issues/). | ||
|
|
||
| * [CVE-related issues](https://github.com/kubernetes/kubernetes/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3Aarea%2Fsecurity+in%3Atitle+CVE) | ||
| * Official [list of known CVEs](/docs/reference/issues-security/official-cve-feed/) | ||
| (security vulnerabilities) that have been announced by the | ||
| [Security Response Committee](https://github.com/kubernetes/committee-security-response) | ||
| * [CVE-related GitHub issues](https://github.com/kubernetes/kubernetes/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3Aarea%2Fsecurity+in%3Atitle+CVE) | ||
|
|
||
| Security-related announcements are sent to the [[email protected]](https://groups.google.com/forum/#!forum/kubernetes-security-announce) mailing list. | ||
| Security-related announcements are sent to the [[email protected]](https://groups.google.com/forum/#!forum/kubernetes-security-announce) mailing list. | ||
44 changes: 44 additions & 0 deletions
44
content/en/docs/reference/issues-security/official-cve-feed.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| --- | ||
| title: Official CVE Feed | ||
| weight: 25 | ||
| outputs: | ||
| - json | ||
| - html | ||
| layout: cve-feed | ||
| --- | ||
|
|
||
| {{< feature-state for_k8s_version="v1.25" state="alpha" >}} | ||
|
|
||
| This is a community maintained list of official CVEs announced by | ||
| 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: | ||
|
|
||
| {{< 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 >}} | ||
|
|
||
| ```shell | ||
| curl -v https://k8s.io/docs/reference/issues-security/official-cve-feed/index.json | ||
| ``` | ||
|
|
||
| {{< cve-feed >}} | ||
|
|
||
| <!-- | CVE ID | Issue Summary | CVE GitHub Issue URL | | ||
| | ----------- | ----------- | --------- | | ||
| | [CVE-2021-25741](https://www.cve.org/CVERecord?id=CVE-2021-25741) | Symlink Exchange Can Allow Host Filesystem Access | [#104980](https://github.com/kubernetes/kubernetes/issues/104980) | | ||
| | [CVE-2020-8565](https://www.cve.org/CVERecord?id=CVE-2020-8565) | Incomplete fix for CVE-2019-11250 allows for token leak in logs when logLevel >= 9 | [#95623](https://github.com/kubernetes/kubernetes/issues/95623) | --> | ||
|
|
||
| This feed is auto-refreshing with a noticeable but small lag (minutes to hours) | ||
| from the time a CVE is announced to the time it is accessible in this feed. | ||
|
|
||
| The source of truth of this feed is a set of GitHub Issues, filtered by a controlled and | ||
| restricted label `official-cve-feed`. The raw data is stored in a Google Cloud | ||
| Bucket which is writable only by a small number of trusted members of the | ||
| Community. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "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 }} | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <table class="security-cves"> | ||
| <caption>{{ T "cve_table" }}</caption> | ||
| <thead> | ||
| <tr> | ||
| <th>{{ T "cve_id" }}</th> | ||
| <th>{{ T "cve_summary"}}</th> | ||
| <th>{{ T "cve_issue_url" }}</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| {{ range $issues := getJSON .Site.Params.cveFeedBucket }} | ||
| <tr> | ||
| <td><a href="{{ .cve_url }}">{{ .cve_id | htmlEscape | safeHTML }}</a></td> | ||
| <td>{{ .summary | htmlEscape | safeHTML }}</td> | ||
PushkarJ marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <td><a href="{{ .issue_url }}">#{{ .number }}</a></td> | ||
| </tr> | ||
| {{ end }} | ||
| </tbody> | ||
| </table> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.