-
Notifications
You must be signed in to change notification settings - Fork 383
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
s3 bucket policy to v1alpha2 #391
Conversation
3d1a7d0
to
77f2fee
Compare
The main reason I opened this draft PR early on in the process is to get feedback from the community. There are a few points of discussion I want to try and get a dialog on:
|
968d6d5
to
d160929
Compare
|
d160929
to
99e30e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@krishchow apologies for the delay in review here! This looks pretty good to me :) It looks like the main change is that we reference the IAM user directly instead of extracting it from the Bucket
, are there any other major differences here?
@muvaf could you take a peek at this as well?
@hasheddan that's one of the main changes yes :). Instead of referencing a single IAMUser for the entire policy, each statement can refer to an IAMUser. I have also added support for a few other identity types supported by the bucket policy, also the other big thing support for Condition in the policy. This was one key feature that wasn't previously supported. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delayed review. There are a few things to address and I think it's the right call to make it v1alpha2
for now. Thanks @krishchow !
@@ -48,147 +47,133 @@ type BucketPolicyParameters struct { | |||
// BucketNameSelector selects a reference to an S3Bucket to retrieve its bucketName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think some of the parameters are immutable like BucketName
e47061f
to
d8e1194
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @krishchow !
@krishchow could you resolve the conflict so that we can merge it? |
…to fit into bucket principal Signed-off-by: Krish Chowdhary <krish@redhat.com>
Signed-off-by: Krish Chowdhary <krish@redhat.com>
Signed-off-by: Krish Chowdhary <krish@redhat.com>
Signed-off-by: Krish Chowdhary <krish@redhat.com>
d8e1194
to
412aba1
Compare
Signed-off-by: Krish Chowdhary <krish@redhat.com>
@muvaf Rebased and fixed all the conflicts |
s3 bucket policy to v1alpha2
s3 bucket policy to v1alpha2
Remove ingress/egress references from securitygroup resource
Description of your changes
Fixes #374
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
Additional unit tests, and manual testing
[contribution process]: https://git.io/fj2m9