

# AWS-native structured sources: metadata vs. data access

For a catalog source, metadata visibility and source-data access are enforced by different systems. IAM policies and the Agent Context’s resource policy govern metadata visibility. Any principal who can call `SearchAgentContext`, `TraverseAgentContext`, or `AgenticRetrieve` on the Agent Context can see every catalog node in it. AWS Lake Formation governs source-data access, as described in the previous topic.

The two can disagree, and that is intended. An end user can learn that an `orders` table is relevant to a question and see its column names, and still receive no rows from it. Knowing that a table exists is a weaker permission than reading it.

Catalog metadata comes from auto-discovery in AWS Glue, which sends it to AWS Context once auto-discovery is turned on for your account (see [AWS Glue tables and Amazon S3 Tables](glue-data-catalog-source.md)). The assets that auto-discovery describes have no fine-grained permissions of their own in IAM or in AWS Lake Formation. As a result, every reader of the Agent Context can see the catalog nodes built from them. This is the same whether the connection reads data with a data access role or with the caller’s credentials. An end user who can’t read a table’s data can still see its name, description, and column names. Ingestion decides what enters the Agent Context. AWS Glue sends metadata with the connection’s ingestion role, whose `glue:SendMetadata` permission covers the whole catalog. The connection’s `scope` and the data filters on its mapping narrow what’s included.

If the catalog metadata is itself sensitive, set the connection’s `scope` to the databases and tables that every reader of the Agent Context may know about. For how to set a scope, see [Filters and scoping a connection](filters-and-scoping.md).