mirror of
https://github.com/Kong/insomnia.git
synced 2026-11-02 11:05:33 -05:00
Add the encrypted() mark and getEncryptedFieldPaths(), which derives the encrypted field paths from a Zod model schema with an exhaustive walk over the Zod node kinds (unknown kinds and unaddressable marks throw instead of being skipped). getEncryptedFieldPathsByType() / getEncryptedFieldPathsForType() build the path table for every model type. Mark the sensitive fields of Request (and the schemas that share its authentication: RequestGroup, WebSocketRequest, SocketIORequest, McpRequest), CookieJar and GrpcRequest, and add temporary encryptedFields arrays for ClientCertificate, CloudCredential, GitCredentials, OAuth2Token and RequestVersion until they move to Zod. The hook path walker supports arrays of arrays, and the read hook logs failures after parsing without logging the line. Update the design doc to match the implementation. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>