Commit b424170
committed
fix(seaweedfs): remove BucketVO before IAM policy refresh in deleteBucket
The IAM policy refresh in deleteBucket ran before BucketApiServiceImpl
removed the BucketVO row. A concurrent createUser or createBucket policy
rebuild (which reads the bucket list from the DB) could re-add the deleted
bucket ARN between the exclusion and the row removal, leaving a stale grant
that could be exploited if the bucket name was reused. Remove the BucketVO
row before the policy refresh so concurrent rebuilds do not see the stale
row. BucketApiServiceImpl subsequent _bucketDao.remove is idempotent.1 parent bd882af commit b424170
1 file changed
Lines changed: 13 additions & 1 deletion
File tree
- plugins/storage/object/seaweedfs/src/main/java/org/apache/cloudstack/storage/datastore/driver
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
511 | 523 | | |
512 | 524 | | |
513 | 525 | | |
514 | 526 | | |
515 | 527 | | |
516 | | - | |
| 528 | + | |
517 | 529 | | |
518 | 530 | | |
519 | 531 | | |
| |||
0 commit comments