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

Policy Reporter Link goes to "local" Cluster even though we selected a downstream cluster #545

Closed
Martin-Weiss opened this issue Nov 15, 2023 · 3 comments

Comments

@Martin-Weiss
Copy link

We can only see policy reporter in local cluster - never in downstream cluster when using the rancher UI extension integration of policy reporter.

rke-test is the downstream cluster:
(URL: https://rancher.suse/dashboard/c/c-m-x8d85l5v/kubewarden/policy-reporter)
grafik

local is the rancher cluster:
(URL: https://rancher.suse/dashboard/c/local/kubewarden/policy-reporter)
grafik

Steps to reproduce:

Deploy kubewarden in Rancher local cluster and in downstream cluster.
Then access the Policy Reporter in local cluster and compare this with accessing the Policy Reporter in downstream cluster
-> both are exactly the same so we can alway "only" see the local clusters policy report.

Issue: we see policy reporter results of rancher local cluster

Expectation: we can see the policy server results of the downstream cluster when we select them.

@Martin-Weiss
Copy link
Author

On the CLI we can see different report results:

local cluster:
grafik

downstream cluster:
grafik

@Martin-Weiss
Copy link
Author

Martin-Weiss commented Nov 15, 2023

FYI - this link works to access the downstream: https://rancher.suse/k8s/clusters/c-m-x8d85l5v/api/v1/namespaces/kubewarden/services/http:kubewarden-controller-ui:8080/proxy/#/ - so it really seems the extension renders the link wrong at the moment..

@jordojordo
Copy link
Member

This has been fixed with #522 - the proxy URL was not prepending the cluster id and thus pointing to the Local cluster by default.

With 1.3.0-rc2, you can see the correct link when hovering over the "Policy Reporter UI" link at the top right, also note I do not have the Reporter installed on my local cluster:
pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants