diff --git a/Dockerfile b/Dockerfile index f2bb28d..e946f83 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,11 @@ COPY assets /app/assets/ EXPOSE 8080 # Definir variable de entorno por defecto (puede sobreescribirse en K8s/OpenShift/Docker) -ENV HARBOR_URL="https://tu-harbor-corporativo.com" +ENV HARBOR_URL="https://harbor.tu-dominio.com" +ENV HARBOR_ROBOT="admin" +ENV HARBOR_TOKEN="tu-token-super-secreto-aqui" # Ejecutar el proxy de Python CMD ["python3", "proxy-harbor.py"] + diff --git a/docker-run.sh b/docker-run.sh new file mode 100644 index 0000000..4dbd94e --- /dev/null +++ b/docker-run.sh @@ -0,0 +1,2 @@ +#!/bin/bash +docker run --env-file .env -p 8080:8080 harbor-security-portal diff --git a/env.yaml b/env.yaml index 4764342..02af257 100644 --- a/env.yaml +++ b/env.yaml @@ -1,23 +1,31 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: harbor-security-portal + name: harbor-vuln-portal spec: replicas: 1 selector: matchLabels: - app: harbor-security-portal + app: harbor-vuln-portal template: metadata: labels: - app: harbor-security-portal + app: harbor-vuln-portal spec: containers: - - name: portal - image: tu-registro-interno/harbor-security-portal:latest + - name: proxy + image: tu-registry/harbor-vuln-portal:latest ports: - containerPort: 8080 env: - name: HARBOR_URL - value: "https://harbor.tu-empresa.com" + value: "https://harbor.tu-dominio.com" + - name: HARBOR_ROBOT + value: "usuario" + - name: HARBOR_TOKEN + valueFrom: + secretKeyRef: + name: harbor-robot-secret # Recomendado usar Secrets en K8s/OpenShift + key: token + diff --git a/fichero.env b/fichero.env new file mode 100644 index 0000000..f580473 --- /dev/null +++ b/fichero.env @@ -0,0 +1,4 @@ +HARBOR_URL=https://harbor.tu-dominio.com +HARBOR_ROBOT=admin +HARBOR_TOKEN=tu-token-super-secreto-aqui + diff --git a/index.html b/index.html index 989c4bb..a2b20f5 100644 --- a/index.html +++ b/index.html @@ -34,21 +34,15 @@
-
+
- Sin Autenticar + Comprobando conexión...
- - -
@@ -77,6 +71,26 @@
+ +
+
+ Distribución de Severidad de Vulnerabilidades + Correcciones (Fixable): Cargando... +
+
+
+
+
+
+
+
+
Críticas
+
Altas
+
Medias
+
Bajas
+
+
+

@@ -104,7 +118,7 @@

@@ -147,7 +161,7 @@

Realiza una búsqueda para consultar la API

-

Selecciona un filtro superior y pulsa SEARCH API.

+

Selecciona un filtro superior y pulsa BUSCAR.

@@ -167,22 +181,7 @@ - - - - +