tenable/integration-jira-cloud

Config issue new integration version

kmplngj opened this issue · 2 comments

Hello,

thanks for the rewrite!

I try to get new version running. I installed it in a Conda 3.12 environment, copied the config template and added my tenable/jira keys/tokens.

When I now run the validate I get an error I don't unterstand.

Details
❯ tenb2jira validate ./config.toml                                                                                                                                                                                                                                                                             (jira-tenable)
tenable.platform: Input should be 'tvm' or 'tsc'
'tvm'
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /opt/homebrew/Caskroom/miniconda/base/envs/jira-tenable/lib/python3.12/site-packages/tenb2jira/c │
│ li.py:95 in validate                                                                             │
│                                                                                                  │
│    92 │   errors = validator.validate(config)                                                    │
│    93 │   if errors:                                                                             │
│    94 │   │   for error in errors:                                                               │
│ ❱  95 │   │   │   location = '.'.join(error.get('loc', []))                                      │
│    96 │   │   │   data = tomlkit.dumps(error.get('input'))                                       │
│    97 │   │   │   console.print(f'{location}: {error.get("msg")}')                               │
│    98 │   │   │   console.print(data)                                                            │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │     config = {'tenable': {'platform': 'tvm', 'access_key':

What could be wrong in my config or is this a problem with the validator?

Thanks
Jan

It appears it's not properly handling the situations where there is a limited number of valid choices. looking into it.

Found the issue & corrected it. 2.0.1 should be out later today with the fixes.