Quantcast
Channel: Active questions tagged amazon-s3 - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 77

Contabo's Object Storage - Object Lock Retention (AWS S3 compatible)

$
0
0

I'm having difficulty with Contabo's Object Storage.

With a user with permission: "S3 Object Storage Read and Write" I configured a aws profile called 'backup'.

With this profile, I ran this shell script:

echo "Bucket: "$BUCKETecho "Key: "$KEYecho "Profile: "$PROFILEecho "Region: "$REGIONecho "Endpoint: "$ENDPOINTaws --profile $PROFILE --region $REGION --endpoint-url $ENDPOINT \   s3api get-object-retention --bucket $BUCKET --key $KEY

And then, I got this result:

Bucket: test1Key: test_one.txtProfile: backupRegion: defaultEndpoint: https://usc1.contabostorage.com{"Retention": {"Mode": "COMPLIANCE","RetainUntilDate": "2023-05-06T17:35:57.568865+00:00"    }}

This means that even the root user could delete this file before: "2023-05-06T17:35:57.568865+00:00" right?

After this, I ran this shell script:

echo "Bucket: "$BUCKETecho "Key: "$KEYecho "Profile: "$PROFILEecho "Region: "$REGIONecho "Endpoint: "$ENDPOINTaws --profile $PROFILE --region $REGION --endpoint-url $ENDPOINT \     s3 rm s3://$BUCKET/$KEY

And then, I got this result:

Bucket: test1Key: test_one.txtProfile: backupRegion: defaultEndpoint: https://usc1.contabostorage.comdelete: s3://test1/test_one.txt

So the file was deleted. The retention mode is "COMPLIANCE" and the file was deleted. Why?


Viewing all articles
Browse latest Browse all 77

Latest Images

Trending Articles



Latest Images