-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Enable bearer
scheme by default to support service token authorization
#112654
Enable bearer
scheme by default to support service token authorization
#112654
Conversation
@elastic/kibana-security Any concerns with this change? Also, do you have any recommendations on where to add some functional test coverage for this? |
Just to be clear, this is related to the Fleet server changing to use a service account, yes? We most recently changed how schemes are configured in 7.7 via #58126. I'm not sure it makes sense for the @azasypkin I hate to suggest this, but would it make sense to introduce a Kibana-specific scheme to support service accounts? Or maybe there's another option that I'm missing. I'll defer to you. |
If it's to support service accounts then I think it'd fine to include
It'd be great if you can add a couple of tests for this to |
Yep this is to support #112648
Makes sense. I'll update this PR with the additional testing and update the relevant docs. I'll also open a PR for updating the Cloud stack pack for 7.x and 8.0. Thanks for the guidance here, everyone. |
43dbd25
to
9d29ef5
Compare
x-pack/test/security_api_integration/tests/http_bearer/login.ts
Outdated
Show resolved
Hide resolved
ACK: will review today |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just a couple of nits and one suggestion.
x-pack/test/security_api_integration/tests/http_bearer/header.ts
Outdated
Show resolved
Hide resolved
x-pack/test/security_api_integration/tests/http_bearer/login.ts
Outdated
Show resolved
Hide resolved
x-pack/test/security_api_integration/tests/http_bearer/header.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Please don't forget to update Cloud kibana.yml
template.
x-pack/test/security_api_integration/tests/http_bearer/header.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @joshdover |
💔 Backport failed
To backport manually run: |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
2 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
…ion (elastic#112654) Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com> # Conflicts: # x-pack/plugins/security/server/usage_collector/security_usage_collector.test.ts
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
Summary
Related to #112648, required to allow Fleet Server to use its service account token for authorization against Fleet APIs in Kibana.
xpack.security.authc.http.schemes
to include thebearer
schemeI wasn't sure if this change should have a release note or not, @elastic/kibana-security please let me know if I should add one.
Checklist
Delete any items that are not applicable to this PR.
For maintainers