Skip to content

fix: enforce size limit on local workflow YAML files - #3906

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/bounded-local-workflow-yaml-read
Open

fix: enforce size limit on local workflow YAML files#3906
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/bounded-local-workflow-yaml-read

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Problem

The codebase defines _MAX_WORKFLOW_YAML_BYTES (5 MiB) and enforces it on HTTP-downloaded workflows, but local YAML files read via _validate_and_install_local() had no size guard. A user or script pointing specify workflow install at an arbitrarily large local file could cause unbounded memory allocation.

Fix

Apply the same 5 MiB limit to local workflow YAML files.

Testing

  • Verified normal workflow files install correctly

  • Verified oversized files are rejected with a clear error message

The codebase defines _MAX_WORKFLOW_YAML_BYTES (5 MiB) and enforces it
on HTTP-downloaded workflows, but local YAML files read via
_validate_and_install_local() had no size guard. A user or script
pointing 'specify workflow install' at an arbitrarily large local
file could cause unbounded memory allocation. Apply the same limit.
@Quratulain-bilal
Quratulain-bilal requested a review from mnriem as a code owner July 31, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant