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
The OpenSearch.openapi.json currently contains some issues related to /_plugins/_security/api and the component schemes they reference.
Most of the GET requests like for roles, internalusers, actiongroups and tenants return the keys hidden, reserved and static which is represented in the schemes. The same schemes are used for the PUT request but those keys are not valid for PUT requests.
In addition the internalusers PUT component scheme misses the password field.
Yes, I can take a look. From what I understand, static,hidden,reserved are reserved for admin (and super-admin) users only. I will take a detailed look and update here.
What is the bug?
The OpenSearch.openapi.json currently contains some issues related to
/_plugins/_security/api
and the component schemes they reference.Most of the
GET
requests like for roles, internalusers, actiongroups and tenants return the keyshidden
,reserved
andstatic
which is represented in the schemes. The same schemes are used for thePUT
request but those keys are not valid forPUT
requests.In addition the internalusers PUT component scheme misses the
password
field.How can one reproduce the bug?
Returns:
What is the expected behavior?
I would expect an extra component scheme for the Put Requests.
Do you have any screenshots?
PUT Role references the scheme Role:
https://github.com/opensearch-project/opensearch-api-specification/blob/23fa274e6b8609db587623d6f1f05346b023bd11/OpenSearch.openapi.json#L14226
Scheme Role:
https://github.com/opensearch-project/opensearch-api-specification/blob/23fa274e6b8609db587623d6f1f05346b023bd11/OpenSearch.openapi.json#L33784-L33818
GET role references RolesMap
https://github.com/opensearch-project/opensearch-api-specification/blob/23fa274e6b8609db587623d6f1f05346b023bd11/OpenSearch.openapi.json#L14164
Scheme RolesMap references Role:
https://github.com/opensearch-project/opensearch-api-specification/blob/23fa274e6b8609db587623d6f1f05346b023bd11/OpenSearch.openapi.json#L33863-L33868
The text was updated successfully, but these errors were encountered: