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

CreateApiKeyRequest.RoleDescriptor is missing some fields #1555

Closed
swallez opened this issue Mar 21, 2022 · 0 comments · Fixed by #1723
Closed

CreateApiKeyRequest.RoleDescriptor is missing some fields #1555

swallez opened this issue Mar 21, 2022 · 0 comments · Fixed by #1723
Assignees
Labels

Comments

@swallez
Copy link
Member

swallez commented Mar 21, 2022

Found in elastic/elasticsearch-java#106

security/create_api_key/types.ts/RoleDescriptor is missing some fields and should actually be replaced with security/get_service_accounts/types.ts/RoleDescritor (the docs -- and the code -- says they are the same structure).

Which probably means that RoleDescriptor should be moved to security/_types.

Also, the indices field needs an @aliases index (ES accepts both).

This is a breaking change as we move types around. It has to be backported to 7.17 (long term 7.x support), but probably not to 8.1.

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

Successfully merging a pull request may close this issue.

1 participant