diff --git a/terraform/040-id-broker/README.md b/terraform/040-id-broker/README.md index c47cb28..7fe202b 100644 --- a/terraform/040-id-broker/README.md +++ b/terraform/040-id-broker/README.md @@ -105,6 +105,7 @@ This module is used to create an ECS service running id-broker. - `send_password_changed_emails` - Bool of whether or not to send password changed emails. Default: `true` - `send_refresh_backup_codes_emails` - Bool of whether or not to send refresh backup codes emails. Default: `true` - `send_welcome_emails` - Bool of whether or not to send welcome emails. Default: `true` + - `sentry_dsn` - Sentry DSN for error logging and alerting. Obtain from Sentry dashboard: Settings - Projects - (project) - Client Keys - `subject_for_abandoned_users` - Email subject text for abandoned user emails. Default: `Unused {idpDisplayName} Identity Accounts` - `subject_for_get_backup_codes` - Email subject text for get backup codes emails. Default: `Get printable codes for your {idpDisplayName} Identity account` - `subject_for_invite` - Email subject text for invite emails. Default: `Your new {idpDisplayName} Identity account` diff --git a/terraform/040-id-broker/main.tf b/terraform/040-id-broker/main.tf index 8a304e4..52387cb 100644 --- a/terraform/040-id-broker/main.tf +++ b/terraform/040-id-broker/main.tf @@ -161,6 +161,7 @@ locals { send_password_expiring_emails = var.send_password_expiring_emails send_refresh_backup_codes_emails = var.send_refresh_backup_codes_emails send_welcome_emails = var.send_welcome_emails + sentry_dsn = var.sentry_dsn subject_for_abandoned_users = var.subject_for_abandoned_users subject_for_get_backup_codes = var.subject_for_get_backup_codes subject_for_invite = var.subject_for_invite @@ -290,6 +291,7 @@ locals { send_password_expiring_emails = var.send_password_expiring_emails send_refresh_backup_codes_emails = var.send_refresh_backup_codes_emails send_welcome_emails = var.send_welcome_emails + sentry_dsn = var.sentry_dsn subject_for_abandoned_users = var.subject_for_abandoned_users subject_for_get_backup_codes = var.subject_for_get_backup_codes subject_for_invite = var.subject_for_invite diff --git a/terraform/040-id-broker/task-definition.json b/terraform/040-id-broker/task-definition.json index c0311e4..dc3e202 100644 --- a/terraform/040-id-broker/task-definition.json +++ b/terraform/040-id-broker/task-definition.json @@ -338,6 +338,10 @@ "name": "SEND_WELCOME_EMAILS", "value": "${send_welcome_emails}" }, + { + "name": "SENTRY_DSN", + "value": "${sentry_dsn}" + }, { "name": "SUBJECT_FOR_ABANDONED_USERS", "value": "${subject_for_abandoned_users}" diff --git a/terraform/040-id-broker/vars.tf b/terraform/040-id-broker/vars.tf index 9ce88cd..602aab4 100644 --- a/terraform/040-id-broker/vars.tf +++ b/terraform/040-id-broker/vars.tf @@ -452,6 +452,12 @@ variable "send_welcome_emails" { default = "true" } +variable "sentry_dsn" { + description = "Sentry DSN for error logging and alerting" + type = string + default = "" +} + variable "ssl_policy" { type = string } diff --git a/terraform/050-pw-manager/README.md b/terraform/050-pw-manager/README.md index 97dba1e..a44ac4e 100644 --- a/terraform/050-pw-manager/README.md +++ b/terraform/050-pw-manager/README.md @@ -66,6 +66,7 @@ The password manager UI can be deployed using the [silinternatonal/pages/cloudfl - `password_rule_maxlength` - Maximum password length. Default: `255` - `password_rule_minlength` - Minimum password length. Default: `10` - `password_rule_minscore` - Minimum password score. Default: `3` + - `sentry_dsn` - Sentry DSN for error logging and alerting. Obtain from Sentry dashboard: Settings - Projects - (project) - Client Keys - `support_feedback` - Email address for end user feedback, displayed on PW UI. - `support_phone` - Phone number for end user support, displayed on PW UI. - `support_url` - URL for end user support, displayed on PW UI. diff --git a/terraform/050-pw-manager/main-api.tf b/terraform/050-pw-manager/main-api.tf index 48bd1ae..0283f7b 100644 --- a/terraform/050-pw-manager/main-api.tf +++ b/terraform/050-pw-manager/main-api.tf @@ -102,6 +102,7 @@ locals { password_rule_minscore = var.password_rule_minscore recaptcha_secret_key = var.recaptcha_secret recaptcha_site_key = var.recaptcha_key + sentry_dsn = var.sentry_dsn support_email = var.support_email support_feedback = var.support_feedback support_name = var.support_name diff --git a/terraform/050-pw-manager/task-definition-api.json b/terraform/050-pw-manager/task-definition-api.json index 7769a68..14e8fdd 100644 --- a/terraform/050-pw-manager/task-definition-api.json +++ b/terraform/050-pw-manager/task-definition-api.json @@ -165,6 +165,10 @@ "name": "RECAPTCHA_SITE_KEY", "value": "${recaptcha_site_key}" }, + { + "name": "SENTRY_DSN", + "value": "${sentry_dsn}" + }, { "name": "SUPPORT_EMAIL", "value": "${support_email}" diff --git a/terraform/050-pw-manager/vars.tf b/terraform/050-pw-manager/vars.tf index 90d2f2b..b04185e 100644 --- a/terraform/050-pw-manager/vars.tf +++ b/terraform/050-pw-manager/vars.tf @@ -227,6 +227,12 @@ variable "recaptcha_secret" { type = string } +variable "sentry_dsn" { + description = "Sentry DSN for error logging and alerting" + type = string + default = "" +} + variable "support_email" { description = "Email address for end user support, displayed on PW UI and in emails" type = string diff --git a/terraform/070-id-sync/README.md b/terraform/070-id-sync/README.md index dfb00d5..a4fd3db 100644 --- a/terraform/070-id-sync/README.md +++ b/terraform/070-id-sync/README.md @@ -47,6 +47,7 @@ store. - `create_dns_record` - Controls creation of a DNS CNAME record for the ECS service. Default: `true` - `enable_new_user_notification` - Enable email notification to HR Contact upon creation of a new user, if set to 'true'. Default: `false` - `enable_sync` - Set to false to disable the sync process. +- `sentry_dsn` - Sentry DSN for error logging and alerting. Obtain from Sentry dashboard: Settings - Projects - (project) - Client Keys ## Outputs diff --git a/terraform/070-id-sync/main.tf b/terraform/070-id-sync/main.tf index e8c8938..3e49a33 100644 --- a/terraform/070-id-sync/main.tf +++ b/terraform/070-id-sync/main.tf @@ -83,6 +83,7 @@ locals { sync_safety_cutoff = var.sync_safety_cutoff allow_empty_email = var.allow_empty_email enable_new_user_notification = var.enable_new_user_notification + sentry_dsn = var.sentry_dsn }) } diff --git a/terraform/070-id-sync/task-definition.json b/terraform/070-id-sync/task-definition.json index 9f5560f..edf7da4 100644 --- a/terraform/070-id-sync/task-definition.json +++ b/terraform/070-id-sync/task-definition.json @@ -97,6 +97,10 @@ "name": "ENABLE_NEW_USER_NOTIFICATION", "value": "${enable_new_user_notification}" }, + { + "name": "SENTRY_DSN", + "value": "${sentry_dsn}" + }, ${id_store_config} ], "links": null, diff --git a/terraform/070-id-sync/vars.tf b/terraform/070-id-sync/vars.tf index 757c086..87e2578 100644 --- a/terraform/070-id-sync/vars.tf +++ b/terraform/070-id-sync/vars.tf @@ -147,3 +147,9 @@ variable "create_dns_record" { type = bool default = true } + +variable "sentry_dsn" { + description = "Sentry DSN for error logging and alerting" + type = string + default = "" +}