You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some system roles missing authorization.openshift.io/system-only annotation #16862
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
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.
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.
@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...
Activity
enj commentedon Oct 13, 2017
Sounds like the roles in
examples/service-catalog/service-catalog.yamlneed to be updated to have the annotation.benjaminapetersen commentedon Oct 13, 2017
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: trueto add to this whitelist.liggitt commentedon Oct 17, 2017
+1 for whitelist. you will never get all role creators to annotate.
benjaminapetersen commentedon Oct 17, 2017
Back to where we started :)
jwforres commentedon Oct 17, 2017
should we be whitelisting on the roles using an annotation, or whitelisting in the console using an extension with sane defaults
benjaminapetersen commentedon Oct 17, 2017
Perhaps just a list in
config.js?jwforres commentedon Oct 19, 2017
@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...
benjaminapetersen commentedon Oct 20, 2017
Sorry, meant
constants.js, yup!spadgett commentedon Oct 25, 2017
Looks like
sar-creatorandnamespace-viewerare also coming from the service-catalog template, too.benjaminapetersen commentedon Oct 30, 2017
History:
Merge pull request #2402 from benjaminapetersen/issue/16862/origin/ro…
enj commentedon Oct 31, 2017
@benjaminapetersen please open an origin PR for 3.8 to gut all the system-only stuff.