99designs / 99designs/http-signatures-php

Key rotation: Verifier should support N keys

オープン
#18 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。