I downloaded an OpenAPI definition/Spec then imported it into the gui.
I configured the default context for Authentication.
For the scripts we're using a Jython template - Simple form.
We have the Python Scripting Add-on installed.
We have an Authentication script and a HTTP Sender script.
The scripts are loaded/enabled and using the Default context
We have a user/pass for Authentication
Everything works fine in the GUI when doing a manual scan and a automated scan.
We can also run the yaml that was created on the command line and it runs fine too.
The issue we have no is we download the stable image and are running that now with the same yaml but it doesn't seem to pick up the scripts.
We've moved the scripts and contexts directory into our /zap/wrk/ along with the config.xml and the yaml file.
We set the report dir:
reportDir: "/zap/wrk/"
We added the jython addon, which I see installing when we run.
jobs:
- parameters:
updateAddOns: true
install:
- jython
uninstall: []
type: "addOns"
Run the image:
docker container run -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-stable zap.sh -cmd -autorun /zap/wrk/ssc-full-scan.yaml
But I can't get the script loaded.
If I add it to the yaml it complains about the engine?
I get
Unexpected error accessing file /zap/wrk/ssc-full-scan.yaml : No such engine: python : jython - see log for details
Do we even need the config.xml from our ZAP install, Library/Application Support/ZAP/
Also do I need everything under scripts.
I can't seem to figure out how to get these scripts and authentication which is set for my default context into my conatiner.