aws / aws/amazon-redshift-python-driver

Using IDC BrowserAuthPlugin to connect to Redshift

未关闭
#241 1 条评论 0 个 reaction 已指派 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 摘要。