gravitational / teleport

The easiest, and most secure way to access and protect all of your infrastructure.
https://goteleport.com
GNU Affero General Public License v3.0
17.44k stars 1.74k forks source link

Redshift external schemas should be discoverable through db access #12925

Open programmerq opened 2 years ago

programmerq commented 2 years ago

Expected behavior:

When using dbeaver or datagrip, any redshift external schemas should populate normally just like when connecting to the database directly.

Current behavior:

When using dbeaver or datagrip, any redshift external schemas do not show up in the gui.

Bug details:

Access a redshift database through db access using dbeaver or datagrip. When setting up the connection, the gui client has both a redshift and a postgres option. the redshift option doesn't seem to work through db access, and the postgres driver does not do the necessary discover steps to find the external schema.

Queries to the external schema can be done manually if the query is issued directly.

gz#5304

gz#5754

j-teleport commented 2 years ago

If using Redshift driver with DBeaver, the error is,

Error getting JDBC meta data.

halilduygulu commented 1 year ago

In our case, same db works with connection from DBeaver if postgres drived is used. If I try to connect via redshift driver, then we get this error message.

Can't connect ot remote PostgreSQL server
  An I/O error occurred while sending to the backend.
  An I/O error occurred while sending to the backend.
    Illegal UTF-8 sequence: initial byte is 10xxxxxx: 141
    Illegal UTF-8 sequence: initial byte is 10xxxxxx: 141

There is a typo in the message, so it can help to identify where is this coming from. I am assuming teleport is still proxying connection via some sort of postgres protocol instead of redshift, so only postgres client lib works.

gtaber28 commented 1 year ago

I am seeing following in Error Log from DBeaver 23.1.2, connecting to Redshift PostgreSQL with Amazon Redshift driver jdbc42-2.1.0.3:

Screenshot 2023-07-18 at 3 15 55 PM