Skip to content

[#12947] fix(catalog): reject unknown catalog properties to prevent credential leaks - #12948

Open
lasdf1234 wants to merge 2 commits into
apache:mainfrom
lasdf1234:fix/reject-unknown-catalog-properties
Open

[#12947] fix(catalog): reject unknown catalog properties to prevent credential leaks#12948
lasdf1234 wants to merge 2 commits into
apache:mainfrom
lasdf1234:fix/reject-unknown-catalog-properties

Conversation

@lasdf1234

@lasdf1234 lasdf1234 commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

What changes were proposed in this pull request?

  • Catalog property metadata rejects undeclared keys on create and alter upsert (PropertiesMetadata.rejectsUnknownProperties()).
  • Declare bypass prefixes: gravitino.bypass., trino.bypass., flink.bypass., spark.bypass..
  • Declare fileset fs.path.config. prefix so location-scoped catalog configs remain valid.
  • Allow alter delete of undeclared keys so mistyped secrets can be cleaned up.
  • Unit tests for helpers, Glue mistyped s3-*, fileset unknown-property rejection, and fs.path.config.*.

Table/schema/other open property models are unchanged.

Raw Hadoop filesystem keys that are neither declared nor under gravitino.bypass. are now rejected on catalog create/alter; pass them with the gravitino.bypass. prefix.

Why are the changes needed?

Undeclared catalog properties skip hidden-property redaction, so a mistyped credential property name becomes a plaintext disclosure on read/list paths.

Fix: #12947

Does this PR introduce any user-facing change?

Yes. Catalog create/alter now rejects property keys that are not declared by the provider (except declared prefixes such as gravitino.bypass.* and fileset fs.path.config.*). Previously unknown keys were accepted.

How was this patch tested?

  • TestPropertiesMetadataHelpers
  • TestGlueCatalogPropertiesMetadata
  • TestFilesetCloudPropertiesMetadata

lasdf1234 and others added 2 commits September 7, 2026 14:43
…vent credential leaks

Mistyped credential keys were accepted as undeclared catalog properties and
returned unredacted. Reject unknown catalog keys on create/alter upsert while
keeping bypass prefixes and allowing cleanup deletes.

Co-authored-by: Cursor <cursoragent@cursor.com>
…r closed set

Declare fs.path.config.* so location-scoped fileset catalog configs are not
rejected. Also null-guard alter validation and clarify unknown-property errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug report] Unknown catalog properties bypass redaction and can leak credentials

1 participant