Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use dynamic credentials #26

Merged

Conversation

mateuszjenek
Copy link
Contributor

This PR replaces static cloud account to dynamic one: GCP Service account impersonation

@mateuszjenek mateuszjenek requested a review from a team as a code owner June 17, 2024 09:15
@mateuszjenek mateuszjenek force-pushed the dynamic_credentials branch 3 times, most recently from d127ecc to 8428dd3 Compare June 17, 2024 09:45
@@ -0,0 +1,51 @@
data "google_project" "project" {
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 I wonder whether we should move this into https://github.com/humanitec-architecture/resource-packs-gcp as a standalone definition people could install and then re-use this here as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm... I got your point, however this module does not include any resource definitions. Additionally, resource pack resources operate differently. They are provisioned via Humanitec only if there are workloads that depend on them. In contrast, this module creates a cloud account independently of Humanitec

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 , I'm mainly concerned that we need similar logic now in https://github.com/humanitec-architecture/resource-packs-gcp/blob/main/examples/dns/main.tf#L1-L29 (and other places where accounts might be used) and that customers don't have an easy way create a linked service-account.

In any case, could also be extracted as a follow-up.

@mateuszjenek mateuszjenek force-pushed the dynamic_credentials branch from 8428dd3 to b9bb06e Compare June 17, 2024 10:10
@mateuszjenek mateuszjenek merged commit 8e757ce into humanitec-architecture:main Jun 17, 2024
1 check passed
@johanneswuerbach johanneswuerbach deleted the dynamic_credentials branch June 17, 2024 13:09
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.

2 participants