Skip to content

Commit

Permalink
Change special chars for generated password to allow masking on Gitlab (
Browse files Browse the repository at this point in the history
  • Loading branch information
andypanix authored Jan 23, 2023
1 parent 8a1159f commit a213068
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.0] - 2023-01-23

### Changed

- Bump to 0.3, since 0.2.2 was a breaking change.
- User password special characters are now `_~@` from `_%@` to allow masking in Gitlab.

## [0.2.2] - 2023-01-23

### Changed
Expand Down
2 changes: 1 addition & 1 deletion examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ resource "google_sql_database_instance" "instance" {
resource "random_password" "admin_sql_user_password_mysql" {
length = 24
special = true
override_special = "_%@"
override_special = "_~@"
}

resource "google_sql_user" "admin_user_mysql" {
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ resource "random_password" "sql_user_password" {
for_each = { for u in var.database_and_user_list : u.user => u }
length = 16
special = true
override_special = "_%@"
override_special = "_~@"
}

# Create the databases.
Expand Down

0 comments on commit a213068

Please sign in to comment.