Skip to content

Commit

Permalink
add sentry_dsn to id-broker and pw-api
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Oct 6, 2023
1 parent d4b6ee0 commit ebad468
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions terraform/040-id-broker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
1 change: 1 addition & 0 deletions terraform/040-id-broker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,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
Expand Down
4 changes: 4 additions & 0 deletions terraform/040-id-broker/task-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
6 changes: 6 additions & 0 deletions terraform/040-id-broker/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions terraform/050-pw-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions terraform/050-pw-manager/main-api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions terraform/050-pw-manager/task-definition-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
"name": "RECAPTCHA_SITE_KEY",
"value": "${recaptcha_site_key}"
},
{
"name": "SENTRY_DSN",
"value": "${sentry_dsn}"
},
{
"name": "SUPPORT_EMAIL",
"value": "${support_email}"
Expand Down
6 changes: 6 additions & 0 deletions terraform/050-pw-manager/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion terraform/070-id-sync/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,5 @@ variable "create_dns_record" {
variable "sentry_dsn" {
description = "Sentry DSN for error logging and alerting"
type = string
default = null
default = ""
}

0 comments on commit ebad468

Please sign in to comment.