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

Add X-Remote-Extra- headers prefix configuration #101

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

embik
Copy link
Member

@embik embik commented Sep 11, 2024

Fixes #103.

kcp-front-proxy sets the X-Remote- headers after validating a ServiceAccount token, but the kcp server wasn't accepting that header. This fixes that oversight, so now all extra auth information parsed by the front-proxy should be accepted by the kcp server.

Some of the information lost in the process was the clusterName that the ServiceAccount is coming from, which resulted in having to explicitly grant them access via RBAC if the ServiceAccount token was used against the front-proxy (but not against the server directly).

Signed-off-by: Marvin Beckers <marvin@kubermatic.com>
@kcp-ci-bot kcp-ci-bot added dco-signoff: yes Indicates the PR's author has signed the DCO. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 11, 2024
@embik embik requested a review from sttts September 11, 2024 08:25
Copy link
Contributor

@xrstf xrstf left a comment

Choose a reason for hiding this comment

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

/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 11, 2024
@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: aea6a08d5ef6e6aa24ed13c74ad8363bbcaf2303

@embik
Copy link
Member Author

embik commented Sep 12, 2024

/approve

@kcp-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: embik, xrstf

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 12, 2024
@kcp-ci-bot kcp-ci-bot merged commit f8bd289 into kcp-dev:main Sep 12, 2024
4 checks passed
@embik embik deleted the extra-headers-kcp branch September 12, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has signed the DCO. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: ServiceAccounts need access permission on their "home" workspace to pass front-proxy
3 participants