[P0][DoS] challenge/lease/UDP flow/session map에 cap 및 rate limit 추가 #24
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?
문제
여러 runtime map/queue가 메모리에 쌓일 수 있지만 생성 rate limit, per-IP cap, global cap이 부족합니다.
대표 대상:
LeaseRegistryInner.challengesLeaseRegistryInner.leasesLeaseRegistryInner.hop_routesUdpDatagramState.flow_tableRelayStream.readyqueue 및 reverse session 관련 상태특히 registration challenge는 누구나 만들 수 있고 TTL janitor가 있더라도 생성 속도를 막지 못합니다.
위험
제안
완료 기준
검토 기준: 업로드된 Rust
portal-relay코드 정적 리뷰. 리뷰 환경에서는cargo check/test/clippy를 실행하지 못했습니다.수용했습니다. PR #62에서 challenge global/per-IP cap, active lease cap, hop route cap, UDP flow table cap, admin session cap을 추가했습니다. 기존 ready queue cap과 함께 메모리 증가 경로를 bounded하게 만들었습니다. 검증: cargo test --locked, cargo clippy --locked --all-targets -- -D warnings.