Skip to content

[Security/EBT] Skip user_id registration on anonymous pages#143280

Merged
afharo merged 2 commits intoelastic:mainfrom
afharo:security-ebt/only-register-context-provider-user_id-on-non-anonymous-pages
Oct 13, 2022
Merged

[Security/EBT] Skip user_id registration on anonymous pages#143280
afharo merged 2 commits intoelastic:mainfrom
afharo:security-ebt/only-register-context-provider-user_id-on-non-anonymous-pages

Conversation

@afharo
Copy link
Copy Markdown
Member

@afharo afharo commented Oct 13, 2022

Summary

We want to avoid registering the context provider user_id on anonymous pages because we anticipate they will be undefined.

It's more relevant for our analysis to check when it's undefined for non-anonymous pages.

Checklist

For maintainers

@afharo afharo added Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Oct 13, 2022
@afharo afharo requested a review from a team as a code owner October 13, 2022 13:00
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-core (Team:Core)

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-security (Team:Security)

@afharo afharo force-pushed the security-ebt/only-register-context-provider-user_id-on-non-anonymous-pages branch from 028301e to ba48354 Compare October 13, 2022 13:47
Copy link
Copy Markdown
Member

@legrego legrego left a comment

Choose a reason for hiding this comment

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

LGTM pending the one suggestion below. Thank you!

…t.ts

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
@afharo afharo enabled auto-merge (squash) October 13, 2022 15:08
@afharo afharo merged commit d4d2a77 into elastic:main Oct 13, 2022
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
security 56.5KB 56.6KB +80.0B

History

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

@afharo afharo deleted the security-ebt/only-register-context-provider-user_id-on-non-anonymous-pages branch October 13, 2022 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// v8.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants