You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would need to remove the write only values from the GET to ensure they were not persisted in state
I think this should not happen. According to ARM guideline, the GET response should not return any credentials. If it happens, we should report it as a security bug.
Conflict resolution - if values specified in body & body_write_only
It seems to be a user input error? We can validate and show users error messages.
Could this also work with the regular body and a separate write_only_refs = [ "properties.myWriteOnlyVal" ] field?
I don't think so. Because azapi_resource exposes the body as a dynamic attribute, and the write-only attribute only applied to one attribute, it can't applied to part of the attribute. But actually I also prefer this design, the user experience is much better and users don't need to pay attention to splitting the input to body and write-only-body.
I am proposing a way to support write-only attributes in
azapi_resource
Proposal
The provider would merge the write-only body with the body to create the PUT request.
So the resultant body would look like:
Considerations
Thoughts?
The text was updated successfully, but these errors were encountered: