Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Refactor publishing to use AWS roles#891

Merged
wadells merged 1 commit into
masterfrom
walt/drone-role-refactor
Sep 29, 2022
Merged

Refactor publishing to use AWS roles#891
wadells merged 1 commit into
masterfrom
walt/drone-role-refactor

Conversation

@wadells
Copy link
Copy Markdown
Contributor

@wadells wadells commented Sep 29, 2022

Instead of directly using a token associated with a long lived AWS user, we now use this token to assume a short lived role. The publishing logic has no access to the long lived credentials, and only uses the short lived role.

Uses the role provisioned in https://github.com/gravitational/cloud-terraform/pull/944
Uses the credentials provisioned in https://github.com/gravitational/cloud-terraform/pull/957

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

Testing Done

I published the tag 7.0.68-11709-dev.1 using this logic. See:

https://drone.platform.teleport.sh/gravitational/planet/158/1/4

I since deleted this tag, as it should have been a 9.0.0 tag 🤦

Instead of directly using a token associated with a long lived AWS user,
we now use this token to assume a short lived role.  The publishing
logic has no access to the long lived credentials, and only uses the
short lived role.

Contributes to https://github.com/gravitational/SecOps/issues/213
@wadells wadells merged commit d995ead into master Sep 29, 2022
@wadells wadells deleted the walt/drone-role-refactor branch September 29, 2022 21:03
wadells added a commit that referenced this pull request Sep 29, 2022
Instead of directly using a token associated with a long lived AWS user,
we now use this token to assume a short lived role.  The publishing
logic has no access to the long lived credentials, and only uses the
short lived role.

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

(cherry picked from commit d995ead)
wadells added a commit that referenced this pull request Sep 29, 2022
Instead of directly using a token associated with a long lived AWS user,
we now use this token to assume a short lived role.  The publishing
logic has no access to the long lived credentials, and only uses the
short lived role.

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

(cherry picked from commit d995ead)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants