Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsupported security scheme type: apikey while running on a Swagger file #216

Closed
I-S-Tech opened this issue Oct 31, 2024 · 4 comments · Fixed by #228
Closed

unsupported security scheme type: apikey while running on a Swagger file #216

I-S-Tech opened this issue Oct 31, 2024 · 4 comments · Fixed by #228
Labels
enhancement New feature or request
Milestone

Comments

@I-S-Tech
Copy link

I-S-Tech commented Oct 31, 2024

When running with my swagger file, I get an error

unsupported security scheme type: apikey

running command

vulnapi scan openapi myswagger.yaml

And having vulnapi installed from .deb package of the releases, and within a docker container.

While I can't post the entire Swagger, feel free to ask any question about it.

Thanks.

@emmanuelgautier emmanuelgautier added the enhancement New feature or request label Nov 7, 2024
@emmanuelgautier
Copy link
Member

Hi @I-S-Tech,

Thank you for reporting this issue! The API key security scheme is not yet supported, but I will work on it soon. Should be included in a next release in the coming weeks.

Could you please provide more details on how the API key is being passed? For example, is it passed as a bearer token in the header or in some other way?

@I-S-Tech
Copy link
Author

I-S-Tech commented Nov 8, 2024

Hi @emmanuelgautier, thanks for the reply !

Thanks for the precision, I look forward to the next release !

For the API key, here are the corresponding lines within the swagger file :

components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

@emmanuelgautier emmanuelgautier added this to the v0.9 milestone Nov 9, 2024
@emmanuelgautier emmanuelgautier linked a pull request Dec 1, 2024 that will close this issue
@emmanuelgautier
Copy link
Member

Hi @I-S-Tech,

The API Key security scheme is now supported in the new release v0.8.4. Please do not hesitate to test it.

@I-S-Tech
Copy link
Author

I-S-Tech commented Dec 5, 2024

@emmanuelgautier
Thanks for the ping, it worked like a charm !

I really like the output style of your tool.

Thank you for the help !

@I-S-Tech I-S-Tech closed this as completed Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants