Hi,
We're scanning our dev and prod environments with zap2docker-weekly and want to remove findings from the scan report for rule ID 90003, for Subresource Integrity attributes missing for our dev environment where things are in a state of flux most of the time and the attributes get in the way more than anything.
I've tried the following:
1) Adding the ID to the ignore_scan_rules array in zap-full-scan.py
2) Changing the ID from WARN to IGNORE in the config
3) Reading the documentation and the code for the pscanrulesAlpha plugin to look for configuration flags I can use on the command line or a config file
I know that disabling the rule will prevent it from appearing in the reports, and that I can go in via the API or the GUI to disable the rule if the API is accessible.
We run the zap docker image in a kubernetes cron job which is setup to create the pod without external access in order to keep zap secure, and the pod terminates when the scan finishes because it is being run from a cron job, so there currently seems not to be a way to achieve this via the API in our setup.
Is there another method outside of the API to disable this scan rule given the steps I've tried from the documentation and various github issues haven't worked? We would prefer to be able to disable specific rules via either the command line or an environment variable over a config file, but any method will suffice as long as it can be used with a cronjob and we don't have to open a port to the pod.
Thanks in advance