Skip to content

Commit

Permalink
provide sts token url as variable
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Sep 19, 2024
1 parent e74fe0d commit 8d24142
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion deployment/consumer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module "consumer-connector" {
}
vault-url = "http://consumer-vault:8200"
namespace = kubernetes_namespace.ns.metadata.0.name
sts-token-url = "http://consumer-identityhub:7084/api/sts/token"
sts-token-url = module.consumer-identityhub.sts-token-url
}

# consumer identity hub
Expand Down
4 changes: 4 additions & 0 deletions deployment/modules/identity-hub/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ output "credentials" {
path = var.credentials-dir
content = fileset(var.credentials-dir, "*-credential.json")
}
}

output "sts-token-url"{
value = "http://${kubernetes_service.ih-service.metadata.0.name}:${var.ports.sts-api}/api/sts/token"
}
7 changes: 3 additions & 4 deletions deployment/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ module "provider-qna-connector" {
}
namespace = kubernetes_namespace.ns.metadata.0.name
vault-url = "http://provider-vault:8200"
sts-token-url = "http://provider-identityhub:7084/api/sts/token"

sts-token-url = module.provider-identityhub.sts-token-url
}

# Second provider connector "provider-manufacturing"
Expand All @@ -43,7 +42,7 @@ module "provider-manufacturing-connector" {
}
namespace = kubernetes_namespace.ns.metadata.0.name
vault-url = "http://provider-vault:8200"
sts-token-url = "http://provider-identityhub:7084/api/sts/token"
sts-token-url = module.provider-identityhub.sts-token-url
}

module "provider-identityhub" {
Expand All @@ -70,7 +69,7 @@ module "provider-catalog-server" {
participantId = var.provider-did
namespace = kubernetes_namespace.ns.metadata.0.name
vault-url = "http://provider-vault:8200"
sts-token-url = "http://provider-identityhub:7084/api/sts/token"
sts-token-url = module.provider-identityhub.sts-token-url

database = {
user = "catalog_server"
Expand Down

0 comments on commit 8d24142

Please sign in to comment.