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

Always allow project owner to be added to member list when creating a new project #2699

Merged
merged 1 commit into from
Aug 10, 2020

Conversation

rfranzke
Copy link
Member

@rfranzke rfranzke commented Aug 10, 2020

How to categorize this PR?

/area quality
/kind bug
/priority normal
/topology garden
/exp intermediate
/size s
/platform all

What this PR does / why we need it:
After #2611 the Project creation is broken as the owner is automatically added by the Gardener API server to the .spec.members[] list, however, this was not handled specially and thus always rejected.

Special notes for your reviewer:
/invite @vpnachev
/assign @vpnachev

Release note:

A bug showing `403 Forbidden` responses when creating new `Project`s has been fixed.

@rfranzke rfranzke requested a review from a team as a code owner August 10, 2020 13:10
@gardener-robot gardener-robot added area/quality Output qualification (tests, checks, scans, automation in general, etc.) related kind/bug Bug needs/review labels Aug 10, 2020
@gardener-robot gardener-robot added exp/intermediate platform/all size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. topology/garden Affects Garden clusters labels Aug 10, 2020
@timebertt
Copy link
Member

/assign

timebertt
timebertt previously approved these changes Aug 10, 2020
Copy link
Member

@timebertt timebertt left a comment

Choose a reason for hiding this comment

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

/lgtm

@rfranzke
Copy link
Member Author

/hold just to be sure that it really works as intended (will do some more testing locally)

@rfranzke
Copy link
Member Author

/unhold
/remove reviewed/lgtm
/needs review

I've updated the PR to also reflect that if the user submitting the admission request is the owner of the project then the authorization check will be bypassed as the owner has full UAM privileges anyways (i.e., it will be anyways bound to the manage-members custom verb by the Project controller later on, so we can already allow him to manage the members. Thanks @vpnachev for pointing this out!

PS: This whole project management is a very nice case for a new integration test... ref #1564.

@gardener-robot gardener-robot added needs/review size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed reviewed/do-not-merge labels Aug 10, 2020
@gardener-robot gardener-robot removed the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 10, 2020
Copy link
Member

@vpnachev vpnachev left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Member

@timebertt timebertt left a comment

Choose a reason for hiding this comment

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

/lgtm

@rfranzke rfranzke merged commit 2cf46de into gardener:master Aug 10, 2020
@rfranzke rfranzke deleted the fix/project-creation branch August 10, 2020 15:54
@gardener-robot gardener-robot added priority/3 Priority (lower number equals higher priority) and removed priority/3 Priority (lower number equals higher priority) labels Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/quality Output qualification (tests, checks, scans, automation in general, etc.) related kind/bug Bug platform/all size/S Denotes a PR that changes 10-29 lines, ignoring generated files. topology/garden Affects Garden clusters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants