Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd29287b

Browse files
angrycubaslilac
authored andcommitted
fix: remove backtick from valid password characters (#15756)
Since backticks are the PowerShell escape character, they are silentlyconsumed. To actually use backticks, they would need to be doubled whenused.This change increases the safety of generated passwords for otherterraform modules that might use this value unawares.
1 parent45862a7 commitd29287b

File tree

1 file changed

+3
-3
lines changed
  • examples/templates/azure-windows

1 file changed

+3
-3
lines changed

‎examples/templates/azure-windows/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ resource "random_password" "admin_password" {
6565
length=16
6666
special=true
6767
# https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/password-must-meet-complexity-requirements#reference
68-
# we remove characters that require special handling in XML, as this is how we pass it to the VM
69-
# namely: <>&'"
70-
override_special="~!@#$%^*_-+=`|\\(){}[]:;,.?/"
68+
# we remove characters that require special handling in XML, as this is how we pass it to the VM; we also remove the powershell escape character
69+
# namely: <>&'`"
70+
override_special="~!@#$%^*_-+=|\\(){}[]:;,.?/"
7171
}
7272

7373
locals {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp