Skip to content

Use impersonation#8672

Merged
openshift-bot merged 1 commit intoopenshift:masterfrom
deads2k:use-impersonation
Apr 30, 2016
Merged

Use impersonation#8672
openshift-bot merged 1 commit intoopenshift:masterfrom
deads2k:use-impersonation

Conversation

@deads2k
Copy link
Copy Markdown
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
// Roles
const (
ClusterAdminRoleName = "cluster-admin"
WheelRoleName = "wheel"
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Evaluated for origin test up to d56acf1

@openshift-bot
Copy link
Copy Markdown
Contributor

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

@openshift-bot
Copy link
Copy Markdown
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
Copy Markdown
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