Skip to content

[APM] Use ES Permission API to check if a user has permissions to read from APM indices - #57311

Merged
cauemarcondes merged 7 commits into
elastic:masterfrom
cauemarcondes:missing-permission
Feb 19, 2020
Merged

cauemarcondes merged 7 commits into
elastic:masterfrom
cauemarcondes:missing-permission

Conversation

@cauemarcondes

@cauemarcondes cauemarcondes commented Feb 11, 2020 •

Copy link
Copy Markdown
Contributor

fixes #57215
Server route: /api/apm/security/indices_privileges
I renamed all server-side from 'Permissions' to 'Privileges', since I'm going to return all privileges from APM indices. And in the client, I'll check if the user has permission based on the privileges.

Screenshot 2020-02-13 at 09 48 34

Screenshot 2020-02-13 at 09 51 22

Screenshot 2020-02-13 at 09 51 44

Screenshot 2020-02-13 at 09 53 33

Comment thread x-pack/legacy/plugins/apm/typings/es_schemas/raw/IndexPrivileges.ts Outdated
Comment thread x-pack/legacy/plugins/apm/public/components/app/ApmIndicesPermission/index.tsx Outdated
Comment thread x-pack/legacy/plugins/apm/server/routes/security.ts Outdated
Comment thread x-pack/legacy/plugins/apm/server/routes/security.ts Outdated
Comment thread x-pack/legacy/plugins/apm/server/lib/helpers/es_client.ts Outdated
Comment thread x-pack/legacy/plugins/apm/server/lib/helpers/es_client.ts Outdated
Comment thread x-pack/legacy/plugins/apm/public/components/app/ApmIndicesPermission/index.tsx Outdated
@cauemarcondes
cauemarcondes marked this pull request as ready for review February 13, 2020 10:06
@cauemarcondes
cauemarcondes requested review from a team and sorenlouv February 13, 2020 10:06
Comment thread x-pack/legacy/plugins/apm/public/components/app/APMIndicesPermission/index.tsx Outdated
Comment thread x-pack/legacy/plugins/apm/public/components/app/APMIndicesPermission/index.tsx Outdated
Comment thread x-pack/legacy/plugins/apm/server/lib/helpers/es_client.ts Outdated

@sorenlouv sorenlouv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a few few copy changes

@cauemarcondes

Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@cauemarcondes

Copy link
Copy Markdown
Contributor Author

retest

@cauemarcondes
cauemarcondes merged commit e7b6386 into elastic:master Feb 19, 2020
@cauemarcondes
cauemarcondes deleted the missing-permission branch February 19, 2020 10:27
cauemarcondes added a commit to cauemarcondes/kibana that referenced this pull request Feb 19, 2020
…d from APM indices (elastic#57311)

* get indices privileges from has_privileges api

* changing to ES privileges api

* changing missing permission page

* always show dimiss button

* always show dimiss button

* changing message and unit test

* fixing react warning message
cauemarcondes added a commit that referenced this pull request Feb 19, 2020
…d from APM indices (#57311) (#57984)

* get indices privileges from has_privileges api

* changing to ES privileges api

* changing missing permission page

* always show dimiss button

* always show dimiss button

* changing message and unit test

* fixing react warning message
@kibanamachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…d from APM indices (elastic#57311)

* get indices privileges from has_privileges api

* changing to ES privileges api

* changing missing permission page

* always show dimiss button

* always show dimiss button

* changing message and unit test

* fixing react warning message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[APM] Use ES Privileges API to check if a user has permissions to read from APM indices

4 participants