-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
86242: eventpb: allow encoding of zero values r=knz a=nicktrav Currently, the JSON encoder unconditionally elides zero values, due the presence of a `if m.{{.FieldName}} != 0 {` rule in the template. There are situations where a zero value should still be emitted, despite it being the default value. Update the encoder to use the absence of the `omitempty` proto annotation as an indication that a zero value should be emitted. Boolean, string, and numerical native types take this annotation into account. Release note: None. Release justification: Low risk, high benefit changes to existing functionality. 86417: server: disable security on /api/v2/ when running insecure r=knz a=dhartunian Previously, the session validation log in `/api/v2/` would still run even when the cluster was running in "insecure" mode. This made it cumbersome to test new features while developing, and also caused new challenges when developing DB Console features that use `/api/v2/` endpoints. Now, when the cluster has the insecure flag set to true, web session check failures won't cause failures on endpoints and the session username will be set to "root" automatically in the context. Release note (security update): HTTP API endpoints under the `/api/v2/` prefix, will allow requests through when the cluster is running in "insecure" mode. When the cluster is running in "insecure" mode requests to these endpoints will have the username set to "root". Release justification: low-risk high-benefit change to existing functionality. Co-authored-by: Nick Travers <[email protected]> Co-authored-by: David Hartunian <[email protected]>
- Loading branch information
Showing
4 changed files
with
148 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters