Skip to content

RC1-2 follow-ups: test hardening + deploy/knative polish (from #97 review) #98

Closed

Description

@pdettori

Follow-up items from the RC1-2 (Hop-2 per-sandbox AuthBridge egress forward-proxy) whole-branch review (#97). All were judged non-blocking / acceptable to merge; tracking here so they aren't lost.

Test hardening

  • Assert the sandbox container has no creds mount. authbridge-manifests.test.ts asserts the authbridge-ab2 sidecar mounts ab2-egress-cred, and that the pod has the config/creds volumes, but does not assert that the sandbox container does not mount the creds secret. A future edit adding a creds mount to the sandbox container would keep the tests green while breaking the secret-free invariant. (review M4)

deploy/knative polish

  • echo-target image runs as root. echo-target/echo.js + Dockerfile comment "non-root", but node:20-alpine runs as root and there's no USER directive. Add a non-root USER, or drop the comment. Kind-dev echo only (not used on OCP). (review M2)
  • echo-target Deployment lacks a CPU limit and readiness/liveness probes. Fine for a dev echo target; add if it graduates beyond the PoC. (review M3)
  • ab2-config.yaml comment overstates fidelity. Comment says it is the "EXACT bootable config from the spike"; it additionally sets judge_inference: true (which is correct and consistent with the AB1 config, but not literally in the spike's minimal snippet). Tweak the wording. (review M1)
  • leaf-smoke.sh H2 curls hardcode the placeholder (Bearer PLACEHOLDER-TOKEN) rather than reading the sandbox's ECHO_CRED env; harmless, slightly redundant. (review M5)

Design note (I2)

  • curl was added to the OCP-shared sandbox.Dockerfile (rather than a separate RC1-only image). Reviewer judged this acceptable (curl grants no egress the pod's shell didn't already have; a separate image would be over-engineering for one tool). Revisit only if the OCP sandbox image should stay minimal.

Assisted-By: Claude Code

Activity

  1. pdettori commented on Jul 13, 2026

    @pdettori
    MemberAuthor

    Addressed in follow-up PR #99 (opened off the now-merged main):

    • M1 ab2-config comment wording — done
    • M3 echo-target CPU limit + readiness/liveness probes — done
    • M4 test asserts the sandbox container has no creds mount (only the sidecar does) — done
    • M5 H2 curls read the sandbox's ECHO_CRED instead of a hardcoded placeholder — done

    M2 (echo non-root USER node) already landed in #97. I2 (curl in the shared sandbox.Dockerfile) is a documented design decision the review judged acceptable — no change. Live re-gate stayed 16/16. This issue can be closed once #99 merges.

    Assisted-By: Claude Code

  2. added a commit that references this issue on Jul 13, 2026
  3. added a commit that references this issue on Jul 15, 2026
    43403c7
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions