Skip to content

Commit 6e22b86

Browse files
authored
feat(yucca): configure prod zitadel (#1816)
1 parent 766f095 commit 6e22b86

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

  • tf/deployment/modules/scoped/zitadel/customer

tf/deployment/modules/scoped/zitadel/customer/projects.tf

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,40 @@ locals {
5555
userInfoAssertion = true
5656
}
5757
] : [],
58+
var.env == "prod" ? [
59+
# Confidential web client for the yucca (FUTO Backups) production
60+
# deployment at backups.futo.cloud. client_id / client_secret ->
61+
# CUSTOMER_ZITADEL_OAUTH_CLIENT_ID_YUCCA_WEB /
62+
# CUSTOMER_ZITADEL_OAUTH_CLIENT_SECRET_YUCCA_WEB in yucca_tf_prod.
63+
{
64+
name = "Yucca Web"
65+
authMethod = "BASIC"
66+
appType = "WEB"
67+
grantTypes = ["AUTHORIZATION_CODE", "REFRESH_TOKEN"]
68+
redirectUris = [
69+
"https://backups.futo.cloud/api/auth/oidc/callback",
70+
]
71+
postLogoutRedirectUris = [
72+
"https://backups.futo.cloud",
73+
"https://backups.futo.cloud/",
74+
]
75+
devMode = false
76+
userInfoAssertion = true
77+
},
78+
# Public (no secret) device-code client for yucca orchestrator login,
79+
# mirroring the dev-only client above.
80+
# Client id -> CUSTOMER_ZITADEL_OAUTH_CLIENT_ID_YUCCA_ORCHESTRATOR in yucca_tf_prod.
81+
{
82+
name = "Yucca Orchestrator"
83+
authMethod = "NONE"
84+
appType = "NATIVE"
85+
grantTypes = ["DEVICE_CODE"]
86+
redirectUris = []
87+
postLogoutRedirectUris = []
88+
devMode = false
89+
userInfoAssertion = true
90+
}
91+
] : [],
5892
[
5993
// Real products here. Append as each product onboards.
6094
]

0 commit comments

Comments
 (0)