Skip to content

[] Fargate breakage fix - 26.2 backport#331

Open
MosheFriedland wants to merge 2 commits into
release/26.2.1from
moshef-fargate-bugfix-backport-26-2-1
Open

[] Fargate breakage fix - 26.2 backport#331
MosheFriedland wants to merge 2 commits into
release/26.2.1from
moshef-fargate-bugfix-backport-26-2-1

Conversation

@MosheFriedland

Copy link
Copy Markdown
Contributor

No description provided.

DorEdelman and others added 2 commits June 16, 2026 13:31
New value configuration.env.injection.fargate_ptrace_allow (default true)
that flows to the helper as S1_FARGATE_PTRACE_ALLOW. When set to false,
the helper webhook skips injecting s1-fargate-init / libptrace_allow.so
into Fargate pods and leaves their container CMD unchanged.

Add LD_PRELOAD env to helper's agent container to load libptrace_allow.so
when ptrace injection is enabled.

Co-Authored-By: Moshe Friedland <moshe.friedland@sentinelone.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add S1_FARGATE_PTRACE_ALLOW to the env of the agent container that the
helper webhook injects into Fargate pods, sharing the existing
fargate_ptrace_allow gate next to LD_PRELOAD.

The agent's cws_deployment startup reads this env var and translates it
to the daemon_executor_ptrace_allow_enabled config key.  When set, the
agent's shell_spawner opts its remote-shell child (orphaned to pid 1 by
daemon_executor's double-fork) into prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY)
so the agent's subsequent PTRACE_ATTACH succeeds under YAMA mode 1.

The same toggle now drives all three Fargate ptrace fixes: workload
LD_PRELOAD libptrace_allow.so, workload CMD wrap with s1-fargate-init,
and the agent's own remote-shell PR_SET_PTRACER opt-in.
@MosheFriedland MosheFriedland requested a review from oded-s1 June 16, 2026 10:33
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.

2 participants