Add support for expiring advisory ignores#446
Conversation
|
WDYT @jasnow? |
|
I'm basically unsure about why ignores are needed. We have at least 3 customers: "bundle audit" users, database scrapers, and bad guys. The last two will not ignore them and the first one can deal with it locally with GitHub action/bash aliases/etc. On the other hand, it probably will not hurt to have. |
|
I assume it is feature to users to ignore given reports like for next 14 days or so to get some time to resolve and get only new reports. But just blindly guessing. @abeljim8am can you explain more? |
|
Sometimes we hit advisories where downstream fixes aren't available yet. A temporary bypass mechanism keeps these visible without blocking CI in the short term. Right now, we maintain a wrapper script around bundle-audit for this. Native configuration support would let us simplify our setup and rely entirely on bundler-audit. |
I think rails has a wrapper too - @flavorjones right? |
Allow advisory ignores in
.bundler-audit.ymlto expire automatically, so temporary vulnerability exceptions do not remain in place indefinitely.Timed ignores use an advisory ID and an inclusive ISO 8601
untildate:Existing string entries continue to be ignored indefinitely. Once a timed ignore expires, the advisory is reported normally. Invalid dates, missing fields, and unknown keys are rejected when loading the configuration.
The configuration and scanner specs cover active and expired ignores, backward compatibility, and validation failures.