99designs / 99designs/http-signatures-php
Key rotation: Verifier should support N keys
- Ngôn ngữ chính
- PHP
- Star
- 46
- Fork
- 35
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
_Copied from https://github.com/99designs/http-signatures-ruby/issues/10_
---
Currently key rotation is difficult; the verifier needs to start verifying with the new key at the same moment the new key is used by the signer. In a high-traffic environment this can be near impossible without dropping requests.
It should be possible to pass multiple keys to the verifier, so that both old and new keys can be accepted for a period of time. Either N keys, or a static limit of two keys (current and previous) would work.
This could be represented by passing an array of keys per ID; using the first for signing, and using all of them for verification. Or… something else?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Look at the Verifier class to understand how it currently handles a single key. The change involves modifying it to accept an array of keys per key ID, likely in the constructor or verification method. Check existing tests for verification to see how to adapt them for multiple keys. 'Done' means the verifier can successfully verify signatures using any of the provided keys for a given ID.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- php
- Lĩnh vực
- backend-api-design, security
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100