imperva / imperva/incapsula-cli

Authentication problem using arguments --api_id and --api_key

Open
#28 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.