Skip to content
This repository was archived by the owner on May 24, 2026. It is now read-only.
This repository was archived by the owner on May 24, 2026. It is now read-only.

security: no resource limits on spawned containers enables DoS #20

Open

Description

@SimplicityGuy

Summary

Config files can specify arbitrary dockerargs, including arguments that remove or override resource constraints on spawned containers. An unrestricted container could consume all available CPU, memory, or disk on the host.

Location

config-samples/ — no sample demonstrates resource limits; entrypoint.sh — no defaults are enforced.

Attack Vector

A config entry such as:

{
  "schedule": "* * * * *",
  "image": "ubuntu",
  "command": "stress --cpu 8 --vm 4 --vm-bytes 2G",
  "dockerargs": "--memory=0 --cpus=0"
}

Will spawn an unconstrained container every minute, potentially exhausting host resources.

Recommended Fix

  1. Add default resource limits to the sample configs and document them in the README
  2. Consider enforcing sensible defaults in make_image_cmd unless explicitly overridden:
# Default limits unless user provides their own
DOCKERARGS="${DOCKERARGS:-} --memory=512m --cpus=1.0"
  1. Note the DoS risk in the security documentation.

Severity

Low

Activity

  1. added
    security
    on Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions