Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Implements a generic wildcard match for bucket policy resources #1107

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

niksis02
Copy link
Contributor

@niksis02 niksis02 commented Mar 3, 2025

Fixes #1093

The gateway previously had a simple wildcard matching logic implemented, which only matched wildcards at the end of the pattern.

The changes introduce a new, more flexible wildcard matching logic for bucket policy resources:

  • ? matches exactly one occurrence of any character.
  • * matches any number of occurrences (including zero) of any character.

Adds unit tests for all Resource type methods.

AWS docs

@niksis02 niksis02 force-pushed the fix/bucket-policy-multi-wildcard-support branch from 6225647 to 8e50e90 Compare March 3, 2025 16:02
@niksis02 niksis02 force-pushed the fix/bucket-policy-multi-wildcard-support branch from 8e50e90 to 9a02c47 Compare March 3, 2025 16:04
@benmcclelland benmcclelland merged commit 9fe7361 into main Mar 3, 2025
24 checks passed
@benmcclelland benmcclelland deleted the fix/bucket-policy-multi-wildcard-support branch March 3, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] - Multiple wildcards are resulting in a deny in bucket policies
2 participants