slfan1989 opened a new pull request, #4908:
URL: https://github.com/apache/hadoop/pull/4908

   JIRA: YARN-11308. Router Page display the db username and password in mask 
mode.
   
   When using YRAN-Federation's SQLFederationStateStore, we need to configure 
yarn.federation.state-store.sql.username, 
yarn.federation.state-store.sql.password in the configuration file, When 
viewing Conf on the Router page, the user name and password are displayed in 
plaintext, which will bring security risks. We should display it in the form of 
a mask.
   
   before fixing
   ```
   <property>
      <name>yarn.federation.state-store.sql.username</name>
      <value>federation</value>
      <final>false</final>
      <source>yarn-site.xml</source>
   </property>
   
   <property>
      <name>yarn.federation.state-store.sql.password</name>
      <value>federation123</value>
      <final>false</final>
      <source>yarn-site.xml</source>
   </property> 
   ```
   
   after fixing
   ```
   <property>
   <name>yarn.federation.state-store.sql.username</name>
   <value>******</value>
   <final>false</final>
   <source>yarn-site.xml</source>
   </property>
   
   <property>
   <name>yarn.federation.state-store.sql.password</name>
   <value>******</value>
   <final>false</final>
   <source>yarn-site.xml</source>
   </property>  
   ```


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to