OWASP ZAP YAML variables are always strings

22 views
Skip to first unread message

Gabriel Pichiu

unread,
Mar 18, 2026, 11:57:03 AM (13 days ago) Mar 18
to ZAP User Group
Hello,


I have a BASH script as a control panel where I set variables, scripts, etc. for each APP. Once I have that ready, I run a docker command to start the scanning process. I use a YAML file for the config, and I pass those variable to drive it. The problem I encountered is when I want to set maxDurationit fails saying that:

Invalid value for job passiveScan-wait parameter maxDuration - ${MAX_DURATION} should be an integer

The parameter is exported and set as a INT. It seems that there isn't a way to make this work in OWASP ZAP world. Is there a working alternative to my problem? I reckon this is valid for all INT parameters we'd like to control via env variables.

Thanks in advance!

Simon Bennetts

unread,
Mar 19, 2026, 1:52:07 PM (12 days ago) Mar 19
to ZAP User Group
I think thats a very valid usecase, so raise a bug / enhancement request.
It would help if you mention all of the fields you are aware of, but we'll try to check all cases.
We do have code for this sort of thing but I'm not sure how painful it will be.

Oh, and ZAP left OWASP nearly 3 years ago :P

Cheers,

Simon
Reply all
Reply to author
Forward
0 new messages