Hi there,
1. Run Application under test (AUT) in docker
2. Run OWASP ZAP in docker
3. Run E2E tests of AUT with proxy
4. Collect requests sent and received during E2E tests in ZAP via proxy
5. Run ZAP scans, using E2E traffic as a base.
All is set, both AUT and ZAP up and running in the same Docker network.
Proxy seem to be working fine as well, running E2E on AUT initialises passive scans in ZAP log (I run it headless, so log is my only output)
When I run baseline or full scans later on, I don't see any URLs with AUT in tests report...and I know there should be some :) So it makes me think that active scanners are not using E2E gathered requests as a base.
What am I doing wrong?
I run scans e.g. like so:
docker exec -it owasp_zap zap-full-scan.py -t http://172.26.0.8:8082 -r testreport.html
Is is possible that reqests are not saved in ZAP DB?
One more thing - AUT has json based authentication, that's why it is important to me to use E2E requests that have fresh and valid authentication tokens :) I guess it should work, right? It does work when I try it with desktop ZAP.
If there's anyone that is willing to discuss it via slack/skype/teams please let me know :)