What are Resource Scope Links?
Resource Scope Links allow you to associate a resource with multiple scopes beyond its owner scope. Each link has a type that describes the relationship, enabling different behaviors for sharing, aliasing, and mirroring resources.Resource scope links replace the simpler “resource scopes” model, adding link types and metadata for richer relationships.
Link Properties
Link Types
Share
The resource is shared with the scope. Users in the scope can see and access the resource based on their permissions.- Cross-team document sharing
- Shared component libraries
- Collaborative resources
Alias
The resource appears in the scope under a different context. The resource has one canonical location but can be referenced from multiple places.- Templates available in multiple projects
- Shortcuts to frequently used resources
- Virtual folder structures
Mirror
The resource is mirrored to the scope, typically for compliance, backup, or multi-region scenarios.- Compliance zone classification
- Multi-region data presence
- Audit trail requirements
Creating Links
Single Link
Batch Create
Querying Links
Get Links for a Resource
Get Links for a Scope
Using Metadata
Link metadata enables custom attributes for each relationship:Updating Links
Removing Links
Access Control Considerations
Resource scope links do not automatically grant access. Access is still determined by:- Membership — Subject must be a member of the linked scope
- Role — Subject must have a role with appropriate permissions
- Permission — The role must include the required permission
- Policies — Any resource policies must allow access
Reachability Gate (BEDROCK_RESOURCE_SCOPE_GATE)
An opt-in authorization containment gate. When enabled, a concrete resource must
be reachable from the evaluation scope (its owner scope, or an explicit
resource-scope link) before RBAC/policy evaluation runs. Configured via the
BEDROCK_RESOURCE_SCOPE_GATE environment variable:
off(default) — no gate; backward-compatible.links-fallback— the safe on-ramp. Only resources with at least one scope link are gated; a resource with zero links is treated as globally reachable, so enabling this cannot break a deployment that has not created links.strict— every concrete resource is gated: a non-owner, non-linked scope is never reachable.
Patterns
Pattern 1: Shared Resources Library
Pattern 2: Matrix Organization
Resources belong to both functional and project scopes:Pattern 3: Compliance Classification
Best Practices
Choose the right link type
Choose the right link type
Use
share for collaboration, alias for shortcuts, mirror for compliance/backup.Use metadata meaningfully
Use metadata meaningfully
Store context about why the link exists, who created it, and any constraints.
Audit link creation
Audit link creation
Track who creates links and why for security and compliance.
Related Concepts
Resource Hierarchies
Parent-child relationships between resources
Resource Collections
Dynamic grouping of resources
Tags
Flexible metadata for classification