aws / aws/amazon-redshift-python-driver

Using IDC BrowserAuthPlugin to connect to Redshift

オープン
#241 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
220
フォーク
86
PR マージ指標
30日以内にマージされた PR はありません

説明

## Driver version
2.0.0

## Redshift version
([1372],)

## Client Operating System
MacOS

## Python version
Python 3.12.4

## Table schema
not needed

## Problem description

1. Expected behaviour: Trying to connect to IDC using BrowserAuthPlugin, but running into various errors.
2. Actual behaviour: Running into various errors
3. Error message/stack trace: Error connecting to Redshift: {'S': 'FATAL', 'C': '28000', 'M': 'no PostgreSQL user name specified in startup packet', 'F': '/home/ec2-user/padb/src/pg/src/backend/postmaster/postmaster.c', 'L': '3518', 'R': 'ProcessStartupPacket'}
4. Any other details that can be helpful:

-- CODE --

conn = redshift_connector.connect(
ssl=True,
host=cluster_endpoint,
port=port,
database=database,
idc_region=idc_region,
provider_name='BrowserIdcAuthPlugin',
issuer_url=issuer_url
)

Looking for code that connects to Redshift using IDC BrowserAuthPlugin, seems like I am missing some important params

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start with the redshift_connector.connect call and the BrowserIdcAuthPlugin parameters shown in the issue. Trace how those arguments form the startup packet and compare the required IDC authentication inputs with the reported missing PostgreSQL user error. Done means the required connection parameters are identified and a working or clearly reproducible connection example is provided.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, python
領域
databases
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。