Skip to content

[Search Sessions] Secure access to session routes based on user permissions#90990

Merged
Dosant merged 7 commits intoelastic:masterfrom
Dosant:dev/search-session-api-auth
Feb 11, 2021
Merged

[Search Sessions] Secure access to session routes based on user permissions#90990
Dosant merged 7 commits intoelastic:masterfrom
Dosant:dev/search-session-api-auth

Conversation

@Dosant
Copy link
Copy Markdown
Contributor

@Dosant Dosant commented Feb 10, 2021

Summary

Give access to session API routes only if the user has permissions to store search session granted by one of the apps

Checklist

For maintainers

@Dosant Dosant added Feature:Search Querying infrastructure in Kibana Team:AppServices v7.12.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels Feb 11, 2021
@Dosant Dosant marked this pull request as ready for review February 11, 2021 07:30
@Dosant Dosant requested review from a team as code owners February 11, 2021 07:30
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@Dosant Dosant requested review from lizozom and lukasolson February 11, 2021 07:30
read: [],
},
ui: ['storeSearchSession'],
api: ['store_search_session'],
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.

Any reason why one is camel case and one is snake case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't know why ui is camel, but the id of the privilege itself is lowercase, I decided to go with lowercase because the main id is lowercase 🤷‍♂️ . not sure if there is a convention

id: 'store_search_session',

Copy link
Copy Markdown
Contributor

@lizozom lizozom left a comment

Choose a reason for hiding this comment

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

Awesome!
LGTM
Just note comment on casing

…ssion-api-auth

# Conflicts:
#	x-pack/plugins/features/server/oss_features.ts
@Dosant
Copy link
Copy Markdown
Contributor Author

Dosant commented Feb 11, 2021

@elasticmachine merge upstream

…ssion-api-auth

# Conflicts:
#	x-pack/test/api_integration/apis/search/session.ts
@Dosant
Copy link
Copy Markdown
Contributor Author

Dosant commented Feb 11, 2021

@elasticmachine merge upstream

@Dosant Dosant enabled auto-merge (squash) February 11, 2021 20:47
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Search Querying infrastructure in Kibana release_note:skip Skip the PR/issue when compiling release notes v7.12.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants