Skip to content

Tighten login kubeconfig keys - #2226

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
deads2k:tighten-login-keys
May 15, 2015
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
deads2k:tighten-login-keys

Conversation

@deads2k

@deads2k deads2k commented May 13, 2015

Copy link
Copy Markdown
Contributor

Pins the kubeconfig stanza nicknames and stomps on resets.

@liggitt

Comment thread pkg/cmd/experimental/tokens/whoami.go Outdated

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.

terminology tweak? displays the username of the currently authenticated user?

@deads2k
deads2k force-pushed the tighten-login-keys branch from f663999 to f61e1a3 Compare May 14, 2015 14:34
@deads2k

deads2k commented May 14, 2015

Copy link
Copy Markdown
Contributor Author

comments addressed.

@liggitt

liggitt commented May 14, 2015

Copy link
Copy Markdown
Contributor

LGTM

@liggitt

liggitt commented May 15, 2015

Copy link
Copy Markdown
Contributor

[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/1952/) (Image: devenv-fedora_1530)

@liggitt

liggitt commented May 15, 2015

Copy link
Copy Markdown
Contributor

e2e failure because the token-selecting template no longer matches the user stanza name:

token=$(osc config view --flatten -o template -t '{{range .users}}{{if eq .name "e2e-user"}}{{.user.token}}{{end}}{{end}}')

I think we can just do this, since --flatten ensures you have a single user stanza:

token=$(osc config view --flatten -o template -t '{{with index .users 0}}{{.user.token}}{{end}}')

Also, need to change osc project default to osc project master for switching back to the master context in a couple places.

@deads2k
deads2k force-pushed the tighten-login-keys branch from f61e1a3 to 2dc8919 Compare May 15, 2015 12:08
@deads2k

deads2k commented May 15, 2015

Copy link
Copy Markdown
Contributor Author

template updated and squashed in. 'default' is not the same as 'master' (project versus context). re[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot

Copy link
Copy Markdown
Contributor

@deads2k

deads2k commented May 15, 2015

Copy link
Copy Markdown
Contributor Author
fatal: '/data/src/github.com/openshift/origin-bare' does not appear to be a git repository

transient? re-re[merge]

@deads2k
deads2k force-pushed the tighten-login-keys branch from 2dc8919 to 33b7dab Compare May 15, 2015 14:54
@deads2k

deads2k commented May 15, 2015

Copy link
Copy Markdown
Contributor Author

touched comment to see if it will re-enter the [merge] queue. (last one did not attempt)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin up to 33b7dab

openshift-bot pushed a commit that referenced this pull request May 15, 2015
@openshift-bot
openshift-bot merged commit 3b03c18 into openshift:master May 15, 2015
@deads2k

deads2k commented May 15, 2015

Copy link
Copy Markdown
Contributor Author

Fixes #1889

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