Skip to content

[Request]: Clarify trusted-mode binding boundaries and reconcile release-readiness claims #140

Closed

Description

@jimhoyd

Problem or use case

Review of c984d72 found current maintainer documentation that can be read as retaining sandbox guarantees for the trusted default.

  • SECURITY.md and docs/FUNCTION-SECURITY.md say env/secrets remain route-granted. That is true of context injection, not access control on trusted Node code. A synthetic function with an empty context.secrets reads a synthetic process.env key with no grant. This is intentional full-Node behavior, not a sandbox escape. State this explicitly beside the binding claim.
  • FUNCTION-SECURITY says every config/module change invalidates a grant, then separately notes trusted transitive dependencies are not hashed. State the exact entry-file-only scope consistently.
  • AI-AUTHORING's trust guidance leads with untrusted webhook data. All public HTTP data is untrusted; first-party code can still be trusted. Describe sandbox as a deliberate code/capability isolation choice, not a substitute for validating input or checking webhook signatures. Returning a granted secret in an HTTP response remains possible in either mode.
  • docs/RELEASE-READINESS.md still lists store queues, persistence and management tests after their removal from core, and says no published npm release. Its version status is alpha.1 while package.json is alpha.2. OPERATIONAL-PROOF also says six Node/OS combinations although current main matrix has nine (PRs run Linux only).

Proposed behavior and alternatives

Update these maintained records to distinguish implemented behavior, historical evidence and deployment-specific proof. Keep the trust decision; do not restore blanket sandboxing. Explain that trusted reload re-imports entry modules but not dependencies, and repeated cache-busted entry imports have process-lifetime ESM retention: production should use immutable process replacement until lifecycle behavior is improved. This reload limitation is already documented; not claiming a new escape.

Before a broad production claim, retain a mixed-workload soak/overload/recovery acceptance record for the trusted path. PR #136 is a useful timer-concurrency benchmark, not same-workload Fastify/Hono/NGINX comparison or a CPU/stream/soak test. Existing TypeScript mismatch #124 and extraction follow-ups #128 remain relevant; do not duplicate them.

Activity

  1. jimhoyd commented on Sep 19, 2026

    @jimhoyd
    CollaboratorAuthor

    First party code is always trusted, developer decides when to sandbox

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