From 182ad9f2e68c4200e7d69c7fb005f6c771c5402a Mon Sep 17 00:00:00 2001 From: Alexander Bartolomey Date: Fri, 19 Apr 2024 16:53:58 +0200 Subject: [PATCH 1/3] docs: make password and salt example not include special characters Signed-off-by: Alexander Bartolomey --- docs/index.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 80c1d69..648380b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -19,11 +19,13 @@ provider "htpasswd" { ```hcl resource "random_password" "password" { - length = 30 + length = 30 + special = false } resource "random_password" "salt" { - length = 8 + length = 8 + special = false } resource "htpasswd_password" "hash" { From a745dfef72d2a0eec92039efba2f99493c562e07 Mon Sep 17 00:00:00 2001 From: Alexander Bartolomey Date: Fri, 19 Apr 2024 16:55:44 +0200 Subject: [PATCH 2/3] docs: specify set of special characters explicitly Signed-off-by: Alexander Bartolomey --- docs/index.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index 648380b..403795a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -19,13 +19,15 @@ provider "htpasswd" { ```hcl resource "random_password" "password" { - length = 30 - special = false + length = 30 + special = true + special_override = "!@#%&*()-_=+[]{}<>:?" } resource "random_password" "salt" { - length = 8 - special = false + length = 8 + special = true + special_override = "!@#%&*()-_=+[]{}<>:?" } resource "htpasswd_password" "hash" { From a67c3ebb8716d92acad6a314d6d6139a448f1faf Mon Sep 17 00:00:00 2001 From: Alexander Bartolomey Date: Fri, 19 Apr 2024 16:59:00 +0200 Subject: [PATCH 3/3] docs: same thing for password.md Signed-off-by: Alexander Bartolomey --- docs/resources/password.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/resources/password.md b/docs/resources/password.md index 05f6719..61c42c2 100644 --- a/docs/resources/password.md +++ b/docs/resources/password.md @@ -6,12 +6,17 @@ Generate hashes of provided password string ```hcl resource "random_password" "password" { - length = 30 + length = 30 + special = true + special_override = "!@#%&*()-_=+[]{}<>:?" } resource "random_password" "salt" { - length = 8 + length = 8 + special = true + special_override = "!@#%&*()-_=+[]{}<>:?" } + resource "htpasswd_password" "hash" { password = random_password.password.result salt = random_password.salt.result