You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "danhuawang (via GitHub)" <gi...@apache.org> on 2026/06/15 08:14:14 UTC

[I] [Bug report] Paimon catalog exposes sensitive properties (jdbc-password, S3 secret key) in REST API responses [gravitino]

danhuawang opened a new issue, #11644:
URL: https://github.com/apache/gravitino/issues/11644

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   Paimon catalog's `PaimonCatalogPropertiesMetadata` and `PaimonS3FileSystemConfig` define sensitive properties (`jdbc-password`, `jdbc-user`, `s3-access-key-id`, `s3-secret-access-key`) with `hidden=false`. This causes these credentials to be returned in plaintext in REST API responses (e.g., `GET /api/metalakes/{metalake}/catalogs/{catalog}`).
   
   In comparison, Iceberg catalog correctly sets `hidden=true` for the same properties in `IcebergCatalogPropertiesMetadata` and `S3PropertiesMetadata`.
   
   ### Error message and/or stacktrace
   
   API response exposes credentials:
   ```json
   {
     "properties": {
       "jdbc-user": "gravitino",
       "jdbc-password": "gravitino",
       "gravitino.bypass.hadoop.fs.s3a.secret.key": "XXXX",
       "gravitino.bypass.hadoop.fs.s3a.access.key": "XXXX"
     }
   }
   ```
   
   ### How to reproduce
   
   1. Create a Paimon catalog with JDBC backend and S3 storage, providing `jdbc-user`, `jdbc-password`, `s3-access-key-id`, and `s3-secret-access-key`.
   2. Call `GET /api/metalakes/{metalake}/catalogs/{catalog}` to retrieve the catalog info.
   3. Observe that all sensitive properties are returned in plaintext.
   
   ### Additional context
   
   Affected code locations:
   - `PaimonCatalogPropertiesMetadata.java`: `GRAVITINO_JDBC_USER` and `GRAVITINO_JDBC_PASSWORD` both set `hidden=false`
   - `PaimonS3FileSystemConfig.java`: `S3_ACCESS_KEY` and `S3_SECRET_KEY` both set `hidden=false`
   
   Fix: Change the `hidden` flag to `true` for these four properties, consistent with the Iceberg catalog implementation.


-- 
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: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Paimon catalog exposes sensitive properties (jdbc-password, S3 secret key) in REST API responses [gravitino]

Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades closed issue #11644: [Bug report] Paimon catalog exposes sensitive properties (jdbc-password, S3 secret key) in REST API responses
URL: https://github.com/apache/gravitino/issues/11644


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Paimon catalog exposes sensitive properties (jdbc-password, S3 secret key) in REST API responses [gravitino]

Posted by "diqiu50 (via GitHub)" <gi...@apache.org>.
diqiu50 commented on issue #11644:
URL: https://github.com/apache/gravitino/issues/11644#issuecomment-4708308048

   I can fix this issue, but `gravitino.bypass` cannot be a user-defined property, so we don’t have control over it.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug report] Paimon catalog exposes sensitive properties (jdbc-password, S3 secret key) in REST API responses [gravitino]

Posted by "danhuawang (via GitHub)" <gi...@apache.org>.
danhuawang commented on issue #11644:
URL: https://github.com/apache/gravitino/issues/11644#issuecomment-4705901684

   @diqiu50 Could you help check this issue?


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org