Package.json and package-lock,json are not scanned on a nginx image
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- angular, docker, go, javascript, nginx, typescript
Direzione di ricerca
Start by reproducing the report with the example Dockerfile, including package.json and package-lock.json at the image root, and compare StackRox 4.10.0 results with Trivy. Check how StackRox discovers JavaScript and TypeScript manifests in nginx images; done means confirming whether this is configuration, an unsupported scan case, or a product defect and recording the expected behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hey guys,
we are using stackrox 4.10.0 to check our kubernetes environment for CVEs. We are building SPAs with Angular and copy the generated JS/HTML into NGINX images.
Package.json on nginx
When we also put the package.json and package-lock.json into the root folder of the NGINX image, then no CVEs from the JavaScript/TypeScript workloads appear. We expect to see the same issues in stackrox as in trivy during the build of angular. We only see the issues from the underlying linux.
We are seeing this as well with .net images (where the .net dlls in a dotnet baseimage won't trigger any CVE alerts, only the issues from the underlying linux are shown.).
As we are just starting with stackrox, this could be a configuration mistake as well.
Example Dockerfile:
FROM corporateregistry,io/baseimages/nginx:latest
ARG NGINX_CONFIG_PATH=./workspace/nginx/default/default.conf
ARG APP_NAME=startseite
ARG APP_ROOTFOLDER=./workspace/dist/apps/
EXPOSE 8080
ENV APP_NAME=${APP_NAME}
ENV NGINX_ENVSUBST_TEMPLATE_DIR=/usr/share/nginx/html/browser/assets
ENV NGINX_ENVSUBST_OUTPUT_DIR=/usr/share/nginx/html/browser/assets
ENV NGINX_ENVSUBST_TEMPLATE_SUFFIX=.template
COPY ./workspace/package.json /package.json
COPY ./workspace/package-lock.json /package-lock.json
COPY ${NGINX_CONFIG_PATH} /etc/nginx/conf.d/
COPY ${APP_ROOTFOLDER}/${APP_NAME} /usr/share/nginx/html
Thanks in advance
- Lingua principale
- Go
- Stelle
- 1.3k
- Fork
- 194
- Merge medio
- 2g 20h
- PR unite (30g)
- 392
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stackrox/stackrox
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
False positive: CVE-2023-29019 (@fastify/passport) reported against npm package passport 0.7.0Forse già presa @Molter73 l’ha presa 1 giorno fa. Aperta
stackrox/stackrox#23692 · 3 commenti · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
stackrox/stackrox#21616 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Scanner V4 DB (scanner-v4-db) disk usage grows significantly over time (16GB within a few weeks)Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
stackrox/stackrox#21463 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
stackrox/stackrox#20831 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di stackrox/stackrox
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
SAP/crossplane-provider-btp#1175 ·
I maintainer di solito rispondono entro 1 giorno
-
adk: stream concatenation errors bypass retry and failoverForse già presa @OUAO-FRANK l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
google/osv-scalibr#2586 ·
I maintainer di solito rispondono entro 2 giorni
-
Add an MCP server: imageatApertaneeds-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
stacklok/toolhive-catalog#1890 ·
I maintainer di solito rispondono entro 1 giorno
-
heap: pushing an item that is already queued corrupts the indexForse già presa @lbarrosby l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
kubernetes-sigs/kwok#1800 ·
I maintainer di solito rispondono entro 1 giorno