Skip to content

Commit

Permalink
Merge pull request #97 from serlo/feat/lti-integration-serlo-editor-t…
Browse files Browse the repository at this point in the history
…esting-secret

feat(editor): add serlo editor testing secret env var for lti integration
  • Loading branch information
hugotiburtino authored Jul 10, 2024
2 parents 6c1c9cf + 7caecb0 commit cbec521
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions envs/staging/editor.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ module "editor" {
mysql_database_url = "mysql://serlo:${var.athene2_database_password_default}@${module.mysql.database_private_ip_address}:3306/serlo"

lti_platform_client_id = var.editor_lti_platform_client_id

serlo_editor_testing_secret = var.serlo_editor_testing_secret
}

module "editor_ingress" {
Expand Down
8 changes: 8 additions & 0 deletions modules/editor-as-lti-tool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ variable "lti_platform_client_id" {
type = string
}

variable "serlo_editor_testing_secret" {
type = string
}

output "editor_service_name" {
value = kubernetes_service.editor_service.metadata[0].name
}
Expand Down Expand Up @@ -108,6 +112,10 @@ resource "kubernetes_deployment" "editor_as_lti_tool" {
name = "LTI_PLATFORM_KEYSET_ENDPOINT"
value = "${local.lti_platform_url}/.well-known/openid-configuration/jwks"
}
env {
name = "SERLO_EDITOR_TESTING_SECRET"
value = var.serlo_editor_testing_secret
}
}
}
}
Expand Down

0 comments on commit cbec521

Please sign in to comment.