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
And connect to an RDS instance whose CA comes from rds-ca-ecc384-g1, we get an unexpected error:
│ Error: Error connecting to PostgreSQL server database-name.region.rds.amazonaws.com (scheme: awspostgres): tls: failed to verify certificate: x509: certificate signed by unknown authority
Based on sslmode = "require", I expect no certificate validation.
terraform-provider-postgresql (provider itself, not resources)
Terraform Configuration Files
See above snipped
Debug Output
N/A
Panic Output
N/A
Expected Behavior
We should be able to connect with above config to an RDS instance.
Actual Behavior
Error
Steps to Reproduce
Create RDS instance with issuing CA rds-ca-ecc384-g1 (I expect the same behavior for other new CAs too)
Try to connect to the provider using scheme = "awspostgres" and sslmode = "require"
Important Factoids
No
References
None
The text was updated successfully, but these errors were encountered:
Having a similar issue myself using rds-ca-rsa2048-g1 and scheme:awspostgres. Changing from awspostgres to postgres fixes it, what are the implications of this?
If we setup a provider as such:
And connect to an RDS instance whose CA comes from
rds-ca-ecc384-g1
, we get an unexpected error:Based on
sslmode = "require"
, I expect no certificate validation.I believe the issue is here:
terraform-provider-postgresql/postgresql/config.go
Lines 205 to 210 in fea83f3
We should change this to
if c.Scheme == "postgres" || c.Scheme == "awspostgres"
I'm able to workaround this by just setting
scheme=postgres
.Terraform Version
Affected Resource(s)
Terraform Configuration Files
See above snipped
Debug Output
N/A
Panic Output
N/A
Expected Behavior
We should be able to connect with above config to an RDS instance.
Actual Behavior
Error
Steps to Reproduce
Create RDS instance with issuing CA
rds-ca-ecc384-g1
(I expect the same behavior for other new CAs too)Try to connect to the provider using
scheme = "awspostgres"
andsslmode = "require"
Important Factoids
No
References
None
The text was updated successfully, but these errors were encountered: