Refactor Connection credential and auth wiring
Maintainer thường phản hồi trong vòng 1 ngà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
- 48/100
Hướng nghiên cứu
Start by reading Connection.__init__ and the listed auth members and helpers in connection.py; trace the credential branch to see how API key, BYOIDC, and OAuth are resolved. Extract the auth responsibilities into a collaborator and update Connection to use it. Then consider the listed transport builders, service clients, user-agent and timeout properties, and endpoints; done when the behavior is preserved and the responsibilities are grouped as described.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Connection.init is too large mostly due to figuring out credential-based logic.
- the auth-mode members: _byoidc, _oauth, _oauth_provider, _reauth_policy, _global_credentials, _flink_auth, _surface_auth;
- _auth_for, _send_with_reauth_policy and oauth_metrics;
- ControlPlaneSurface, _SurfaceSpec and _basic_auth;
- the module-level _resolve_flink_auth and _resolve_service_credentials;
- the credential branch of init, roughly 150 of its 330 lines.
A small collaborator, say ConnectionAuth, would resolve the mode (API key, BYOIDC or oauth) once and expose flink_auth, auth_for(surface), send_policy and oauth_metrics. Connection would hold one attribute instead of seven, and the enum and spec dataclass would leave connection.py.
After doing the main work, then also consider the transport functionality to also spin out of class Connection: _build_dataplane_client, _build_controlplane_client, _service_clients, the user-agent and timeout properties, and both endpoints are a coherent group. It would fold naturally into the auth collaborator.
- Ngôn ngữ chính
- Python
- Star
- 6
- Fork
- 1
- Merge trung bình
- 21 giờ 16 phút
- Pull request đã merge (30 ngày)
- 29
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của confluentinc/confluent-sql
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
confluentinc/confluent-sql#226 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
confluentinc/confluent-sql#224 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update connector configĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
confluentinc/confluent-sql#125 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
List connectorsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
confluentinc/confluent-sql#124 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
confluentinc/confluent-sql#291 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của confluentinc/confluent-sql
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Unused loot bag group names left in dreamcraft en_US.langCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởStatus: Triage Suggestion
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
GTNewHorizons/GT-New-Horizons-Modpack#27789 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug frontend sev-5
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
-
core good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
b4b code health next
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ESCOMP/CTSM#4330 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày