Consider removing ES256K (secp256k1) support
Maintainer thường phản hồi trong vòng 1 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
- 52/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- go
- Lĩnh vực
- cryptography
Hướng nghiên cứu
Bắt đầu bằng cách kiểm tra crypto/jwx/jwx_es256k.go và crypto/jwx/jwx_es256k_test.go, sau đó xem xét build target trong Makefile cùng các branch và test liên quan đến ES256K trong vdr/didkey/resolver.go, vcr/credential và vcr/pe. Xác nhận xem có consumer đang hoạt động nào yêu cầu path có tag hay không; công việc được xem là hoàn tất khi либо path và các tham chiếu build tag của nó được xóa cùng với việc cập nhật các test liên quan, hoặc các test CI có tag biên dịch và chạy được.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Consider dropping ES256K (secp256k1) support, which is gated behind the jwx_es256k build tag. It appears unused, is not built into the default binary, and carries maintenance cost.
Why
- Opt-in only, likely unused. ES256K is only compiled when building with
-tags jwx_es256k(seeMakefilebuildtarget andcrypto/jwx/jwx_es256k.go). The default binary does not include it. No known deployment enables it. - Untested / rotted. CI only builds with the tag, it never runs tests with it, so
crypto/jwx/jwx_es256k_test.gohas silently rotted:- it lives in
package jwxbut callsParseJWT, which is inpackage crypto(would be an import cycle), - it passes the wrong number of arguments to
ParseJWT, - it signs with a P-256 key (
test.GenerateECKey()) for a secp256k1 algorithm.
The test file has therefore not compiled for a long time and nobody noticed.
- it lives in
- Maintenance cost. It's an extra code path that the jwx v2→v3 migration (#4383 / PR #4391) had to fix separately precisely because it's excluded from the normal build/test, so it's easy to miss.
Options
- Remove ES256K support entirely: delete
crypto/jwx/jwx_es256k.go+_test.go, drop thejwx_es256kbuild tag from the Makefile, and remove thees256k/secp256k1 branches invdr/didkey/resolver.goand the related test cases invcr/credential,vcr/pe,vdr/didkey. - Keep it but make it real: run the tagged tests in CI and fix the rotted test, so it can't silently break again.
Recommendation
Remove it (option 1) unless someone identifies an active consumer. secp256k1 is niche for did:web/IAM (our active focus), and an untested, build-tag-gated code path is a liability.
Context
Surfaced during the jwx v2→v3 migration (PR #4391): the jwa.ES256K constant→function change was missed initially because the file is excluded from the default build. The build is now fixed; the tagged test remains broken and was left as-is pending this decision.
Assisted by AI
- Ngôn ngữ chính
- Go
- Star
- 29
- Fork
- 24
- Merge trung bình
- 2 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 45
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không 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 nuts-foundation/nuts-node
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nuts-foundation/nuts-node#4450 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug discuss
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
nuts-foundation/nuts-node#4436 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
auth bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
nuts-foundation/nuts-node#4435 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nuts-foundation/nuts-node#4321 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
nuts-foundation/nuts-node#4230 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nuts-foundation/nuts-node
Issue tương tự
-
[BUG] deploy.restart_policy without condition drops the restart policyCó thể đã có người làm @akshat-lakhera đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
docker/compose#14383 · 1 bình luận ·
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 65/100
AvengeMedia/dank-greeter#39 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
dokku/dokku-datastore#367 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: ap gateway image build cannot find local policies on WindowsCó thể đã có người làm @Jayzilva đã nhận hôm nay. Đang mởAspect/Configuration Severity/Major
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
wso2/api-platform#3912 ·
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 78/100
Maintainer thường phản hồi trong vòng 2 ngày