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(platform/infra): Create prod service account and pool #8383

Merged
44 changes: 41 additions & 3 deletions autogpt_platform/infra/terraform/environments/prod.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ service_accounts = {
"prod-agpt-market-sa" = {
display_name = "AutoGPT prod Market backend Account"
description = "Service account for agpt prod market backend"
},
"prod-github-actions-workload-identity" = {
service_account_name = "prod-github-actions-sa"
namespace = "prod-agpt"
ksa_name = "prod-github-actions-sa"
}
}

Expand Down Expand Up @@ -59,7 +64,8 @@ role_bindings = {
"serviceAccount:[email protected]",
"serviceAccount:[email protected]",
"serviceAccount:[email protected]",
"serviceAccount:[email protected]"
"serviceAccount:[email protected]",
"serviceAccount:[email protected]"
],
"roles/cloudsql.client" = [
"serviceAccount:[email protected]",
Expand All @@ -80,7 +86,8 @@ role_bindings = {
"serviceAccount:[email protected]",
"serviceAccount:[email protected]",
"serviceAccount:[email protected]",
"serviceAccount:[email protected]"
"serviceAccount:[email protected]",
"serviceAccount:[email protected]"
]
"roles/compute.networkUser" = [
"serviceAccount:[email protected]",
Expand All @@ -93,6 +100,16 @@ role_bindings = {
"serviceAccount:[email protected]",
"serviceAccount:[email protected]",
"serviceAccount:[email protected]"
],
"roles/artifactregistry.writer" = [
"serviceAccount:[email protected]"
],
"roles/container.viewer" = [
"serviceAccount:[email protected]"
],
"roles/iam.serviceAccountTokenCreator" = [
"principalSet://iam.googleapis.com/projects/638488734936/locations/global/workloadIdentityPools/prod-pool/*",
"serviceAccount:[email protected]"
]
}

Expand All @@ -101,4 +118,25 @@ services_ip_cidr_range = "10.2.0.0/20"

public_bucket_names = ["website-artifacts"]
standard_bucket_names = []
bucket_admins = ["[email protected]", "[email protected]"]
bucket_admins = ["[email protected]", "[email protected]"]

workload_identity_pools = {
"dev-pool" = {
display_name = "Production Identity Pool"
providers = {
"github" = {
issuer_uri = "https://token.actions.githubusercontent.com"
attribute_mapping = {
"google.subject" = "assertion.sub"
"attribute.repository" = "assertion.repository"
"attribute.repository_owner" = "assertion.repository_owner"
}
}
}
service_accounts = {
"prod-github-actions-sa" = [
"Significant-Gravitas/AutoGPT"
]
}
}
}
Loading