question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Driver property cannot be set to null (causes Redshift IAM failure)

See original GitHub issue

System information:

  • Operating system (distribution) and version: Mint Linux 20.1
  • DBeaver version: 21.2.5.202111141807
  • Additional extensions: None

Connection specification:

  • Database name and version: Any, but can try with postgres
  • Driver name: : Any, but can try with postgres
  • Do you use tunnels or proxies (SSH, SOCKS, etc)? : No

Describe the problem you’re observing:

  1. It is not possible to connect to Redshift using IAM repeatedly. It is possible to connect once.
  2. This is because when saving a connection with no ssl value it does “work”. But then restarting DBeaver (or reopening the Edit Connection window) the value is set back to true.

Steps to reproduce, if exist:

  1. Create any postgres Driver.
  2. Set ssl to nothing (blank value)
  3. Save
  4. Reopen, it will have been set back to true.

This is a problem as when connecting to Redshift, then ssl must be null. Note, this is not a User defined property so it is always present. Setting it to false / 0 etc is not enough. As the screenshot shows, it must be null.

The fix would be that “no value” is stored as null persistently.

The workaround is to open DBeaver, then navigate to the connection and to blank out the ssl value every time the application is launched.

NB, This doesn’t disable SSL when connecting to Redshift, as the sslmode can be set.

image

image

Immediate message when restarting DBeaver:

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Skydiveroidcommented, Dec 8, 2021

We need to investigate that.

1reaction
owstcommented, May 4, 2022

@Matvey16 do you have any update on a possible fix for this issue? Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to create redshift connection - Stack Overflow
I am trying to create the redshift connection using redshift jdbc driver which I downloaded from AWS redshift cluster console.
Read more >
Resolve IAM role error in Amazon Redshift
I'm trying to create an Amazon Redshift cluster or scheduled action using AWS CloudFormation. However, I receive an AWS Identity and Access ...
Read more >
Amazon Redshift JDBC Driver Installation and Configuration ...
If you are connecting to a Redshift server using IAM authentication, set the following properties as part of your data source connection string....
Read more >
Methods to avoid the SQL divide by zero error
In SQL Server, if we divide a number with null, the output is null as well; If the value of the first argument...
Read more >
Query Amazon Redshift with Databricks
Learn how to read and write data to Amazon Redshift on Databricks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found