<?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>article CP - How does the ChangeNotificationPeriod work with Credential Providers and CPM in Secrets Management Articles</title>
    <link>https://live.paloaltonetworks.com/t5/secrets-management-articles/cp-how-does-the-changenotificationperiod-work-with-credential/ta-p/1428877</link>
    <description>&lt;H3&gt;Question&lt;/H3&gt;
&lt;P&gt;In reference to the Credential Providers Best Performance Recommendations document located at:&lt;BR /&gt;https://docs.cyberark.com/AAM-CP/13.0/en/Content/CP%20and%20ASCP/cps_capacity-best-practices.htm&lt;/P&gt;
&lt;P&gt;We see the recommendation to configure the policy parameter &lt;EM&gt;ChangeNotificationPeriod = 3001&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;"We recommend that you wait more than 2 cache refresh intervals before executing a password change; if CacheRefreshInterval=1500, wait (1500*2) + 1 seconds"&lt;BR /&gt;&lt;BR /&gt;1.&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;How does ChangeNotificationPeriod work, and how does this parameter affect the provider's vault queries?&lt;/P&gt;
&lt;P&gt;We also see the following note in the same section:&lt;BR /&gt;"A password change block must be implemented on the application side to protect against account lockouts during a change."&lt;BR /&gt;&lt;BR /&gt;2.&amp;nbsp;What is the meaning of this note specifically?&lt;/P&gt;
&lt;H3&gt;Answer&lt;/H3&gt;
&lt;P&gt;1.&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;When ChangeNotificationPeriod is enabled on the platform the following process will occur:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;When the time comes for the CPM to change a password, instead of rotating it at the change interval, it will add a file category on the account named "StartChangeNotBefore" with a timestamp.The timestamp is current time (of when the change was supposed to happen) + the ChangeNotificationPeriod value.&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;STRONG&gt;&lt;EM&gt;Here the flag can be seen on the account&amp;nbsp; in the example screenshot:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0We.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98262iCAC55F7502C52083/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0We.png" alt="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0We.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;For example, if the password change is triggered at 9am and ChangeNotificationPeriod is 3600 (1 hour) then StartChangeNotBefore will be set to 10am, and the CPM won't start changing the password until that time.&lt;/DIV&gt;
&lt;UL&gt;&lt;LI&gt;Then providers will grab the account on their next cache refresh cycle, and read this timestamp, thus become aware of the pending change.&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV style="margin-left: 40px;"&gt;Providers will continue to serve the password from cache until that time in the timestamp has reached.&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;The reason we recommend to wait until two cache refresh cycles, is to ensure all providers have retrieved the account from the vault &lt;STRONG&gt;after&lt;/STRONG&gt; the flag has been added, and they are all aware of the pending change.&lt;/DIV&gt;
&lt;UL&gt;&lt;LI&gt;Once the timestamp has reached/passed, the providers will retrieve and server the password from the vault, until the "StartChangeNotBefore" flag is removed from the account.&lt;/LI&gt;&lt;LI&gt;The CPM will start the change process at 10am in the example given. At that time it will also change the "change in process" value to true, until the change is completed.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;When the CPM finishes the change it will remove the file category StartChangeNotBefore from the account (clear the flag) as well as change the PasswordChangeInProcess back to false.&lt;/LI&gt;&lt;LI&gt;The next time providers retrieve the account with the&amp;nbsp;StartChangeNotBefore flag removed, they will save the password to their&amp;nbsp;cache and go back to serving it from cache.&lt;/LI&gt;&lt;LI&gt;If the CPM fails to change the password but it still has retries left, it will not remove the StartChangeNotBefore flag, and the provider will continue serving the password from the vault.&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;STRONG&gt;&lt;EM&gt;In this example, the change failed, but the retries have not yet been exhausted, thus the flag is not removed:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0XX.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98264i295F9DE35A86CB08/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0XX.png" alt="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0XX.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;UL&gt;&lt;LI&gt;The CPM will only remove this flag if it was able to either change the password successfully, or all retries have been exhausted.&amp;nbsp;&amp;nbsp;This is why the recommendation for retries is to adjust max retries to 1 with 30 minutes in between.&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;STRONG&gt;&lt;EM&gt;In the example below, the change failed but all retries have been exhausted, thus the flag was removed:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0Xr.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98266i12D98E7B1AC27084/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0Xr.png" alt="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0Xr.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;* If the CPM is successful and fast, the time the CP hits the vault and not the cache is very short.&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.This statement refers to actions customers can take specifically on the application side.&lt;/P&gt;
&lt;P style="margin-left: 40px;"&gt;The presence of the PasswordChangeInProcess flag allows to configure a hold on updating the password in the application, during the CPM change process. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;If you detect that you are pulling an account that is actively being changed by the CPM (PasswordChangeInProcess=True), you could start a timeout process in the code:&lt;BR /&gt;&lt;BR /&gt;Once the&amp;nbsp;exception is thrown, hold on updating the password, and make the provider query the vault every 0.5 seconds.&lt;BR /&gt;The hold/timeout period will end when the flag is set to false again, only at that time update the password in the code.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;See code examples in the link below:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;https://docs.cyberark.com/AAM-CP/13.0/en/Content/CP%20and%20ASCP/Java-AP-SDK-EgsSyntax.htm?tocpath=Developer%7CCredential%20Provider%7CApplication%20Password%20SDKs%7CJava%20Application%20Password%20SDK%7C_____1#Examples&lt;/P&gt;
&lt;DIV id="" style="left: 20px;top: 901.688px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="" style="left: 20px;top: 1144.47px;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 17 Aug 2023 19:16:51 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2023-08-17T19:16:51Z</dc:date>
    <item>
      <title>CP - How does the ChangeNotificationPeriod work with Credential Providers and CPM</title>
      <link>https://live.paloaltonetworks.com/t5/secrets-management-articles/cp-how-does-the-changenotificationperiod-work-with-credential/ta-p/1428877</link>
      <description>&lt;H3&gt;Question&lt;/H3&gt;
&lt;P&gt;In reference to the Credential Providers Best Performance Recommendations document located at:&lt;BR /&gt;https://docs.cyberark.com/AAM-CP/13.0/en/Content/CP%20and%20ASCP/cps_capacity-best-practices.htm&lt;/P&gt;
&lt;P&gt;We see the recommendation to configure the policy parameter &lt;EM&gt;ChangeNotificationPeriod = 3001&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;"We recommend that you wait more than 2 cache refresh intervals before executing a password change; if CacheRefreshInterval=1500, wait (1500*2) + 1 seconds"&lt;BR /&gt;&lt;BR /&gt;1.&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;How does ChangeNotificationPeriod work, and how does this parameter affect the provider's vault queries?&lt;/P&gt;
&lt;P&gt;We also see the following note in the same section:&lt;BR /&gt;"A password change block must be implemented on the application side to protect against account lockouts during a change."&lt;BR /&gt;&lt;BR /&gt;2.&amp;nbsp;What is the meaning of this note specifically?&lt;/P&gt;
&lt;H3&gt;Answer&lt;/H3&gt;
&lt;P&gt;1.&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;When ChangeNotificationPeriod is enabled on the platform the following process will occur:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;When the time comes for the CPM to change a password, instead of rotating it at the change interval, it will add a file category on the account named "StartChangeNotBefore" with a timestamp.The timestamp is current time (of when the change was supposed to happen) + the ChangeNotificationPeriod value.&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;STRONG&gt;&lt;EM&gt;Here the flag can be seen on the account&amp;nbsp; in the example screenshot:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0We.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98262iCAC55F7502C52083/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0We.png" alt="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0We.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;For example, if the password change is triggered at 9am and ChangeNotificationPeriod is 3600 (1 hour) then StartChangeNotBefore will be set to 10am, and the CPM won't start changing the password until that time.&lt;/DIV&gt;
&lt;UL&gt;&lt;LI&gt;Then providers will grab the account on their next cache refresh cycle, and read this timestamp, thus become aware of the pending change.&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV style="margin-left: 40px;"&gt;Providers will continue to serve the password from cache until that time in the timestamp has reached.&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;The reason we recommend to wait until two cache refresh cycles, is to ensure all providers have retrieved the account from the vault &lt;STRONG&gt;after&lt;/STRONG&gt; the flag has been added, and they are all aware of the pending change.&lt;/DIV&gt;
&lt;UL&gt;&lt;LI&gt;Once the timestamp has reached/passed, the providers will retrieve and server the password from the vault, until the "StartChangeNotBefore" flag is removed from the account.&lt;/LI&gt;&lt;LI&gt;The CPM will start the change process at 10am in the example given. At that time it will also change the "change in process" value to true, until the change is completed.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;When the CPM finishes the change it will remove the file category StartChangeNotBefore from the account (clear the flag) as well as change the PasswordChangeInProcess back to false.&lt;/LI&gt;&lt;LI&gt;The next time providers retrieve the account with the&amp;nbsp;StartChangeNotBefore flag removed, they will save the password to their&amp;nbsp;cache and go back to serving it from cache.&lt;/LI&gt;&lt;LI&gt;If the CPM fails to change the password but it still has retries left, it will not remove the StartChangeNotBefore flag, and the provider will continue serving the password from the vault.&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;STRONG&gt;&lt;EM&gt;In this example, the change failed, but the retries have not yet been exhausted, thus the flag is not removed:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0XX.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98264i295F9DE35A86CB08/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0XX.png" alt="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0XX.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;UL&gt;&lt;LI&gt;The CPM will only remove this flag if it was able to either change the password successfully, or all retries have been exhausted.&amp;nbsp;&amp;nbsp;This is why the recommendation for retries is to adjust max retries to 1 with 30 minutes in between.&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;STRONG&gt;&lt;EM&gt;In the example below, the change failed but all retries have been exhausted, thus the flag was removed:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0Xr.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/98266i12D98E7B1AC27084/image-size/large?v=v2&amp;amp;px=999" role="button" title="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0Xr.png" alt="ka3Ht000000LYlIIAW__eid=ka3Ht000000LYlI&amp;amp;feoid=00N2J000009R3kg&amp;amp;refid=0EMHt000005v0Xr.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;* If the CPM is successful and fast, the time the CP hits the vault and not the cache is very short.&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.This statement refers to actions customers can take specifically on the application side.&lt;/P&gt;
&lt;P style="margin-left: 40px;"&gt;The presence of the PasswordChangeInProcess flag allows to configure a hold on updating the password in the application, during the CPM change process. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;For example:&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;If you detect that you are pulling an account that is actively being changed by the CPM (PasswordChangeInProcess=True), you could start a timeout process in the code:&lt;BR /&gt;&lt;BR /&gt;Once the&amp;nbsp;exception is thrown, hold on updating the password, and make the provider query the vault every 0.5 seconds.&lt;BR /&gt;The hold/timeout period will end when the flag is set to false again, only at that time update the password in the code.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;See code examples in the link below:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;https://docs.cyberark.com/AAM-CP/13.0/en/Content/CP%20and%20ASCP/Java-AP-SDK-EgsSyntax.htm?tocpath=Developer%7CCredential%20Provider%7CApplication%20Password%20SDKs%7CJava%20Application%20Password%20SDK%7C_____1#Examples&lt;/P&gt;
&lt;DIV id="" style="left: 20px;top: 901.688px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="" style="left: 20px;top: 1144.47px;"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Aug 2023 19:16:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/secrets-management-articles/cp-how-does-the-changenotificationperiod-work-with-credential/ta-p/1428877</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2023-08-17T19:16:51Z</dc:date>
    </item>
  </channel>
</rss>

