You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RBAC Migration Followup #6: new-project with RBAC? #15818
The server internally creates a set of resources based on a template
The template is configurable but by default it creates:
A project (namespace)
SA role bindings
A role binding that gives the requesting user admin rights to the project
The server waits up to ~6 seconds for the auth cache to be in sync with the last binding
The creation of these bindings uses the proxied endpoints because they are defined using Origin auth resources instead of the RBAC ones. I believe we can skip the extra indirection in this case since the server should only talk to its own loopback interface (so this should not cause issues during a rolling update).
is there a reason not to keep it as-is for one release, then switch?
@liggitt just trying to reduce the surface area of the legacy code as much as possible in 3.7 (any performance improvements are negligible IMO). If you feel this adds unnecessary complexity and risk for 3.7, I can move this to the 3.8 milestone.
is there a reason not to keep it as-is for one release, then switch?
It just defers work we need to do. Is there a reason to keep it as-is? The default is only generated and used locally to the process. The loopback speaks back to itself.
Activity
enj commentedon Aug 23, 2017
The project creation flow for a normal user is:
The creation of these bindings uses the proxied endpoints because they are defined using Origin auth resources instead of the RBAC ones. I believe we can skip the extra indirection in this case since the server should only talk to its own loopback interface (so this should not cause issues during a rolling update).
@deads2k @liggitt do you have any concerns with this?
liggitt commentedon Aug 23, 2017
is there a reason not to keep it as-is for one release, then switch?
enj commentedon Aug 23, 2017
@liggitt just trying to reduce the surface area of the legacy code as much as possible in 3.7 (any performance improvements are negligible IMO). If you feel this adds unnecessary complexity and risk for 3.7, I can move this to the 3.8 milestone.
deads2k commentedon Aug 23, 2017
It just defers work we need to do. Is there a reason to keep it as-is? The default is only generated and used locally to the process. The loopback speaks back to itself.
liggitt commentedon Aug 23, 2017
I don't feel strongly either way.
simo5 commentedon Aug 24, 2017
Sounds like converting is not a big deal here, but we'll need to emit warnings for admins to update their templates when we catch old types
Merge pull request #15973 from simo5/newprjrbac