[Refactor][Kiro] Migrate the kiro plugin from aws-sdk-go v1 to aws-sdk-go-v2
Maintainer thường phản hồi trong vòng 3 ngày
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
Hướng nghiên cứu
Start with the listed files under backend/plugins/kiro: api/test_connection.go, tasks/identity_client.go, tasks/s3_client.go, and tasks/s3_file_collector.go; read their current SDK usage and the named test doubles in the issue. Run the plugin unit tests, then migrate the clients and tests to aws-sdk-go-v2. Done means those tests pass, the v1 module is removed from backend/go.mod, and the temporary exclusion is removed from backend/.golangci.yaml; a real AWS/Kiro run is also requested.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What and why to refactor
backend/plugins/kiro is the only consumer of github.com/aws/aws-sdk-go
(v1). The AWS SDK for Go v1 reached
end-of-support on 2025-07-31;
it no longer receives bug or security fixes. Its final release, v1.55.8, marks
every package as deprecated, so staticcheck reports SA1019 for each import:
plugins/kiro/api/test_connection.go:24-25 aws, service/s3
plugins/kiro/tasks/identity_client.go:21-24 aws, aws/credentials, aws/session, service/identitystore
plugins/kiro/tasks/s3_client.go:25-28 aws, aws/credentials, aws/session, service/s3
plugins/kiro/tasks/s3_file_collector.go:24-25 aws, service/s3
This is what turned the lint job red on the Dependabot group #9192. It is
tolerated for now by a narrowly scoped lint exclusion (see the linked PR), but
that only hides the debt.
Describe the solution you'd like
Move the plugin to aws-sdk-go-v2:
aws/session+aws/credentials→config.LoadDefaultConfig(ctx, config.WithRegion(…), config.WithCredentialsProvider(credentials.NewStaticCredentialsProvider(…)))service/s3→github.com/aws/aws-sdk-go-v2/service/s3(ListObjectsV2,
GetObject, …; request/response types move tos3/types, calls take a
context.Context)service/identitystore→github.com/aws/aws-sdk-go-v2/service/identitystore- adapt the test doubles in
tasks/s3_client_test.go,
tasks/s3_file_collector_test.goandtasks/discovery_test.goto the v2
client interfaces - afterwards: drop
github.com/aws/aws-sdk-gofrombackend/go.modand remove
the temporary exclusion frombackend/.golangci.yaml
The new modules are Apache-2.0 licensed. Dependabot's existing
go-minor-patch group (patterns: ["*"]) already bundles the many v2
sub-modules, so no extra configuration is needed.
@warren830 — you authored the kiro plugin (#9073, #9076, #9082). Would you be
willing to take this on, or review a migration PR? The plugin talks to real
S3 buckets and IAM Identity Center, which I can't test without a Kiro/AWS
setup, so a run against a real environment by someone who has one would be
essential.
Related issues
- #9192 (Dependabot
go-minor-patchgroup, red because ofSA1019) - PR with the temporary lint exclusion: #9197
- Tracking issue for removing aws-sdk-go v1 from the build: #9196
Additional context
The plugin's unit tests (api, impl, models, tasks) pass with
v1.55.8 from #9192, so this is not urgent breakage — it is about not staying
on an unsupported SDK.
- Ngôn ngữ chính
- Go
- Star
- 3.2k
- Fork
- 819
- Merge trung bình
- 3 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 37
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
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 apache/devlake
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 3 ngày
-
[Bug][Migration] modify refs id length fails on MySQL Group Replication and leaves refs without a primary keyCó thể đã có người làm @tpam28 đã nhận 3 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
apache/devlake#9194 · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
[Bug][jenkins] Incremental collection skips the stages of builds that finish after the next syncCó thể đã có người làm @pballester đã nhận 12 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
apache/devlake#9177 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
[Bug][Jira/DORA] Extra JQL does not isolate projects sharing the same Jira boardCó thể đã có người làm @veetmoradiya3628 đã nhận 19 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
apache/devlake#9151 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
type/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
apache/devlake#9150 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của apache/devlake
Issue tương tự
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
FairwindsOps/nova#484 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
automated-analysis code-quality cookie
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
github/gh-aw#67517 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[otelcol] print-config help text still requires the removed otelcol.printInitialConfig feature gateCó thể đã có người làm @girishkvs đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
open-telemetry/opentelemetry-collector#16143 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue load-balancing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ktrubilo9/edge-proxy#53 ·