gravitational / planet

Installable Kubernetes delivered in containers
Apache License 2.0
51 stars 18 forks source link

[8.0.x] Refactor publishing to use AWS roles #892

Closed wadells closed 2 years ago

wadells commented 2 years ago

v8 backport of https://github.com/gravitational/planet/pull/891

Do we need to backport to v8? Probably not as no customers actively use this branch. However I'm doing it anyhow because we do need to backport to v7 and perhaps our remaining v7 users would to upgrade across v7 -> v9. Keeping publishing working is trivial if we keep up with it.

Original description

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 d995ead2cf9241bef0438da260f62659a22c87ad)