nix-security-tracker
nix-security-tracker copied to clipboard
Allow recording an overridden severity level for an advisory depending on context
As encountered in the example of #31, there might be situations where we might want to assign a different severity based on context. In this case: the w3m
advisory may have severity 'medium' or 'low', but in the context of nixos-help
it might be 'low' or even 'none'.
For the API, it would initially be sufficient to encode this as simple advisory id, context pname, severity
tuples, as in the vast majority of cases an advisory will have the same severity regardless of the version of the contextual derivation. This keeps the data volume of the information to be shared low.
An example would be: CVE-2023-38253 nixos-help low
.