Safe Retention Settings: Versions vs. Days FAQ

Safe Retention Settings: Versions vs. Days FAQ

133
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 16:06 PM


Question


Versions vs Days 

How does the vault process different retention settings on safes?

What is the impact of retention settings on deleted objects?



Environment


12.2;12.6;13.0;13.2;14.0;14.2;14.4;14.6 Privileged Access Manager (PAM, self-hosted) Vault Server;Distributed Vault;Other (Technical);Vault

Answer


Versions vs Days / Entire safe or not?

 

Versions: Safe based, meaning that when you change the retention value from 7 versions to 5 versions, it will affect all objects in the safe and bring all the versions down to 5 (assuming it had up to 7 existing).

 

Days: NOT Safe based, meaning that the object inherits the day retention from when it came into the system. Any changes to retention only affect future entries to the safe.

 

Expire or not to Expire?

 

Versions: All objects start with an expiration date (default of 7 days) but because we're using Versions, then the Vault says "It doesn't matter when you think you're expiring, I have to keep a handful of you to follow my versions rule"

 

Days: Object comes in with a built in date like 365 days(determined by the days setting when the object is created), and it will stay in the safe for that long. "Once you turn a year old, you gotta move out."

 

What if I change it from one type to another?

 

Versions to Days:
-Remember how it had an expiration built in but not used? Well the moment an object is changed to Days retention, that expiration date will kick in.
-Those versions will have had a History Flag. 1 for old, 0 for current.
-When the nightly retention cleanup happens, the vault will now actively look at those versions (instead of ignoring them like before) and they're subject to deletion. 
-Chances are that the version was created a while back, and even with the 7 days expiration date it had built in, it's probably older than the Day retention currently configured.

 

Days to Versions:
-These had expiration dates from the get go and they were going to be enforced. Period.
-In the same way, whether days or versions, objects can have a history flag of 1 or 0. It can be 1 whether it's an older version of the object, or perhaps because you deleted it and now it's waiting for its day to expire.
-Let's say the safe was set to 30 days retention. You created password object Test. Then changed the password 4 times. This will mean that there are 5 objects in the safe now. The current one (history of 0) and the four others (history of 1).


+----------------+------------+---------+
| Filename         | Expdt           | History |
+----------------+------------+---------+
| TestObject01   | 1750432487 |       1 | <<<The original object you created. 
| TestObject01   | 1750432500 |       1 |
| TestObject01   | 1750432513 |       1 |
| TestObject01   | 1750432528 |       1 |
| TestObject01   |                 30 |       0 | <<<The fourth time you changed it. 
+----------------+------------+---------+
 
Note: All those expdt are 30 days as well by the way.

 
-The moment it is changed from Days to Versions, the system says "It doesn't matter when it expires, I'm deleting you out immediately to make sure I follow my law of versions"

 

Example: Changed from 30 days to 2 versions and run the clear history job:
+----------------+------------+---------+
| Filename       | Expdt             | History |
+----------------+------------+---------+
| TestObject01   | 1750432528 |       1 |
| TestObject01   |                 30 |       0 |
+----------------+------------+---------+

===


Retention policy decisions are generally made when a safe is created.  There are actions that can be taken to clean up some lingering deleted versions based on company policy.

 

1. For safes with version retention, you can consider modification to a days retention that would allow older files to be deleted.
2. For safes with day retention, you may be able to change to a version retention and then back to a shorter day retention moving forward.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001NllCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail