Add conformance tests for authorization baseline
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
- 45/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ệ
- typescript
- Lĩnh vực
- authentication, security, testing
Hướng nghiên cứu
Bắt đầu bằng cách xem xét issue liên quan tại https://github.com/modelcontextprotocol/conformance/issues/78 và các yêu cầu ủy quyền được liên kết trong issue này, sau đó xác định các điểm vào hiện có của bài kiểm tra conformance. Công việc được xem là hoàn tất khi các server được bảo vệ từ chối bearer token sai định dạng và không hợp lệ, JWT không có chữ ký hoặc có alg:none, cũng như JWT tự ký.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Similar to https://github.com/modelcontextprotocol/conformance/issues/78 but even simpler, there are a number of baseline expectations that we could check without even needing a mock AS in the mix. A protected server (remote server requiring authorization) MUST always:
- Reject requests with a malformed
Authorizationheader, e.g.Authorization: foo(https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization#token-requirements) - Reject requests with a well-formed
Authorizationheader but a garbage access token, e.g.Authorization: Bearer foo(https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization#token-handling)
And some smoke tests for poor JWT implementations - not all access tokens are JWTs, but they are common enough that these footguns are well-documented:
- Reject requests containing an unsigned JWT (no signature part)
- Reject requests containing a JWT with
alg: "none"(an old trick to get around signature validation, should be rejected by all modern JWT libs) - Reject requests containing a self-signed JWT (the presence of a signature is not enough, it must be signed with a trusted key!)
- Ngôn ngữ chính
- TypeScript
- Star
- 127
- Fork
- 101
- Merge trung bình
- 6 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 7
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 modelcontextprotocol/conformance
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
modelcontextprotocol/conformance#315 · 1 bình luận ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
modelcontextprotocol/conformance#312 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
modelcontextprotocol/conformance#505 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Tất cả issue của modelcontextprotocol/conformance
Issue tương tự
-
comp/dashboard P3 type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
NousResearch/hermes-agent#117722 ·
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
-
code-quality refactoring
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
langchain-ai/deepagents#6450 ·