aquasecurity / trivy-operator-lens-extension

https://github.com/aquasecurity/trivy-operator
Apache License 2.0
37 stars 12 forks source link

extension not showing anything #24

Open dkarnutsch opened 2 years ago

dkarnutsch commented 2 years ago

I've installed the extension and it seems to be enabled.

Screenshot 2022-08-18 at 17 05 54

However, I can't see the "trivy-operator" menu item.

Screenshot 2022-08-18 at 17 07 28

If I query kubernetes for vulnerabilityreports, I get results:

➜  ~/ws/trivy-operator git:(main) ✗     kubectl get vulnerabilityreports --all-namespaces -o wide
NAMESPACE          NAME                                                            REPOSITORY                              TAG       SCANNER   AGE    CRITICAL   HIGH   MEDIUM   LOW   UNKNOWN
networking         replicaset-5b5d79cdb                                            jetstack/cert-manager-webhook           v1.8.0    Trivy     22d    0          3      2        0     0
networking         replicaset-5f654bd746                                           ingress-nginx/controller                          Trivy     22d    3          14     13       0     0
networking         replicaset-5ffc85d65                                            jetstack/cert-manager-webhook           v1.5.3    Trivy     22d    0          0      0        0     0

Versions used:

Lens: 6.0.1-latest.20220810.2
Electron: 15.5.7
Chrome: 94.0.4606.81
Node: 16.5.0
MacOS: 12.4
helm.sh/chart: trivy-operator-0.1.6
Kubernetes-Version: 1.22.11

Any help appreciated.

chen-keinan commented 2 years ago

@dkarnutsch can you try restart lens ?

dkarnutsch commented 2 years ago

Yes, I tried to restart Lens a couple of times. Still no luck.

chen-keinan commented 2 years ago

@dkarnutsch I was not able to reproduce the issue. Can you check if it work with older version of lens and trivy-operator-lens-extension ? For example:

dkarnutsch commented 2 years ago

@chen-keinan It is hard to get older versions of Lens as they are not linked on the website. However, I've tried it with the following Lens version

Lens: 5.5.4-latest.20220609.2
Electron: 14.2.9
Chrome: 93.0.4577.82
Node: 14.17.0

and trivy-operator-lens-extension v0.0.5 but is is not working. I will try it with another machine as this one has Apple Silicon.

chen-keinan commented 2 years ago

and trivy-operator-lens-extension v0.0.5 but is is not working. I will try it with another machine as this one has Apple Silicon.

Please do and let me know.

btw: I'm running on Apple Silicon myself and it works for me. I'll ask my teammates to check it as well.

dkarnutsch commented 2 years ago

It is also not working on another device. I get a couple of errors in the console, which might help:

BrowserConsole.js:47 [EXTENSIONS-LOADER]: can't load renderer for "@aquasecurity/trivy-operator-lens-extension": Error: Cannot find module '/Users/danielkarnutsch/Library/Application Support/Lens/node_modules/@aquasecurity/trivy-operator-lens-extension/dist/renderer.js'
Require stack:
- electron/js2c/renderer_init
    at Module._resolveFilename (node:internal/modules/cjs/loader:934:15)
    at Function.o._resolveFilename (node:electron/js2c/renderer_init:29:1118)
    at Module._load (node:internal/modules/cjs/loader:779:27)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
    at Function.o._load (node:electron/js2c/renderer_init:29:379)
    at Module.require (node:internal/modules/cjs/loader:1006:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at ExtensionLoader.requireExtension (http://b9c501df7479e50a8b31db77f24f05fb.localhost:49250/build/Lens.js?638f230ede63077704e9:529164:20)
    at http://b9c501df7479e50a8b31db77f24f05fb.localhost:49250/build/Lens.js?638f230ede63077704e9:529104:53
    at Array.map (<anonymous>) Object
__webpack_modules__.1246.BrowserConsole.log @ BrowserConsole.js:47
chen-keinan commented 2 years ago

@dkarnutsch sorry it's took too long for me to response, I will ask my coworker to test it also on a him computer as I'm unable to reproduce it on mime.

dkarnutsch commented 2 years ago

@chen-keinan thanks for coming back!

I gave it another try and it is still not working with the following versions used:

I'll also let a Co-Worker try it!

AnthonyDewhirst commented 1 week ago

@dkarnutsch did you get anywhere with this? Is this repo dead?