Skip to content

Commit

Permalink
Merge pull request #74 from zoomoid/main
Browse files Browse the repository at this point in the history
docs: exclude dollar sign from set of allowed characters for passwords and salts
  • Loading branch information
loafoe authored Apr 22, 2024
2 parents 0de7db4 + a67c3eb commit f0b816d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ provider "htpasswd" {

```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" {
Expand Down
9 changes: 7 additions & 2 deletions docs/resources/password.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0b816d

Please sign in to comment.