Skip to content

Document required IAM permissions for S3 storage driver. - #1590

Merged
RichardScothern merged 2 commits into
distribution:masterfrom
RichardScothern:s3-permission-scopes
Apr 6, 2016
Merged

RichardScothern merged 2 commits into
distribution:masterfrom
RichardScothern:s3-permission-scopes

Conversation

@RichardScothern

Copy link
Copy Markdown

Document required IAM permissions for S3 storage driver.

Closes #1391
Signed-off-by: Richard Scothern [email protected]

@RichardScothern

Copy link
Copy Markdown
Author

cc @drewrobb
cc @nwt

@drewrobb

Copy link
Copy Markdown

Thank you, this looks good to me.

Comment thread docs/storage-drivers/s3.md Outdated
{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does the registry need this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed we should investigate.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s3:ListAllMyBuckets is needed to view the objects in a console. I wonder if, in the original, contribution (#492) that the IAM was used by the registry and the user.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. can any of you gents (@drewrobb @nwt) check if this is really required to run?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or maybe @BrianBland (if he's out there?) 😁

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I had commented here earlier. I tested and it and I didn't get errors without it. However I do remember getting errors without it on prior versions of registry, so I would wait for a second opinion here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will remove this - it does seem overly permissive and a couple of people have reported it's not required for aws-sdk

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any reason why ListAllMyBuckets would be needed with the current implementation. The same goes for GetBucketLocation, but everything else looks correct.

@aaronlehmann

Copy link
Copy Markdown

Thanks for this. This will be a huge help for users.

@codecov-io

Copy link
Copy Markdown

Current coverage is 51.22%

Merging #1590 into master will decrease coverage by -6.65% as of e4817cf

@@            master   #1590   diff @@
======================================
  Files          122     122       
  Stmts        10659   10659       
  Branches       841     747    -94
  Methods          0       0       
======================================
- Hit           6169    5460   -709
+ Partial        841     747    -94
- Missed        3649    4452   +803

Review entire Coverage Diff as of e4817cf


Uncovered Suggestions

  1. +0.30% via .../driver/s3-aws/s3.go#730...761
  2. +0.28% via .../driver/s3-aws/s3.go#266...295
  3. +0.22% via .../driver/s3-aws/s3.go#882...904
  4. See 7 more...

Powered by Codecov. Updated on successful CI builds.

@aaronlehmann

Copy link
Copy Markdown

LGTM

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.

8 participants