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 flag for enabling RBAC on local-up-cluster #34619

Merged
merged 1 commit into from
Oct 13, 2016

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Oct 12, 2016

Enables cases like ALLOW_ANY_TOKEN=true ENABLE_RBAC=true hack/local-up-cluster.sh to startup an api server so you can test RBAC against it.

@pweil- You can try this using oc login localhost:6443 --token=username/group1,group2,system:masters. Then you should have full rights. You can use oc login --token=username or kubectl create -f - --token=otheruser/othergroup to simulate other users.


This change is Reviewable

@k8s-github-robot k8s-github-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. release-note-label-needed labels Oct 12, 2016
@@ -285,6 +285,10 @@ function start_apiserver {
if [[ -n "${ALLOW_ANY_TOKEN:-}" ]]; then
anytoken_arg="--insecure-allow-any-token "
fi
authorizer_arg=""
if [[ -n "${ENABLE_RBAC:-}" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

I would have expected that if ENABLE_RBAC is "false" then we wouldn't use this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would have expected that if ENABLE_RBAC is "false" then we wouldn't use this.

The other condition checks in the same method don't make the distinction. Do you feel strongly?

@spxtr spxtr assigned pweil- and unassigned spxtr Oct 12, 2016
@deads2k deads2k changed the title [WIP] add flag for enabling RBAC on local-up-cluster add flag for enabling RBAC on local-up-cluster Oct 12, 2016
@deads2k deads2k added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Oct 12, 2016
@deads2k
Copy link
Contributor Author

deads2k commented Oct 12, 2016

@pweil- this works, I've removed [wip]

@pweil-
Copy link
Contributor

pweil- commented Oct 12, 2016

LGTM

@deads2k deads2k added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 13, 2016
@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit f638a87 into kubernetes:master Oct 13, 2016
xilabao added a commit to xilabao/kubernetes that referenced this pull request Nov 2, 2016
xilabao added a commit to xilabao/community that referenced this pull request Dec 22, 2016
xilabao added a commit to xilabao/community that referenced this pull request Dec 22, 2016
xilabao added a commit to xilabao/community that referenced this pull request Dec 22, 2016
xilabao added a commit to xilabao/community that referenced this pull request Dec 26, 2016
@deads2k deads2k deleted the rbac-13-local-up branch February 1, 2017 17:26
ruebenramirez pushed a commit to ruebenramirez/community that referenced this pull request Apr 22, 2017
calebamiles pushed a commit to kubernetes/sig-release that referenced this pull request Jul 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. 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.

6 participants