Skip to content

Settings ​

In your playbook, you can set specific settings to define its execution requirements. These settings allow you to:

  • Specify CPU and memory requirements.

  • Set execution rate or schedule.

  • Define a general timeout and concurrency.

  • Manage output handling.

These settings help customize the playbook performance to your project’s needs, making testing processes more efficient and scalable.

Name, Description and Mitigation Settings ​

In your playbook, you can define metadata to enhance playbook identification and discoverability. Here’s how each component contributes to a clear and actionable setup:

- Name: assign a descriptive name to identify the playbook quickly.

- Description: provide details about the playbook’s purpose, such as supported languages and tool functionalities.

- Mitigation: specify a remediation step if the playbook fails, it provides clear guidance for necessary actions upon failure.

- Author: a list of URLs linking to the author’s profile (e.g., GitHub). This helps users identify who created and maintains the playbook.

- Gallery: a list of image URLs showing example output or screenshots of the playbook in action. These are displayed on the playbook’s page on satori.ci.

- Example: a sample CLI command showing how to run the playbook. This gives users a ready-to-use command they can copy and execute.

yaml
settings:
  name: Find secrets using Semgrep
  description: Semgrep is a static code analysis tool with stable support for C#, Go, Java, JavaScript, JSON, Python, PHP, Ruby, and Scala. It has experimental support for nineteen other languages, as well as a language agnostic mode.
  mitigation: Do not store your secrets along with your code.
  image: python
  author:
  - https://github.com/satorici
  gallery:
  - https://files.catbox.moe/zz0pll.png
  example: satori-v2 run ./ --playbook="satori://secrets/semgrep.yml" --report --output
    
install:
  semgrep:
  - pip install semgrep >> /dev/null
    
semgrep:
  assertStdout: False
  secrets:
  - semgrep --config 'p/secrets' -q --max-chars-per-line 1024  --exclude-rule generic.secrets.security.detected-twitter-oauth.detected-twitter-oauth --exclude-rule generic.secrets.security.detected-facebook-oauth.detected-facebook-oauth

Associating this metadata with each playbook run provides valuable context and supports informed follow-up actions, especially if mitigation measures are necessary.

Configuring CPU and Memory for Playbooks ​

Define the required CPU and memory for each playbook to ensure optimal performance. Use the settings to specify these parameters:

yml
settings:
  cpu: 16384
  memory: 122880

cpu, memory and storage apply on the PRO and ENTERPRISE plans. On the COMMUNITY plan they are ignored and the playbook runs with the default resources; image works on any plan.

These are the possible combinations of CPU and memory configurations and the compatible operating systems. Select the values that best suit your playbook's requirements.

CPU valueMemory valueOperating systems supported
256 (.25 vCPU)512
1024
2048
Linux
512 (.5 vCPU)1024
2048
3072
4096
Linux
1024 (1 vCPU)2048
3072
4096
5120
6144
7168
8192
Linux, Windows
2048 (2 vCPU)4096
5120
6144
7168
8192
9216
10240
11264
12288
13312
14336
15360
16384
Linux, Windows
4096 (4 vCPU)8192
9216
10240
11264
12288
13312
14336
15360
16384
17408
18432
19456
20480
21504
22528
23552
24576
25600
26624
27648
28672
29696
30720
Linux, Windows
8192 (8 vCPU)16384
20480
24576
28672
32768
36864
40960
45056
49152
53248
57344
61440
Linux
16384 (16vCPU)32768
40960
49152
57344
65536
73728
81920
90112
98304
106496
114688
122880
Linux

Scheduling Playbooks with Cron and Rate settings ​

To schedule playbook execution based on specific times or intervals, configure Cron or Rate settings. Each offers a different approach to scheduling:

- Cron Settings: use cron settings to schedule playbooks at precise times or recurring intervals, such as daily or weekly runs. For more detailed instructions, refer to the Cron Scheduling section in the Monitor documentation.

- Rate Settings: configure rate settings for simple, fixed-interval scheduling, such as every 5 minutes or hourly. See the rate setting section in the Monitor documentation for guidance.

These settings help automate playbook runs, ensuring timely and consistent execution based on your testing needs.

In CLI v2, these settings are what turn a run into a monitor: when the playbook file passed to satori-v2 run contains cron, rate (or an already formatted monitor expression) under settings, the command creates a monitor instead of a one-off execution. There are no --cron/--rate command-line flags.

Notification settings for execution results ​

Use settings.notify to send Slack, email, Discord, or Telegram messages when an execution finishes. Each entry is a rule with result (pass or fail), optional severity list, and a to URI:

yaml
settings:
  notify:
    - result: fail
      severity: [high, critical, blocker]
      to: slack://T00000000:C00000000
    - result: fail
      severity: [high, critical, blocker]
      to: email://security@example.com
    - result: fail
      severity: [high, critical, blocker]
      to: discord://123456789012345678
    - result: fail
      severity: [high, critical, blocker]
      to: telegram://-15050500050
    - result: pass
      to: slack://T00000000:C11111111

On a failing run, a rule with severity matches if any of those levels appears in the report. Rules without severity match on result alone.

For a one-off override on satori-v2 run, use repeatable --notify (this replaces playbook notify for that run):

sh
satori-v2 run ./ \
  --notify 'result=fail,severity=high,critical,blocker,to=slack://T00000000:C00000000' \
  --notify 'result=fail,to=email://security@example.com' \
  --notify 'result=fail,to=discord://123456789012345678' \
  --notify 'result=fail,to=telegram://-15050500050'

See Notifications for URI formats, severity names, and Slack/email/Discord/Telegram setup. Datadog URIs may appear in config but are not delivered from settings.notify yet.

Timeout Settings ​

Set a maximum runtime for playbook executions to control resource usage. Specify the timeout duration in seconds:

yaml
settings:
    timeout: 60 # the default value is 3600 seconds

If the playbook reaches the defined timeout without completing, the instance will automatically shut down, terminating any ongoing processes. This setting helps prevent excessive resource use and ensures timely task completion.

Count Settings ​

The count parameter allows you to launch multiple instances of the same playbook concurrently through the Satori Cloud infrastructure. Each instance runs independently and generates its own report, which is especially useful for tests requiring high concurrency, such as load or DDoS testing. Here’s an example configuration for a DDoS test playbook:

yml
settings:
  name: "Siege - Load testing web servers"
  description: "Knowing how much traffic your web server can handle when under stress is essential for planning 
                future growth of your website or application. By using tool called siege, you can run a load test 
                on your server and see how your system performs under different circumstances.
                You can use siege to evaluate the amount of data transferred, response time, transaction rate, 
                throughput, concurrency and how many times the server returned responses. 
                The tool has three modes, in which it can operate – regression, internet simulation and brute force.
                Siege must only be run against servers you own or on such you have explicit permission to test. "
  mitigation: "Use an anti DDoS service such as CloudFlare to prevent network attacks"
  count: 10
  timeout: 300
  example: satori-v2 run satori://dos/siege.yml -d URL="satori.ci" --output

install:
  update:
  - apt update
  curl:
  - apt install -qy curl
  siege:
  - apt install -qy siege

host:
  assertReturnCode: 0
  setSeverity: 4
  before_siege:
  - curl -s ${{URL}} -m 3
  siege:
  - siege -c 100 -t 30s ${{URL}}
  after_siege:
  - curl -s ${{URL}} -m 3

Report Settings ​

Control whether and how reports are saved after playbook execution. You can prevent data storage on Satori servers or specify a format to receive a downloadable copy.

- Receive a report copy in PDF: set report to pdf to send a PDF copy of the report. For example:

yaml
settings:
    report: pdf

- Disable report storage: set saveReport to false to avoid storing the report data on Satori servers, while still receiving an execution summary upon completion.

yaml
settings:
    saveReport: False

- Disable output storage: set saveOutput to false to avoid storing the execution output on Satori servers, while still receiving an execution summary upon completion.

yaml
settings:
    saveOutput: False

Both settings have command-line counterparts on satori-v2 run: --delete-report (equivalent to saveReport: False) and --delete-output (equivalent to saveOutput: False). The v1 flags --save-report false and --save-output false still work in CLI v2 but are deprecated and print a warning.

If no report format is specified, you can still access the report online using the CLI or Web interface.

Files Setting ​

Set files to true to enable downloading the output files generated during playbook execution. This is useful for playbooks that produce artifacts such as SBOMs, scan reports, or other generated files that you want to retrieve after the execution completes.

yaml
settings:
    files: true

When enabled, any files written during execution can be downloaded using the --files flag on the CLI. Without this setting, only the standard output and report are available.

Redacted Parameters ​

When your playbook requires sensitive values such as API keys, tokens, or credentials, use the redacted setting to prevent them from appearing in reports and output logs. List the parameter names that should be hidden:

yaml
settings:
  redacted:
    - AWS_ACCESS_KEY
    - AWS_SECRET_KEY

Any parameter listed under redacted will have its value masked in reports, API output (results.msgpack), and indexed logs. This is useful for playbooks that are shared publicly or run with --visibility public, so secrets passed via -d are not shown in those surfaces.

An internal unredacted copy may still be stored for a future authorized --unredacted reveal. That copy is deleted when output retention removes execution output (save_output=false / delete_output). Redaction does not cover artifacts, recipe text, or values that tools re-encode (for example base64).

You can also redact parameters at runtime using the CLI flag --redacted:

On development

The --redacted flag of satori-v2 run is not available yet in CLI v2; use the redacted playbook setting above. The v1 syntax is kept here for reference.

sh
satori-v2 run playbook.yml -d API_KEY=secret --redacted API_KEY --sync

The playbook-level setting and the CLI flag serve the same purpose. Use the playbook setting when the parameters are always sensitive, and the CLI flag when you want to redact on a case-by-case basis.

Settings of imported playbooks ​

A playbook that imports a public playbook (satori://...) also gets that playbook's settings, as defaults. A repository's .satori.yml that only has an import therefore runs with the image and the resources its imported playbook asks for:

yml
import:
  - satori://code/javascript/jsspector.yml
  • The inherited settings are image, cpu, memory, storage, expire, notify and redacted.
  • A setting in your own playbook wins over the imported one. With several imports, a later import wins over an earlier one.
  • redacted is the exception: the names add up. Your playbook can redact more parameters, but it cannot stop the redaction that an imported playbook asks for.
  • Settings of the public playbooks that an imported playbook imports are inherited in the same way.
  • Settings of file:// imports are not inherited.

If you need any help, please reach out to us on Discord or via Email