lasdf1234 opened a new pull request, #12581: URL: https://github.com/apache/gravitino/pull/12581
## Summary Return hidden credential-related properties (e.g. `jdbc-user`, `jdbc-password`, S3 keys) with a masked placeholder (`******`) instead of omitting them from API responses. ## Changes - Add `HiddenPropertyMaskUtils` with `MASKED_VALUE = "******"` - Apply masking in `BaseCatalog`, `MetalakeManager`, and all `EntityCombined*` property maps - Update related unit tests ## Behavior notes - Internal paths such as `propertiesWithCredentialProviders()` still use plaintext credentials - When `gravitino.catalog.credential.backfillToProperties=true`, catalog properties still return plaintext for backward compatibility with legacy connectors ## Testing - `./gradlew :core:test --tests 'org.apache.gravitino.connector.TestHiddenPropertyMaskUtils' --tests 'org.apache.gravitino.meta.TestEntityCombinedObject' --tests 'org.apache.gravitino.catalog.TestEntityCombinedFileset'` - `./gradlew :catalogs:catalog-jdbc-common:test --tests 'org.apache.gravitino.catalog.jdbc.TestJdbcCatalogCredential'` Made with [Cursor](https://cursor.com) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
