Skip to content

Conversation

@kstiehl
Copy link

@kstiehl kstiehl commented Dec 11, 2025

Related Issue

Fixes: #741

Description

Currently the random_password resource allows to override the special characters. Terraform strings are UTF-8 because golang strings are UTF-8. When a user passes a character like german umlauts or other characters commonly used in the EU (€,ñ,ç,°ä,ü,ö,ß) the CreateString functions butchers these because it is taking random bytes out of the allowed inputs. However all these character are multi byte UTF-8 character.

@hashicorp-cla-app
Copy link

hashicorp-cla-app bot commented Dec 11, 2025

CLA assistant check
All committers have signed the CLA.

@kstiehl kstiehl changed the title fix(Password): Create String is not generating valid strings fix(Password): CreateString is not generating valid strings Dec 11, 2025
@kstiehl kstiehl changed the title fix(Password): CreateString is not generating valid strings fix(random_password & random_string): CreateString is not generating valid strings Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

random_password & random_string are unable to deal with multibyte utf-8 character

1 participant