provider-sql
provider-sql copied to clipboard
Add RDS CA to Docker image
What problem are you facing?
One popular use case is to use provider-sql with Amazon RDS. The latest version introduced verify-full as default sslMode, which requires that provider-sql needs to trust the RDS CA to be able to connect. Without trust it will return x509: certificate signed by unknown authority when trying to connect.
How could Crossplane help solve your problem?
I think that the RDS CA should be added to the Docker image, so that it works out of the box for RDS.
Perhaps we can pass along the root certs to the ProviderConfig as a Secret/ConfigMap reference? This way we can make the feature available to anyone using different root certs.
WDYT?
Yes, that is also an option. More config for users, but as you say that makes it easy to support other CAs. Or is this something that would fit better for ControllerConfig?
I think that RDS should work out the box without additional config as it is a fairly common use case. Support for custom CAs through config could be implemented later if anyone requests it?
I'd rather not see arbitrary certificates (common or not) embedded in the provider, it puts a maintenance burden on the provider as we'd have to follow up with any changes on that end upstream.