Package.json and package-lock,json are not scanned on a nginx image
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Stack tecnológico
- angular, docker, go, javascript, nginx, typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Go
- Estrellas
- 1.3k
- Forks
- 194
- Merge medio
- 2 d 20 h
- PR fusionados (30 d)
- 392
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de stackrox/stackrox
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
False positive: CVE-2023-29019 (@fastify/passport) reported against npm package passport 0.7.0Posiblemente ocupada @Molter73 la tomó hace 1 día. Abierto
stackrox/stackrox#23692 · 3 comentarios · 2 asignados ·
Los mantenedores suelen responder en 1 día
-
roxctl exit code (image check)Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
stackrox/stackrox#21616 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Scanner V4 DB (scanner-v4-db) disk usage grows significantly over time (16GB within a few weeks)Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
stackrox/stackrox#21463 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
stackrox/stackrox#20831 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de stackrox/stackrox
Issues similares
-
WriterSetTimes: the UTIME_NOW check fails when the kernel uses its coarse clockPosiblemente ocupada @JakeChampion la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
JakeChampion/lang#14224 ·
Los mantenedores suelen responder en 1 día
-
docs(reference): pi stream-filter bullet says tool_execution_update passes through unchangedAbiertoagent-butler-finding bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
jordansmall/spindrift#6391 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
SAP/crossplane-provider-btp#1175 ·
Los mantenedores suelen responder en 1 día
-
Broken links in the docsAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
adk: stream concatenation errors bypass retry and failoverPosiblemente ocupada @OUAO-FRANK la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día