Crypto-Agility update: ECDSA, ML-DSA, SLH-DSA signature verification
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- php
- 領域
- cryptography
調査の方向性
The issue mentions metarefresh 1.3.1 and simpleSAMLphp 2.5.3.1 but no specific files. Start by locating the signature verification logic in the metarefresh module's PHP source, currently handling only RSA. Done means the ECDSA, ML-DSA and SLH-DSA metadata sources validate without the 'Could not validate signature' error.
索引モデルが issue の本文から書いたものです。
説明
Our federation publishes metadata with four algorithms simultaneously: RSA, ECDSA, ML-DSA, SLH-DSA (the latter two being PQC algorithms for future quantum readiness).
metarefresh currently appears to understand exclusively RSA, judging from the failing signature validation for the other three variants:
10:53:14.176Z [metarefresh]: Executing set [eduID-LU]
10:53:14.178Z [metarefresh]: In set [eduID-LU] loading source [http://www.eduid.lu/metadata/upstream-rsa.xml]
10:53:14.412Z Found 28 entities
10:53:22.006Z Writing: /export/hosting/restena/clueless/private/deploy-test/simplesamlphp-2.5.3.1/metadata/metadata-eduID-LU/saml20-sp-remote.php
10:53:23.210Z [metarefresh]: Executing set [eduID-LU-ECDSA]
10:53:23.228Z [metarefresh]: In set [eduID-LU-ECDSA] loading source [http://www.eduid.lu/metadata/upstream-ecdsa.xml]
10:53:23.428Z Could not validate signature
10:53:23.428Z Skipping "https://clueless.restena.lu/simplesaml_dev/saml2/idp/metadata.php" - could not verify signature using certificate.
[...]
10:53:23.440Z Found 28 entities
10:53:23.441Z [metarefresh]: Executing set [eduID-LU-MLDSA]
10:53:23.441Z [metarefresh]: In set [eduID-LU-MLDSA] loading source [http://www.eduid.lu/metadata/upstream-mldsa.xml]
10:53:23.593Z Could not validate signature
10:53:23.593Z Skipping "https://clueless.restena.lu/simplesaml_dev/saml2/idp/metadata.php" - could not verify signature using certificate.
[...]
10:53:23.607Z Found 28 entities
10:53:23.607Z [metarefresh]: Executing set [eduID-LU-SLHDSA]
10:53:23.608Z [metarefresh]: In set [eduID-LU-SLHDSA] loading source [http://www.eduid.lu/metadata/upstream-slhdsa.xml]
[...]
10:53:23.787Z Found 28 entities
The config points to the respective signing certificates as per config below. eduGAIN is able to validate these files with an independent implementation so the files and signing certs are known good.
This is happening on simpleSAMLphp 2.5.3.1 and metarefresh 1.3.1.
'sets' => [
'eduID-LU' => [
'cron' => ['daily'],
'sources' => [
[
'types' => ['saml20-sp-remote'],
'src' => 'http://www.eduid.lu/metadata/upstream-rsa.xml',
'certificates' => [ 'eduID-rsa.pubcert', ]
],
],
'expireAfter' => 60*60*24*365, // Maximum 365 days cache time.
'outputDir' => 'metadata/metadata-eduID-LU/',
'outputFormat' => 'flatfile',
],
'eduID-LU-ECDSA' => [
'cron' => ['daily'],
'sources' => [
[
'types' => ['saml20-sp-remote'],
'src' => 'http://www.eduid.lu/metadata/upstream-ecdsa.xml',
'certificates' => [ 'eduID-ecdsa.pubcert', ]
],
],
'expireAfter' => 60*60*24*365, // Maximum 365 days cache time.
'outputDir' => 'metadata/metadata-eduID-LU-ECDSA/',
'outputFormat' => 'flatfile',
],
'eduID-LU-MLDSA' => [
'cron' => ['daily'],
'sources' => [
[
'types' => ['saml20-sp-remote'],
'src' => 'http://www.eduid.lu/metadata/upstream-mldsa.xml',
'certificates' => [ 'eduID-mldsa.pubcert', ]
],
],
'expireAfter' => 60*60*24*365, // Maximum 365 days cache time.
'outputDir' => 'metadata/metadata-eduID-LU-MLDSA/',
'outputFormat' => 'flatfile',
],
'eduID-LU-SLHDSA' => [
'cron' => ['daily'],
'sources' => [
[
'types' => ['saml20-sp-remote'],
'src' => 'http://www.eduid.lu/metadata/upstream-slhdsa.xml',
'certificates' => [ 'eduID-slhdsa.pubcert', ]
],
],
'expireAfter' => 60*60*24*365, // Maximum 365 days cache time.
'outputDir' => 'metadata/metadata-eduID-LU-SLHDSA/',
'outputFormat' => 'flatfile',
],
- 主要言語
- PHP
- スター
- 9
- フォーク
- 19
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
simplesamlphp/simplesamlphp-module-metarefresh のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
simplesamlphp/simplesamlphp-module-metarefresh#51 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 42/100
simplesamlphp/simplesamlphp-module-metarefresh#47 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
simplesamlphp/simplesamlphp-module-metarefresh#1 · コメント 3 件 ·
simplesamlphp/simplesamlphp-module-metarefresh の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
Adyen/adyen-magento2#3453 ·
メンテナーはふだん 8 日以内に返信
-
component/media domain/discovery
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
simplesamlphp/simplesamlphp#2695 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信