-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Support nested JSON objects throughout in API POST/PUT values #3795
Comments
@jgiles In the Okta example, the field However, this was the earlier way of handling a list input over the API. There was a new type that was introduced at a later time which handles this better (its As for the input for policies, the parsing of the input is performed by the |
Expanding on what Vishal said, a lot of Vault backends were built up at different times by different people and with the core supporting different features. At times as we go through and enhance backends with bug fixes or features we'll update them to newer practices, or we will do so as a result of specific issues/requests. I'm going to close this as a meta-issue, though -- please open issues for specific enhancement requests and we can figure out when/what milestones they should go on. |
Feature Request: Support nested JSON objects throughout in API POST/PUT values
Environment:
Vault Config File:
Running
-dev
with default config.Startup Log Output:
Expected Behavior:
Actual Behavior:
{ "string_key": "string_serialized_value"... }
Steps to Reproduce:
In summary, it seems like the API has made inconsistent decisions about how to treat complex nested values. As an API consumer, I would like to consistently construct, read and write JSON across the board, without the need for serializing nested values into strings.
As an aside, determining the proper JSON to use for policies was non-trivial - the output of
json2hcl --reverse
on the example HCL policy input did not work (it added extra list layers, and caused errors like{"errors":["Failed to parse policy: 1 error occurred:\n\n* path \"path\": invalid key 'postgresql/creds/readonly' on line 1"]}
)References:
Confusion over posting policies: #582
The text was updated successfully, but these errors were encountered: