Open EthanStrider opened 4 years ago
Pinging @elastic/kibana-security (Team:Security)
Thank you for contributing to this issue, however, we are closing this issue due to inactivity as part of a backlog grooming effort. If you believe this feature/bug should still be considered, please reopen with a comment.
I just stumbled across this issue.
We cannot just GET the roles and then PUT them as the following JSON fields are unsupported by PUT but returned by GET: "_transform_error": [], "_unrecognized_applications": [] "name":"role-name" "transient_metadata": { "enabled": true },
@legrego Could we reopen this please?
Describe the feature:
Right now, if you use the Kibana Role API to export a role, it outputs a format that is not immediately ingestable by the same Kibana Role API.
In other words, it you do a
GET
on the API, you cannot use the resulting JSON to do aPUT
. The outputted role (json) requires manual adjustments.Specifically, you have to manually remove the following keys:
name
,transient_metadata
,transform_error
andunrecognized_applications
.Example error from curl
PUT
command:The API should either output in a format that is immediately ingestable, or it should ignore any unnecessary fields that are included in default output.
@kobelb Thanks for the help!