You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Second, it looks like the hash is re-computed every time even if the password doesn't change (ie apr1). This shouldn't be recalculated every time especially when resources are depending on it.
This might be related to hashicorp/terraform-plugin-sdk#98, keeping the salt the same doesnt fix it either, regardless in terraform 14, it always generates a new hash.
@ekristen tested above with latest terraform and it produces stable state. I've modified the example in the documentation to include the salt attribute. Can you confirm it works for you?
First, thanks for the module.
Second, it looks like the hash is re-computed every time even if the password doesn't change (ie
apr1
). This shouldn't be recalculated every time especially when resources are depending on it.It would appear that https://github.com/loafoe/terraform-provider-htpasswd/blob/main/htpasswd/data_source_password.go#L42 would keep that from happening, but it's definitely not. The resource isn't new and the password is not changing, yet it is still making it into the block and re-generating the hash.
The text was updated successfully, but these errors were encountered: