99designs / 99designs/http-signatures-php

Key rotation: Verifier should support N keys

未关闭
#18 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
46
派生
35
PR 合并指标
30 天内没有已合并 PR

描述

_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?

贡献指南

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

调研方向

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.

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

评估

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

把新 issue 发到你的邮箱

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