Skip to content

oauthclientauthorizations are not repeared or GC'd #15120

Open

Description

@enj

If the client or user no longer exists, the oauthclientauthorization should be deleted.

Activity

  1. self-assigned this
    on Jul 10, 2017
  2. abstractj commented on Jul 20, 2017

    @abstractj

    @enj wise Mo. When you get the chance, could you provide the steps to reproduce it? Even if you're going to work on it, I'd like to see the issue.

  3. enj commented on Jul 20, 2017

    @enj
    ContributorAuthor
    1. oc cluster up or equivalent
    2. Go to web console and login as developer
    3. Create new project foo
    4. Create Jenkins + OAuth
    5. Once Jenkins is ready, log into Jenkins as developer using OAuth
    6. Using oc as system:admin, observe that an oauthclientauthorization object is created
    7. In the web console as developer, delete project foo
    8. Use oc to see the now dangling oauthclientauthorization (try to update its scope and it will complain about a missing client)
  4. abstractj commented on Jul 25, 2017

    @abstractj

    @enj I managed to reproduce all the steps you mentioned, except the number 8. I couldn't find any docs about how to update oauth scope using oc client.

    Would you say that this issue is somewhat related with your comment here openshift/openshift-docs#3404 (comment)? Because delete is not working.

    I did exactly what you mentioned at your comments:

    $ oc get oauthclientauthorization -o jsonpath="{range .items[*]}{.metadata.name}{\"\\n\"}{end}" | grep -v '::' | xargs -n 1 echo oc delete oauthclientauthorization
    $ oc delete oauthclientauthorization developer:system:serviceaccount:foo:jenkins
    $ oc get oauthclientauthorization
    NAME                                          USER NAME   CLIENT NAME                         SCOPES
    developer:system:serviceaccount:foo:jenkins   developer   system:serviceaccount:foo:jenkins   user:info,user:check-access
    
  5. enj commented on Jul 26, 2017

    @enj
    ContributorAuthor

    @abstractj the functionality mentioned in openshift/openshift-docs#3404 (comment) has not been implemented yet, see #11909

    To reproduce 8 all you need to do is oc edit oauthclientauthorization <name> and then edit the scope slice with extra data.

  6. openshift-bot commented on Feb 16, 2018

    @openshift-bot
    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

  7. added
    lifecycle/stale
    on Feb 16, 2018
  8. enj commented on Feb 19, 2018

    @enj
    ContributorAuthor

    /lifecycle frozen

  9. added
    lifecycle/frozen
    on Feb 19, 2018
  10. removed
    lifecycle/stale
    on Sep 28, 2018
  11. enj commented on Oct 16, 2019

    @enj
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/securitycomponent/authlifecycle/frozenpriority/P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions