-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of json for policy in authz without a protobuf alternative is obtuse #136
Comments
Is it the case that we want to support 2 possible policy languages (json/proto) or to support 1, but have 'many' input options (with a proto -> json conversion cleanly supported in tooling)? (at some point I thought: "proto3 text format is json" - though I admit to always looking at json with 'skepticism'...) |
IMHO, support 1 format - protobuf. json inside protobuf seems unnecessarily kinky. But, I do not think this is my decision and there is clearly some precedence here with the origin of authz. |
I think the discussion in #99 ended up with: "Hey, the gRPC base level code, for reaosns, expects JSON for this, so this service is just implementing that wish." I dislike json for a ton of reasons, but.... I don't know that we get to change this implementation bit here. |
Ja; I understand that the server code has implemented json. I think that that is its sloppy problem. :) For consistency, it should convert protobuf to json, if it insists upon using json. Some quick searching implies that there are ways to translate protobuf to json, though I do not know how well that works nor if it is specific to java nor if it works in the reverse. Worth investigating if there is interest in supporting proto instead of json. Just IMO. |
Use of json for policy in authz without a protobuf alternative is obtuse. Why use json at all? And, why not offer a native protobuf alternative?
Use of JSON seems inconsistent and unnecessary. If the server wishes to use JSON internally, that is its prerogative, but should not be part of the API, or the user should have the option of using either.
My suggestion is that at the very least, a native protobuf version should be supported. This is not my call though; @tomek-US probably needs to decide this.
This is a split of issues/99; #99 (comment)
The text was updated successfully, but these errors were encountered: