Skip to content

WIP: User Read and Delete OauthClientAuthorizations - #11909

Closed
enj wants to merge 13 commits into
openshift:masterfrom
enj:enj/f/scope_token_crud
Closed

enj wants to merge 13 commits into
openshift:masterfrom
enj:enj/f/scope_token_crud

Conversation

@enj

@enj enj commented Nov 15, 2016 •

Copy link
Copy Markdown
Contributor

Each user now has their own bucket / folder where their OauthClientAuthorizations are stored: /openshift.io/oauth/clientauthorizations/<userName>/<clientName>. This allows for fast lookup times per user. Thus there must be enough information in the object's name to determine the user specific etcd key.

Backwards compatibility

Users will only be able to see new OauthClientAuthorizations. The old ones will stay in etcd but will no longer be considered valid and thus will need to be recreated. The cluster admin will be able to clean up the old objects after an upgrade. This is achieved by changing the naming scheme of new objects. The old format was <userName>:<clientName> and the new format is <userName>::<clientName>. This makes it easy to distinguish where the object would be stored. Note that the name of the object is only used to determine the user when the cluster admin is doing a lookup. User lookups use information from the context and enforce UID matching.

Examples

oc get oauthclientauthorization as system:admin (note the mix of old and new objects)

NAME                                                  USER NAME    CLIENT NAME                               SCOPES
developer::system:serviceaccount:myproject:jenkins    developer    system:serviceaccount:myproject:jenkins   user:info
developer1::system:serviceaccount:myproject:jenkins   developer1   system:serviceaccount:myproject:jenkins   user:info
developer1:system:serviceaccount:myproject:jenkins    developer1   system:serviceaccount:myproject:jenkins   user:info
developer:system:serviceaccount:myproject:jenkins     developer    system:serviceaccount:myproject:jenkins   user:info

-o yaml

apiVersion: v1
items:
- apiVersion: v1
  clientName: system:serviceaccount:myproject:jenkins
  kind: OAuthClientAuthorization
  metadata:
    creationTimestamp: 2016-11-22T16:08:23Z
    name: developer::system:serviceaccount:myproject:jenkins
    resourceVersion: "636"
    selfLink: /oapi/v1/oauthclientauthorizations/developer::system:serviceaccount:myproject:jenkins
    uid: e5163dca-b0cd-11e6-b245-507b9dac97ff
  scopes:
  - user:info
  userName: developer
  userUID: cf29b7cb-b0ca-11e6-ac48-507b9dac97ff
- apiVersion: v1
  clientName: system:serviceaccount:myproject:jenkins
  kind: OAuthClientAuthorization
  metadata:
    creationTimestamp: 2016-11-22T16:02:44Z
    name: developer1::system:serviceaccount:myproject:jenkins
    resourceVersion: "599"
    selfLink: /oapi/v1/oauthclientauthorizations/developer1::system:serviceaccount:myproject:jenkins
    uid: 1afc194d-b0cd-11e6-b245-507b9dac97ff
  scopes:
  - user:info
  userName: developer1
  userUID: fe3f3a4e-b0ca-11e6-ac48-507b9dac97ff
- apiVersion: v1
  clientName: system:serviceaccount:myproject:jenkins
  kind: OAuthClientAuthorization
  metadata:
    creationTimestamp: 2016-11-22T15:48:39Z
    name: developer1:system:serviceaccount:myproject:jenkins
    resourceVersion: "508"
    selfLink: /oapi/v1/oauthclientauthorizations/developer1:system:serviceaccount:myproject:jenkins
    uid: 235cbdff-b0cb-11e6-ac48-507b9dac97ff
  scopes:
  - user:info
  userName: developer1
  userUID: fe3f3a4e-b0ca-11e6-ac48-507b9dac97ff
- apiVersion: v1
  clientName: system:serviceaccount:myproject:jenkins
  kind: OAuthClientAuthorization
  metadata:
    creationTimestamp: 2016-11-22T15:47:12Z
    name: developer:system:serviceaccount:myproject:jenkins
    resourceVersion: "494"
    selfLink: /oapi/v1/oauthclientauthorizations/developer:system:serviceaccount:myproject:jenkins
    uid: ef5c24f2-b0ca-11e6-ac48-507b9dac97ff
  scopes:
  - user:info
  userName: developer
  userUID: cf29b7cb-b0ca-11e6-ac48-507b9dac97ff
kind: List
metadata: {}

oc get selfoauthclientauthorization -o yaml as developer or developer1 (only new objects visible)

NAME                                      CLIENT NAME                               SCOPES
system:serviceaccount:myproject:jenkins   system:serviceaccount:myproject:jenkins   user:info

oc get selfoauthclientauthorization system:serviceaccount:myproject:jenkins -o yaml as developer1 (note the name of object is the clientName)

apiVersion: v1
clientName: system:serviceaccount:myproject:jenkins
kind: SelfOAuthClientAuthorization
metadata:
  creationTimestamp: 2016-11-22T16:02:44Z
  name: system:serviceaccount:myproject:jenkins
  resourceVersion: "599"
  selfLink: /oapi/v1/selfoauthclientauthorizations/system:serviceaccount:myproject:jenkins
  uid: 1afc194d-b0cd-11e6-b245-507b9dac97ff
scopes:
- user:info
userUID: fe3f3a4e-b0ca-11e6-ac48-507b9dac97ff

Cleanup old objects

oc get oauthclientauthorization -o jsonpath="{range .items[*]}{.metadata.name}{\"\\n\"}{end}" | grep -v '::' | xargs -n 1 echo oc delete oauthclientauthorization (this could be piped to BASH)

oc delete oauthclientauthorization developer1:system:serviceaccount:myproject:jenkins
oc delete oauthclientauthorization developer:system:serviceaccount:myproject:jenkins

Trello ref: https://trello.com/c/Tcabgp9F

cc @openshift/api-review @mfojtik @soltysh @php-coder

@deads2k

deads2k commented Nov 15, 2016

Copy link
Copy Markdown
Contributor

Having to re-authorize clients is annoying, but could be acceptable. Most of the ones people are likely to have were auto-approved anyway.

@php-coder

Copy link
Copy Markdown

@enj What is the use-case that we're trying to solve? Why user need to have scoped token? I didn't find this here and in the Trello card.

@liggitt

liggitt commented Nov 15, 2016

Copy link
Copy Markdown
Contributor

@php-coder

php-coder commented Nov 15, 2016 •

Copy link
Copy Markdown

@liggitt Thanks for the link, I saw it already but I want to understand where/how/for what this token will be used by this user.

@liggitt

liggitt commented Nov 15, 2016

Copy link
Copy Markdown
Contributor

this is working to allow users to manage their own tokens and client authorizations. currently, only a cluster admin can see/modify those objects. an end user should be able to see/revoke authorizations they granted to clients, see/revoke their API tokens, and create scoped API tokens

@enj

enj commented Nov 16, 2016

Copy link
Copy Markdown
Contributor Author

@deads2k @liggitt Any comments on the code? I want to solidify my approach before working on the other tokens / adding tests.

@enj
enj force-pushed the enj/f/scope_token_crud branch from a7c8fbd to ee12ef9 Compare November 21, 2016 14:55
store := &registry.Store{
NewFunc: func() runtime.Object { return &api.SelfOAuthClientAuthorization{} },
NewListFunc: func() runtime.Object { return &api.SelfOAuthClientAuthorizationList{} },
NewListFunc: func() runtime.Object { return &api.OAuthClientAuthorizationList{} },

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 feel like there is some way to avoid having to use OAuthClientAuthorizationList here (i.e. use the Self version).

@enj enj changed the title WIP: User CRUD Tokens WIP: User Read and Delete OauthClientAuthorizations Nov 22, 2016
}

store := &registry.Store{
NewFunc: func() runtime.Object { return &api.SelfOAuthClientAuthorization{} },

@liggitt liggitt Nov 22, 2016 •

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 would expect to have to read OAuthClientAuthorization from etcd and convert it yourself

KeyRootFunc: func(ctx kapi.Context) string {
user, ok := kapi.UserFrom(ctx)
if !ok {
return helpers.GetKeyWithUsername(prefix, "%invalid%") // Something invalid

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.

should never get here, I would panic


func toSelfList(obj runtime.Object) runtime.Object {
list := obj.(*api.OAuthClientAuthorizationList)
newlist := &api.SelfOAuthClientAuthorizationList{}

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.

empty ObjectMeta isn't great... you want at least ResourceVersion copied over

list := obj.(*api.OAuthClientAuthorizationList)
newlist := &api.SelfOAuthClientAuthorizationList{}
for _, item := range list.Items {
newlist.Items = append(newlist.Items, api.SelfOAuthClientAuthorization(item))

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.

what happens to selfLink and kind here? do they still say OAuthClientAuthorization?

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 guess the best option would be to write some conversion for this.

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.

selfLink and Kind are both empty when the object is passed to that function. Only ResourceVersion is populated.

func toSelfList(obj runtime.Object) runtime.Object {
list := obj.(*api.OAuthClientAuthorizationList)
newlist := &api.SelfOAuthClientAuthorizationList{}
for _, item := range list.Items {

@liggitt liggitt Nov 22, 2016 •

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.

preallocate newlist.Items to be the right length

SDNReaderRoleName = "system:sdn-reader"
SDNManagerRoleName = "system:sdn-manager"
OAuthTokenDeleterRoleName = "system:oauth-token-deleter"
OAuthSelfClientAuthorizerRoleName = "system:oauth-self-client-authorizer"

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.

Be consistent with naming, either SelfOAuth... or OAuthSelf... I know that you did it here purposefully to keep sort order, but it will make harder for others (like myself, or even yourself in a month or two) to find. I know, I'm picky 😛

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.

not sure we need a role just for this... I'd expect the permission to be added to the basic-user role

Comment thread pkg/oauth/api/register.go
}

func (obj *SelfOAuthClientAuthorizationList) GetObjectKind() unversioned.ObjectKind {
return &obj.TypeMeta

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.

Keep formatting consistent with everything else.

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.

gofmt won't let me 😞

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.

Impossible, I have it on by default on each save and it just works as expected with those.

Field: field,
GetAttrs: func(o runtime.Object) (labels.Set, fields.Set, error) {
obj, ok := safeObjectToSelfOAuthClientAuthorization(o)
if !ok { // TODO do I need this check?

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.

Yup, it's required.

Comment thread pkg/oauth/registry/helpers/strategy.go Outdated
"k8s.io/kubernetes/pkg/util/validation/field"
)

var CannotCreateStrategy = readOnly{kapi.Scheme}

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.

This strategy is used only for SelfOAuthClientAuthorization, for now. Can we keep it in pkg/oauth/registry/selfoauthclientauthorization/strategy.go in that case, like we do with all strategies?

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 planned on reusing it for other OAuth tokens since they will follow the same pattern of only allowing reads and deletes.

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 prefer having explicit strategy per resource. That's what we do with all of them.

list := obj.(*api.OAuthClientAuthorizationList)
newlist := &api.SelfOAuthClientAuthorizationList{}
for _, item := range list.Items {
newlist.Items = append(newlist.Items, api.SelfOAuthClientAuthorization(item))

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 guess the best option would be to write some conversion for this.

case *api.SelfOAuthClientAuthorization:
return auth, true
case *api.OAuthClientAuthorization:
return (*api.SelfOAuthClientAuthorization)(auth), true

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.

Conversion here as well.

@soltysh

soltysh commented Nov 23, 2016

Copy link
Copy Markdown
Contributor

Thinking out loud, have you talked with Jordan or David about adding /self subresource instead of selfOAuthClientAuthorizations, that would place nicely, imho.

@soltysh

soltysh commented Nov 23, 2016

Copy link
Copy Markdown
Contributor

Overall, the direction looks good.

@deads2k

deads2k commented Nov 23, 2016

Copy link
Copy Markdown
Contributor

Thinking out loud, have you talked with Jordan or David about adding /self subresource instead of selfOAuthClientAuthorizations, that would place nicely, imho.

You can't have named subresources, which means they can't be individually retrieved or deleted.

@enj

enj commented Nov 23, 2016 •

Copy link
Copy Markdown
Contributor Author

So I can't get watches to work for SelfOAuthClientAuthorization without removing the storage's cache for the Self REST. They work fine for OAuthClientAuthorization.

I get this type error when I leave things as they currently are:

E1122 11:02:44.893622   20123 reflector.go:370] pkg/storage/cacher.go:194: expected type *api.SelfOAuthClientAuthorization, but watch event object had type *api.OAuthClientAuthorization

If I change the NewFunc to return a OAuthClientAuthorization, I see no events. Perhaps there are limitations on having multiple caches for the same type? That is, the caches would then have to be kept in sync with each other and etcd? Or I may just be misunderstanding something.

Name: OAuthSelfClientAuthorizerRoleBindingName,
},
RoleRef: kapi.ObjectReference{
Name: OAuthSelfClientAuthorizerRoleName,

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.

and if we did have a role for this, we'd only bind it to the system:authenticated:oauth group

Comment thread pkg/oauth/api/fields.go Outdated
return fields.Set{
"metadata.name": obj.Name,
"clientName": obj.ClientName,
"userUID": obj.UserUID,

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.

why is userUID exposed for this type?

@enj enj Nov 23, 2016 •

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.

To allow for filtering based on the UID (but that could be done on the non Self type I suppose).

Comment thread pkg/oauth/api/types.go Outdated
Scopes []string
}

type SelfOAuthClientAuthorization OAuthClientAuthorization

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 think I'd expect a different type that omits the UserName/UserUID fields... we need to explicitly convert between the two types anyway to make watch work, and to verify/adjust the name)

@enj

enj commented Nov 23, 2016

Copy link
Copy Markdown
Contributor Author

I am thinking that I need to rewrite the SelfOAuthClientAuthorization's REST in a way that it implements rest.StandardStorage (minus Create / Update) but does so using OAuthClientAuthorization's registry.Store instead of having its own. Thoughts?

@liggitt

liggitt commented Nov 23, 2016

Copy link
Copy Markdown
Contributor

I am thinking that I need to rewrite the SelfOAuthClientAuthorization's REST in a way that it implements rest.StandardStorage (minus Create / Update) but does so using OAuthClientAuthorization's registry.Store instead of having its own. Thoughts?

You can't reuse it exactly if you want a different etcd prefix

if name, ok := m.MatchesSingle(); ok {
if key, err := e.KeyFunc(ctx, name); err == nil {
if err != nil {
if err != nil { // TODO Dead code?

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.

Good catch, it looks like this piece of code should be:

	if name, ok := p.MatchesSingle(); ok {
		key, err := e.KeyFunc(ctx, name)
		if err != nil {
			return nil, err
		}
		w, err := e.Storage.Watch(ctx, key, resourceVersion, p)
		if err != nil {
			return nil, err
		}
		if e.Decorator != nil {
			return newDecoratedWatcher(w, e.Decorator), nil
		}
		return w, nil
		// if we cannot extract a key based on the current context, the optimization is skipped
	}

but I'll defer to @smarterclayton who introduced that change.

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.

Opened kubernetes/kubernetes#38825 for this.

@enj

enj commented Dec 15, 2016

Copy link
Copy Markdown
Contributor Author

[test]

@enj

enj commented Dec 15, 2016

Copy link
Copy Markdown
Contributor Author

@liggitt @soltysh PTAL at the new implementation. To build the SelfRest it now reuses (a copy of) the OAuthClientAuthorization's registry.Store with a wrapper to enforce conversions and UID restrictions (based on a set of functions).

"k8s.io/kubernetes/pkg/storage/storagebackend/factory"
)

// Temporary hack until rebase of upstream PR 37770 ///////////////////////////////////////////////

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.

But that will be in k8s 1.6, you want to wait until then, I assume.

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.

Wait until then for the entire PR / trello card? I suppose that depends on how quickly we want these features.

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'm not sure we'll want to cherry-pick this from 1.6 (it's pretty big) and the 1.5 rebase hasn't landed yet. Not sure about the desired time frame for this feature, but @mfojtik will know that.

Comment thread pkg/oauth/registry/helpers/converter.go Outdated
"k8s.io/kubernetes/pkg/watch"
)

type ObjectDecoratorFunc func(obj runtime.Object) runtime.Object

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.

godocs throughout the entire file.

selfStore.KeyRootFunc = func(ctx kapi.Context) string { // This makes watches more efficient
user, ok := kapi.UserFrom(ctx)
if !ok {
panic("User parameter required.")

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 don't think we should be panicing at this point, just return kubeerr.NewBadRequest("User parameter required."), like below.

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.

You can't return an error in the root func. Panic was Jordan's preferred way of handling a case that should never occur.

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.

Right... missed the KeyRootFunc signature.

@openshift-bot

Copy link
Copy Markdown
Contributor

Origin Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 2, 2017
@openshift-merge-robot openshift-merge-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jul 24, 2017
@openshift-merge-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: enj
We suggest the following additional approver: mfojtik

Assign the PR to them by writing /assign @mfojtik in a comment when ready.

No associated issue. Update pull-request body to add a reference to an issue, or get approval with /approve no-issue

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 28, 2017
@openshift-merge-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: enj
We suggest the following additional approver: mfojtik

Assign the PR to them by writing /assign @mfojtik in a comment when ready.

No associated issue. Update pull-request body to add a reference to an issue, or get approval with /approve no-issue

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 28, 2017
@openshift-merge-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: enj
We suggest the following additional approver: mfojtik

Assign the PR to them by writing /assign @mfojtik in a comment when ready.

No associated issue. Update pull-request body to add a reference to an issue, or get approval with /approve no-issue

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@stevekuznetsov stevekuznetsov changed the title WIP: User Read and Delete OauthClientAuthorizations WIP: User Read and Delete OauthClientAuthorizations Sep 7, 2017
@openshift-ci-robot

Copy link
Copy Markdown

@enj: Your pull request title starts with "WIP", so the do-not-merge/work-in-progress label will be added.

Details

This label will ensure that your pull request will not be merged. Remove the prefix from your pull request title to trigger the removal of the label and allow for your pull request to be merged.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 7, 2017
@openshift-merge-robot openshift-merge-robot added the vendor-update Touching vendor dir or related files label Oct 14, 2017
@openshift-bot

Copy link
Copy Markdown
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 19, 2018
@enj

enj commented Feb 19, 2018

Copy link
Copy Markdown
Contributor Author

/lifecycle frozen

@openshift-ci-robot openshift-ci-robot added the lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. label Feb 19, 2018
@enj enj removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 11, 2018
@openshift-bot

Copy link
Copy Markdown
Contributor

/test cross

@openshift-ci-robot

Copy link
Copy Markdown

@enj: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/openshift-jenkins/cross 7f73ea4 link /test cross
ci/prow/cross 7f73ea4 link /test cross
ci/prow/launch-aws 7f73ea4 link /test launch-aws
ci/prow/e2e-aws-serial 7f73ea4 link /test e2e-aws-serial
ci/prow/unit 7f73ea4 link /test unit
ci/prow/e2e-aws 7f73ea4 link /test e2e-aws
ci/prow/e2e-aws-builds 7f73ea4 link /test e2e-aws-builds
ci/prow/images-artifacts 7f73ea4 link /test images-artifacts

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@enj

enj commented Oct 9, 2019

Copy link
Copy Markdown
Contributor Author

@mfojtik @sttts @stlaz you may care one day.

/close

@openshift-ci-robot

Copy link
Copy Markdown

@enj: Closed this PR.

Details

In response to this:

@mfojtik @sttts @stlaz you may care one day.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

akhilerm pushed a commit to akhilerm/apimachinery that referenced this pull request Sep 20, 2022
Automatic merge from submit-queue (batch tested with PRs 40703, 40093, 40618, 40659, 39810)

Add AndSelectors helper function

I needed a simple way to logically `AND` two `Selectors` in openshift/origin#11909 for [this](https://github.com/enj/origin/blob/7259bf75966b961cb9c7aa2c0ee2930471a59eed/pkg/oauth/registry/oauthclientauthorization/etcd/etcd.go#L95-L114).

This seems like the cleanest way to express that intent.

Signed-off-by: Monis Khan <[email protected]>

Kubernetes-commit: 1bbd9dfa1193b8f2a9098e71fe47dec20a0b0305
mhan8796 pushed a commit to mhan8796/kubernetes that referenced this pull request Jun 26, 2026
Automatic merge from submit-queue (batch tested with PRs 40703, 40093, 40618, 40659, 39810)

Add AndSelectors helper function

I needed a simple way to logically `AND` two `Selectors` in openshift/origin#11909 for [this](https://github.com/enj/origin/blob/7259bf75966b961cb9c7aa2c0ee2930471a59eed/pkg/oauth/registry/oauthclientauthorization/etcd/etcd.go#L95-L114).

This seems like the cleanest way to express that intent.

Signed-off-by: Monis Khan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. needs-api-review needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. vendor-update Touching vendor dir or related files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants