Crypto-Agility update: ECDSA, ML-DSA, SLH-DSA signature validation
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 12/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- php
- 領域
- cryptography, security
研究方向
The payload names no xml-security source files or tests, so the entry point is the failing case: the metarefresh log shows 'Could not validate signature' for the ECDSA, ML-DSA and SLH-DSA metadata sources, while RSA succeeds. Start by reproducing one ECDSA signature check with the eduID-ecdsa.pubcert certificate, then see which signature algorithms the library accepts. Done would mean all four published variants validate, which needs cryptography design decisions and is not a first-timer task.
由索引模型根據 Issue 內容生成。
描述
This feature request relates to the use of the library in simplesamlphp-module-metarefresh - see issue there: https://github.com/simplesamlphp/simplesamlphp-module-metarefresh/issues/80#issuecomment-6532020547
Our federation publishes metadata with four algorithms simultaneously: RSA, ECDSA, ML-DSA, SLH-DSA (the latter two being PQC algorithms for future quantum readiness).
xml-security currently appears to understand exclusively RSA, judging from the failing signature validation for the other three variants in the metarefresh module:
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
- 星號
- 3
- 分支
- 4
- 平均合併
- 6 天 17 小時
- 30 天內合併 PR
- 3
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
simplesamlphp/xml-security 的其他 Issue
-
難度 5/5 一週以上 新手友好度 25/100
查看 simplesamlphp/xml-security 的全部 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 天內回覆