Skip to content

Feature/immutability#33

Merged
princeparmar merged 6 commits intomainfrom
feature/immutability
Mar 3, 2026
Merged

Feature/immutability#33
princeparmar merged 6 commits intomainfrom
feature/immutability

Conversation

@princeparmar
Copy link
Collaborator

What:

Why:

Please describe the tests:

  • Test 1:
  • Test 2:

Please describe the performance impact:

Code Review Checklist (to be filled out by reviewer)

  • NEW: Are there any Satellite database migrations? Are they forwards and backwards compatible?
  • Does the PR describe what changes are being made?
  • Does the PR describe why the changes are being made?
  • Does the code follow our style guide?
  • Does the code follow our testing guide?
  • Is the PR appropriately sized? (If it could be broken into smaller PRs it should be)
  • Does the new code have enough tests? (every PR should have tests or justification otherwise. Bug-fix PRs especially)
  • Does the new code have enough documentation that answers "how do I use it?" and "what does it do?"? (both source documentation and higher level, diagrams?)
  • Does any documentation need updating?
  • Do the database access patterns make sense?

- Added a new endpoint to retrieve immutability rules for a specific bucket, enforcing project-scoped authorization.
- Updated immutability rules handling in bucket creation and deletion processes to reference the bucket's creation time for retention period calculations.
- Removed the `UpdatedAt` field from immutability rules as it is no longer necessary for the logic.
- Enhanced comments for clarity regarding immutability rules and their enforcement during bucket and object deletions.
…prefixes

- Implemented `GetBucketLatestObjectCreatedAt` to fetch the most recent object creation time in a bucket, aiding in immutability checks.
- Added `GetPrefixLatestObjectCreatedAt` for retrieving the latest object creation time under a specified prefix, supporting folder-level immutability.
- Updated `DeleteBucket` and `DeleteObjectsByPrefix` methods to utilize the new retrieval functions for enforcing immutability rules during deletion operations.
- Enhanced comments for clarity on immutability logic and its application in bucket and object deletions.
@princeparmar princeparmar merged commit dc4661c into main Mar 3, 2026
1 of 2 checks passed
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.

3 participants