Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors thrown in console for some components if user doesn't have permissions #12478

Open
eva-vashkevich opened this issue Nov 1, 2024 · 0 comments · May be fixed by #12479
Open

Errors thrown in console for some components if user doesn't have permissions #12478

eva-vashkevich opened this issue Nov 1, 2024 · 0 comments · May be fixed by #12479
Assignees
Labels
kind/bug QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this
Milestone

Comments

@eva-vashkevich
Copy link
Member

eva-vashkevich commented Nov 1, 2024

Setup

  • Rancher version: 2.10
  • Rancher UI Extensions: N/A
  • Browser type & version: N/A

Describe the bug

Some pages show error in the console when opened as a non-admin user

To Reproduce

Create a new standard user with the following custom roles
{ resource: "fleetworkspaces", verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]},
{ resource: "gitrepos", verbs: ["list"]},
{ resource: "bundles", verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]},

Go to Cluster management -> Advanced -> Pod Security Admissions
Result
Uncaught (in promise) Error: Unknown schema for type: storage.k8s.io.storageclass
at getters.js:24:1
at Object. (getters.js:139:1)
at Store.findAll (actions.js:196:1)
at Array.wrappedActionHandler (vuex.esm-bundler.js:305:1)
at Store.dispatch (vuex.esm-bundler.js:1032:1)
at Store.boundDispatch [as dispatch] (vuex.esm-bundler.js:914:1)
at Proxy.fetch (management.cattle.io.podsecurityadmissionconfigurationtemplate.vue:27:1)
at Proxy.$_fetch (fetch.client.js:73:1)
at Proxy.$fetch (fetch.client.js:53:1)
at Proxy.beforeMount (fetch.client.js:46:1)

Cluster management -> Drivers -> Node Drivers
Result
entry-helpers.js:40 TypeError: Cannot read properties of undefined (reading 'activate')
at get _availableActions (nodedriver.js:21:1)
at Reflect.get ()
at Object.get (reactivity.esm-bundler.js:492:1)
at get availableActions (resource-class.js:842:1)
at Reflect.get ()
at Object.get (reactivity.esm-bundler.js:492:1)
at Proxy.bulkActionsForSelection (selection.js:73:1)
at ReactiveEffect.run (reactivity.esm-bundler.js:190:1)
at get value (reactivity.esm-bundler.js:1171:1)
at Object.get [as bulkActionsForSelection] (

Expected Result

No error should be shown in the console

Continuous delivery -> Git repos -> Create a new repo -> Edit YAML this repo
Result
Page fails to load with the following error in the console:
entry-helpers.js:40 TypeError: Cannot read properties of null (reading 'doneOverride')
at Proxy.render (index.vue:420:1)
at renderComponentRoot (runtime-core.esm-bundler.js:914:1)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5720:1)
at ReactiveEffect.run (reactivity.esm-bundler.js:190:1)
at instance.update (runtime-core.esm-bundler.js:5763:1)
at callWithErrorHandling (runtime-core.esm-bundler.js:173:1)
at flushJobs (runtime-core.esm-bundler.js:406:1)

Expected Result
Page should load and error banner should be displayed

Screenshots

Additional context

@eva-vashkevich eva-vashkevich self-assigned this Nov 1, 2024
@github-actions github-actions bot added the QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this label Nov 1, 2024
@eva-vashkevich eva-vashkevich linked a pull request Nov 1, 2024 that will close this issue
7 tasks
@eva-vashkevich eva-vashkevich added this to the v2.11.0 milestone Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant