imperva / imperva/incapsula-cli
Authentication problem using arguments --api_id and --api_key
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 33
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Hi!
I've been trying to use incap cli for some pipeline automation.
I am trying to use the args instead of the config command to pass the id and key without the config.ini file being created to not store any credentials in the agent.
However, for some reason I am getting unrecognised arguments when using the following command
incap site list --api_id "value of my api id" --api_key "value of my api key"
ERROR:
unrecognized arguments: --api_id "value of my api id" --api_key "value of my api key"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the argument parsing and authentication setup used by the `site list` entry point, then compare its accepted options with the documented command syntax. Verify whether `--api_id` and `--api_key` are supported without creating `config.ini`; done means the command accepts both arguments and completes authentication without the configuration file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100