Skip to content

feat(deploy): add secfoo sensor manifest, container Dockerfiles, runtime examples, and docs/RUNTIME.md (#71) - #237

Open
SriRamkunamsetty wants to merge 2 commits into
secfoo-com:mainfrom
SriRamkunamsetty:feat/deploy-sensor-71
Open

SriRamkunamsetty wants to merge 2 commits into
secfoo-com:mainfrom
SriRamkunamsetty:feat/deploy-sensor-71

Conversation

@SriRamkunamsetty

Copy link
Copy Markdown
Contributor

Fixes #71
Depends on #235 (#67 standalone sensor)

Summary

  • Added secfoo sensor manifest --platform kubernetes|ecs|cloud-run|compose|systemd --project <id> --app <name> --env <env> (src/secfoo/sensor/manifest.py, src/secfoo/cli.py) generating opt-in, secret-reference-only sidecar and host daemon manifests.
  • Added non-root, pinned-digest multi-arch Dockerfiles:
    • packaging/docker/Dockerfile.sensor (secfoo sensor run)
    • packaging/docker/Dockerfile.probe (/opt/secfoo/probe/python + /opt/secfoo/probe/node)
  • Added checked-in reference examples under examples/runtime/: kubernetes/, ecs/, cloud-run/, compose/, systemd/, windows/ (install-service.ps1 / uninstall-service.ps1), and lambda/ (direct mode + Extension launcher).
  • Added comprehensive docs/RUNTIME.md covering the opt-in Rule 0 guarantee, deployment mode × runtime matrix, environment variables, measured Python & Node.js overhead, strict privacy contract, and uninstall procedures.

Verification

  • pytest -p no:langsmith -p no:hypothesis tests/test_sensor/test_manifest.py tests/test_sensor/test_sensor_daemon.py tests/test_docs_consistency.py -q -> 31 passed, 1 skipped (all CLI manifest platforms, YAML/JSON parsing across examples/runtime/, container checks, and docs checks passed; POSIX unix:// listener skipped on Windows).
  • ruff check . & bandit -c .bandit -ll -r src/secfoo -q -> passed.
  • git merge-tree --write-tree HEAD upstream/main -> zero conflicts.
    (Note: docker / kind are not installed on this local Windows host, so container build/Compose/dry-run validation runs cleanly in Linux environments / CI.)

Copilot AI balanced review requested due to automatic review settings December 1, 2026 12:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

def _restrictive_chmod(path: Path, mode: int) -> None:
if os.name == "posix":
with contextlib.suppress(OSError):
os.chmod(path, mode)
family = socket.AF_INET6 if ":" in host else socket.AF_INET
srv = socket.socket(family, socket.SOCK_STREAM)
srv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
srv.bind((host, port))
break
buf += chunk
if len(buf) > MAX_LINE_BYTES * 8:
buf = b""
conn.close()

def _start_npipe_listener(self, raw_addr: str, pipe_name: str) -> ListenerHandle:
import ctypes
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.

Deploy the runtime sensor anywhere: containers, Kubernetes, VMs, Windows, PaaS, serverless

3 participants