CritasWang opened a new pull request, #19:
URL: https://github.com/apache/iotdb-mcp-server/pull/19
The startup log currently prints the full IoTDB config dict, which includes
the password field in plain form. This change logs a copy of the config with
the password masked as `***`, and also excludes the password from the `Config`
repr so it does not show up in any other log or traceback output.
Verified locally: the startup line now reads
```
IoTDB Config: {'host': '127.0.0.1', 'port': 6667, 'user': 'root',
'password': '***', 'database': 'test', 'sql_dialect': 'table', 'export_path':
'/tmp'}
```
Changes:
- `src/iotdb_mcp_server/server.py`: mask the password when logging the config
- `src/iotdb_mcp_server/config.py`: mark the password field with
`field(repr=False)`
--
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]