Skip to content
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

Add utility functions to load policies/schemas from files #32

Open
charithe opened this issue Jul 11, 2023 · 2 comments
Open

Add utility functions to load policies/schemas from files #32

charithe opened this issue Jul 11, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@charithe
Copy link
Contributor

Add utility functions to enable users to read policies or schemas from YAML or JSON files/strings and load them using the Admin API.

@charithe charithe added the enhancement New feature or request label Jul 11, 2023
@haines
Copy link
Member

haines commented Jul 11, 2023

I wonder if implementing this client-side might cause headaches with different languages' YAML handling. What if we added RPCs so that we can send the raw file contents and let the server handle the parsing?

@charithe
Copy link
Contributor Author

The other SDKs use the protobuf JSON handling functions for this. I'd expect them to be consistent across languages (at least for the languages Google officially supports).

Not opposed to adding a new RPC to handle raw files but I feel like we'd make the API complicated by having two ways to do things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants