Skip to content

Commit

Permalink
Merge pull request #240 from silinternational/release/12.2.0
Browse files Browse the repository at this point in the history
Release 12.2.0 -- add alerts_email_enabled to pw-manager
  • Loading branch information
briskt authored Jan 4, 2024
2 parents 128b925 + be9ad36 commit 8af802d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
PMA_PASSWORD: broker

db-ssp:
image: silintl/mariadb:latest
image: mariadb:10
ports:
- "3306"
environment:
Expand Down
13 changes: 7 additions & 6 deletions terraform/050-pw-manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ The password manager UI can be deployed using the [silinternatonal/pages/cloudfl

- `alb_dns_name` - DNS name for application load balancer
- `alb_https_listener_arn` - ARN for ALB HTTPS listener
- `alerts_email` - Email address to send alerts/notifications to
- `api_subdomain` - Subdomain for pw manager api
- `app_env` - Application environment
- `app_name` - Application name
Expand Down Expand Up @@ -59,13 +58,15 @@ The password manager UI can be deployed using the [silinternatonal/pages/cloudfl

## Optional Inputs

- `code_length` - Number of digits in reset code. Default: `6`
- `alerts_email` - Email address to send alerts/notifications. Must be specified if `alerts_email_enabled` is `"true"`. Default: `""`
- `alerts_email_enabled` - Enable or disabled alert notification emails. Default: `"true"`
- `code_length` - Number of digits in reset code. Default: `"6"`
- `create_dns_record` - Controls creation of a DNS CNAME record for the ECS service. Default: `true`
- `extra_hosts` - Extra hosts for the API task definition, e.g. "\["hostname":"host.example.com","ipAddress":"192.168.1.1"\]"
- `password_rule_enablehibp` - Enable haveibeenpwned.com password check. Default: `true`
- `password_rule_maxlength` - Maximum password length. Default: `255`
- `password_rule_minlength` - Minimum password length. Default: `10`
- `password_rule_minscore` - Minimum password score. Default: `3`
- `password_rule_enablehibp` - Enable haveibeenpwned.com password check. Default: `"true"`
- `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.
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 @@ -61,6 +61,7 @@ locals {
task_def = templatefile("${path.module}/task-definition-api.json", {
access_token_hash = random_id.access_token_hash.hex
alerts_email = var.alerts_email
alerts_email_enabled = var.alerts_email_enabled
app_env = var.app_env
app_name = var.app_name
aws_region = var.aws_region
Expand Down
2 changes: 1 addition & 1 deletion terraform/050-pw-manager/task-definition-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
{
"name": "ALERTS_EMAIL_ENABLED",
"value": "true"
"value": "${alerts_email_enabled}"
},
{
"name": "APP_ENV",
Expand Down
10 changes: 9 additions & 1 deletion terraform/050-pw-manager/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ variable "alb_https_listener_arn" {
}

variable "alerts_email" {
type = string
description = "Email to which to send error alerts"
type = string
default = ""
}

variable "alerts_email_enabled" {
description = "Set to true to disable email alerts. Must be a string for insertion into task definition."
type = string
default = "true"
}

variable "api_subdomain" {
Expand Down

0 comments on commit 8af802d

Please sign in to comment.