<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Mask the password fields in a text file by using smart sense in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109474#M30146</link>
    <description>&lt;P&gt;Hi Kuldeep Kulkarni,&lt;/P&gt;&lt;P&gt;     Awaiting for your comments.&lt;/P&gt;</description>
    <pubDate>Tue, 31 May 2016 21:58:26 GMT</pubDate>
    <dc:creator>shyam_kf657</dc:creator>
    <dc:date>2016-05-31T21:58:26Z</dc:date>
    <item>
      <title>Mask the password fields in a text file by using smart sense</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109472#M30144</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;          I am using Ambari HDP 2.3 version. One of the host I installed Smart Sense, I need to do masking for some of the password fields. I have done masking for the fields which are present in XML files. But, I have passwords in text file as well. I am not aware how to mask those passwords also in text files. Please help me on this.&lt;/P&gt;&lt;P&gt;1) For the XML files masking is done by using below setup in Anonymization rule. &lt;/P&gt;&lt;H4&gt;{
    "name":"Delete_Yarn_Hbase_Hive_MR_Trust_Store_Password", &lt;/H4&gt;&lt;H4&gt;    "path":"ssl-server.xml", &lt;/H4&gt;&lt;H4&gt;    "property": "ssl.server.truststore.password", &lt;/H4&gt;&lt;H4&gt;    "operation":"REPLACE",&lt;/H4&gt;&lt;H4&gt;
    "value":"Hidden"
  }&lt;/H4&gt;&lt;P&gt;I am not aware to how to mask the password, in a text file. Awaiting for your reply. &lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 06:04:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109472#M30144</guid>
      <dc:creator>shyam_kf657</dc:creator>
      <dc:date>2016-05-31T06:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mask the password fields in a text file by using smart sense</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109473#M30145</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10267/shyamkf657.html" nodeid="10267"&gt;@shyam gurram&lt;/A&gt; - Good question. I will try this and keep you updated.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 12:07:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109473#M30145</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-05-31T12:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mask the password fields in a text file by using smart sense</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109474#M30146</link>
      <description>&lt;P&gt;Hi Kuldeep Kulkarni,&lt;/P&gt;&lt;P&gt;     Awaiting for your comments.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 21:58:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109474#M30146</guid>
      <dc:creator>shyam_kf657</dc:creator>
      <dc:date>2016-05-31T21:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mask the password fields in a text file by using smart sense</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109475#M30147</link>
      <description>&lt;P&gt;Anonymization rules are covered in the &lt;A href="http://docs.hortonworks.com/HDPDocuments/SS1/SmartSense-1.2.2/bk_smartsense_admin/content/appendix_data_anonymization.html"&gt;SmartSense Admin Guide&lt;/A&gt;. You will need to use a regular expression-based rule to mask from a text file. Depending on what text file(s) may contain passwords, you can either specify the exact filename or use a regular expression here as well. It's best to define the path as specifically as possible to avoid accidentally masking values in unrelated files.&lt;/P&gt;&lt;P&gt;The string to mask/replace is identified by a regular expression. Here's a very simple example that will replace a line that contains the string "password:" in my-credentials.txt:&lt;/P&gt;&lt;PRE&gt;  {
    "name":"my_credentials",
    "path":"my-credentials.txt",
    "pattern": ".*password:.*",
    "value": "password: Hidden"
  },
&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Jun 2016 01:19:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109475#M30147</guid>
      <dc:creator>amiller</dc:creator>
      <dc:date>2016-06-01T01:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Mask the password fields in a text file by using smart sense</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109476#M30148</link>
      <description>&lt;P&gt;You can also use sub-pattern to replace passwords in the text file.&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"name": "replace_password",&lt;/P&gt;&lt;P&gt;"path": "my_secured_file.txt",&lt;/P&gt;&lt;P&gt;"pattern": "mypassword=([^ ]+) ",&lt;/P&gt;&lt;P&gt;"extract":"=([^ ]+)",&lt;/P&gt;&lt;P&gt;"value":"Hidden"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 05:21:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109476#M30148</guid>
      <dc:creator>czounaidou</dc:creator>
      <dc:date>2016-06-01T05:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Mask the password fields in a text file by using smart sense</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109477#M30149</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;     Thanks for the post, In a text file I have two properties. The script is working for one of the property, but as per the logic it should for the other property also. &lt;/P&gt;&lt;P&gt;env:KERBEROS_KADMINST_PASSWORD=t.w48oJj-&lt;/P&gt;&lt;P&gt;
env:KERBEROS_MASTERDB_PASSWORD=xtW2+OGi-&lt;/P&gt;&lt;P&gt;The above are the two properties that i need to mask their passwords. &lt;/P&gt;&lt;P&gt; {
    "name":"Hive_Pass_Phrase", &lt;/P&gt;&lt;P&gt;    "path":"hive_config.txt", &lt;/P&gt;&lt;P&gt;    "pattern": ".*PASSWORD.*$", &lt;/P&gt;&lt;P&gt;"operation":"REPLACE",&lt;/P&gt;&lt;P&gt;
    "value":"PASSWORD Hidden"
  },&lt;/P&gt;&lt;P&gt;As per the above code it should work for the both the properties, it is working only for&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;env:KERBEROS_KADMINST_PASSWORD, &lt;/STRONG&gt;not for other. Please help me on this.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shyam&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 22:03:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Mask-the-password-fields-in-a-text-file-by-using-smart-sense/m-p/109477#M30149</guid>
      <dc:creator>shyam_kf657</dc:creator>
      <dc:date>2016-06-06T22:03:02Z</dc:date>
    </item>
  </channel>
</rss>

