Skip to content

Some system roles missing authorization.openshift.io/system-only annotation #16862

Closed
openshift/origin-web-console
#2402

Description

@spadgett

Some roles are showing up in the web console membership page that probably shouldn't because they're missing the authorization.openshift.io/system-only annotation. See

openshift web console 2017-10-13 12-08-42

service-catalog-controller shouldn't be there and maybe some others. The console will hide roles with that annotation unless a "Show system roles" checkbox is checked.

cc @benjaminapetersen @enj @pmorie

Version

oc v3.7.0-alpha.1+572fb85-1047
kubernetes v1.7.6+a08f5eeb62
features: Basic-Auth

Server https://127.0.0.1:8443
openshift v3.7.0-alpha.1+572fb85-1047
kubernetes v1.7.6+a08f5eeb62

Activity

  1. enj commented on Oct 13, 2017

    @enj
    Contributor

    Sounds like the roles in examples/service-catalog/service-catalog.yaml need to be updated to have the annotation.

  2. benjaminapetersen commented on Oct 13, 2017

    @benjaminapetersen
    Contributor

    I think this made sense back when we first introduced it, but it seems like there are too many parties adding roles now to keep up. It might make sense to go back to a whitelist of roles in the config file of the console (or we just hard-code it in the membership module), and allow role authors to add an annotation to userFacing: true to add to this whitelist.

  3. liggitt commented on Oct 17, 2017

    @liggitt
    Contributor

    +1 for whitelist. you will never get all role creators to annotate.

  4. benjaminapetersen commented on Oct 17, 2017

    @benjaminapetersen
    Contributor

    Back to where we started :)

  5. jwforres commented on Oct 17, 2017

    @jwforres
    Member

    should we be whitelisting on the roles using an annotation, or whitelisting in the console using an extension with sane defaults

  6. benjaminapetersen commented on Oct 17, 2017

    @benjaminapetersen
    Contributor

    Perhaps just a list in config.js?

  7. added
    kind/bug
    on Oct 18, 2017
  8. jwforres commented on Oct 19, 2017

    @jwforres
    Member

    @benjaminapetersen wouldn't be in config.js, it would be in constants.js if we do it in the console code. I'm fine with going back to that. Just means @enj needs to let us know when there is a new default role that makes sense to expose to users. I expect this will not be often...

  9. benjaminapetersen commented on Oct 20, 2017

    @benjaminapetersen
    Contributor

    Sorry, meant constants.js, yup!

  10. spadgett commented on Oct 25, 2017

    @spadgett
    MemberAuthor

    Looks like sar-creator and namespace-viewer are also coming from the service-catalog template, too.

  11. added a commit that references this issue on Oct 30, 2017
  12. enj commented on Oct 31, 2017

    @enj
    Contributor

    @benjaminapetersen please open an origin PR for 3.8 to gut all the system-only stuff.

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

Metadata

Metadata

Labels

component/webkind/bugpriority/P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions