Skip to content

[Request]: shared: blocks may carry env and secrets (reverses #576) #1133

Closed

Description

@jimhoyd

Problem or use case

This repository repeats the same MCP_ENABLED_SKILLS env binding across three routes. #576 asked for shared binding defaults and was declined: bindings stayed route-local so reviewers could see each route's requested authority.

Decision (owner, 2026-10-01): reverse #576. shared: blocks may carry both env and secrets.

Proposed behavior and alternatives

A route selecting a shared block with use: inherits that block's env/secrets declarations.

Bounds that keep the per-route visibility #576 protected:

  • Resolution: declarations are resolved at load time into each route. The resolved route is what the route hash, urlcode permissions (the requested grants), the operator policy's per-route revision pin, audit and routes/explain output all show, so every route's effective bindings stay visible and pinned per route.
  • Merge rule: a route's own env/secrets merge with the shared ones key by key, and a route-level entry with the same name wins.
  • What can't change: grants are still per route, and nothing about the operator policy's least-privilege model changes.

Docs and the schema must say this clearly. A test must show that adding a route to a shared block changes that route's requested grants and revision.


Generated by Claude Code

Activity

  1. jimhoyd commented on Oct 1, 2026

    @jimhoyd
    CollaboratorAuthor

    Taking this: Issues [37f079]

  2. added
    enhancement
    in-progress
    on Oct 1, 2026
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

    enhancementin-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions