Commit eeaf3e4
committed
fix: add global security definition to OpenAPI spec (Checkov CKV_OPENAPI_4/5)
Add top-level `security` field to swagger.json and swagger.yaml referencing
both `ApiKeyAuth` and `OIDCAuth`, making the default auth posture explicit.
Override with empty `security: []` on the intentionally unauthenticated
`/healthz` and `/readyz` probe endpoints.
https://claude.ai/code/session_019MwPKHBP2JU8AZN1roUhQQ1 parent 201a67b commit eeaf3e4
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
| 625 | + | |
625 | 626 | | |
626 | 627 | | |
627 | 628 | | |
| |||
641 | 642 | | |
642 | 643 | | |
643 | 644 | | |
| 645 | + | |
644 | 646 | | |
645 | 647 | | |
646 | 648 | | |
| |||
1040 | 1042 | | |
1041 | 1043 | | |
1042 | 1044 | | |
1043 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1044 | 1050 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
636 | 637 | | |
637 | 638 | | |
638 | 639 | | |
| |||
647 | 648 | | |
648 | 649 | | |
649 | 650 | | |
| 651 | + | |
650 | 652 | | |
651 | 653 | | |
652 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
653 | 658 | | |
654 | 659 | | |
655 | 660 | | |
| |||
0 commit comments