Skip to content

Add AWS Roles to the buildbox pipeline#17274

Merged
wadells merged 2 commits into
masterfrom
walt/fix-role-assumption
Oct 11, 2022
Merged

Add AWS Roles to the buildbox pipeline#17274
wadells merged 2 commits into
masterfrom
walt/fix-role-assumption

Conversation

@wadells
Copy link
Copy Markdown
Contributor

@wadells wadells commented Oct 11, 2022

This is follow up to #17201, that fixes the buildbox pipeline error seen here:

An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User: arn:aws:iam::146628656107:user/teleport_build_user_read_only is not authorized to perform: ecr-public:GetAuthorizationToken on resource: * because no identity-based policy allows the ecr-public:GetAuthorizationToken action

https://drone.platform.teleport.sh/gravitational/teleport/16333/10/4

Contributes to https://github.com/gravitational/SecOps/issues/213.

Backports:

Testing Done

See the tag build here: https://drone.platform.teleport.sh/gravitational/teleport/16353

We don't need to test promote, as the only steps affected are in tag & push builds. A clean promote (after https://github.com/gravitational/cloud-terraform/commit/7745aa26c3161bc5566eca28552354d1c166c877) can be seen here: https://drone.platform.teleport.sh/gravitational/teleport/16330

Comment thread dronegen/buildbox.go
Comment thread dronegen/buildbox.go
These were broken, as I didn't realize that the build step needed AWS
access to fetch the buildbox.
@wadells wadells force-pushed the walt/fix-role-assumption branch from 40a70ea to 6851b94 Compare October 11, 2022 18:09
@wadells wadells enabled auto-merge (squash) October 11, 2022 18:44
@wadells wadells merged commit e6e8709 into master Oct 11, 2022
@wadells wadells deleted the walt/fix-role-assumption branch October 11, 2022 18:45
wadells added a commit that referenced this pull request Oct 11, 2022
Backports #17274 and #17301 to v11

This fixes the buildbox pipeline error seen here:

An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User: arn:aws:iam::146628656107:user/teleport_build_user_read_only is not authorized to perform: ecr-public:GetAuthorizationToken on resource: * because no identity-based policy allows the ecr-public:GetAuthorizationToken action

Contributes to gravitational/SecOps#213.
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.

4 participants