Files
zooqueenandHanzo Dev dd65af7999 openapi: a security scheme the document never defines is not a crash
hanzo.yaml's iam_ApiController.GetWebhooks requires `test_apiKey`;
components.securitySchemes defines bearerAuth, BearerAuth, oauth2, apiKey,
serviceKey and s3Auth, and not that. Every consumer looks the id up and then
reads a property of it — schemes[id].deprecated in useAuthInputs, again in
SecurityRequirement — so one line of a 58k-line document threw "Cannot read
properties of undefined" out of a prerendered page and ended the whole export
at 1510/6041 pages.

parseSecurities is where a requirement becomes entries, so it is where the
document stops being untrusted input: drop ids the document does not define,
name the operation and the scheme in the warning, and nothing downstream has to
re-check. An undefined scheme carries no credential to render or send, so
dropping it is also what it means.

The document bug is real and still wants fixing in hanzoai/openapi — this only
stops it costing the site.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-31 20:26:22 -07:00
..
2025-12-16 22:21:16 +08:00
2024-08-06 00:16:10 +08:00
2026-03-04 22:24:19 +08:00
2026-04-04 22:42:40 +08:00