Skip to content

Conversation

@Rose-Northey
Copy link
Contributor

@Rose-Northey Rose-Northey commented Oct 6, 2025

Description

This PR is not intended for direct merging without adding tests / tweaking - it demonstrates a working solution to the issue described below.

This should take place 6 months after the retention_with_policy block is marked as deprecated following this PR.

The retention_policy is to be removed and replaced with a retention block which uses the new "strategy" attribute, retention_with_strategy . Due to deprecation requirements, both blocks must be available for use for 12 months before the old retention block can be officially deleted. This PR will make retention_with_strategy the default retention block and soft delete the retention_policy block. The user may use an environmental variable to go back to using either retention block again. The code in this PR is step 3 of the process below.

Another 6 months after this soft delete, a permanent delete should be made which will make the retention_policy block inaccessible to all.

image

sc-123783

PR #3
Relates to #104
Relates to #103

Note

This is a working solution however testing will need to be added. Environmental variables can be set in the tf testing environment using:
image

@Rose-Northey Rose-Northey changed the title Fnm/create new retention block Fnm/switch retention blocks with environmental variable Oct 9, 2025
@Rose-Northey Rose-Northey changed the title Fnm/switch retention blocks with environmental variable Fnm/soft delete retention_with_policy Oct 9, 2025
@Rose-Northey Rose-Northey changed the title Fnm/soft delete retention_with_policy Fnm/soft delete retention_policy Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant