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

Make default for --anonymous-auth be false. #38708

Merged
merged 1 commit into from
Dec 13, 2016

Conversation

erictune
Copy link
Member

@erictune erictune commented Dec 13, 2016

Changes the default value of the "anonymous-auth" flag to a safer default value of false. This affects kube apiserver and federation apiserver. See https://groups.google.com/forum/#!topic/kubernetes-announce/iclRj-6Nfsg for more details. 

@k8s-reviewable
Copy link

This change is Reviewable

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 13, 2016
@erictune
Copy link
Member Author

I'm not 100% sure this is the fix we want, but I am sending it so that we can talk about it and test it.

@erictune erictune added do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. release-note-none Denotes a PR that doesn't merit a release note. labels Dec 13, 2016
@k8s-github-robot k8s-github-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 13, 2016
@erictune erictune removed the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Dec 13, 2016
@k8s-github-robot
Copy link

This PR is not for the master branch but does not have the cherrypick-approved label. Adding the do-not-merge label.

@k8s-github-robot k8s-github-robot added the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Dec 13, 2016
@erictune erictune removed the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Dec 13, 2016
@erictune
Copy link
Member Author

@saad-ali don't kick off after merging this. Still checking if federation change practical

@k8s-github-robot
Copy link

This PR is not for the master branch but does not have the cherrypick-approved label. Adding the do-not-merge label.

@k8s-github-robot k8s-github-robot added the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Dec 13, 2016
@@ -293,7 +293,7 @@ func (s *ServerRunOptions) AddUniversalFlags(fs *pflag.FlagSet) {
fs.BoolVar(&s.AnonymousAuth, "anonymous-auth", s.AnonymousAuth, ""+
"Enables anonymous requests to the secure port of the API server. "+
"Requests that are not rejected by another authentication method are treated as anonymous requests. "+
"Anonymous requests have a username of system:anonymous, and a group name of system:unauthenticated.")
"Anonymous requests have a username of system:anonymous, and a group name of system:unauthenticated. ")
Copy link
Member

Choose a reason for hiding this comment

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

seems like a typo or something

Copy link
Contributor

Choose a reason for hiding this comment

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

@erictune it would be nice to fix the typo, but if @saad-ali is in a big hurry, I wouldn't block on it.

Copy link
Member

Choose a reason for hiding this comment

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

Nope, absolutely not needed for the v1.5.1 cut

@deads2k
Copy link
Contributor

deads2k commented Dec 13, 2016

It's a shame, but I'm ok with it for 1.5.

At some point we need to rip off the bandaid, but it doesn't have to be now. lgtm

@saad-ali
Copy link
Member

@erictune Can you add a release note please in the original post

@saad-ali saad-ali added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Dec 13, 2016
@saad-ali
Copy link
Member

saad-ali commented Dec 13, 2016

@saad-ali don't kick off after merging this. Still checking if federation change practical

Ack, @erictune. Will wait for your go ahead before proceeding with merge.

@saad-ali saad-ali added this to the v1.5 milestone Dec 13, 2016
@erictune
Copy link
Member Author

Ok to merge. @mahudustancs showed me that this covers federation too

@saad-ali
Copy link
Member

Awesome merging

@saad-ali saad-ali added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 13, 2016
@saad-ali saad-ali removed the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Dec 13, 2016
@saad-ali
Copy link
Member

saad-ali commented Dec 13, 2016

All checks are green:

@k8s-ci-robot  Jenkins CRI GCE Node e2e — Build succeeded.
Details@k8s-ci-robot  Jenkins GCE Node e2e — Build succeeded.
Details@k8s-ci-robot  Jenkins GCE e2e — Build succeeded.
Details@k8s-ci-robot  Jenkins GCE etcd3 e2e — Build succeeded.
Details@k8s-ci-robot  Jenkins GCI GCE e2e — Build succeeded.
Details@k8s-ci-robot  Jenkins GCI GKE smoke e2e — Build succeeded.
Details@k8s-ci-robot  Jenkins GKE smoke e2e — Build succeeded.
Details@k8s-ci-robot  Jenkins Kubemark GCE e2e — Build succeeded.
Details@k8s-ci-robot  Jenkins unit/integration — Build succeeded.
Details@k8s-ci-robot  Jenkins verification — Build succeeded.
Details@thelinuxfoundation  cla/linuxfoundation — erictune authorized

Manually merging for v1.5.1

@saad-ali saad-ali merged commit db74b2d into kubernetes:release-1.5 Dec 13, 2016
@saad-ali
Copy link
Member

Let's make sure this gets merged back to master at some point

@saad-ali
Copy link
Member

Let's make sure this gets merged back to master at some point

@deads2k, @erictune is out, could you make sure this PR #38717 and #38898 are cherr-picked back to the master branch?

@deads2k
Copy link
Contributor

deads2k commented Dec 19, 2016

@deads2k, @erictune is out, could you make sure this PR #38717 and #38898 are cherr-picked back to the master branch?

@saad-ali @liggitt I think we want to try to switch the default again in 1.6. If we update the abac user star evaluation, eliminate the rbac user star (no need for it and its alpha), and use my default stomping pull I think we have a reasonable shot.

@liggitt
Copy link
Member

liggitt commented Dec 19, 2016

#38968 makes ABAC safe with anonymous auth enabled

@liggitt
Copy link
Member

liggitt commented Dec 19, 2016

#38981 removes special handling of * for RBAC bindings

@saad-ali
Copy link
Member

@saad-ali @liggitt I think we want to try to switch the default again in 1.6. If we update the abac user star evaluation, eliminate the rbac user star (no need for it and its alpha), and use my default stomping pull I think we have a reasonable shot.

Ack. Feel free to correct me, as I'm completely out of my depth here, but wasn't the concern with this that the default authorization was AllowAll which when combined with the new default authentication scheme permitting anonymous access was dangerous. If that's the case, modifying the ABAC and RBAC wouldn't fix AllowAll, right? Just want to make sure we don't have to repeat the same song and dance for 1.6. Thank you both for being on this.

@liggitt
Copy link
Member

liggitt commented Dec 19, 2016

#38706 is open to address the anonymous+AlwaysAllow combination

there were secondary concerns with legacy RBAC/ABAC policies matching anonymous users unintentionally

@saad-ali
Copy link
Member

Perfect, thanks @liggitt

@erictune erictune deleted the one-five-one branch August 8, 2017 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. 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.

None yet

9 participants