Project

General

Profile

Actions

Bug #62292

closed
HN AE

Bucket policy wildcard * not working properly

Bug #62292: Bucket policy wildcard * not working properly

Added by hoan nv over 3 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
quincy reef
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v19.0.0-593-gf909132c64
Released In:
v19.2.0~958
Upkeep Timestamp:
2026-08-28T01:17:54+00:00

Description

Hi all.

I try put bucket policy

{
  "Id": "Policy1687170406711",
  "Version": "2012-10-17",
  "Statement": [
      {
          "Sid": "Stmt1464968483619",
          "Effect": "Deny",
          "Principal": "*",
          "Action": "s3:PutObject",
          "Resource": [
              "arn:aws:s3:::hoannv-test/*js" 
          ]
      }

  ]
}

after config i upload 2 file.
1.file name test.js , result : it deny upload (correct)
2.file name test.1.js , result : it allow upload (wrong)

I tried same bucket policy on aws, i can't upload file test.1.js (403 Permission)
Thanks


Related issues 2 (0 open — 2 closed)

Copied to rgw - Backport #63971: reef: Bucket policy wildcard * not working properlyResolvedAdam Emerson

Actions
Copied to rgw - Backport #63972: quincy: Bucket policy wildcard * not working properlyRejectedAdam Emerson

Actions

HN Updated by hoan nv over 3 years ago Actions #1

Sorry
This policy will be error


 {
  "Id": "Policy1687170406711",
  "Version": "2012-10-17",
  "Statement": [
      {
          "Sid": "Stmt1464968483619",
          "Effect": "Deny",
          "Principal": "*",
          "Action": "s3:PutObject",
          "Resource": [
              "arn:aws:s3:::hoannv-test/*.js" 
          ]
      }

  ]
}

CB Updated by Casey Bodley over 3 years ago Actions #2

  • Assignee set to Adam Emerson
  • Backport set to pacific quincy reef

CB Updated by Casey Bodley about 3 years ago Actions #4

  • Status changed from New to Fix Under Review
  • Pull request ID set to 53156

CB Updated by Casey Bodley almost 3 years ago Actions #5

  • Status changed from Fix Under Review to Pending Backport
  • Backport changed from pacific quincy reef to quincy reef

UB Updated by Upkeep Bot almost 3 years ago Actions #6

  • Copied to Backport #63971: reef: Bucket policy wildcard * not working properly added

UB Updated by Upkeep Bot almost 3 years ago Actions #7

  • Copied to Backport #63972: quincy: Bucket policy wildcard * not working properly added

UB Updated by Upkeep Bot over 2 years ago Actions #10

  • Tags (freeform) set to backport_processed

AE Updated by Adam Emerson almost 2 years ago Actions #11

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #12

  • Merge Commit set to f909132c64f1c271045a8c097472bbb1544a0c05
  • Fixed In set to v19.0.0-593-gf909132c64f
  • Released In set to v19.2.0~958
  • Upkeep Timestamp set to 2025-07-12T03:35:50+00:00

UB Updated by Upkeep Bot 3 months ago Actions #13

  • Tags (freeform) deleted (backport_processed)
  • Fixed In changed from v19.0.0-593-gf909132c64f to v19.0.0-593-gf909132c64
  • Upkeep Timestamp changed from 2025-07-12T03:35:50+00:00 to 2026-08-28T01:17:54+00:00
Actions

Also available in: PDF Atom