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

Use impersonation #8672

Merged
merged 1 commit into from
Apr 30, 2016
Merged

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Apr 28, 2016

Adds impersonation power for service accounts to project admins and editors (they can see the secret anyway).

It also adds a wheel group so that oadm policy add-cluster-role-to-user wheel deads --config=openshift.local.config/master/admin.kubeconfig and then deads can do oc get clusterrolebindings --as=system:admin. I think I'd like to start recommending the approach as the way to grant yourself cluster-admin like powers without having every command be a typo risk.

@deads2k deads2k force-pushed the use-impersonation branch from 5cf6306 to 6873424 Compare April 28, 2016 19:42
@@ -51,6 +52,7 @@ const (
// Roles
const (
ClusterAdminRoleName = "cluster-admin"
WheelRoleName = "wheel"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer something like sudo

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'd prefer something like sudo

sudoer or sudo? I'll change the name to anything.

@liggitt
Copy link
Contributor

liggitt commented Apr 29, 2016

nit on role name, update bootstrappolicy test fixtures and add a test, then LGTM

@deads2k deads2k force-pushed the use-impersonation branch from 6873424 to 12b480d Compare April 29, 2016 16:15
@deads2k
Copy link
Contributor Author

deads2k commented Apr 29, 2016

comments addressed. [merge]

os::cmd::expect_success_and_text 'oc whoami --as=system:admin' "system:admin"

os::cmd::expect_success 'oc login -u local-admin -p pw'
os::cmd::expect_success 'oc new-project foo'
Copy link
Contributor

Choose a reason for hiding this comment

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

clean up project foo?

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@deads2k deads2k force-pushed the use-impersonation branch 2 times, most recently from 45b9762 to 71b0d59 Compare April 29, 2016 17:43
@deads2k deads2k force-pushed the use-impersonation branch from 71b0d59 to d56acf1 Compare April 29, 2016 17:45
@openshift-bot
Copy link
Contributor

Evaluated for origin test up to d56acf1

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/3473/)

@openshift-bot
Copy link
Contributor

openshift-bot commented Apr 30, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/3473/) (Image: devenv-rhel7_4063)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to d56acf1

@openshift-bot openshift-bot merged commit 8c5c9b2 into openshift:master Apr 30, 2016
@deads2k deads2k deleted the use-impersonation branch September 6, 2016 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants