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

data.snyk_issues data source in snyk plugin #68

Closed
traut opened this issue Feb 3, 2024 · 0 comments
Closed

data.snyk_issues data source in snyk plugin #68

traut opened this issue Feb 3, 2024 · 0 comments
Assignees
Milestone

Comments

@traut
Copy link
Member

traut commented Feb 3, 2024

Description

Snyk is a popular solution for vulnerabilities detection in the code and the applications. Issues created by Snyk should be tracked in the scope of the cyber security practice.

Use Case

Snyk API provides two endpoint for fetching the issues -- per group and per organization:

  • /groups/{group_id}/issues endpoint (docs)
  • /orgs/{org_id}/issues endpoint (docs)

Requirements

  • configuration:
    • api_key - a required string attribute
  • parameters:
    • project_id - (optional) a string attribute, must be an UUID
    • group_id - (optional) a string attribute, must be an UUID
    • scan_item_id -- (optional) a string attribute
    • scan_item.type -- (optional) a string attribute. Supported values are project and environment
    • type -- (optional) a string attribute. Supported values are package_vulnerability, license, cloud, code, custom, config.
    • updated_before -- (optional) a string attribute
    • updated_after -- (optional) a string attribute
    • created_before -- (optional) a string attribute
    • created_after -- (optional) a string attribute
    • effective_severity_level -- (optional) a string attribute. Supported values are: info, low, medium, high and critical
    • status -- (optional) an array of strings. Supported array values are open and resolved
    • ignored -- (optional) a boolean attribute
    • limit -- (optional) an int attribute
  • constraints:
    • either project_id or group_id attribute must be set

Immutable query parameters:

  • version is at least to 2024-01-23

The plugin takes care of pagination according to limit value that limits the number of overall results (not per page!).
The plugin returns the list of issues, concatenated over multiple pages.

Additional Information

@traut traut added the plugins label Feb 3, 2024
@traut traut added this to the v0.4 milestone Feb 3, 2024
@traut traut changed the title data.snyk_issues plugin data.snyk_issues data source in snyk plugin Mar 18, 2024
@dobarx dobarx self-assigned this Mar 29, 2024
@dobarx dobarx mentioned this issue Apr 19, 2024
@dobarx dobarx closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants