Skip to content

Conversation

@cx-artur-ribeiro
Copy link
Contributor

@cx-artur-ribeiro cx-artur-ribeiro commented Jul 20, 2025

Closes #7574

Reason for Proposed Changes

  • Queries using override metadata (like OpenAPI V2) were missing documentation pages;
  • The --exclude-queries flag didn’t work for logical override IDs.

Proposed Changes

  • Generate documentation pages for each override variant (e.g., V2 and V3);
  • Update filtering to support exclusion by resolved override query IDs.

Example Fix OpenAPI results exclusion

Results before fix:
Command ran: go run cmd\console\main.go scan -p "teste/kics_issue_002.json" -d "teste/oom_payload.json" -o "teste" --output-name "oom_results.json" -v --exclude-queries "6e96ed39-bf45-4089-99ba-f1fe7cf6966f,586abcee-9653-462d-ad7b-2638a32bd6e6,74703c89-0ea2-49ab-a7db-bf04f19f5a57"

openAPI_V2_Queries_Bug_001.mp4

Results After Fix:
Command ran: go run cmd\console\main.go scan -p "teste/kics_issue_002.json" -d "teste/oom_payload.json" -o "teste" --output-name "oom_results.json" -v --exclude-queries "6e96ed39-bf45-4089-99ba-f1fe7cf6966f,e3f026e8-fdb4-4d5a-bcfd-bd94452073fe,586abcee-9653-462d-ad7b-2638a32bd6e6,74703c89-0ea2-49ab-a7db-bf04f19f5a57"

image

Documentation Page Generation and Query Details Missing
Before Fix:
image

image

After Fix:
image

image

I submit this contribution under the Apache-2.0 license.

@cx-artur-ribeiro cx-artur-ribeiro self-assigned this Jul 20, 2025
@github-actions github-actions bot added query New query feature openapi OpenAPI query labels Jul 20, 2025
@github-actions
Copy link
Contributor

kics-logo

KICS version: v2.1.11

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 0
MEDIUM MEDIUM 0
LOW LOW 0
INFO INFO 0
TRACE TRACE 0
TOTAL TOTAL 0
Metric Values
Files scanned placeholder 1
Files parsed placeholder 1
Files failed to scan placeholder 0
Total executed queries placeholder 47
Queries failed to execute placeholder 0
Execution time placeholder 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

openapi OpenAPI query query New query feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(query): some openapi queries cannot be excluded from the report

1 participant