meshcloud / collie-hub

Curated hub with ready to use kit-modules for building landing zones with Collie CLI
https://collie.cloudfoundation.org
Apache License 2.0
30 stars 4 forks source link

azure/bootstrap: SPN-less deployment, but readonly SPN automation and deployment workflows #109

Closed JohannesRudolph closed 6 months ago

JohannesRudolph commented 9 months ago

The current azure bootstrap module implements a very simple deployment workflow by delegating all permissions to an cloudfoundation_tf_deploy SPN and setting that up as the authentication for collie's platform modules (via terragrunt).

This means controlling access to the terraform state (which contains the secret for the SPN) = controlling access to who can deploy cloud foundation. This is currently done via an azure ad group (platform_engineers group). Bootstrapping requires an "out of band" admin user.

Where this solution falls short is the following

On GCP we can use ServiceAccount impersonation for this as it lets us get rid of the credential, but Azure does not have this.