Open KirillovDenis opened 3 years ago
We can't use NeoFS exipration attributes here, because in S3 the object lifecycle/expiration is mutable.
Good use case for serverless functions to handle actions after expiration.
Still there are some questions:
We need a bearer token to be able to delete an object after appropriate tick happens. We can store this info (address of the object with access box) in user-defined tick data https://github.com/nspcc-dev/neofs-api/issues/226)
version
tree
expiration
tree
It seems we have to extend object/expiration info that stored in tree service by object size to be able to get rid of head request.
Should we support lifecycle? https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html I suppose there are some restriction (if we want to support it):
Expiration actions
(availableExpiration actions
andTransition actions
) because s3-gw can not handle storage classes (or it will be?)Expiration actions
will only work in the context of the gateway, and the gateway must store the user's credentials