View a markdown version of this page

Entitlement-based discovery in AWS Agent Registry - Amazon Bedrock AgentCore

Entitlement-based discovery in AWS Agent Registry

Public preview

Entitlement-based discovery is in public preview. Features and APIs may change before general availability.

With entitlement-based discovery, you decide which approved records each caller discovers in a registry. You attach a record visibility configuration to the registry, and the configuration compares caller attributes with record attributes. Caller attributes include AWS Identity and Access Management (IAM) principal tags and JSON Web Token (JWT) claims. Record attributes include record type and metadata fields. The configuration applies to SearchDiscoverableRegistryRecords, ListDiscoverableRegistryRecords, BatchGetDiscoverableRegistryRecord, and the matching tools on the registry’s Model Context Protocol (MCP) endpoint. Without a record visibility configuration, every authorized caller discovers every approved record that its permissions allow, except quarantined records.

Entitlement-based discovery is separate from Policy in Amazon Bedrock AgentCore, which controls the tool calls that agents make through an AgentCore Gateway.

Protect the attributes that a configuration tests

A record visibility configuration is only as trustworthy as the attributes that it tests. Callers who can tag their own role or user, pass session tags, or edit their identity provider (IdP) claims can widen what they discover. A session tag overrides a role tag with the same key, regardless of case. Before you rely on a configuration, see Security considerations for record visibility configurations.

How record visibility configurations work

AWS Agent Registry first authorizes each discovery request, through IAM or through the registry’s JWT authorizer. Your record visibility configuration then chooses which of the approved records the caller receives. A configuration contains one or more statements. Each statement has an effect, Allow or Deny, with principal tests on the caller and resource tests on the record. A caller receives a record when at least one Allow statement matches both, and no Deny statement does.

A registry has at most one record visibility configuration, and it applies to every discovery caller. That includes callers in the owner’s account and in accounts that you share the registry with. For the complete rules, see Record visibility configuration evaluation.

Example – Discovery by department

With the following record visibility configuration, each caller discovers the records that carry the caller’s own department label:

{ "version": "1", "statements": [ { "sid": "same-department", "effect": "Allow", "principal": { "iam:principalTag/department": {"Exists": true} }, "resource": { "customMetadata/department": { "StringEquals": {"ref": "iam:principalTag/department"} } } } ] }

The statement applies only to callers that have a department principal tag. It matches the records whose department metadata field equals that tag’s value.

Suppose that the registry holds three approved records: finance-mcp labeled department=finance, legal-mcp labeled department=legal, and unlabeled-mcp with no department label. The following table shows what three callers receive.

Caller’s principal tags Records returned Why

department=finance

finance-mcp

Only that record’s label equals the caller’s tag value.

department=legal

legal-mcp

Only that record’s label equals the caller’s tag value.

No department tag

None

The statement doesn’t apply to a caller without the tag.

No caller receives unlabeled-mcp, because a record without a department label matches no caller’s tag. To set up and test this configuration yourself, see Set up and test a record visibility configuration.

What a record visibility configuration does not do

With a record visibility configuration, you control which approved records a discovery caller receives, and nothing else. Keep the following limits in mind:

  • It doesn’t grant API permission – IAM callers still need IAM permissions for the discovery operations. For more information, see IAM Permissions. JWT callers still need a token that the registry’s JWT authorizer accepts.

  • It doesn’t filter control-plane record reads – GetRegistryRecord and ListRegistryRecords return records under IAM permissions alone. That includes permissions that an AWS Resource Access Manager (AWS RAM) share grants. For more information, see Restrict the read paths that a record visibility configuration doesn’t filter.

  • It doesn’t protect the resource that a record describes – Discovering a record gives a caller its catalog entry, not access to the agent or MCP server. Secure each resource with its own authorization.

  • It doesn’t exempt the registry owner – The configuration evaluates callers in the owner’s account like any other caller, so it can hide records from the owner too. For more information, see Record visibility configurations within authorization.

  • It doesn’t protect secrets in its conditions – Conditions in the configuration document are access-control settings, not protected customer content. Don’t put secrets or other sensitive information in condition values or field names. For more information, see Data protection in AWS Agent Registry.

Only the registry owner’s account can read or change the configuration. Accounts that you share the registry with receive no configuration state. Removing a configuration returns the registry to discovery without a configuration.

Next steps

Use the following topics to set up and refine a record visibility configuration:

Topics