Where to import context and policy files in Docker for running Automation Framework.

73 views
Skip to first unread message

Abhishek Jha

unread,
Jan 16, 2023, 2:11:45 AM1/16/23
to OWASP ZAP User Group
Hi Simon,
 I have created Automation framework through ZAP UI and also created the context and policy files as well. Now I need to run inside CI .So I need to know where should I import the context and policy files in container so that Automation framework runs smoothly in CI as well?

Simon Bennetts

unread,
Jan 16, 2023, 4:40:35 AM1/16/23
to OWASP ZAP User Group
Hiya,

You shouldnt need to actually use context files.
Create and test the context in the ZAP desktop.
Then create an Automation Framework (AF) plan using that context.
The AF plan generated will include all of the info needed to define the context, you should not need to import the context file.

I'd also recommend not using policy files.
Instead configure the AF plan with the rules you want to run, i.e. in the jobs:
You _can_ import policy files, but that jjust making things more difficult for yourself.

Cheers,

Simon

Abhishek Jha

unread,
Jan 16, 2023, 6:48:12 AM1/16/23
to OWASP ZAP User Group

Thanks Simon Got your point .
I have one more question i.e When I am running the Automation Rule and Job Active Scan Starts It gives the following console warnings

console.warn: LoginRecipes: "getRecipes: falling back to a synchronous message for:" "https://accounts.google.com"
 
Warning message also includes the url that I have not defined in the context. e.g :https://accounts.google.com
What does this message suggests ?
What should I do if it is a problem?

Simon Bennetts

unread,
Jan 16, 2023, 6:53:39 AM1/16/23
to OWASP ZAP User Group
This is from a browser, not ZAP, so you can ignore it (as far as I'm aware).
Its unfortunately very difficult to stop browsers from writing to stdout :/

Cheers,

Simon

Abhishek Jha

unread,
Jan 16, 2023, 6:57:49 AM1/16/23
to OWASP ZAP User Group
Thank you very much Simon .
Reply all
Reply to author
Forward
0 new messages