[P2][auth] SIWE Chain ID: 1 하드코딩을 설정/검증 가능한 값으로 분리 #43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
문제
auth/siwe.rs::build_register_message()에서 SIWE message의 chain id가Chain ID: 1로 하드코딩되어 있습니다.현재 registration 검증은 서버가 저장한 message exact match와 address signature recovery에 의존하므로 chain id 자체를 별도 정책값으로 다루지 않습니다.
영향
제안
siwe_chain_id또는 auth policy 설정 추가1유지완료 기준
Chain ID: 1과 호환검토 기준:
portal-relaySIWE registration flow 정적 리뷰. 관련 코드:crates/portal-relay/src/auth/siwe.rs,crates/portal-relay/src/relay/leases.rs,crates/portal-relay/src/api/mod.rs.검토했지만 이번 범위에서는 수용하지 않습니다. Chain ID: 1은 현재 서버 생성 challenge의 호환 문자열 일부이고 별도 chain authorization 정책으로 사용되지 않습니다. 설정화는 multi-chain auth policy를 새로 도입하는 일이라 현재 upstream v2.1.9 compatibility 범위를 넘고, 기본 동작 회귀 위험이 있어 닫습니다.