Master Policy Safe Audit Retention vs. SafeLogRetentionPeriod
Question
Which Safe Audit Retention will my new safe use? The Master Policy Audit config, or the SafeLogRetentionPeriod parameter?
Environment
12.2;12.6;14.0;14.2;14.6;15.0 Privileged Access Manager (PAM, self-hosted) Vault Server;Vault
Answer
The Master Policy not only helps configurating platforms and adding exceptions, but it also references things like Safe Audit Data, whether PSM Recordings are required, and so on.
Even if a platform has a particular setting, the Master Policy has complete control, unless an exception is configured.
NOTE: There is an exception to this which will be explained below, specifically if you create the safe via the PrivateArk Client instead of the PVWA.
Where is the Audit Data Retention configuration configured?
There are two main locations:
1) Master Policy>Audit is the first one. This is found in the PVWA and will control the Audit data for all safes.
2) SafeLogRetentionPeriod is the second one. This is a parameter in the SafeTemplate.xml located in the PVWAConfig safe.
What are the defaults for both?
In a new environment, both are set to 90 days.
If I update the retention value, will all the previous data be adjusted as well?
No it will not adjust previous data. If the safe was created in the PVWA, while adhering to the Master Policy, new data will use the new value set. If the safe was created in the PrivateArk Client, you would need to update the SafeLogRetentionPeriod to adjust future data.
-Behavior examples-
1) Safe created in the PVWA with a Master Policy set to 120 days and SafeLogRetentionPeriod set to 90 Days.
---The Audit data will use the 120 days.
2) Safe created in the PVWA with a Master Policy set to 30 days and SafeLogRetentionPeriod set to 90 Days.
---The Audit data will use the 30 days.
3) Safe created in the PVWA with a Master Policy set to 120 days, but an exception of 360 days was made to Platform A with Account Test1 stored in the safe, and SafeLogRetentionPeriod set to 90 Days.
---The audit data for Account Test 1 will use the exception of 360 days.
4) Safe created in the PVWA with a Master Policy set to 120 days and Account Test2 with Platform B (no exception) and added to the same safe as Account Test1 from the example above (which does have an exception), and SafeLogRetentionPeriod set to 90 Days.
---The audit data for Account Test1 will use its exception of 360 days while Account Test2 will use the regular Master Policy value of 120 days.
In all the examples above, you can see that it ignores the SafeLogRetentionPeriod, as it always uses what's in the Master Policy.
What happens if I create the safe from the PrivateArk Client?
We recommend that safes be created in the PVWA so that it has the sharing capacity and visibility, otherwise they'll only be visible in the PrivateArk Client.
On top of this, if you create a safe in the PrivateArk Client directly, it will only adhere to the SafeLogRetentionPeriod value by default, or the value you enter under the "History" tab upon creation.
Any changes to the History Tab value will only affect future audit data for the safe. It will use the SafeLogRetentionPeriod value as it's default when creating a new safe.
NOTE: The moment you update the Sharing tab to make it visible in the PVWA, just like the safes created via the PVWA, it will now use the Master Policy (and exceptions if they exist) moving forward.
This means you can have a difference of retention values depending on how it was created and configured.