Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Support 'external_id' for temporary credentials

Đang mở
#109 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
aws, python

Hướng nghiên cứu

Bắt đầu từ ví dụ redshift_connector.connect và truy vết cách lấy thông tin xác thực role_arn. Xem xét luồng boto3.Session và AssumeRole được yêu cầu, bao gồm external_id và việc làm mới thông tin xác thực khi kết nối lại. Được xem là hoàn tất khi connector chấp nhận external_id cho thông tin xác thực tạm thời và luồng tái hiện được ghi lại hoạt động đúng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Driver version

v2.0.907 Latest

Redshift version

N/A

Client Operating System

N/A

Python version

N/A

Table schema

N/A

Problem description

  1. Expected behaviour: Library is able to use EKS IRSA / AWS SSO to discovery credential, then use AssumeRole with role_arn and external_id to receive current one.
  2. Actual behaviour: No support for external_id.
  3. Error message/stack trace: N/A
  4. Any other details that can be helpful:

Partner Hosted Foundational Technical Review requires "CAA-002 - Use external ID with cross-account roles to access customer accounts."

Credential management is already supported. In my opinion, AWS SDK (in this scenario boto3) defines the credentials standard for IAM that is adopted for language in AWS. In my opinion, this library should only receive instance boto3.Session to build proper IAM credentials on its own. It allows use aws-assume-role-lib ( https://github.com/benkehoe/aws-assume-role-lib ) to automatically refresh credentials when reconnection happens (The fact that it is an external library is a separate problem in boto3 because JavaScript / Java ( https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/auth/STSAssumeRoleSessionCredentialsProvider.html ) has the appropriate built-in credential provider.). Then a large amount of code - repeated in relation to boto3 - regarding the use of credential management will become redundant.

Python Driver trace logs

Reproduction code

import redshift_connector

# Connects to Redshift cluster using AWS credentials
conn = redshift_connector.connect(
    host='examplecluster.abc123xyz789.us-west-1.redshift.amazonaws.com',
    database='dev',
    user='awsuser',
    role_arn='aws:...',
    external_id='...'
 )

CC: @podpio

Ngôn ngữ chính
Python
Star
220
Fork
86
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws/amazon-redshift-python-driver

Tất cả issue của aws/amazon-redshift-python-driver

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.