I'm running the stable Docker image with zap-webswing.sh, fronted by nginx which handles basic auth.
The nginx layer works correctly (confirmed via curl returning 200), but once authenticated users reach the Webswing UI, they are presented with Webswing's own login screen. Passing ?anonym=true&app=ZAP in the URL does not bypass it.
I initially tried to use Webswing's own authentication by mounting a custom webswing.config with "module": "EMBEDED" and a user defined in authorizationConfig. However, regardless of what I put in the mounted config, the running container always showed "module": "NONE" with empty users. So Webswing's login screen appeared but rejected every credential. I could not determine why the config changes weren't being picked up. nginx became the auth layer as a workaround.
All I need is for users already authenticated by nginx to land directly in the ZAP GUI. I'm open to any approach... Custom entrypoint, custom image, modified startup script, or anything else. I'm fairly new to ZAP, and honestly this one part is just driving me insane.
Setup:
Thanks,
Nick