[GH-ISSUE #1040] Support for object holds #161

Open
opened 2026-03-03 12:08:50 +03:00 by kerem · 5 comments
Owner

Originally created by @mar-pan on GitHub (Jan 9, 2023).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1040

GCS buckets allow enabling object hold. This attribute adds additional immutability for objects. Objects with holds can't be targeted by the retention policy. Those attributes can be set on bucket and object level. Currently, fake-gcs-servers miss that functionality @fsouza WDYT about adding it? I could try to implement this in a 2/3 weeks from now

Originally created by @mar-pan on GitHub (Jan 9, 2023). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1040 GCS buckets allow enabling [object hold](https://cloud.google.com/storage/docs/object-holds). This attribute adds additional immutability for objects. Objects with holds can't be targeted by the retention policy. Those attributes can be set on bucket and object level. Currently, fake-gcs-servers miss that functionality @fsouza WDYT about adding it? I could try to implement this in a 2/3 weeks from now
Author
Owner

@fsouza commented on GitHub (Jan 10, 2023):

Oh yeah, I didn't know about this feature. Shouldn't be too hard to implement. The tricky bit is having default holds per bucket, as we currently don't support bucket attributes (#1025).

<!-- gh-comment-id:1376527452 --> @fsouza commented on GitHub (Jan 10, 2023): Oh yeah, I didn't know about this feature. Shouldn't be too hard to implement. The tricky bit is having default holds per bucket, as we currently don't support bucket attributes (#1025).
Author
Owner

@mar-pan commented on GitHub (Jan 10, 2023):

Do you plan to implement this PR with bucket attributes preserve anytime soon?

<!-- gh-comment-id:1376532090 --> @mar-pan commented on GitHub (Jan 10, 2023): Do you plan to implement this PR with bucket attributes preserve anytime soon?
Author
Owner

@fsouza commented on GitHub (Jan 10, 2023):

Not planned right now, but I can try to prioritize it in the next 10 days or so to make sure you're not blocked. Does that work for you?

<!-- gh-comment-id:1376609123 --> @fsouza commented on GitHub (Jan 10, 2023): Not planned right now, but I can try to prioritize it in the next 10 days or so to make sure you're not blocked. Does that work for you?
Author
Owner

@mar-pan commented on GitHub (Jan 10, 2023):

Sure

<!-- gh-comment-id:1377023882 --> @mar-pan commented on GitHub (Jan 10, 2023): Sure
Author
Owner

@mar-pan commented on GitHub (Jan 23, 2023):

Hello @fsouza were you able to work on that issue with buckets?

<!-- gh-comment-id:1401141236 --> @mar-pan commented on GitHub (Jan 23, 2023): Hello @fsouza were you able to work on that issue with buckets?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#161
No description provided.