Skip to content

fix: make the camera streamer opt-in and move snapshot out of protocols - #111

Merged
DLANSAMA merged 1 commit into
mainfrom
refactor/aaa-pr2-snapshot
Aug 13, 2026
Merged

fix: make the camera streamer opt-in and move snapshot out of protocols#111
DLANSAMA merged 1 commit into
mainfrom
refactor/aaa-pr2-snapshot

Conversation

@DLANSAMA

Copy link
Copy Markdown
Owner

AAA stack 2/9. Stacked on #110.

The Docker/RTSP camera streamer is now opt-in. Snapshot command owns the Docker/JSON path; protocols/camera.py is only the port-6000 TLS grab.

  • Default is fail-closed: no streamer unless camera_allow_streamer or --allow-camera-streamer
  • Direct grab still fails closed on pin mismatch / SSLError when a pin is set
  • Without a pin it still refuses to send the access code over the direct connection

Stack: #110this → MQTT split → contracts → session reuse → Textual 8 / 3.10 → test stubs → sole error path → honesty

The Docker/RTSP streamer ignores cert_fingerprint, so a failed direct grab
no longer falls through to it. X1 users must set camera_allow_streamer or
pass --allow-camera-streamer. camera_direct_only still forbids the streamer
even when the opt-in is set.

The snapshot command, Docker lifecycle, and JSON envelopes now live in
bambu_cli.commands.snapshot. protocols/camera.py is only the port-6000 grab.
@DLANSAMA
DLANSAMA force-pushed the refactor/aaa-pr2-snapshot branch from fd4b621 to 6be67fd Compare August 13, 2026 03:14
@DLANSAMA
DLANSAMA merged commit 13081d1 into main Aug 13, 2026
6 of 12 checks passed
@DLANSAMA
DLANSAMA deleted the refactor/aaa-pr2-snapshot branch August 13, 2026 03:23
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