Skip to content

fix: fixed validation of ignore secruity check.#297

Merged
shivaygupta-dotcom merged 1 commit into
mainfrom
fix/oidc-ignore-security
Jun 11, 2026
Merged

fix: fixed validation of ignore secruity check.#297
shivaygupta-dotcom merged 1 commit into
mainfrom
fix/oidc-ignore-security

Conversation

@shivaygupta-dotcom

@shivaygupta-dotcom shivaygupta-dotcom commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

GH: Kong/deck#2101

Fixes openapi2kong behavior where --ignore-security-errors incorrectly skipped valid OIDC plugin generation.

Updated getOIDCdefaults so the ignore flag only suppresses unsupported security errors (OR/AND logic, missing scheme, non-OIDC), while still processing valid openIdConnect requirements.

Added regression tests (including mixed supported/unsupported cases) to ensure valid OIDC plugins are generated and invalid security configs are safely ignored.

@shivaygupta-dotcom

Copy link
Copy Markdown
Contributor Author

Creating this new PR, because PR opened by customer doesn't contains proper test cases for expected scenarios.

@shivaygupta-dotcom shivaygupta-dotcom marked this pull request as ready for review June 8, 2026 11:44
@shivaygupta-dotcom

Copy link
Copy Markdown
Contributor Author

@Prashansa-K bumping this up for review.

@shivaygupta-dotcom shivaygupta-dotcom merged commit 45eb93d into main Jun 11, 2026
10 checks passed
@shivaygupta-dotcom shivaygupta-dotcom deleted the fix/oidc-ignore-security branch June 11, 2026 09:58
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

Successfully merging this pull request may close these issues.

2 participants