Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5597 YARN Federation improvements
  3. YARN-11308

Router Page display the db username and password in mask mode

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      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>  

       

       

      Attachments

        1. image-2022-09-19-17-33-44-585.png
          50 kB
          Shilun Fan
        2. image-2022-09-19-17-35-02-471.png
          51 kB
          Shilun Fan

        Issue Links

          Activity

            People

              slfan1989 Shilun Fan
              slfan1989 Shilun Fan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: