Conversation
Signed-off-by: Dwi Siswanto <git@dw1.io>
Signed-off-by: Dwi Siswanto <git@dw1.io>
Signed-off-by: Dwi Siswanto <git@dw1.io>
WalkthroughA new method for variable evaluation within rule strings is introduced and integrated into the rule compilation process, ensuring variables in keys and regex patterns are resolved before use. Comprehensive tests verify correct variable handling. Minor logging and error message formatting changes are also applied to the HTTP request fuzzing logic. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Rule
participant ExecutorOptions
participant PayloadGenerator
User->>Rule: Compile(generator, options)
Rule->>Rule: evaluateVars(Keys, KeysRegex, ValuesRegex, ReplaceRegex)
Rule->>ExecutorOptions: Access variables/constants/options
Rule->>Rule: Substitute variables in strings
Rule-->>User: Compiled rule or error
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~15 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes found. Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (3)pkg/protocols/http/request_fuzz.go (1)Learnt from: dwisiswant0 pkg/fuzz/fuzz_test.go (2)Learnt from: hdm Learnt from: hdm pkg/fuzz/execute.go (1)Learnt from: hdm ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (19)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Proposed changes
Closes #6333
Proof
Template:
Result:
Tests:
Checklist
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Style