99designs / 99designs/http-signatures-ruby

Key rotation: Verifier should support N keys.

未关闭
#10 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Ruby
星标
21
派生
22
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

这个仓库没有索引到贡献指南

调研方向

Look at the verifier class and its key management. The issue suggests modifying the verifier to accept an array of keys per ID, using the first for signing and all for verification. Start by reading the existing signing and verification logic to understand the current key interface. Determine how to adjust the API to support multiple keys without breaking existing usage. Check for any existing tests around verification to update.

由索引模型根据 Issue 内容生成。

评估

技术栈
ruby
领域
backend-api-design, security
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。