redash
redash copied to clipboard
RedshiftIAM object missing ssl_config variable
Issue Summary
"RedshiftIAM object does not contain ssl_config" error when attempting to establish connection to Redshift using IAM role.
Steps to Reproduce
- Create new data source Redshift (with IAM User/Role)
- Click "Test Connection" will result in error
- Resolved after adding
self.ssl_config = {}
in _get_connection function in our forked code
Unclear if deliberate design decision to leave out ssl_config
variable in RedshiftIAM class, however the following solution unblocked our Redash instance. Adding self.ssl_config = {}
to L483 like below:
https://github.com/getredash/redash/blob/master/redash/query_runner/pg.py#L304
Technical details:
- Redash Version: v9 beta
- Browser/OS: Chrome/MacOS
- How did you install Redash: ECS Fargate + RDS Postgres + Elasticache Redis
This is also happening on Version: 10.0.0 (9c928bd1)
seems to be happening on Version: 10.1.0 (2589bef1)
Thanks for pinging this! I'll open a PR to merge this change into master. I don't believe this omission was a deliberate.
Not sure if the fix mentioned above is the correct one, but it seems that it worked for us as well.
The PR for this (#5465) has been merged, so will be in the next release. :smile: