You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifeffect=="Allow":
# Put Object is allowedlogger.info("Writing index data to the bucket")
asserts3_put_object(
s3_obj=obc_obj,
bucketname=obc_obj.bucket_name,
object_key="index.html",
data=index,
content_type="text/html",
), "Failed to put object."# Delete bucket get access denied.logger.info(f"Deleting bucket {obc_obj.bucket_name}")
try:
s3_delete_bucket_website(s3_obj=obc_obj, bucketname=obc_obj.bucket_name)
raiseUnexpectedBehaviour(
"Failed: Bucket got deleted, expect to get AccessDenied."
)
This expectation doesnt seem to be correct as per my understanding of the NotAction. NotAction parameters will exclude the action from the effect. So in this case, by default bucket can be deleted. By excluding DeleteBucket from the action list with effect=Allow doesnt make it to have deny affect!
This needs more analysis.
The text was updated successfully, but these errors were encountered:
We expect the delete operation to fail at:
This expectation doesnt seem to be correct as per my understanding of the NotAction. NotAction parameters will exclude the action from the effect. So in this case, by default bucket can be deleted. By excluding DeleteBucket from the action list with effect=Allow doesnt make it to have deny affect!
This needs more analysis.
The text was updated successfully, but these errors were encountered: