feat(howto): FT170 Request Deduplication + クラッカー攻撃試験 ATK-01〜12#850
Merged
Conversation
- docs/howto/request-deduplication.md を新規追加(Idempotency-Key パターン・TTL・replayed フラグ・ctype_digit 型検証) - クラッカー攻撃試験 ATK-01〜12 全 Pass(../NENE2-FT/deduplog/tests/Dedup/AttackTest.php) - ATK-02 で発見: PHP (int) キャストが文字列注入を無視 → ctype_digit 検証で修正 - docs/todo/current.md を v1.5.104 に更新、FT170 完了・FTループ全完了 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/howto/request-deduplication.md新規追加 — Idempotency-Key 必須パターン・24h TTL・replayed フラグ・ctype_digit 型検証../NENE2-FT/deduplog/実装: 24 tests / 57 assertions (DedupTest 12 + AttackTest 12)(int)キャストが"100; DROP TABLE …"を100として処理 →ctype_digit()チェックで修正済みTest plan
php8.4 vendor/bin/phpunit --testdox→ 24 tests OKphp8.4 vendor/bin/phpstan analyse --level=8 src tests→ No errorsphp8.4 vendor/bin/php-cs-fixer fix→ No changes neededRelated
Closes #849
Self-review: backend-api, middleware-security
FT157〜FT170 全ループ完了 🎉
🤖 Generated with Claude Code