e-mhui opened a new pull request, #7953:
URL: https://github.com/apache/inlong/pull/7953

   ### Prepare a Pull Request
   
   [INLONG-7952][Sort] Mask sensitive message of Flink SQL in the logs
   
   - Fixes #7952 
   
   ### Motivation
   
   The logs printed in **Inlong** contain password message in Flink SQL, and we 
hope to replace the password or other sensitive message with * for display.
   
   ```sql
   4123 [main] INFO  org.apache.inlong.sort.parser.impl.FlinkSqlParser [] - 
start parse node, node id:1
   4131 [main] INFO  org.apache.inlong.sort.parser.impl.FlinkSqlParser [] - 
node id:1, create table sql:
   CREATE TABLE `table_1`(
       PRIMARY KEY (`id`) NOT ENFORCED,
       `id` INT,
       `name` STRING,
       `age` INT)
       WITH (
       'inlong.metric.labels' = 'groupId=1&streamId=1&nodeId=1',
       'connector' = 'mysql-cdc-inlong',
       'hostname' = 'localhost',
       'database-name' = 'test',
       'port' = '3306',
       'server-id' = '10011',
       'scan.incremental.snapshot.enabled' = 'true',
       'username' = 'root',
       'password' = '******',
       'table-name' = 'user'
   )
   ```
   
   
   ### Modifications
   
   Mask sensitive message at the location where Flink SQL is printed.
   
   ### Verifying this change
   
   Run `MaskDataUtilsTest.java`
   


-- 
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]

Reply via email to