-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
CVE Feed: JSON feed should pass jsonfeed spec validator #36808
Comments
/sig security Part of the fix here will be about making sure that the upstream data are correct. |
@kevincox I have lightly edited the issue description to highlight which fields are wrong. /priority important-longterm |
cc: @PushkarJ |
We looked at it with Pushkar and as far as we understood the specification only allows for custom fields starting with an underscore. Search for "Extensions" in the spec, it seems that it's a bit restrictive (especially because any custom extension must be an object, not a string or a number). So because people actually asked for other features, leading to adding arbitrary fields, we thought that maybe we could implement an RSS feed and keep a custom JSON object that does not follow the specification for now. So perhaps we can have the best of both worlds, an RSS feed for staying up to date and a JSON object for people that want a casual object to parse with a lot of info to retrieve. |
If you want custom data can't you just add something like But I have no objection to switching to RSS (or Atom) either. |
Indeed you are correct, from the spec:
So it would be a good idea to use the
Yes, maybe we could fulfill the RSS need + the feed thing without having to comply with JSON feed specifically. I actually don't know at all if it's a need to have a JSON feed, and if it's popular. I guess we could then choose the most simple way to implement a feed. |
I don't think JSON Feed is particularly popular (certainly far behind RSS and Atom) but I do think that it can serve as a dual-purpose for easy adding structured data in a way that developers are familiar with so they can easily access while combining with the well-speced semantics of a feed so that people can get general-purpose readers and tools to provide good results. I think it does make sense in this case to combine the two needs into one feed. However I think that two separate feeds, one generically consumable and one specific to Kubernetes is also a reasonable approach (although I would marginally recommend the former). |
/retitle CVE Feed: JSON feed should pass jsonfeed spec validator (Added this in-scope for alpha to beta graduation) |
/assign |
Fix LGTM |
This is a Bug Report
The CVE Feed (https://kubernetes.io/docs/reference/issues-security/official-cve-feed/index.json) is not valid JSON Feed (https://validator.jsonfeed.org/?url=https%3A%2F%2Fkubernetes.io%2Fdocs%2Freference%2Fissues-security%2Fofficial-cve-feed%2Findex.json)
Problem:
There are two problems listed:
id
of null. (IPv4 only clusters susceptible to MitM attacks via IPv6 rogue router advertisements)external_url
of null (IPv4 only clusters susceptible to MitM attacks via IPv6 rogue router advertisements)content_text
orcontent_html
).Proposed Solution:
Page to Update:
https://kubernetes.io/docs/reference/issues-security/official-cve-feed/index.json
The text was updated successfully, but these errors were encountered: