RS Connector requiring a valid aws identity to connect to Redshift, when that shouldn't be required
还没有人认领这个 Issue。
评估
调研方向
从复现 get_redshift_connection_robotic 开始,并跟踪 IAM 和 PingCredentialsProvider 的连接路径。将连接器的身份要求与报告的 SQL-client 行为进行比较;完成的标准是,没有有效 AWS 身份的用户可以使用所示配置连接到 Redshift,并且 SELECT 1 执行成功。
由索引模型根据 Issue 内容生成。
描述
Driver version
2.0.0
Redshift version
PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.76832
Client Operating System
macos ventura 13.6 (22G120)
Python version
Python 3.12.4
Table schema
n/a
Problem description
redshift_connector is trying to grab a valid aws identity when just doing a simple connect to Redshift. This is causing issues for us as we have users that do not have a valid aws identity, that need to connect to Redshift. Importantly, they are able to connect to Redshift using various SQL clients, the same behavior should be expected with Redshift connector.
Python Driver trace logs
would prefer to not post this
Reproduction code
def get_redshift_connection_robotic():
try:
conn = redshift_connector.connect(
iam=True,
ssl=True,
host='',
port=5439,
database='',
cluster_identifier='',
region='us-east-1',
partner_sp_id='',
idp_host='',
credentials_provider='PingCredentialsProvider',
user='',
password=''
)
conn.autocommit = True
cursor = conn.cursor()
cursor.execute('SELECT 1;')
print(cursor.fetchall())
except Exception as error:
logging.error("Error connecting to Redshift:", exc_info=True)
if name == "main":
get_redshift_connection_robotic()
- 主要语言
- Python
- 星标
- 220
- 派生
- 88
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws/amazon-redshift-python-driver 的其他 Issue
-
docs: client_protocol_version missing from Connection Parameters table可能已有人在做 @reginaldalfret 于 1 天前认领。 未关闭
难度 1/5 1-3 小时 新手友好度 74/100
-
难度 4/5 3-5 天 新手友好度 30/100
aws/amazon-redshift-python-driver#268 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 35/100
aws/amazon-redshift-python-driver#265 · 1 条评论 · 4 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
查看 aws/amazon-redshift-python-driver 的全部 Issue
相似的 Issue
-
Layers of type "3D Unknown" and "3D Measured Unknown" are refused, so FileGDB multipatch layers can't be read可能已有人在做 @aidannewsome 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
-
quantization
难度 2/5 1-3 小时 新手友好度 78/100
vllm-project/vllm#59904 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
mikf/gallery-dl#9791 ·
-
Speaker custom-fields CSV export returns 404 instead of downloading data可能已有人在做 @techvoyager-varun 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
fossasia/eventyay#6151 · 1 条评论 ·
维护者通常 1 天内回复
-
P4: low tooling
难度 2/5 1-3 小时 新手友好度 88/100
jeffknupp/association#318 ·