Algorithms for HTTP message signatures
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- ドキュメント
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
調査の方向性
まず、FAPI 2.0 Message Signing specification を RFC 9421 および FAPI 2.0 Security Profile の Section 5.4 と併せて読みます。JWK alg values を必須にすべきか、また HTTP message signatures で列挙された algorithm restrictions を使用すべきかを判断します。仕様に決定された要件が明確に記録されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Originally submitted by Takahiko Kawasaki (Takahiko Kawasaki) on 2024-10-07
There are two topics: one is how to identify the algorithm of a given HTTP message signature, and the other is whether to impose restrictions on the algorithms.
How to identify the algorithm
Even if a key can be identified in a vendor-neutral manner by using the keyid parameter (ISSUE 721), the verifier must be able to determine the algorithm for verification. Since JWTs always include the alg parameter (RFC 7518 Section 3.1), identifying the algorithm is straightforward. However, HTTP message signatures do not always provide information about the algorithm.
The alg parameter (RFC 9421 Section 2.3) in the signature metadata appears to be usable, but Section 3.3.7. JSON Web Signature (JWS) Algorithm of RFC 9421 explicitly states the following:
JSON Web Algorithm (JWA) values from the "JSON Web Signature and Encryption Algorithms" registry are not included as signature parameters. Typically, the JWS algorithm can be signaled using JSON Web Keys (JWKs) or other mechanisms common to JOSE implementations. In fact, JWA values are not registered in the "HTTP Signature Algorithms" registry (Section 6.2), and so the explicit
algsignature parameter is not used at all when using JOSE signing algorithms.
This excerpted paragraph above implies that, when the key is represented as a JWK, the alg parameter (RFC 7517 Section 4.4) within the JWK should be referenced. However, the parameter is optional. Therefore, in practice, it is necessary to require the alg parameter within the JWK to be mandatory when the key is represented as a JWK. It may be worth mentioning this in the FAPI 2.0 Message Signing specification. Otherwise, client applications may register their public keys in JWK format without the alg parameter, leading to failed verification of HTTP message signatures. As a result, resource server providers will have to spend time instructing client application developers to include the alg parameter when registering JWKs.
Whether to impose restrictons on the algorithm
It should be explicitly stated that the algorithms for HTTP message signatures are restricted to those listed in Section 5.4. Cryptography and Secrets of the FAPI 2.0 Security Profile, if we intend to apply the same restrictions to them.
This is a minor detail, but the FAPI 2.0 Security Profile states “when creating or processing JWTs.” However, the format of HTTP message signatures is not JWT. Therefore, unless explicitly required, the algorithm restrictions stated in the FAPI 2.0 Security Profile do not apply to HTTP message signatures.
Of course, it is also possible to decide not to impose such restrictions on the signature algorithms for HTTP message signatures.
Bitbucket status: open
Bitbucket origin: issue 722
- 主要言語
- HTML
- スター
- 4
- フォーク
- 3
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openid/fapi のほかの issue
-
component: FAPI 1: Advanced migrated-from-bitbucket priority: major type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
migrated-from-bitbucket priority: trivial type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
component: Certification component: FAPI2: Advanced Authorization
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
component: Certification component: FAPI2: Security Profile
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
似ている issue
-
Platform Platform Reconnect Platform Virtual Map
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
hiero-ledger/hiero-consensus-node#27313 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
branch: 4.1 branch: master help wanted triaged: bug waiting-for: contributor response
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
chinabugotech/hutool#4326 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
w3c/vc-di-quantum-resistant#44 · リアクション 1 件 ·