Skip to content

Commit

Permalink
enforce windows complexity requirements (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmusa authored Jul 12, 2021
1 parent 1606d2d commit 12eb3d3
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/terraform/modules/jumpbox/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,21 @@ resource "azurerm_key_vault" "jumpbox-keyvault" {
tags = var.tags
}

resource "random_integer" "jumpbox-password-length" {
min = 8
max = 123
}

resource "random_password" "jumpbox-password" {
length = 16
special = true
override_special = "_%@"
length = random_integer.jumpbox-password-length.result
upper = true
lower = true
number = true
special = true
min_upper = 1
min_lower = 1
min_numeric = 1
min_special = 1
}

resource "azurerm_key_vault_secret" "jumpbox-password" {
Expand Down

0 comments on commit 12eb3d3

Please sign in to comment.