<?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>topic Re: Implement AIM CP for hardcoded creds in xml config files in Secrets Management</title>
    <link>https://live.paloaltonetworks.com/t5/secrets-management/implement-aim-cp-for-hardcoded-creds-in-xml-config-files/m-p/1379267#M1398</link>
    <description>&lt;P&gt;You might not even need AIM for that. You can add a so-called "Usage" or "Service account platform" to an account in the Vault, and the CPM will update the password in the "Usage" whenever the associated account is changed. Usages can be config files, windows services, IIS app pools... and XML files! More info here: https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/AccountsStoredInConfigurationFiles.htm?Highlight=xml&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2019 11:08:21 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2019-04-24T11:08:21Z</dc:date>
    <item>
      <title>Implement AIM CP for hardcoded creds in xml config files</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/implement-aim-cp-for-hardcoded-creds-in-xml-config-files/m-p/1379265#M1396</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have java applications that uses Hybernate technology. Hybernate  has .xml config files which has DB connection information, can we implement AIM CP to eliminate hard-coded credentials ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if so, how can we coded existing xml file to make a call to AIM CP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 18:59:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/implement-aim-cp-for-hardcoded-creds-in-xml-config-files/m-p/1379265#M1396</guid>
      <dc:creator>Anurag_Yelala</dc:creator>
      <dc:date>2019-04-23T18:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Implement AIM CP for hardcoded creds in xml config files</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/implement-aim-cp-for-hardcoded-creds-in-xml-config-files/m-p/1379266#M1397</link>
      <description>&lt;P&gt;@Anurag .​&amp;nbsp;There are multiple ways we can do this. I'm thinking of using the below approach &lt;/P&gt;&lt;P&gt;The below link has the working code for replacing values of an xml element &lt;B&gt;&amp;lt;name&amp;gt;.&lt;/B&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A alt="https://www.rgagnon.com/javadetails/java-0625.html" href="https://www.rgagnon.com/javadetails/java-0625.html" target="_blank"&gt;https://www.rgagnon.com/javadetails/java-0625.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you can do, first make sure you are able to replace  an element value of a given sample xml file(data.xml). I've tested in my lab and its working fine. a small modification in the below line. (Note: keep input and file name as data.xml)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;NodeList nodes = (NodeList)xpath.evaluate("//employee/name[text()]", doc, XPathConstants.NODESET);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, please make a java sdk call to your vaulted password : example given in the below  link. You can modify and keep it ready in separate java module/function&lt;/P&gt;&lt;P&gt;&lt;A alt="https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/AIM/Latest/en/Content/CP%20and%20ASCP/Java-AP-SDK-EgsAndSynt.htm" href="https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/AIM/Latest/en/Content/CP%20and%20ASCP/Java-AP-SDK-EgsAndSynt.htm" target="_blank"&gt;https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/AIM/Latest/en/Content/CP%20and%20ASCP/Java-AP-SDK-EgsAndSynt.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Third, call your java module inside the    nodes.item(idx).setTextContent(&lt;B&gt;call your java module()&lt;/B&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test and validate!!!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 02:43:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/implement-aim-cp-for-hardcoded-creds-in-xml-config-files/m-p/1379266#M1397</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2019-04-24T02:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Implement AIM CP for hardcoded creds in xml config files</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/implement-aim-cp-for-hardcoded-creds-in-xml-config-files/m-p/1379267#M1398</link>
      <description>&lt;P&gt;You might not even need AIM for that. You can add a so-called "Usage" or "Service account platform" to an account in the Vault, and the CPM will update the password in the "Usage" whenever the associated account is changed. Usages can be config files, windows services, IIS app pools... and XML files! More info here: https://cyberarkdocu.azurewebsites.net/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PASIMP/AccountsStoredInConfigurationFiles.htm?Highlight=xml&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 11:08:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/implement-aim-cp-for-hardcoded-creds-in-xml-config-files/m-p/1379267#M1398</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2019-04-24T11:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Implement AIM CP for hardcoded creds in xml config files</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/implement-aim-cp-for-hardcoded-creds-in-xml-config-files/m-p/1379268#M1399</link>
      <description>&lt;P&gt;Hi @Anurag .​&amp;nbsp;, Yes I agree with @Bernhard Brückler​ and thats very straightforward.. There is an existing  solution article you can refer &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A alt="https://community.cyberark.com/s/article/00004750 " href="https://community.cyberark.com/s/article/00004750 " target="_blank"&gt;https://community.cyberark.com/s/article/00004750 &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 21:33:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/implement-aim-cp-for-hardcoded-creds-in-xml-config-files/m-p/1379268#M1399</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2019-04-24T21:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Implement AIM CP for hardcoded creds in xml config files</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/implement-aim-cp-for-hardcoded-creds-in-xml-config-files/m-p/1379269#M1400</link>
      <description>&lt;P&gt;@Bernhard Brückler​&amp;nbsp;Thank you ! but however my goal to remove hard-coded creds from config files is not solved if i use "usage or service account paltform."&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 22:26:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/implement-aim-cp-for-hardcoded-creds-in-xml-config-files/m-p/1379269#M1400</guid>
      <dc:creator>Anurag_Yelala</dc:creator>
      <dc:date>2019-04-24T22:26:59Z</dc:date>
    </item>
  </channel>
</rss>

