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
{{ message }}
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.
I'm getting an Error: pq: unknown authentication response: 10 when attempting to create a user role in a DB configured with SCRAM-SHA-256 password encryption. This issue does NOT happen for DBs configured with MD5.
I understand this should already be fixed thanks to #113 and #114 (included in v.1.5.0), but role creation only succeeds when I build the v.1.6.0 release from source and manually place that binary in the .terraform folder (replacing the one downloaded by terraform init).
terraform apply
data.terraform_remote_state.postgresql_dummyusers: Refreshing state...
module.gopass_secrets_postgresql.data.external.secrets["masteruser"]: Refreshing state...
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# postgresql_role.user will be created
+ resource "postgresql_role" "user" {
+ bypass_row_level_security = false
+ connection_limit = -1
+ create_database = false
+ create_role = false
+ encrypted_password = true
+ id = (known after apply)
+ inherit = true
+ login = true
+ name = "rod"
+ password = (sensitive value)
+ replication = false
+ roles = [
+ "ro-stg-dummyusers",
]
+ skip_drop_role = false
+ skip_reassign_owned = true
+ superuser = false
+ valid_until = "infinity"
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
postgresql_role.user: Creating...
postgresql_role.user: Creation complete after 2s [id=rod]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Releasing state lock. This may take a few moments...
Actual Behavior
When I use the binary downloaded by terraform init:
terraform apply
data.terraform_remote_state.postgresql_dummyusers: Refreshing state...
module.gopass_secrets_postgresql.data.external.secrets["masteruser"]: Refreshing state...
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# postgresql_role.user will be created
+ resource "postgresql_role" "user" {
+ bypass_row_level_security = false
+ connection_limit = -1
+ create_database = false
+ create_role = false
+ encrypted_password = true
+ id = (known after apply)
+ inherit = true
+ login = true
+ name = "rod"
+ password = (sensitive value)
+ replication = false
+ roles = [
+ "ro-stg-dummyusers",
]
+ skip_drop_role = false
+ skip_reassign_owned = true
+ superuser = false
+ valid_until = "infinity"
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
postgresql_role.user: Creating...
Error: pq: unknown authentication response: 10
on users.tf line 8, in resource "postgresql_role" "user":
8: resource "postgresql_role" "user" {
Releasing state lock. This may take a few moments...
I was able to get a similar error but when the provider try to connect if the configured user in the provider (usually postgres) needs a SCRAM-SHA-256 authentication.
Upgrading the Postgres provider to 1.7.0 (which has been released today) solves this error. Could you try it and tell me if it solves it for you too?
Previous version of this provider were (mistakenly) built with an old Go version and we upgrade to a recent one in v1.7.0.
Hi there,
I'm getting an
Error: pq: unknown authentication response: 10
when attempting to create a user role in a DB configured with SCRAM-SHA-256 password encryption. This issue does NOT happen for DBs configured with MD5.I understand this should already be fixed thanks to #113 and #114 (included in v.1.5.0), but role creation only succeeds when I build the v.1.6.0 release from source and manually place that binary in the
.terraform
folder (replacing the one downloaded byterraform init
).Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
https://gist.github.com/rodsoaresTD/c27cff93c322bc81959393e808d281b2
Expected Behavior
When I use the binary built from v1.6.0's source:
Actual Behavior
When I use the binary downloaded by
terraform init
:Steps to Reproduce
terraform init
terraform apply
- issue occurshttps://github.com/terraform-providers/terraform-provider-postgresql/releases/tag/v1.6.0
terraform init
in step 1, by the one built in the previous stepterraform init
(notice it does NOT re-download the v1.6.0 binary, the one built in step 4 is kept)terraform apply
should now create the user with no issuesImportant Factoids
There is a pre-existing default role in the Postgres DB ("ro-stg-dummyusers") that we want to GRANT to the new user.
References
expected_version = "11.6"
because of Postgres Compatibility Issue with 11.6 #124skip_reassign_owned = true
because of Can not destroy postgresql_role after create #36The text was updated successfully, but these errors were encountered: