CSAF files: How to handle multiple versions of the same document? #79
Replies: 3 comments 2 replies
-
Not entering into the implementation details here is what I think:
graph TD;
MyAdvisory-123-->v1;
MyAdvisory-123-->v2;
v1-->sha256_v1;
v2-->sha256_v2;
v1-->current_release_date_v1;
v2-->current_release_date_v2;
There is still the question about how to import the CVEs included into each advisory without duplicating data but being able to manage If my understanding of multiple versions of CSAF files is not accurate, my apologies and we can close this discussion |
Beta Was this translation helpful? Give feedback.
-
CSAF advisories are written in a way that the newest version should overwrite all versions before. |
Beta Was this translation helpful? Give feedback.
-
fwiw, currently tracking advisories not just by id, but also by hash. We should still sort/version between them, but every statement related to an advisory should in theory be tied back to a very specific hashed advisory document. |
Beta Was this translation helpful? Give feedback.
-
While creating this PR #78 I came across to notice that there is the possibility to have multiple CSAF files (each different from the other, in regards of its content) that share the same identifier. E.g.
Date: Day1.
MyAdvisory-123
is released.123456
current_release_date
of the file isDay1
initial_release_date
of the file isDay1
v1
Date: Day2. For some reason a new version of the same advisory is released
MyAdvisory-123
has the same identifiercurrent_release_date
of the file isDay2
as it is the day when the current document is being releasedinitial_release_date
isDay1
because the very first version of the current advisory was released onDay1
v2
So how to handle these use cases? We did not need to worry about this so far but is it something to consider now? Is it a priority?
Beta Was this translation helpful? Give feedback.
All reactions