[Bug report] Iceberg/Paimon catalog jdbc-user still hidden on branch-1.3
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 935
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 286
Description
### Version
branch-1.3
### Describe what's wrong
After [#12750](https://github.com/apache/gravitino/issues/12750) / [#12751](https://github.com/apache/gravitino/pull/12751), JDBC catalogs return `jdbc-user` in plaintext because it identifies the account rather than a secret. Iceberg and Paimon JDBC backends on `branch-1.3` still mark `jdbc-user` as `hidden`, so `GET .../catalogs/{catalog}` returns `******` for Iceberg/Paimon while JDBC returns the real username.
This is fixed on `main` by #13124 / #13125. Cherry-pick it to `branch-1.3`.
### Error message and/or stacktrace
Iceberg/Paimon catalog properties response shows:
```json
"jdbc-user": "******"
```
while a JDBC catalog with the same username shows:
```json
"jdbc-user": "demo"
```
### How to reproduce
1. Create a JDBC catalog with `jdbc-user` / `jdbc-password`.
2. Create a `lakehouse-iceberg` catalog with `catalog-backend=jdbc` and the same `jdbc-user` / `jdbc-password`.
3. Load both catalogs via the REST API on a 1.3 server.
4. Observe that JDBC returns plaintext `jdbc-user`, while Iceberg returns `******`.
### Additional context
Align Iceberg and Paimon with the JDBC behavior from #12750. Keep `jdbc-password` and cloud credential secrets hidden/masked.
Related: #13124, #13125
Contributor guide
Research direction
Start by reviewing the behavior from #12750 and the fixes in #13124 and #13125 for the Iceberg and Paimon JDBC backends on branch-1.3. Reproduce the REST API catalog-property responses using the steps in the issue. Done means jdbc-user is returned in plaintext for Iceberg and Paimon while jdbc-password and cloud credential secrets remain masked.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend-api-design, databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100