<?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 Understanding how to use conjur policy replace. in Secrets Management</title>
    <link>https://live.paloaltonetworks.com/t5/secrets-management/understanding-how-to-use-conjur-policy-replace/m-p/1423136#M2226</link>
    <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I was trying to &lt;B&gt;demystify the Conjur policy replace&lt;/B&gt; command because all my colleagues have nightmares with it.&lt;/P&gt;&lt;P&gt;For my first test, I tried using replace on the root policy, and as I expected… I &lt;B&gt;lost everything!&lt;/B&gt; So, be very careful&lt;B&gt; &lt;/B&gt;when running:&lt;/P&gt;&lt;P&gt;      conjur load policy -b root -f &amp;lt;file&amp;gt;.yml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my second test, I created a policy with several sub-policies inside it. I gave one of them the wrong name and tried to use replace to fix it, but… it didn’t work as I expected.&lt;/P&gt;&lt;P&gt;Here’s the first yaml that I used to create the policies:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__068Vy00000nLKSrIAO.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/93591iDEA051BF78DC507D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__068Vy00000nLKSrIAO.png" alt="Field_Content_versions_oct20__068Vy00000nLKSrIAO.png" /&gt;&lt;/span&gt;Then, I created a second yaml, trying to fix the policy name, note that I used the replace command with this yaml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__068Vy00000nLc68IAC.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/93593i20AA5F33EE7CA0D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__068Vy00000nLc68IAC.png" alt="Field_Content_versions_oct20__068Vy00000nLc68IAC.png" /&gt;&lt;/span&gt;But instead of replacing all the policie within test-replace, it just added a new one. I thought&lt;/P&gt;&lt;P&gt;replace would delete the old policy and recreate everything, but apparently, that’s not what happens.&lt;/P&gt;&lt;P&gt;I know the easiest way to fix the policy name is to delete it and recreate it with the correct name, but my goal here was to better understand how conjur policy replace actually works.&lt;/P&gt;&lt;P&gt;Could anyone help me clarify this behavior?&lt;/P&gt;&lt;P&gt;Thanks in advance! &lt;/P&gt;</description>
    <pubDate>Thu, 04 Sep 2025 14:24:39 GMT</pubDate>
    <dc:creator>lbds</dc:creator>
    <dc:date>2025-09-04T14:24:39Z</dc:date>
    <item>
      <title>Understanding how to use conjur policy replace.</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/understanding-how-to-use-conjur-policy-replace/m-p/1423136#M2226</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I was trying to &lt;B&gt;demystify the Conjur policy replace&lt;/B&gt; command because all my colleagues have nightmares with it.&lt;/P&gt;&lt;P&gt;For my first test, I tried using replace on the root policy, and as I expected… I &lt;B&gt;lost everything!&lt;/B&gt; So, be very careful&lt;B&gt; &lt;/B&gt;when running:&lt;/P&gt;&lt;P&gt;      conjur load policy -b root -f &amp;lt;file&amp;gt;.yml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my second test, I created a policy with several sub-policies inside it. I gave one of them the wrong name and tried to use replace to fix it, but… it didn’t work as I expected.&lt;/P&gt;&lt;P&gt;Here’s the first yaml that I used to create the policies:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__068Vy00000nLKSrIAO.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/93591iDEA051BF78DC507D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__068Vy00000nLKSrIAO.png" alt="Field_Content_versions_oct20__068Vy00000nLKSrIAO.png" /&gt;&lt;/span&gt;Then, I created a second yaml, trying to fix the policy name, note that I used the replace command with this yaml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__068Vy00000nLc68IAC.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/93593i20AA5F33EE7CA0D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__068Vy00000nLc68IAC.png" alt="Field_Content_versions_oct20__068Vy00000nLc68IAC.png" /&gt;&lt;/span&gt;But instead of replacing all the policie within test-replace, it just added a new one. I thought&lt;/P&gt;&lt;P&gt;replace would delete the old policy and recreate everything, but apparently, that’s not what happens.&lt;/P&gt;&lt;P&gt;I know the easiest way to fix the policy name is to delete it and recreate it with the correct name, but my goal here was to better understand how conjur policy replace actually works.&lt;/P&gt;&lt;P&gt;Could anyone help me clarify this behavior?&lt;/P&gt;&lt;P&gt;Thanks in advance! &lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 14:24:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/understanding-how-to-use-conjur-policy-replace/m-p/1423136#M2226</guid>
      <dc:creator>lbds</dc:creator>
      <dc:date>2025-09-04T14:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding how to use conjur policy replace.</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management/understanding-how-to-use-conjur-policy-replace/m-p/1423137#M2227</link>
      <description>&lt;P&gt;Hi @l b​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose the explanation you are looking for is mentioned in the official documentation here (Example: Replace nested policy objects)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://docs.cyberark.com/conjur-enterprise/latest/en/content/operations/policy/statement-ref-policy.htm#Examples&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it clarify this behaviour you've got in your labs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 15:40:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management/understanding-how-to-use-conjur-policy-replace/m-p/1423137#M2227</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-09-04T15:40:06Z</dc:date>
    </item>
  </channel>
</rss>

