Before submitting#
Area#
apps/server
Steps to reproduce#
- Start a server environment that accepts DPoP-authenticated requests.
- Send valid DPoP requests with unique
jti values.
- Inspect the configured secrets directory after each request.
- Separately, submit a token exchange with a valid DPoP proof and an invalid bootstrap credential.
Expected behavior#
Replay state should remain atomic while being retained only for the proof acceptance window. A token exchange should validate its bootstrap credential before writing replay state.
Actual behavior#
Each accepted proof creates a permanent dpop-proof-<digest>.bin file in the general secrets directory. Normal authenticated traffic adds one file per request, and no cleanup removes them. The token exchange path also records a valid proof before rejecting an invalid bootstrap credential, allowing file creation and fsync work without a usable credential.
Impact#
Major degradation over long-running or high-traffic server lifetimes due to unbounded file and inode growth. The finding affects availability and reliability; no credential disclosure was identified.
Version or commit#
main at 7963ac740
Investigation#
Daybreak Blue confirmed the persistent allocation path and found that replay markers could also be lost across a partial bucket-boundary claim if writes were ordered incorrectly. Fable independently confirmed that normal DPoP traffic reproduces the unbounded growth and recommended a focused reliability fix with bounded, dedicated replay storage and credential preflight.
Proposed fix: #8845