imperva / imperva/incapsula-cli
add support for delivery_rules.RewriteResponse objects
- Dominant language
- Python
- Stars
- 33
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Currently, when running `incap site list_incaprule `,
rules with the following action types are completely missing from all output.
- "action": "RULE_ACTION_RESPONSE_DELETE_HEADER"
- "action": "RULE_ACTION_RESPONSE_REWRITE_HEADER"
and possibly others?
Values are from APIv1 output `/api/prov/v1/sites/incapRules/list`, as well as listed here:
- https://docs.imperva.com/bundle/cloud-application-security/page/api/sites-api.htm#possible_action_parameter_values_for_delivery_rules:
Contributor guide
Research direction
Start with the `incap site list_incaprule ` command and inspect how results from `/api/prov/v1/sites/incapRules/list` are converted into output. Confirm how `RULE_ACTION_RESPONSE_DELETE_HEADER` and `RULE_ACTION_RESPONSE_REWRITE_HEADER` rules are currently handled, then verify that these rules appear in the command output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100