imperva / imperva/incapsula-cli

add support for delivery_rules.RewriteResponse objects

Open
#13 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.