diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..c6e91bd08 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,127 @@ +name: ci + +on: + push: + branches: [main] + paths: + - 'app/**' + - '.github/workflows/ci.yml' + pull_request: + branches: [main] + paths: + - 'app/**' + - '.github/workflows/ci.yml' + +concurrency: + group: ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + changes: + name: changes + runs-on: ubuntu-24.04 + outputs: + app_code: ${{ steps.filter.outputs.app_code }} + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.2.2 + with: + fetch-depth: 0 + - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 + id: filter + with: + filters: | + app_code: + - 'app/**' + - '!app/**/*.md' + - '.github/workflows/ci.yml' + + vet: + name: vet + runs-on: ubuntu-24.04 + strategy: + fail-fast: false + matrix: + go-version: ['1.23', '1.24'] + defaults: + run: + working-directory: app + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.2.2 + with: + fetch-depth: 1 + - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 + with: + go-version: ${{ matrix.go-version }} + cache: true + cache-dependency-path: app/go.mod + - run: go vet ./... + + test: + name: test + runs-on: ubuntu-24.04 + strategy: + fail-fast: false + matrix: + go-version: ['1.23', '1.24'] + defaults: + run: + working-directory: app + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.2.2 + with: + fetch-depth: 1 + - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 + with: + go-version: ${{ matrix.go-version }} + cache: true + cache-dependency-path: app/go.mod + - env: + GOFLAGS: -buildvcs=false + run: go test -race -count=1 ./... + + govulncheck: + name: govulncheck + runs-on: ubuntu-24.04 + defaults: + run: + working-directory: app + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.2.2 + with: + fetch-depth: 1 + - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 + with: + go-version: '1.26.4' + cache: true + cache-dependency-path: app/go.mod + - name: Install govulncheck + run: go install golang.org/x/vuln/cmd/govulncheck@v1.1.4 + - name: Run govulncheck + run: $(go env GOPATH)/bin/govulncheck ./... + + lint: + name: lint + needs: changes + if: ${{ github.event_name == 'push' || needs.changes.outputs.app_code == 'true' }} + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.2.2 + with: + fetch-depth: 1 + - uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0 + with: + version: v2.5.0 + working-directory: app + cache: true + + ci-ok: + name: ci-ok + if: always() + needs: [vet, test, lint, govulncheck] + runs-on: ubuntu-24.04 + steps: + - run: | + test "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" = "false" diff --git a/app/.dockerignore b/app/.dockerignore new file mode 100644 index 000000000..6b5ba83e5 --- /dev/null +++ b/app/.dockerignore @@ -0,0 +1,6 @@ +data/ +*.pcap +lab4-trace* +sudo +wsl +.git diff --git a/app/Dockerfile b/app/Dockerfile new file mode 100644 index 000000000..ae88549b5 --- /dev/null +++ b/app/Dockerfile @@ -0,0 +1,32 @@ +# syntax=docker/dockerfile:1 + +FROM golang:1.24.13-alpine AS builder +WORKDIR /src + +COPY go.mod ./ +RUN go mod download + +COPY . . +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \ + -trimpath -ldflags='-s -w' -o /quicknotes . + +# Tiny static HTTP probe — distroless has no shell/curl for HEALTHCHECK +RUN printf '%s\n' \ + 'package main' \ + 'import ("net/http"; "os")' \ + 'func main() {' \ + ' r, err := http.Get("http://127.0.0.1:8080/health")' \ + ' if err != nil || r == nil || r.StatusCode != http.StatusOK { os.Exit(1) }' \ + '}' \ + > /healthcheck.go && \ + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \ + -trimpath -ldflags='-s -w' -o /healthcheck /healthcheck.go + +FROM gcr.io/distroless/static:nonroot +COPY --from=builder /quicknotes /quicknotes +COPY --from=builder /healthcheck /healthcheck +COPY seed.json /seed.json + +EXPOSE 8080 +USER nonroot +ENTRYPOINT ["/quicknotes"] diff --git a/app/handlers_test.go b/app/handlers_test.go index 9dff2e3e5..5aced7168 100644 --- a/app/handlers_test.go +++ b/app/handlers_test.go @@ -31,7 +31,7 @@ func do(t *testing.T, srv *Server, method, target string, body any) *httptest.Re } req := httptest.NewRequest(method, target, &buf) rec := httptest.NewRecorder() - srv.Routes().ServeHTTP(rec, req) + srv.Handler().ServeHTTP(rec, req) return rec } @@ -131,3 +131,31 @@ func TestMetrics_ExposesPrometheusFormat(t *testing.T) { } } +func TestSecurityHeaders_PresentOnResponses(t *testing.T) { + srv := newTestServer(t) + rec := do(t, srv, http.MethodGet, "/health", nil) + + want := map[string]string{ + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "DENY", + "Content-Security-Policy": "default-src 'none'", + "Referrer-Policy": "no-referrer", + } + for header, value := range want { + if got := rec.Header().Get(header); got != value { + t.Errorf("%s = %q, want %q", header, got, value) + } + } +} + +func TestSecurityHeaders_AbsentWithoutMiddleware(t *testing.T) { + srv := newTestServer(t) + req := httptest.NewRequest(http.MethodGet, "/health", nil) + rec := httptest.NewRecorder() + srv.Routes().ServeHTTP(rec, req) + + if got := rec.Header().Get("X-Content-Type-Options"); got != "" { + t.Fatalf("expected no security headers without middleware, got X-Content-Type-Options=%q", got) + } +} + diff --git a/app/main.go b/app/main.go index e258ffcfe..aa3dd9e7c 100644 --- a/app/main.go +++ b/app/main.go @@ -28,7 +28,7 @@ func main() { server := NewServer(store) srv := &http.Server{ Addr: addr, - Handler: server.Routes(), + Handler: server.Handler(), ReadHeaderTimeout: 5 * time.Second, } diff --git a/app/middleware.go b/app/middleware.go new file mode 100644 index 000000000..872253619 --- /dev/null +++ b/app/middleware.go @@ -0,0 +1,19 @@ +package main + +import "net/http" + +// SecurityHeaders applies baseline HTTP security headers to every response. +func SecurityHeaders(next http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.Header().Set("X-Content-Type-Options", "nosniff") + w.Header().Set("X-Frame-Options", "DENY") + w.Header().Set("Content-Security-Policy", "default-src 'none'") + w.Header().Set("Referrer-Policy", "no-referrer") + next.ServeHTTP(w, r) + }) +} + +// Handler returns the production handler chain (security middleware + routes). +func (s *Server) Handler() http.Handler { + return SecurityHeaders(s.Routes()) +} diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 000000000..d79a2955a --- /dev/null +++ b/compose.yaml @@ -0,0 +1,69 @@ +services: + vol-init: + image: busybox:1.36 + user: "0" + volumes: + - quicknotes-data:/data + command: ["sh", "-c", "mkdir -p /data && chown 65532:65532 /data"] + restart: "no" + + quicknotes: + build: + context: ./app + dockerfile: Dockerfile + image: quicknotes:lab6 + depends_on: + vol-init: + condition: service_completed_successfully + ports: + - "8080:8080" + environment: + ADDR: ":8080" + DATA_PATH: "/data/notes.json" + SEED_PATH: "/seed.json" + volumes: + - quicknotes-data:/data + restart: unless-stopped + healthcheck: + test: ["CMD", "/healthcheck"] + interval: 10s + timeout: 3s + retries: 3 + start_period: 5s + cap_drop: + - ALL + read_only: true + tmpfs: + - /tmp + security_opt: + - no-new-privileges:true + + prometheus: + image: prom/prometheus:v3.2.1 + ports: + - "9090:9090" + volumes: + - ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro + - ./monitoring/prometheus/rules:/etc/prometheus/rules:ro + depends_on: + quicknotes: + condition: service_healthy + restart: unless-stopped + + grafana: + image: grafana/grafana:13.0.3 + ports: + - "3000:3000" + environment: + GF_SECURITY_ADMIN_USER: admin + GF_SECURITY_ADMIN_PASSWORD: lab8-grafana-admin + GF_USERS_ALLOW_SIGN_UP: "false" + volumes: + - ./monitoring/grafana/provisioning:/etc/grafana/provisioning:ro + - ./monitoring/grafana/dashboards:/var/lib/grafana/dashboards:ro + depends_on: + - prometheus + restart: unless-stopped + +volumes: + quicknotes-data: diff --git a/docs/runbook/high-error-rate.md b/docs/runbook/high-error-rate.md new file mode 100644 index 000000000..51a10df4f --- /dev/null +++ b/docs/runbook/high-error-rate.md @@ -0,0 +1,29 @@ +# Runbook: High HTTP Error Rate + +## What this alert means + +QuickNotes is returning more than 5% HTTP 4xx/5xx responses sustained for five minutes — users are likely seeing failed requests. + +## Triage steps + +1. **Confirm the alert** — open Prometheus (`http://localhost:9090/alerts`) or Grafana and verify `HighErrorRate` is `Firing`; note the start time. +2. **Check QuickNotes health** — `curl -s http://localhost:8080/health` and `docker compose ps quicknotes`; confirm the container is `healthy` and `status` is `ok`. +3. **Inspect recent logs** — `docker compose logs --tail=100 quicknotes` for panics, permission errors, or repeated 4xx patterns. +4. **Check the error ratio query** — in Prometheus, run: + ```promql + sum(rate(quicknotes_http_responses_by_code_total{code=~"4..|5.."}[5m])) + / + sum(rate(quicknotes_http_requests_total[5m])) + ``` + Break down by `code` label to see whether errors are mostly 400s (bad clients) or 5xx (server faults). + +## Mitigations + +1. **Restart QuickNotes** — `docker compose restart quicknotes` to clear a stuck process or bad in-memory state while you investigate. +2. **Stop bad traffic** — if a script or client is sending malformed `POST /notes` bodies, pause or throttle it; errors should fall below 5% within the next evaluation window. + +## Post-incident + +1. Write a **blameless postmortem** using the format in [Lecture 1 — postmortems](../../lectures/lec1.md) (what happened, why, action items with owners and dates). +2. Add or tighten tests/alerts if the root cause was preventable (e.g., validation bug, missing rate limit). +3. Update this runbook if any triage step was missing or misleading. diff --git a/monitoring/docs/bonus-checkly-setup.md b/monitoring/docs/bonus-checkly-setup.md new file mode 100644 index 000000000..7e136af83 --- /dev/null +++ b/monitoring/docs/bonus-checkly-setup.md @@ -0,0 +1,55 @@ +# Lab 8 Bonus — Checkly + ngrok setup + +## 1. Expose QuickNotes publicly + +QuickNotes must be running (`docker compose up -d`). + +In a **new PowerShell terminal** (keep it open): + +```powershell +ngrok http 8080 +``` + +Copy the **Forwarding** HTTPS URL, e.g. `https://abc123.ngrok-free.app` + +Test it: + +```powershell +Invoke-RestMethod https://YOUR-NGROK-URL/health +``` + +## 2. Create Checkly API check (free account) + +1. Sign up at https://www.checklyhq.com/ +2. **Checks → Add check → API check** +3. Settings: + - **Name:** `QuickNotes health (Lab 8)` + - **URL:** `https://YOUR-NGROK-URL/health` + - **Method:** GET + - **Frequency:** 1 minute + - **Locations:** pick **2 regions** (e.g. `Frankfurt (eu-central-1)` + `Singapore (ap-southeast-1)`) + - **Assertion:** status code equals `200` + - **Assertion:** response time less than `2000` ms +4. Save and enable the check. + +## 3. Let it run >= 30 minutes + +Leave ngrok + Checkly running. Optionally generate light traffic: + +```bash +bash monitoring/scripts/generate-traffic.sh +``` + +## 4. Collect numbers for `submissions/lab8.md` + +**Prometheus (internal):** + +```bash +bash monitoring/scripts/bonus-prometheus-snapshot.sh +``` + +**Checkly (external):** open the check → **Check results** / **Metrics** → note p50/p95 latency and failures per region over the same 30-minute window. + +## 5. Stop ngrok when done + +`Ctrl+C` in the ngrok terminal. diff --git a/monitoring/grafana/dashboards/golden-signals.json b/monitoring/grafana/dashboards/golden-signals.json new file mode 100644 index 000000000..181968fd4 --- /dev/null +++ b/monitoring/grafana/dashboards/golden-signals.json @@ -0,0 +1,180 @@ +{ + "annotations": { + "list": [] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "unit": "reqps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "expr": "rate(quicknotes_http_requests_total[1m])", + "legendFormat": "requests/sec (latency proxy)", + "refId": "A" + } + ], + "title": "Latency (proxy: request rate)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "unit": "reqps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 + }, + "id": 2, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "expr": "rate(quicknotes_http_requests_total[5m])", + "legendFormat": "traffic", + "refId": "A" + } + ], + "title": "Traffic", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "max": 1, + "min": 0, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 8 + }, + "id": 3, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "expr": "sum(rate(quicknotes_http_responses_by_code_total{code=~\"4..|5..\"}[5m])) / sum(rate(quicknotes_http_requests_total[5m]))", + "legendFormat": "error ratio", + "refId": "A" + } + ], + "title": "Errors (4xx+5xx / total)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 4, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + }, + "targets": [ + { + "expr": "quicknotes_notes_total", + "legendFormat": "notes stored", + "refId": "A" + } + ], + "title": "Saturation (notes stored)", + "type": "timeseries" + } + ], + "refresh": "10s", + "schemaVersion": 39, + "tags": [ + "lab8", + "golden-signals" + ], + "templating": { + "list": [] + }, + "time": { + "from": "now-15m", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "QuickNotes Golden Signals", + "uid": "quicknotes-golden-signals", + "version": 1 +} diff --git a/monitoring/grafana/provisioning/dashboards/dashboard.yml b/monitoring/grafana/provisioning/dashboards/dashboard.yml new file mode 100644 index 000000000..65df331c2 --- /dev/null +++ b/monitoring/grafana/provisioning/dashboards/dashboard.yml @@ -0,0 +1,12 @@ +apiVersion: 1 + +providers: + - name: golden-signals + orgId: 1 + folder: QuickNotes + type: file + disableDeletion: false + editable: true + updateIntervalSeconds: 30 + options: + path: /var/lib/grafana/dashboards diff --git a/monitoring/grafana/provisioning/datasources/datasource.yml b/monitoring/grafana/provisioning/datasources/datasource.yml new file mode 100644 index 000000000..f7b72a490 --- /dev/null +++ b/monitoring/grafana/provisioning/datasources/datasource.yml @@ -0,0 +1,10 @@ +apiVersion: 1 + +datasources: + - name: Prometheus + type: prometheus + access: proxy + url: http://prometheus:9090 + isDefault: true + editable: false + uid: prometheus diff --git a/monitoring/prometheus/prometheus.yml b/monitoring/prometheus/prometheus.yml new file mode 100644 index 000000000..ba72c885b --- /dev/null +++ b/monitoring/prometheus/prometheus.yml @@ -0,0 +1,12 @@ +global: + scrape_interval: 15s + +rule_files: + - /etc/prometheus/rules/*.yml + +scrape_configs: + - job_name: quicknotes + metrics_path: /metrics + static_configs: + - targets: + - quicknotes:8080 diff --git a/monitoring/prometheus/rules/high-error-rate.yml b/monitoring/prometheus/rules/high-error-rate.yml new file mode 100644 index 000000000..1964bd2b4 --- /dev/null +++ b/monitoring/prometheus/rules/high-error-rate.yml @@ -0,0 +1,16 @@ +groups: + - name: quicknotes + rules: + - alert: HighErrorRate + expr: | + ( + sum(rate(quicknotes_http_responses_by_code_total{code=~"4..|5.."}[5m])) + / + sum(rate(quicknotes_http_requests_total[5m])) + ) > 0.05 + for: 5m + labels: + severity: page + annotations: + summary: QuickNotes HTTP error ratio exceeds 5% for 5 minutes + runbook_url: docs/runbook/high-error-rate.md diff --git a/monitoring/scripts/bonus-prometheus-snapshot.sh b/monitoring/scripts/bonus-prometheus-snapshot.sh new file mode 100644 index 000000000..aefe15d98 --- /dev/null +++ b/monitoring/scripts/bonus-prometheus-snapshot.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash +# Snapshot Prometheus golden-signal stats for Lab 8 bonus comparison. +# Run after Checkly has probed for >= 30 minutes. +# Usage: bash monitoring/scripts/bonus-prometheus-snapshot.sh + +set -euo pipefail + +PROM="${PROM:-http://localhost:9090}" +WINDOW="${WINDOW:-30m}" + +query() { + curl -sG "${PROM}/api/v1/query" --data-urlencode "query=$1" \ + | jq -r '.data.result[0].value[1] // "n/a"' +} + +echo "=== Prometheus snapshot (window: ${WINDOW}) ===" +echo +echo "Request rate (traffic proxy, req/s):" +query "rate(quicknotes_http_requests_total[${WINDOW}])" +echo +echo "Error ratio:" +query "sum(rate(quicknotes_http_responses_by_code_total{code=~\"4..|5..\"}[${WINDOW}])) / sum(rate(quicknotes_http_requests_total[${WINDOW}]))" +echo +echo "4xx+5xx count (increase):" +query "sum(increase(quicknotes_http_responses_by_code_total{code=~\"4..|5..\"}[${WINDOW}]))" +echo +echo "Total requests (increase):" +query "sum(increase(quicknotes_http_requests_total[${WINDOW}]))" +echo +echo "Notes stored (gauge, current):" +query "quicknotes_notes_total" +echo +echo "Note: QuickNotes has no request-duration histogram; use Checkly for external p50/p95 latency." diff --git a/monitoring/scripts/generate-traffic.sh b/monitoring/scripts/generate-traffic.sh new file mode 100644 index 000000000..1d0bc4f59 --- /dev/null +++ b/monitoring/scripts/generate-traffic.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# Generate mixed traffic against QuickNotes (Lab 8 Task 1). +# Usage: ./monitoring/scripts/generate-traffic.sh + +set -euo pipefail + +BASE_URL="${BASE_URL:-http://localhost:8080}" +COUNT="${COUNT:-200}" + +echo "Sending ${COUNT} requests to ${BASE_URL} ..." + +for i in $(seq 1 "$COUNT"); do + case $((i % 4)) in + 0) curl -sf "${BASE_URL}/health" -o /dev/null ;; + 1) curl -sf "${BASE_URL}/notes" -o /dev/null ;; + 2) curl -sf -X POST "${BASE_URL}/notes" \ + -H 'Content-Type: application/json' \ + -d "{\"title\":\"traffic-${i}\",\"body\":\"lab8\"}" -o /dev/null ;; + 3) curl -sf "${BASE_URL}/notes/1" -o /dev/null || true ;; + esac +done + +echo "Done." diff --git a/monitoring/scripts/inject-errors.sh b/monitoring/scripts/inject-errors.sh new file mode 100644 index 000000000..9cee47cbb --- /dev/null +++ b/monitoring/scripts/inject-errors.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash +# Inject sustained 4xx errors alongside healthy traffic (Lab 8 Task 2). +# Run for >= 6 minutes so the 5m "for:" window can fire HighErrorRate. +# Usage: ./monitoring/scripts/inject-errors.sh + +set -euo pipefail + +BASE_URL="${BASE_URL:-http://localhost:8080}" +DURATION_SEC="${DURATION_SEC:-360}" + +echo "Injecting errors for ${DURATION_SEC}s against ${BASE_URL} ..." + +end=$((SECONDS + DURATION_SEC)) +while [ "$SECONDS" -lt "$end" ]; do + curl -sf "${BASE_URL}/health" -o /dev/null || true + curl -sf "${BASE_URL}/notes" -o /dev/null || true + # Malformed JSON -> 400 + curl -s -X POST "${BASE_URL}/notes" \ + -H 'Content-Type: application/json' \ + -d '{"title":""}' -o /dev/null || true + curl -s -X POST "${BASE_URL}/notes" \ + -H 'Content-Type: application/json' \ + -d 'not-json' -o /dev/null || true + sleep 1 +done + +echo "Done." diff --git a/security/reports/govulncheck-green.txt b/security/reports/govulncheck-green.txt new file mode 100644 index 000000000..ea72fbf61 Binary files /dev/null and b/security/reports/govulncheck-green.txt differ diff --git a/security/reports/govulncheck-red.txt b/security/reports/govulncheck-red.txt new file mode 100644 index 000000000..0e93c47ee Binary files /dev/null and b/security/reports/govulncheck-red.txt differ diff --git a/security/reports/quicknotes-sbom.json b/security/reports/quicknotes-sbom.json new file mode 100644 index 000000000..05914ce91 --- /dev/null +++ b/security/reports/quicknotes-sbom.json @@ -0,0 +1,537 @@ +{ + "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json", + "bomFormat": "CycloneDX", + "specVersion": "1.6", + "serialNumber": "urn:uuid:458eae96-8901-4a3e-a318-8aff125ca714", + "version": 1, + "metadata": { + "timestamp": "2026-06-25T23:57:16+00:00", + "tools": { + "components": [ + { + "type": "application", + "group": "aquasecurity", + "name": "trivy", + "version": "0.59.1" + } + ] + }, + "component": { + "bom-ref": "pkg:oci/quicknotes@sha256%3A98f4e47b07633d15a9b3b3c0b94f98e9c8dcde8746d8416eaf1fd4ef270088dc?arch=amd64&repository_url=index.docker.io%2Flibrary%2Fquicknotes", + "type": "container", + "name": "quicknotes:lab6", + "purl": "pkg:oci/quicknotes@sha256%3A98f4e47b07633d15a9b3b3c0b94f98e9c8dcde8746d8416eaf1fd4ef270088dc?arch=amd64&repository_url=index.docker.io%2Flibrary%2Fquicknotes", + "properties": [ + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:144f9b8d282198cfbafeb0783d0901985d16ec0e2103b12b57616fe520373590" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:187cfc6d1e3e8a40a5e64653bcd3239c140807dcf1c09e48021178705a5a6139" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:275a30dd8ce958b21daa9ad962c6fbc09f98306ee2f486b65c9075dc257b1412" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:30f86080ae3f79d8e442f800bc77fc70618735f605db3c1706cb78f1a94d0c14" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:402148b09d49e1a5015f9b8ee5242f7ddba7b06417832db5af6e8449d40e1865" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:4cde6b0bb6f50a5f255eef7b2a42162c661cf776b803225dcac9a659e396bb6b" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:4d049f83d9cf21d1f5cc0e11deaf36df02790d0e60c1a3829538fb4b61685368" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:5fd2536c39c0700be8b7b4344e375196da2f126842fd8ede66996a18860a3890" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:621c35e751a51a9a9dc3e80aa0b7fe8be2a93402ea6ccd307d30852cd7776cda" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:6f1cdceb6a3146f0ccb986521156bef8a422cdbb0863396f7f751f575ba308f4" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:92cb9c37b7d3957ac56645a979418f65e6c5bdba00eb99622affae5fc124ac07" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:ad51d0769d16ba578106a177987dfe3d2e02c1668c852b795b2f6b024068242a" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:af5aa97ebe6ce1604747ec1e21af7136ded391bcabe4acef882e718a87c86bcc" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:bd3cdfae1d3fdd83a2231d608969b38b82349777c2fff9a7c12d54f8ac5c9b38" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:bec7e6bb35e05d1284f28b10d2150c259717d91c658c4c10c08424bb9466caba" + }, + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:c8b007d0206e4b10ed4d3b3d99dfeab47c2648e82011989fd78a5731baf33fc3" + }, + { + "name": "aquasecurity:trivy:ImageID", + "value": "sha256:98f4e47b07633d15a9b3b3c0b94f98e9c8dcde8746d8416eaf1fd4ef270088dc" + }, + { + "name": "aquasecurity:trivy:Labels:com.docker.compose.project", + "value": "devops-intro" + }, + { + "name": "aquasecurity:trivy:Labels:com.docker.compose.service", + "value": "quicknotes" + }, + { + "name": "aquasecurity:trivy:Labels:com.docker.compose.version", + "value": "5.1.1" + }, + { + "name": "aquasecurity:trivy:RepoDigest", + "value": "quicknotes@sha256:98f4e47b07633d15a9b3b3c0b94f98e9c8dcde8746d8416eaf1fd4ef270088dc" + }, + { + "name": "aquasecurity:trivy:RepoTag", + "value": "quicknotes:lab6" + }, + { + "name": "aquasecurity:trivy:SchemaVersion", + "value": "2" + } + ] + } + }, + "components": [ + { + "bom-ref": "08f1318b-85c2-492e-80ab-a317c98abdd9", + "type": "library", + "name": "stdlib", + "version": "v1.24.13", + "purl": "pkg:golang/stdlib@v1.24.13", + "properties": [ + { + "name": "aquasecurity:trivy:LayerDiffID", + "value": "sha256:402148b09d49e1a5015f9b8ee5242f7ddba7b06417832db5af6e8449d40e1865" + }, + { + "name": "aquasecurity:trivy:LayerDigest", + "value": "sha256:27cbca9a3220b4f84f1ea848026d8bb2b4e88d6b8ab8665752196764ec0500e0" + }, + { + "name": "aquasecurity:trivy:PkgID", + "value": "stdlib@v1.24.13" + }, + { + "name": "aquasecurity:trivy:PkgType", + "value": "gobinary" + } + ] + }, + { + "bom-ref": "4a59b94d-5ebf-4f5b-a625-7f870c933938", + "type": "application", + "name": "healthcheck", + "properties": [ + { + "name": "aquasecurity:trivy:Class", + "value": "lang-pkgs" + }, + { + "name": "aquasecurity:trivy:Type", + "value": "gobinary" + } + ] + }, + { + "bom-ref": "4f6730f7-475d-470a-bdd9-59a78f2ffe38", + "type": "operating-system", + "name": "debian", + "version": "13.5", + "properties": [ + { + "name": "aquasecurity:trivy:Class", + "value": "os-pkgs" + }, + { + "name": "aquasecurity:trivy:Type", + "value": "debian" + } + ] + }, + { + "bom-ref": "c42e3544-da94-4fb6-96b8-00c01d5db93a", + "type": "library", + "name": "stdlib", + "version": "v1.24.13", + "purl": "pkg:golang/stdlib@v1.24.13", + "properties": [ + { + "name": "aquasecurity:trivy:LayerDiffID", + "value": "sha256:30f86080ae3f79d8e442f800bc77fc70618735f605db3c1706cb78f1a94d0c14" + }, + { + "name": "aquasecurity:trivy:LayerDigest", + "value": "sha256:b34f76f28526d1c1c8e39bef3680743009070ad0d2b7d97d0df007d9a30f08fd" + }, + { + "name": "aquasecurity:trivy:PkgID", + "value": "stdlib@v1.24.13" + }, + { + "name": "aquasecurity:trivy:PkgType", + "value": "gobinary" + } + ] + }, + { + "bom-ref": "fcb4d769-cc4a-4a5f-8488-2b4517a19fec", + "type": "application", + "name": "quicknotes", + "properties": [ + { + "name": "aquasecurity:trivy:Class", + "value": "lang-pkgs" + }, + { + "name": "aquasecurity:trivy:Type", + "value": "gobinary" + } + ] + }, + { + "bom-ref": "pkg:deb/debian/base-files@13.8%2Bdeb13u5?arch=amd64&distro=debian-13.5", + "type": "library", + "supplier": { + "name": "Santiago Vila " + }, + "name": "base-files", + "version": "13.8+deb13u5", + "licenses": [ + { + "license": { + "name": "GPL-2.0-or-later" + } + }, + { + "license": { + "name": "verbatim" + } + } + ], + "purl": "pkg:deb/debian/base-files@13.8%2Bdeb13u5?arch=amd64&distro=debian-13.5", + "properties": [ + { + "name": "aquasecurity:trivy:LayerDiffID", + "value": "sha256:92cb9c37b7d3957ac56645a979418f65e6c5bdba00eb99622affae5fc124ac07" + }, + { + "name": "aquasecurity:trivy:LayerDigest", + "value": "sha256:47de5dd0b812c573630914955e26abda537e09b5286a824c96e22e3854d4dd53" + }, + { + "name": "aquasecurity:trivy:PkgID", + "value": "base-files@13.8+deb13u5" + }, + { + "name": "aquasecurity:trivy:PkgType", + "value": "debian" + }, + { + "name": "aquasecurity:trivy:SrcName", + "value": "base-files" + }, + { + "name": "aquasecurity:trivy:SrcVersion", + "value": "13.8+deb13u5" + } + ] + }, + { + "bom-ref": "pkg:deb/debian/media-types@13.0.0?arch=all&distro=debian-13.5", + "type": "library", + "supplier": { + "name": "Mime-Support Packagers " + }, + "name": "media-types", + "version": "13.0.0", + "licenses": [ + { + "license": { + "name": "ad-hoc" + } + } + ], + "purl": "pkg:deb/debian/media-types@13.0.0?arch=all&distro=debian-13.5", + "properties": [ + { + "name": "aquasecurity:trivy:LayerDiffID", + "value": "sha256:275a30dd8ce958b21daa9ad962c6fbc09f98306ee2f486b65c9075dc257b1412" + }, + { + "name": "aquasecurity:trivy:LayerDigest", + "value": "sha256:d6b1b89eccacc15c2420b2776d72c1dae334a00805ed9af54bf2f71e4d536f28" + }, + { + "name": "aquasecurity:trivy:PkgID", + "value": "media-types@13.0.0" + }, + { + "name": "aquasecurity:trivy:PkgType", + "value": "debian" + }, + { + "name": "aquasecurity:trivy:SrcName", + "value": "media-types" + }, + { + "name": "aquasecurity:trivy:SrcVersion", + "value": "13.0.0" + } + ] + }, + { + "bom-ref": "pkg:deb/debian/netbase@6.5?arch=all&distro=debian-13.5", + "type": "library", + "supplier": { + "name": "Marco d'Itri " + }, + "name": "netbase", + "version": "6.5", + "licenses": [ + { + "license": { + "name": "GPL-2.0-only" + } + } + ], + "purl": "pkg:deb/debian/netbase@6.5?arch=all&distro=debian-13.5", + "properties": [ + { + "name": "aquasecurity:trivy:LayerDiffID", + "value": "sha256:621c35e751a51a9a9dc3e80aa0b7fe8be2a93402ea6ccd307d30852cd7776cda" + }, + { + "name": "aquasecurity:trivy:LayerDigest", + "value": "sha256:c172f21841dff4c8cf45cde46589c1c2616cefe7e819965e92e6d3475c428aa0" + }, + { + "name": "aquasecurity:trivy:PkgID", + "value": "netbase@6.5" + }, + { + "name": "aquasecurity:trivy:PkgType", + "value": "debian" + }, + { + "name": "aquasecurity:trivy:SrcName", + "value": "netbase" + }, + { + "name": "aquasecurity:trivy:SrcVersion", + "value": "6.5" + } + ] + }, + { + "bom-ref": "pkg:deb/debian/tzdata-legacy@2026b-0%2Bdeb13u1?arch=all&distro=debian-13.5", + "type": "library", + "supplier": { + "name": "GNU Libc Maintainers " + }, + "name": "tzdata-legacy", + "version": "2026b-0+deb13u1", + "licenses": [ + { + "license": { + "name": "public-domain" + } + } + ], + "purl": "pkg:deb/debian/tzdata-legacy@2026b-0%2Bdeb13u1?arch=all&distro=debian-13.5", + "properties": [ + { + "name": "aquasecurity:trivy:LayerDiffID", + "value": "sha256:bec7e6bb35e05d1284f28b10d2150c259717d91c658c4c10c08424bb9466caba" + }, + { + "name": "aquasecurity:trivy:LayerDigest", + "value": "sha256:99ba982a9142213c751a1709dcf088e63d8601f03b3f211bae037be698fef270" + }, + { + "name": "aquasecurity:trivy:PkgID", + "value": "tzdata-legacy@2026b-0+deb13u1" + }, + { + "name": "aquasecurity:trivy:PkgType", + "value": "debian" + }, + { + "name": "aquasecurity:trivy:SrcName", + "value": "tzdata" + }, + { + "name": "aquasecurity:trivy:SrcRelease", + "value": "0+deb13u1" + }, + { + "name": "aquasecurity:trivy:SrcVersion", + "value": "2026b" + } + ] + }, + { + "bom-ref": "pkg:deb/debian/tzdata@2026b-0%2Bdeb13u1?arch=all&distro=debian-13.5", + "type": "library", + "supplier": { + "name": "GNU Libc Maintainers " + }, + "name": "tzdata", + "version": "2026b-0+deb13u1", + "licenses": [ + { + "license": { + "name": "public-domain" + } + } + ], + "purl": "pkg:deb/debian/tzdata@2026b-0%2Bdeb13u1?arch=all&distro=debian-13.5", + "properties": [ + { + "name": "aquasecurity:trivy:LayerDiffID", + "value": "sha256:c8b007d0206e4b10ed4d3b3d99dfeab47c2648e82011989fd78a5731baf33fc3" + }, + { + "name": "aquasecurity:trivy:LayerDigest", + "value": "sha256:99515e7b4d35e0652d3b0fde571b6ec269222ecacc506f026e1758d6261e9109" + }, + { + "name": "aquasecurity:trivy:PkgID", + "value": "tzdata@2026b-0+deb13u1" + }, + { + "name": "aquasecurity:trivy:PkgType", + "value": "debian" + }, + { + "name": "aquasecurity:trivy:SrcName", + "value": "tzdata" + }, + { + "name": "aquasecurity:trivy:SrcRelease", + "value": "0+deb13u1" + }, + { + "name": "aquasecurity:trivy:SrcVersion", + "value": "2026b" + } + ] + }, + { + "bom-ref": "pkg:golang/quicknotes", + "type": "library", + "name": "quicknotes", + "purl": "pkg:golang/quicknotes", + "properties": [ + { + "name": "aquasecurity:trivy:LayerDiffID", + "value": "sha256:30f86080ae3f79d8e442f800bc77fc70618735f605db3c1706cb78f1a94d0c14" + }, + { + "name": "aquasecurity:trivy:LayerDigest", + "value": "sha256:b34f76f28526d1c1c8e39bef3680743009070ad0d2b7d97d0df007d9a30f08fd" + }, + { + "name": "aquasecurity:trivy:PkgID", + "value": "quicknotes" + }, + { + "name": "aquasecurity:trivy:PkgType", + "value": "gobinary" + } + ] + } + ], + "dependencies": [ + { + "ref": "08f1318b-85c2-492e-80ab-a317c98abdd9", + "dependsOn": [] + }, + { + "ref": "4a59b94d-5ebf-4f5b-a625-7f870c933938", + "dependsOn": [ + "08f1318b-85c2-492e-80ab-a317c98abdd9" + ] + }, + { + "ref": "4f6730f7-475d-470a-bdd9-59a78f2ffe38", + "dependsOn": [ + "pkg:deb/debian/base-files@13.8%2Bdeb13u5?arch=amd64&distro=debian-13.5", + "pkg:deb/debian/media-types@13.0.0?arch=all&distro=debian-13.5", + "pkg:deb/debian/netbase@6.5?arch=all&distro=debian-13.5", + "pkg:deb/debian/tzdata-legacy@2026b-0%2Bdeb13u1?arch=all&distro=debian-13.5", + "pkg:deb/debian/tzdata@2026b-0%2Bdeb13u1?arch=all&distro=debian-13.5" + ] + }, + { + "ref": "c42e3544-da94-4fb6-96b8-00c01d5db93a", + "dependsOn": [] + }, + { + "ref": "fcb4d769-cc4a-4a5f-8488-2b4517a19fec", + "dependsOn": [ + "pkg:golang/quicknotes" + ] + }, + { + "ref": "pkg:deb/debian/base-files@13.8%2Bdeb13u5?arch=amd64&distro=debian-13.5", + "dependsOn": [] + }, + { + "ref": "pkg:deb/debian/media-types@13.0.0?arch=all&distro=debian-13.5", + "dependsOn": [] + }, + { + "ref": "pkg:deb/debian/netbase@6.5?arch=all&distro=debian-13.5", + "dependsOn": [] + }, + { + "ref": "pkg:deb/debian/tzdata-legacy@2026b-0%2Bdeb13u1?arch=all&distro=debian-13.5", + "dependsOn": [] + }, + { + "ref": "pkg:deb/debian/tzdata@2026b-0%2Bdeb13u1?arch=all&distro=debian-13.5", + "dependsOn": [] + }, + { + "ref": "pkg:golang/quicknotes", + "dependsOn": [ + "c42e3544-da94-4fb6-96b8-00c01d5db93a" + ] + }, + { + "ref": "pkg:oci/quicknotes@sha256%3A98f4e47b07633d15a9b3b3c0b94f98e9c8dcde8746d8416eaf1fd4ef270088dc?arch=amd64&repository_url=index.docker.io%2Flibrary%2Fquicknotes", + "dependsOn": [ + "4a59b94d-5ebf-4f5b-a625-7f870c933938", + "4f6730f7-475d-470a-bdd9-59a78f2ffe38", + "fcb4d769-cc4a-4a5f-8488-2b4517a19fec" + ] + } + ], + "vulnerabilities": [] +} diff --git a/security/reports/trivy-config.txt b/security/reports/trivy-config.txt new file mode 100644 index 000000000..be6e7861f --- /dev/null +++ b/security/reports/trivy-config.txt @@ -0,0 +1,14 @@ + +app/Dockerfile (dockerfile) +=========================== +Tests: 28 (SUCCESSES: 27, FAILURES: 1) +Failures: 1 (UNKNOWN: 0, LOW: 1, MEDIUM: 0, HIGH: 0, CRITICAL: 0) + +AVD-DS-0026 (LOW): Add HEALTHCHECK instruction in your Dockerfile +════════════════════════════════════════ +You should add HEALTHCHECK instruction in your docker container images to perform the health check on running containers. + +See https://avd.aquasec.com/misconfig/ds026 +──────────────────────────────────────── + + diff --git a/security/reports/trivy-fs.txt b/security/reports/trivy-fs.txt new file mode 100644 index 000000000..683f0019e --- /dev/null +++ b/security/reports/trivy-fs.txt @@ -0,0 +1,10 @@ +2026-06-25T23:40:29Z INFO [vulndb] Need to update DB +2026-06-25T23:40:29Z INFO [vulndb] Downloading vulnerability DB... +2026-06-25T23:40:29Z INFO [vulndb] Downloading artifact... repo="mirror.gcr.io/aquasec/trivy-db:2" +383.25 KiB / 97.45 MiB [>____________________________________________________________] 0.38% ? p/s ?3.39 MiB / 97.45 MiB [-->____________________________________________________________] 3.48% ? p/s ?6.64 MiB / 97.45 MiB [---->__________________________________________________________] 6.81% ? p/s ?10.15 MiB / 97.45 MiB [---->___________________________________________] 10.41% 16.33 MiB p/s ETA 5s14.15 MiB / 97.45 MiB [------>_________________________________________] 14.52% 16.33 MiB p/s ETA 5s17.09 MiB / 97.45 MiB [-------->_______________________________________] 17.54% 16.33 MiB p/s ETA 4s20.34 MiB / 97.45 MiB [---------->_____________________________________] 20.87% 16.37 MiB p/s ETA 4s23.32 MiB / 97.45 MiB [----------->____________________________________] 23.93% 16.37 MiB p/s ETA 4s26.51 MiB / 97.45 MiB [------------->__________________________________] 27.20% 16.37 MiB p/s ETA 4s29.69 MiB / 97.45 MiB [-------------->_________________________________] 30.47% 16.32 MiB p/s ETA 4s32.64 MiB / 97.45 MiB [---------------->_______________________________] 33.50% 16.32 MiB p/s ETA 3s35.92 MiB / 97.45 MiB [----------------->______________________________] 36.86% 16.32 MiB p/s ETA 3s39.45 MiB / 97.45 MiB [------------------->____________________________] 40.49% 16.32 MiB p/s ETA 3s42.51 MiB / 97.45 MiB [-------------------->___________________________] 43.63% 16.32 MiB p/s ETA 3s45.73 MiB / 97.45 MiB [---------------------->_________________________] 46.93% 16.32 MiB p/s ETA 3s48.38 MiB / 97.45 MiB [----------------------->________________________] 49.65% 16.22 MiB p/s ETA 3s51.70 MiB / 97.45 MiB [------------------------->______________________] 53.06% 16.22 MiB p/s ETA 2s54.91 MiB / 97.45 MiB [--------------------------->____________________] 56.35% 16.22 MiB p/s ETA 2s58.17 MiB / 97.45 MiB [---------------------------->___________________] 59.70% 16.23 MiB p/s ETA 2s62.60 MiB / 97.45 MiB [------------------------------>_________________] 64.24% 16.23 MiB p/s ETA 2s65.55 MiB / 97.45 MiB [-------------------------------->_______________] 67.27% 16.23 MiB p/s ETA 1s68.76 MiB / 97.45 MiB [--------------------------------->______________] 70.56% 16.32 MiB p/s ETA 1s71.87 MiB / 97.45 MiB [----------------------------------->____________] 73.75% 16.32 MiB p/s ETA 1s74.77 MiB / 97.45 MiB [------------------------------------>___________] 76.73% 16.32 MiB p/s ETA 1s77.93 MiB / 97.45 MiB [-------------------------------------->_________] 79.97% 16.25 MiB p/s ETA 1s80.87 MiB / 97.45 MiB [--------------------------------------->________] 82.99% 16.25 MiB p/s ETA 1s84.87 MiB / 97.45 MiB [----------------------------------------->______] 87.09% 16.25 MiB p/s ETA 0s88.56 MiB / 97.45 MiB [------------------------------------------->____] 90.88% 16.35 MiB p/s ETA 0s91.92 MiB / 97.45 MiB [--------------------------------------------->__] 94.33% 16.35 MiB p/s ETA 0s94.65 MiB / 97.45 MiB [---------------------------------------------->_] 97.13% 16.35 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 16.25 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 16.25 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 16.25 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 15.20 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 15.20 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 15.20 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 14.22 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 14.22 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 14.22 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 13.30 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 13.30 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 13.30 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 12.44 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 12.44 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 12.44 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 11.64 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 11.64 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 11.64 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 10.89 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 10.89 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 10.89 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 10.19 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 10.19 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 10.19 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 9.53 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 9.53 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 9.53 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 8.92 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 8.92 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 8.92 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 8.34 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 8.34 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 8.34 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 7.80 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 7.80 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 7.80 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 7.30 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 7.30 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 7.30 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 6.83 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 6.83 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 6.83 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 6.39 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 6.39 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 6.39 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.98 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.98 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.98 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.59 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.59 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.59 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.23 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.23 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.23 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 4.89 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 4.89 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 4.89 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 4.58 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 4.58 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 4.58 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 4.28 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 4.28 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 4.28 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 4.00 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 4.00 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 4.00 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 3.75 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 3.75 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 3.75 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 3.50 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 3.50 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 3.50 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 3.28 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 3.28 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 3.28 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 3.07 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 3.07 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 3.07 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.87 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.87 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.87 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.68 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.68 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.68 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.51 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.51 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.51 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.35 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.35 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.35 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.20 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.20 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.20 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.06 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.06 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 2.06 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.92 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.92 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.92 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.80 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.80 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.80 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.68 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.68 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.68 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.57 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.57 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.57 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.47 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.47 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.47 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.38 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.38 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.38 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.29 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.29 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.29 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.21 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.21 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.21 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.13 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.13 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.13 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.06 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.06 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 1.06 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [-------------------------------------------->] 100.00% 1010.71 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [-------------------------------------------->] 100.00% 1010.71 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [-------------------------------------------->] 100.00% 1010.71 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 945.50 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 945.50 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 945.50 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 884.50 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 884.50 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 884.50 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 827.43 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 827.43 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 827.43 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 774.05 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 774.05 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 774.05 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 724.11 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 724.11 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 724.11 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 677.40 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 677.40 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 677.40 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 633.69 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 633.69 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 633.69 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 592.81 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 592.81 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 592.81 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 554.56 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 554.56 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 554.56 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 518.79 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 518.79 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 518.79 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 485.32 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 485.32 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 485.32 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 454.00 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 454.00 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 454.00 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 424.71 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 424.71 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 424.71 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 397.31 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 397.31 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 397.31 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 371.68 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 371.68 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 371.68 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 347.70 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 347.70 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 347.70 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 325.27 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 325.27 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 325.27 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 304.28 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 304.28 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 304.28 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 284.65 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 284.65 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 284.65 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 266.29 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 266.29 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 266.29 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 249.11 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 249.11 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 249.11 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 233.04 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 233.04 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 233.04 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 218.00 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 218.00 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 218.00 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 203.94 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 203.94 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 203.94 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 190.78 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 190.78 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 190.78 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 178.47 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 178.47 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 178.47 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 166.96 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 166.96 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 166.96 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 156.19 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 156.19 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 156.19 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 146.11 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 146.11 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 146.11 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 136.68 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 136.68 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 136.68 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 127.86 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 127.86 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 127.86 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 119.62 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 119.62 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 119.62 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 111.90 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 111.90 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 111.90 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 104.68 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 104.68 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------->] 100.00% 104.68 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 97.93 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 97.93 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 97.93 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 91.61 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 91.61 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 91.61 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 85.70 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 85.70 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 85.70 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 80.17 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 80.17 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 80.17 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 75.00 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 75.00 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 75.00 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 70.16 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 70.16 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 70.16 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 65.63 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 65.63 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 65.63 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 61.40 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 61.40 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 61.40 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 57.44 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 57.44 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 57.44 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 53.73 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 53.73 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 53.73 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 50.26 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 50.26 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 50.26 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 47.02 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 47.02 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 47.02 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 43.99 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 43.99 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 43.99 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 41.15 KiB p/s ETA 0s97.45 MiB / 97.45 MiB [--------------------------------------------------] 100.00% 1.62 MiB p/s 1m0s2026-06-25T23:41:34Z INFO [vulndb] Artifact successfully downloaded repo="mirror.gcr.io/aquasec/trivy-db:2" +2026-06-25T23:41:34Z INFO [vuln] Vulnerability scanning is enabled +2026-06-25T23:41:34Z INFO [secret] Secret scanning is enabled +2026-06-25T23:41:34Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning +2026-06-25T23:41:34Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.59/docs/scanner/secret#recommendation for faster secret detection +2026-06-25T23:41:37Z INFO Number of language-specific files num=1 +2026-06-25T23:41:37Z INFO [gomod] Detecting vulnerabilities... diff --git a/security/reports/trivy-image.txt b/security/reports/trivy-image.txt new file mode 100644 index 000000000..f1d93c230 --- /dev/null +++ b/security/reports/trivy-image.txt @@ -0,0 +1,128 @@ +2026-06-25T23:45:24Z INFO [vulndb] Need to update DB +2026-06-25T23:45:24Z INFO [vulndb] Downloading vulnerability DB... +2026-06-25T23:45:24Z INFO [vulndb] Downloading artifact... repo="mirror.gcr.io/aquasec/trivy-db:2" +687.25 KiB / 97.45 MiB [>____________________________________________________________] 0.69% ? p/s ?2.11 MiB / 97.45 MiB [->_____________________________________________________________] 2.16% ? p/s ?5.68 MiB / 97.45 MiB [--->___________________________________________________________] 5.83% ? p/s ?9.17 MiB / 97.45 MiB [---->_____________________________________________] 9.41% 14.19 MiB p/s ETA 6s13.87 MiB / 97.45 MiB [------>_________________________________________] 14.23% 14.19 MiB p/s ETA 5s17.84 MiB / 97.45 MiB [-------->_______________________________________] 18.31% 14.19 MiB p/s ETA 5s21.66 MiB / 97.45 MiB [---------->_____________________________________] 22.23% 14.62 MiB p/s ETA 5s25.54 MiB / 97.45 MiB [------------>___________________________________] 26.21% 14.62 MiB p/s ETA 4s28.35 MiB / 97.45 MiB [------------->__________________________________] 29.09% 14.62 MiB p/s ETA 4s32.91 MiB / 97.45 MiB [---------------->_______________________________] 33.77% 14.88 MiB p/s ETA 4s36.36 MiB / 97.45 MiB [----------------->______________________________] 37.31% 14.88 MiB p/s ETA 4s39.35 MiB / 97.45 MiB [------------------->____________________________] 40.38% 14.88 MiB p/s ETA 3s42.82 MiB / 97.45 MiB [--------------------->__________________________] 43.94% 14.99 MiB p/s ETA 3s46.44 MiB / 97.45 MiB [---------------------->_________________________] 47.66% 14.99 MiB p/s ETA 3s50.19 MiB / 97.45 MiB [------------------------>_______________________] 51.51% 14.99 MiB p/s ETA 3s52.77 MiB / 97.45 MiB [------------------------->______________________] 54.15% 15.09 MiB p/s ETA 2s55.74 MiB / 97.45 MiB [--------------------------->____________________] 57.20% 15.09 MiB p/s ETA 2s58.74 MiB / 97.45 MiB [---------------------------->___________________] 60.28% 15.09 MiB p/s ETA 2s61.83 MiB / 97.45 MiB [------------------------------>_________________] 63.45% 15.09 MiB p/s ETA 2s64.74 MiB / 97.45 MiB [------------------------------->________________] 66.43% 15.09 MiB p/s ETA 2s68.05 MiB / 97.45 MiB [--------------------------------->______________] 69.83% 15.09 MiB p/s ETA 1s71.01 MiB / 97.45 MiB [---------------------------------->_____________] 72.87% 15.10 MiB p/s ETA 1s74.08 MiB / 97.45 MiB [------------------------------------>___________] 76.02% 15.10 MiB p/s ETA 1s77.23 MiB / 97.45 MiB [-------------------------------------->_________] 79.26% 15.10 MiB p/s ETA 1s80.29 MiB / 97.45 MiB [--------------------------------------->________] 82.40% 15.13 MiB p/s ETA 1s84.66 MiB / 97.45 MiB [----------------------------------------->______] 86.88% 15.13 MiB p/s ETA 0s88.85 MiB / 97.45 MiB [------------------------------------------->____] 91.18% 15.13 MiB p/s ETA 0s91.73 MiB / 97.45 MiB [--------------------------------------------->__] 94.13% 15.38 MiB p/s ETA 0s95.44 MiB / 97.45 MiB [----------------------------------------------->] 97.95% 15.38 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 15.38 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 15.00 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 15.00 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 15.00 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 14.04 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 14.04 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 14.04 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 13.13 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 13.13 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 13.13 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 12.28 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 12.28 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 12.28 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 11.49 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 11.49 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 11.49 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 10.75 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 10.75 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 10.75 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 10.06 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 10.06 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------->] 100.00% 10.06 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 9.41 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 9.41 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 9.41 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 8.80 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 8.80 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 8.80 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 8.23 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 8.23 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 8.23 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 7.70 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 7.70 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 7.70 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 7.20 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 7.20 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 7.20 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 6.74 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 6.74 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 6.74 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 6.31 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 6.31 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 6.31 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.90 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.90 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.90 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.52 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.52 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.52 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [----------------------------------------------->] 100.00% 5.16 MiB p/s ETA 0s97.45 MiB / 97.45 MiB [---------------------------------------------------] 100.00% 6.21 MiB p/s 16s2026-06-25T23:45:40Z INFO [vulndb] Artifact successfully downloaded repo="mirror.gcr.io/aquasec/trivy-db:2" +2026-06-25T23:45:40Z INFO [vuln] Vulnerability scanning is enabled +2026-06-25T23:45:40Z INFO [secret] Secret scanning is enabled +2026-06-25T23:45:40Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning +2026-06-25T23:45:40Z INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.59/docs/scanner/secret#recommendation for faster secret detection +2026-06-25T23:45:51Z INFO Detected OS family="debian" version="13.5" +2026-06-25T23:45:51Z INFO [debian] Detecting vulnerabilities... os_version="13" pkg_num=5 +2026-06-25T23:45:51Z INFO Number of language-specific files num=2 +2026-06-25T23:45:51Z INFO [gobinary] Detecting vulnerabilities... +2026-06-25T23:45:51Z WARN Using severities from other vendors for some vulnerabilities. Read https://aquasecurity.github.io/trivy/v0.59/docs/scanner/vulnerability#severity-selection for details. + +quicknotes:lab6 (debian 13.5) +============================= +Total: 0 (HIGH: 0, CRITICAL: 0) + + +healthcheck (gobinary) +====================== +Total: 12 (HIGH: 12, CRITICAL: 0) + +┌─────────┬────────────────┬──────────┬────────┬───────────────────┬─────────────────┬──────────────────────────────────────────────────────────────┐ +│ Library │ Vulnerability │ Severity │ Status │ Installed Version │ Fixed Version │ Title │ +├─────────┼────────────────┼──────────┼────────┼───────────────────┼─────────────────┼──────────────────────────────────────────────────────────────┤ +│ stdlib │ CVE-2026-25679 │ HIGH │ fixed │ v1.24.13 │ 1.25.8, 1.26.1 │ net/url: Incorrect parsing of IPv6 host literals in net/url │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-25679 │ +│ ├────────────────┤ │ │ ├─────────────────┼──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-27145 │ │ │ │ 1.25.11, 1.26.4 │ *x509.Certificate).VerifyHostname previously called │ +│ │ │ │ │ │ │ matchHostnames in ... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-27145 │ +│ ├────────────────┤ │ │ ├─────────────────┼──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-32280 │ │ │ │ 1.25.9, 1.26.2 │ crypto/x509: crypto/tls: golang: Go: Denial of Service │ +│ │ │ │ │ │ │ vulnerability in certificate chain building... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-32280 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-32281 │ │ │ │ │ crypto/x509: golang: Go crypto/x509: Denial of Service via │ +│ │ │ │ │ │ │ inefficient certificate chain validation... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-32281 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-32283 │ │ │ │ │ crypto/tls: golang: Go crypto/tls: Denial of Service via │ +│ │ │ │ │ │ │ multiple TLS 1.3 key... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-32283 │ +│ ├────────────────┤ │ │ ├─────────────────┼──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-33811 │ │ │ │ 1.25.10, 1.26.3 │ net: golang: Go net package: Denial of Service via long │ +│ │ │ │ │ │ │ CNAME response... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-33811 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-33814 │ │ │ │ │ net/http/internal/http2: golang: golang.org/x/net: Go │ +│ │ │ │ │ │ │ HTTP/2: Denial of Service via malformed │ +│ │ │ │ │ │ │ SETTINGS_MAX_FRAME_SIZE frame... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-33814 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-39820 │ │ │ │ │ Well-crafted inputs reaching ParseAddress, ParseAddressList, │ +│ │ │ │ │ │ │ and Parse ... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-39820 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-39823 │ │ │ │ │ CVE-2026-27142 fixed a vulnerability in which URLs were not │ +│ │ │ │ │ │ │ correctly ...... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-39823 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-39836 │ │ │ │ │ ELSA-2026-22121: golang security update (IMPORTANT) │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-39836 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-42499 │ │ │ │ │ Pathological inputs could cause DoS through consumePhrase │ +│ │ │ │ │ │ │ when parsing ... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-42499 │ +│ ├────────────────┤ │ │ ├─────────────────┼──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-42504 │ │ │ │ 1.25.11, 1.26.4 │ Decoding a maliciously-crafted MIME header containing many │ +│ │ │ │ │ │ │ invalid enc ... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-42504 │ +└─────────┴────────────────┴──────────┴────────┴───────────────────┴─────────────────┴──────────────────────────────────────────────────────────────┘ + +quicknotes (gobinary) +===================== +Total: 12 (HIGH: 12, CRITICAL: 0) + +┌─────────┬────────────────┬──────────┬────────┬───────────────────┬─────────────────┬──────────────────────────────────────────────────────────────┐ +│ Library │ Vulnerability │ Severity │ Status │ Installed Version │ Fixed Version │ Title │ +├─────────┼────────────────┼──────────┼────────┼───────────────────┼─────────────────┼──────────────────────────────────────────────────────────────┤ +│ stdlib │ CVE-2026-25679 │ HIGH │ fixed │ v1.24.13 │ 1.25.8, 1.26.1 │ net/url: Incorrect parsing of IPv6 host literals in net/url │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-25679 │ +│ ├────────────────┤ │ │ ├─────────────────┼──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-27145 │ │ │ │ 1.25.11, 1.26.4 │ *x509.Certificate).VerifyHostname previously called │ +│ │ │ │ │ │ │ matchHostnames in ... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-27145 │ +│ ├────────────────┤ │ │ ├─────────────────┼──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-32280 │ │ │ │ 1.25.9, 1.26.2 │ crypto/x509: crypto/tls: golang: Go: Denial of Service │ +│ │ │ │ │ │ │ vulnerability in certificate chain building... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-32280 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-32281 │ │ │ │ │ crypto/x509: golang: Go crypto/x509: Denial of Service via │ +│ │ │ │ │ │ │ inefficient certificate chain validation... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-32281 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-32283 │ │ │ │ │ crypto/tls: golang: Go crypto/tls: Denial of Service via │ +│ │ │ │ │ │ │ multiple TLS 1.3 key... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-32283 │ +│ ├────────────────┤ │ │ ├─────────────────┼──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-33811 │ │ │ │ 1.25.10, 1.26.3 │ net: golang: Go net package: Denial of Service via long │ +│ │ │ │ │ │ │ CNAME response... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-33811 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-33814 │ │ │ │ │ net/http/internal/http2: golang: golang.org/x/net: Go │ +│ │ │ │ │ │ │ HTTP/2: Denial of Service via malformed │ +│ │ │ │ │ │ │ SETTINGS_MAX_FRAME_SIZE frame... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-33814 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-39820 │ │ │ │ │ Well-crafted inputs reaching ParseAddress, ParseAddressList, │ +│ │ │ │ │ │ │ and Parse ... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-39820 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-39823 │ │ │ │ │ CVE-2026-27142 fixed a vulnerability in which URLs were not │ +│ │ │ │ │ │ │ correctly ...... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-39823 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-39836 │ │ │ │ │ ELSA-2026-22121: golang security update (IMPORTANT) │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-39836 │ +│ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-42499 │ │ │ │ │ Pathological inputs could cause DoS through consumePhrase │ +│ │ │ │ │ │ │ when parsing ... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-42499 │ +│ ├────────────────┤ │ │ ├─────────────────┼──────────────────────────────────────────────────────────────┤ +│ │ CVE-2026-42504 │ │ │ │ 1.25.11, 1.26.4 │ Decoding a maliciously-crafted MIME header containing many │ +│ │ │ │ │ │ │ invalid enc ... │ +│ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-42504 │ +└─────────┴────────────────┴──────────┴────────┴───────────────────┴─────────────────┴──────────────────────────────────────────────────────────────┘ diff --git a/security/reports/zap-baseline-before-health.html b/security/reports/zap-baseline-before-health.html new file mode 100644 index 000000000..acea50439 --- /dev/null +++ b/security/reports/zap-baseline-before-health.html @@ -0,0 +1,838 @@ + + + + +ZAP Scanning Report + + + +

+ + + ZAP Scanning Report +

+

+ + +

+ + Site: http://host.docker.internal:8080 + +

+ +

+ Generated on Thu, 25 Jun 2026 23:38:37 +

+ +

+ ZAP Version: 2.16.1 +

+ +

+ ZAP by Checkmarx +

+ + +

Summary of Alerts

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Risk LevelNumber of Alerts
+
High
+
+
0
+
+
Medium
+
+
0
+
+
Low
+
+
3
+
+
Informational
+
+
1
+
+
False Positives:
+
+
0
+
+
+ + + + +

Summary of Sequences

+

For each step: result (Pass/Fail) - risk (of highest alert(s) for the step, if any).

+ + + + + + +

Alerts

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameRisk LevelNumber of Instances
Insufficient Site Isolation Against Spectre VulnerabilityLow1
X-Content-Type-Options Header MissingLow1
ZAP is Out of DateLow1
Storable and Cacheable ContentInformational4
+
+ + + +

Alert Detail

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
Low
Insufficient Site Isolation Against Spectre Vulnerability
Description +
Cross-Origin-Resource-Policy header is an opt-in header designed to counter side-channels attacks like Spectre. Resource should be specifically set as shareable amongst different origins.
+ +
URLhttp://host.docker.internal:8080/health
MethodGET
ParameterCross-Origin-Resource-Policy
Attack
Evidence
Other Info
Instances1
Solution +
Ensure that the application/web server sets the Cross-Origin-Resource-Policy header appropriately, and that it sets the Cross-Origin-Resource-Policy header to 'same-origin' for all web pages.
+
+ +
'same-site' is considered as less secured and should be avoided.
+
+ +
If resources must be shared, set the header to 'cross-origin'.
+
+ +
If possible, ensure that the end user uses a standards-compliant and modern web browser that supports the Cross-Origin-Resource-Policy header (https://caniuse.com/mdn-http_headers_cross-origin-resource-policy).
+ +
Reference + https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cross-Origin-Embedder-Policy + +
CWE Id693
WASC Id14
Plugin Id90004
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
Low
X-Content-Type-Options Header Missing
Description +
The Anti-MIME-Sniffing header X-Content-Type-Options was not set to 'nosniff'. This allows older versions of Internet Explorer and Chrome to perform MIME-sniffing on the response body, potentially causing the response body to be interpreted and displayed as a content type other than the declared content type. Current (early 2014) and legacy versions of Firefox will use the declared content type (if one is set), rather than performing MIME-sniffing.
+ +
URLhttp://host.docker.internal:8080/health
MethodGET
Parameterx-content-type-options
Attack
Evidence
Other InfoThis issue still applies to error type pages (401, 403, 500, etc.) as those pages are often still affected by injection issues, in which case there is still concern for browsers sniffing pages away from their actual content type. +At "High" threshold this scan rule will not alert on client or server error responses.
Instances1
Solution +
Ensure that the application/web server sets the Content-Type header appropriately, and that it sets the X-Content-Type-Options header to 'nosniff' for all web pages.
+
+ +
If possible, ensure that the end user uses a standards-compliant and modern web browser that does not perform MIME-sniffing at all, or that can be directed by the web application/web server to not perform MIME-sniffing.
+ +
Reference + https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/compatibility/gg622941(v=vs.85) +
+ + https://owasp.org/www-community/Security_Headers + +
CWE Id693
WASC Id15
Plugin Id10021
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
Low
ZAP is Out of Date
Description +
The version of ZAP you are using to test your app is out of date and is no longer being updated.
+
+ +
The risk level is set based on how out of date your ZAP version is.
+ +
URLhttp://host.docker.internal:8080/
MethodGET
Parameter
Attack
Evidence
Other InfoThe latest version of ZAP is 2.17.0
Instances1
Solution +
Download the latest version of ZAP from https://www.zaproxy.org/download/ and install it.
+ +
Reference + https://www.zaproxy.org/download/ + +
CWE Id1104
WASC Id45
Plugin Id10116
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
Informational
Storable and Cacheable Content
Description +
The response contents are storable by caching components such as proxy servers, and may be retrieved directly from the cache, rather than from the origin server by the caching servers, in response to similar requests from other users. If the response data is sensitive, personal or user-specific, this may result in sensitive information being leaked. In some cases, this may even result in a user gaining complete control of the session of another user, depending on the configuration of the caching components in use in their environment. This is primarily an issue where "shared" caching servers such as "proxy" caches are configured on the local network. This configuration is typically found in corporate or educational environments, for instance.
+ +
URLhttp://host.docker.internal:8080/
MethodGET
Parameter
Attack
Evidence
Other InfoIn the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234.
URLhttp://host.docker.internal:8080/health
MethodGET
Parameter
Attack
Evidence
Other InfoIn the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234.
URLhttp://host.docker.internal:8080/robots.txt
MethodGET
Parameter
Attack
Evidence
Other InfoIn the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234.
URLhttp://host.docker.internal:8080/sitemap.xml
MethodGET
Parameter
Attack
Evidence
Other InfoIn the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234.
Instances4
Solution +
Validate that the response does not contain sensitive, personal or user-specific information. If it does, consider the use of the following HTTP response headers, to limit, or prevent the content being stored and retrieved from the cache by another user:
+
+ +
Cache-Control: no-cache, no-store, must-revalidate, private
+
+ +
Pragma: no-cache
+
+ +
Expires: 0
+
+ +
This configuration directs both HTTP 1.0 and HTTP 1.1 compliant caching servers to not store the response, and to not retrieve the response (without validation) from the cache, in response to a similar request.
+ +
Reference + https://datatracker.ietf.org/doc/html/rfc7234 +
+ + https://datatracker.ietf.org/doc/html/rfc7231 +
+ + https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html + +
CWE Id524
WASC Id13
Plugin Id10049
+
+ + + + + +

Sequence Details

+ With the associated active scan results. + + + +
+ + + + + + + diff --git a/security/reports/zap-baseline-before-health.json b/security/reports/zap-baseline-before-health.json new file mode 100644 index 000000000..c424e3344 --- /dev/null +++ b/security/reports/zap-baseline-before-health.json @@ -0,0 +1,169 @@ +{ + "@programName": "ZAP", + "@version": "2.16.1", + "@generated": "Thu, 25 Jun 2026 23:38:37", + "created": "2026-06-25T23:38:37.193089845Z", + "site":[ + { + "@name": "http://host.docker.internal:8080", + "@host": "host.docker.internal", + "@port": "8080", + "@ssl": "false", + "alerts": [ + { + "pluginid": "90004", + "alertRef": "90004-1", + "alert": "Insufficient Site Isolation Against Spectre Vulnerability", + "name": "Insufficient Site Isolation Against Spectre Vulnerability", + "riskcode": "1", + "confidence": "2", + "riskdesc": "Low (Medium)", + "desc": "

Cross-Origin-Resource-Policy header is an opt-in header designed to counter side-channels attacks like Spectre. Resource should be specifically set as shareable amongst different origins.

", + "instances":[ + { + "id": "9", + "uri": "http://host.docker.internal:8080/health", + "nodeName": null, + "method": "GET", + "param": "Cross-Origin-Resource-Policy", + "attack": "", + "evidence": "", + "otherinfo": "" + } + ], + "count": "1", + "systemic": false, + "solution": "

Ensure that the application/web server sets the Cross-Origin-Resource-Policy header appropriately, and that it sets the Cross-Origin-Resource-Policy header to 'same-origin' for all web pages.

'same-site' is considered as less secured and should be avoided.

If resources must be shared, set the header to 'cross-origin'.

If possible, ensure that the end user uses a standards-compliant and modern web browser that supports the Cross-Origin-Resource-Policy header (https://caniuse.com/mdn-http_headers_cross-origin-resource-policy).

", + "otherinfo": "", + "reference": "

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cross-Origin-Embedder-Policy

", + "cweid": "693", + "wascid": "14", + "sourceid": "1" + }, + { + "pluginid": "10021", + "alertRef": "10021", + "alert": "X-Content-Type-Options Header Missing", + "name": "X-Content-Type-Options Header Missing", + "riskcode": "1", + "confidence": "2", + "riskdesc": "Low (Medium)", + "desc": "

The Anti-MIME-Sniffing header X-Content-Type-Options was not set to 'nosniff'. This allows older versions of Internet Explorer and Chrome to perform MIME-sniffing on the response body, potentially causing the response body to be interpreted and displayed as a content type other than the declared content type. Current (early 2014) and legacy versions of Firefox will use the declared content type (if one is set), rather than performing MIME-sniffing.

", + "instances":[ + { + "id": "0", + "uri": "http://host.docker.internal:8080/health", + "nodeName": null, + "method": "GET", + "param": "x-content-type-options", + "attack": "", + "evidence": "", + "otherinfo": "This issue still applies to error type pages (401, 403, 500, etc.) as those pages are often still affected by injection issues, in which case there is still concern for browsers sniffing pages away from their actual content type.\nAt \"High\" threshold this scan rule will not alert on client or server error responses." + } + ], + "count": "1", + "systemic": false, + "solution": "

Ensure that the application/web server sets the Content-Type header appropriately, and that it sets the X-Content-Type-Options header to 'nosniff' for all web pages.

If possible, ensure that the end user uses a standards-compliant and modern web browser that does not perform MIME-sniffing at all, or that can be directed by the web application/web server to not perform MIME-sniffing.

", + "otherinfo": "

This issue still applies to error type pages (401, 403, 500, etc.) as those pages are often still affected by injection issues, in which case there is still concern for browsers sniffing pages away from their actual content type.

At \"High\" threshold this scan rule will not alert on client or server error responses.

", + "reference": "

https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/compatibility/gg622941(v=vs.85)

https://owasp.org/www-community/Security_Headers

", + "cweid": "693", + "wascid": "15", + "sourceid": "11" + }, + { + "pluginid": "10116", + "alertRef": "10116", + "alert": "ZAP is Out of Date", + "name": "ZAP is Out of Date", + "riskcode": "1", + "confidence": "3", + "riskdesc": "Low (High)", + "desc": "

The version of ZAP you are using to test your app is out of date and is no longer being updated.

The risk level is set based on how out of date your ZAP version is.

", + "instances":[ + { + "id": "5", + "uri": "http://host.docker.internal:8080/", + "nodeName": null, + "method": "GET", + "param": "", + "attack": "", + "evidence": "", + "otherinfo": "The latest version of ZAP is 2.17.0" + } + ], + "count": "1", + "systemic": false, + "solution": "

Download the latest version of ZAP from https://www.zaproxy.org/download/ and install it.

", + "otherinfo": "

The latest version of ZAP is 2.17.0

", + "reference": "

https://www.zaproxy.org/download/

", + "cweid": "1104", + "wascid": "45", + "sourceid": "3" + }, + { + "pluginid": "10049", + "alertRef": "10049-3", + "alert": "Storable and Cacheable Content", + "name": "Storable and Cacheable Content", + "riskcode": "0", + "confidence": "2", + "riskdesc": "Informational (Medium)", + "desc": "

The response contents are storable by caching components such as proxy servers, and may be retrieved directly from the cache, rather than from the origin server by the caching servers, in response to similar requests from other users. If the response data is sensitive, personal or user-specific, this may result in sensitive information being leaked. In some cases, this may even result in a user gaining complete control of the session of another user, depending on the configuration of the caching components in use in their environment. This is primarily an issue where \"shared\" caching servers such as \"proxy\" caches are configured on the local network. This configuration is typically found in corporate or educational environments, for instance.

", + "instances":[ + { + "id": "2", + "uri": "http://host.docker.internal:8080/", + "nodeName": null, + "method": "GET", + "param": "", + "attack": "", + "evidence": "", + "otherinfo": "In the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234." + }, + { + "id": "7", + "uri": "http://host.docker.internal:8080/health", + "nodeName": null, + "method": "GET", + "param": "", + "attack": "", + "evidence": "", + "otherinfo": "In the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234." + }, + { + "id": "4", + "uri": "http://host.docker.internal:8080/robots.txt", + "nodeName": null, + "method": "GET", + "param": "", + "attack": "", + "evidence": "", + "otherinfo": "In the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234." + }, + { + "id": "3", + "uri": "http://host.docker.internal:8080/sitemap.xml", + "nodeName": null, + "method": "GET", + "param": "", + "attack": "", + "evidence": "", + "otherinfo": "In the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234." + } + ], + "count": "4", + "systemic": false, + "solution": "

Validate that the response does not contain sensitive, personal or user-specific information. If it does, consider the use of the following HTTP response headers, to limit, or prevent the content being stored and retrieved from the cache by another user:

Cache-Control: no-cache, no-store, must-revalidate, private

Pragma: no-cache

Expires: 0

This configuration directs both HTTP 1.0 and HTTP 1.1 compliant caching servers to not store the response, and to not retrieve the response (without validation) from the cache, in response to a similar request.

", + "otherinfo": "

In the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234.

", + "reference": "

https://datatracker.ietf.org/doc/html/rfc7234

https://datatracker.ietf.org/doc/html/rfc7231

https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html

", + "cweid": "524", + "wascid": "13", + "sourceid": "9" + } + ] + } + ], + "sequences":[ + ] + +} diff --git a/security/reports/zap-baseline-before.html b/security/reports/zap-baseline-before.html new file mode 100644 index 000000000..b49d48a26 --- /dev/null +++ b/security/reports/zap-baseline-before.html @@ -0,0 +1,566 @@ + + + + +ZAP Scanning Report + + + +

+ + + ZAP Scanning Report +

+

+ + +

+ + Site: http://host.docker.internal:8080 + +

+ +

+ Generated on Thu, 25 Jun 2026 23:34:22 +

+ +

+ ZAP Version: 2.16.1 +

+ +

+ ZAP by Checkmarx +

+ + +

Summary of Alerts

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Risk LevelNumber of Alerts
+
High
+
+
0
+
+
Medium
+
+
0
+
+
Low
+
+
1
+
+
Informational
+
+
1
+
+
False Positives:
+
+
0
+
+
+ + + + +

Summary of Sequences

+

For each step: result (Pass/Fail) - risk (of highest alert(s) for the step, if any).

+ + + + + + +

Alerts

+ + + + + + + + + + + + + + + + + + + + + + +
NameRisk LevelNumber of Instances
ZAP is Out of DateLow1
Storable and Cacheable ContentInformational2
+
+ + + +

Alert Detail

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
Low
ZAP is Out of Date
Description +
The version of ZAP you are using to test your app is out of date and is no longer being updated.
+
+ +
The risk level is set based on how out of date your ZAP version is.
+ +
URLhttp://host.docker.internal:8080
MethodGET
Parameter
Attack
Evidence
Other InfoThe latest version of ZAP is 2.17.0
Instances1
Solution +
Download the latest version of ZAP from https://www.zaproxy.org/download/ and install it.
+ +
Reference + https://www.zaproxy.org/download/ + +
CWE Id1104
WASC Id45
Plugin Id10116
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
Informational
Storable and Cacheable Content
Description +
The response contents are storable by caching components such as proxy servers, and may be retrieved directly from the cache, rather than from the origin server by the caching servers, in response to similar requests from other users. If the response data is sensitive, personal or user-specific, this may result in sensitive information being leaked. In some cases, this may even result in a user gaining complete control of the session of another user, depending on the configuration of the caching components in use in their environment. This is primarily an issue where "shared" caching servers such as "proxy" caches are configured on the local network. This configuration is typically found in corporate or educational environments, for instance.
+ +
URLhttp://host.docker.internal:8080
MethodGET
Parameter
Attack
Evidence
Other InfoIn the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234.
URLhttp://host.docker.internal:8080/sitemap.xml
MethodGET
Parameter
Attack
Evidence
Other InfoIn the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234.
Instances2
Solution +
Validate that the response does not contain sensitive, personal or user-specific information. If it does, consider the use of the following HTTP response headers, to limit, or prevent the content being stored and retrieved from the cache by another user:
+
+ +
Cache-Control: no-cache, no-store, must-revalidate, private
+
+ +
Pragma: no-cache
+
+ +
Expires: 0
+
+ +
This configuration directs both HTTP 1.0 and HTTP 1.1 compliant caching servers to not store the response, and to not retrieve the response (without validation) from the cache, in response to a similar request.
+ +
Reference + https://datatracker.ietf.org/doc/html/rfc7234 +
+ + https://datatracker.ietf.org/doc/html/rfc7231 +
+ + https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html + +
CWE Id524
WASC Id13
Plugin Id10049
+
+ + + + + +

Sequence Details

+ With the associated active scan results. + + + +
+ + + + + + + diff --git a/security/reports/zap-baseline-before.json b/security/reports/zap-baseline-before.json new file mode 100644 index 000000000..5e8be410d --- /dev/null +++ b/security/reports/zap-baseline-before.json @@ -0,0 +1,89 @@ +{ + "@programName": "ZAP", + "@version": "2.16.1", + "@generated": "Thu, 25 Jun 2026 23:34:22", + "created": "2026-06-25T23:34:22.315944304Z", + "site":[ + { + "@name": "http://host.docker.internal:8080", + "@host": "host.docker.internal", + "@port": "8080", + "@ssl": "false", + "alerts": [ + { + "pluginid": "10116", + "alertRef": "10116", + "alert": "ZAP is Out of Date", + "name": "ZAP is Out of Date", + "riskcode": "1", + "confidence": "3", + "riskdesc": "Low (High)", + "desc": "

The version of ZAP you are using to test your app is out of date and is no longer being updated.

The risk level is set based on how out of date your ZAP version is.

", + "instances":[ + { + "id": "3", + "uri": "http://host.docker.internal:8080", + "nodeName": null, + "method": "GET", + "param": "", + "attack": "", + "evidence": "", + "otherinfo": "The latest version of ZAP is 2.17.0" + } + ], + "count": "1", + "systemic": false, + "solution": "

Download the latest version of ZAP from https://www.zaproxy.org/download/ and install it.

", + "otherinfo": "

The latest version of ZAP is 2.17.0

", + "reference": "

https://www.zaproxy.org/download/

", + "cweid": "1104", + "wascid": "45", + "sourceid": "6" + }, + { + "pluginid": "10049", + "alertRef": "10049-3", + "alert": "Storable and Cacheable Content", + "name": "Storable and Cacheable Content", + "riskcode": "0", + "confidence": "2", + "riskdesc": "Informational (Medium)", + "desc": "

The response contents are storable by caching components such as proxy servers, and may be retrieved directly from the cache, rather than from the origin server by the caching servers, in response to similar requests from other users. If the response data is sensitive, personal or user-specific, this may result in sensitive information being leaked. In some cases, this may even result in a user gaining complete control of the session of another user, depending on the configuration of the caching components in use in their environment. This is primarily an issue where \"shared\" caching servers such as \"proxy\" caches are configured on the local network. This configuration is typically found in corporate or educational environments, for instance.

", + "instances":[ + { + "id": "1", + "uri": "http://host.docker.internal:8080", + "nodeName": null, + "method": "GET", + "param": "", + "attack": "", + "evidence": "", + "otherinfo": "In the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234." + }, + { + "id": "2", + "uri": "http://host.docker.internal:8080/sitemap.xml", + "nodeName": null, + "method": "GET", + "param": "", + "attack": "", + "evidence": "", + "otherinfo": "In the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234." + } + ], + "count": "2", + "systemic": false, + "solution": "

Validate that the response does not contain sensitive, personal or user-specific information. If it does, consider the use of the following HTTP response headers, to limit, or prevent the content being stored and retrieved from the cache by another user:

Cache-Control: no-cache, no-store, must-revalidate, private

Pragma: no-cache

Expires: 0

This configuration directs both HTTP 1.0 and HTTP 1.1 compliant caching servers to not store the response, and to not retrieve the response (without validation) from the cache, in response to a similar request.

", + "otherinfo": "

In the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234.

", + "reference": "

https://datatracker.ietf.org/doc/html/rfc7234

https://datatracker.ietf.org/doc/html/rfc7231

https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html

", + "cweid": "524", + "wascid": "13", + "sourceid": "1" + } + ] + } + ], + "sequences":[ + ] + +} diff --git a/security/reports/zap-baseline.html b/security/reports/zap-baseline.html new file mode 100644 index 000000000..c851a2258 --- /dev/null +++ b/security/reports/zap-baseline.html @@ -0,0 +1,703 @@ + + + + +ZAP Scanning Report + + + +

+ + + ZAP Scanning Report +

+

+ + +

+ + Site: http://host.docker.internal:8080 + +

+ +

+ Generated on Thu, 25 Jun 2026 23:44:28 +

+ +

+ ZAP Version: 2.16.1 +

+ +

+ ZAP by Checkmarx +

+ + +

Summary of Alerts

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Risk LevelNumber of Alerts
+
High
+
+
0
+
+
Medium
+
+
0
+
+
Low
+
+
2
+
+
Informational
+
+
1
+
+
False Positives:
+
+
0
+
+
+ + + + +

Summary of Sequences

+

For each step: result (Pass/Fail) - risk (of highest alert(s) for the step, if any).

+ + + + + + +

Alerts

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameRisk LevelNumber of Instances
Insufficient Site Isolation Against Spectre VulnerabilityLow1
ZAP is Out of DateLow1
Storable and Cacheable ContentInformational3
+
+ + + +

Alert Detail

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
Low
Insufficient Site Isolation Against Spectre Vulnerability
Description +
Cross-Origin-Resource-Policy header is an opt-in header designed to counter side-channels attacks like Spectre. Resource should be specifically set as shareable amongst different origins.
+ +
URLhttp://host.docker.internal:8080/health
MethodGET
ParameterCross-Origin-Resource-Policy
Attack
Evidence
Other Info
Instances1
Solution +
Ensure that the application/web server sets the Cross-Origin-Resource-Policy header appropriately, and that it sets the Cross-Origin-Resource-Policy header to 'same-origin' for all web pages.
+
+ +
'same-site' is considered as less secured and should be avoided.
+
+ +
If resources must be shared, set the header to 'cross-origin'.
+
+ +
If possible, ensure that the end user uses a standards-compliant and modern web browser that supports the Cross-Origin-Resource-Policy header (https://caniuse.com/mdn-http_headers_cross-origin-resource-policy).
+ +
Reference + https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cross-Origin-Embedder-Policy + +
CWE Id693
WASC Id14
Plugin Id90004
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
Low
ZAP is Out of Date
Description +
The version of ZAP you are using to test your app is out of date and is no longer being updated.
+
+ +
The risk level is set based on how out of date your ZAP version is.
+ +
URLhttp://host.docker.internal:8080/sitemap.xml
MethodGET
Parameter
Attack
Evidence
Other InfoThe latest version of ZAP is 2.17.0
Instances1
Solution +
Download the latest version of ZAP from https://www.zaproxy.org/download/ and install it.
+ +
Reference + https://www.zaproxy.org/download/ + +
CWE Id1104
WASC Id45
Plugin Id10116
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
Informational
Storable and Cacheable Content
Description +
The response contents are storable by caching components such as proxy servers, and may be retrieved directly from the cache, rather than from the origin server by the caching servers, in response to similar requests from other users. If the response data is sensitive, personal or user-specific, this may result in sensitive information being leaked. In some cases, this may even result in a user gaining complete control of the session of another user, depending on the configuration of the caching components in use in their environment. This is primarily an issue where "shared" caching servers such as "proxy" caches are configured on the local network. This configuration is typically found in corporate or educational environments, for instance.
+ +
URLhttp://host.docker.internal:8080/
MethodGET
Parameter
Attack
Evidence
Other InfoIn the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234.
URLhttp://host.docker.internal:8080/health
MethodGET
Parameter
Attack
Evidence
Other InfoIn the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234.
URLhttp://host.docker.internal:8080/sitemap.xml
MethodGET
Parameter
Attack
Evidence
Other InfoIn the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234.
Instances3
Solution +
Validate that the response does not contain sensitive, personal or user-specific information. If it does, consider the use of the following HTTP response headers, to limit, or prevent the content being stored and retrieved from the cache by another user:
+
+ +
Cache-Control: no-cache, no-store, must-revalidate, private
+
+ +
Pragma: no-cache
+
+ +
Expires: 0
+
+ +
This configuration directs both HTTP 1.0 and HTTP 1.1 compliant caching servers to not store the response, and to not retrieve the response (without validation) from the cache, in response to a similar request.
+ +
Reference + https://datatracker.ietf.org/doc/html/rfc7234 +
+ + https://datatracker.ietf.org/doc/html/rfc7231 +
+ + https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html + +
CWE Id524
WASC Id13
Plugin Id10049
+
+ + + + + +

Sequence Details

+ With the associated active scan results. + + + +
+ + + + + + + diff --git a/security/reports/zap-baseline.json b/security/reports/zap-baseline.json new file mode 100644 index 000000000..4621a080c --- /dev/null +++ b/security/reports/zap-baseline.json @@ -0,0 +1,129 @@ +{ + "@programName": "ZAP", + "@version": "2.16.1", + "@generated": "Thu, 25 Jun 2026 23:44:28", + "created": "2026-06-25T23:44:28.660493137Z", + "site":[ + { + "@name": "http://host.docker.internal:8080", + "@host": "host.docker.internal", + "@port": "8080", + "@ssl": "false", + "alerts": [ + { + "pluginid": "90004", + "alertRef": "90004-1", + "alert": "Insufficient Site Isolation Against Spectre Vulnerability", + "name": "Insufficient Site Isolation Against Spectre Vulnerability", + "riskcode": "1", + "confidence": "2", + "riskdesc": "Low (Medium)", + "desc": "

Cross-Origin-Resource-Policy header is an opt-in header designed to counter side-channels attacks like Spectre. Resource should be specifically set as shareable amongst different origins.

", + "instances":[ + { + "id": "7", + "uri": "http://host.docker.internal:8080/health", + "nodeName": null, + "method": "GET", + "param": "Cross-Origin-Resource-Policy", + "attack": "", + "evidence": "", + "otherinfo": "" + } + ], + "count": "1", + "systemic": false, + "solution": "

Ensure that the application/web server sets the Cross-Origin-Resource-Policy header appropriately, and that it sets the Cross-Origin-Resource-Policy header to 'same-origin' for all web pages.

'same-site' is considered as less secured and should be avoided.

If resources must be shared, set the header to 'cross-origin'.

If possible, ensure that the end user uses a standards-compliant and modern web browser that supports the Cross-Origin-Resource-Policy header (https://caniuse.com/mdn-http_headers_cross-origin-resource-policy).

", + "otherinfo": "", + "reference": "

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cross-Origin-Embedder-Policy

", + "cweid": "693", + "wascid": "14", + "sourceid": "1" + }, + { + "pluginid": "10116", + "alertRef": "10116", + "alert": "ZAP is Out of Date", + "name": "ZAP is Out of Date", + "riskcode": "1", + "confidence": "3", + "riskdesc": "Low (High)", + "desc": "

The version of ZAP you are using to test your app is out of date and is no longer being updated.

The risk level is set based on how out of date your ZAP version is.

", + "instances":[ + { + "id": "3", + "uri": "http://host.docker.internal:8080/sitemap.xml", + "nodeName": null, + "method": "GET", + "param": "", + "attack": "", + "evidence": "", + "otherinfo": "The latest version of ZAP is 2.17.0" + } + ], + "count": "1", + "systemic": false, + "solution": "

Download the latest version of ZAP from https://www.zaproxy.org/download/ and install it.

", + "otherinfo": "

The latest version of ZAP is 2.17.0

", + "reference": "

https://www.zaproxy.org/download/

", + "cweid": "1104", + "wascid": "45", + "sourceid": "10" + }, + { + "pluginid": "10049", + "alertRef": "10049-3", + "alert": "Storable and Cacheable Content", + "name": "Storable and Cacheable Content", + "riskcode": "0", + "confidence": "2", + "riskdesc": "Informational (Medium)", + "desc": "

The response contents are storable by caching components such as proxy servers, and may be retrieved directly from the cache, rather than from the origin server by the caching servers, in response to similar requests from other users. If the response data is sensitive, personal or user-specific, this may result in sensitive information being leaked. In some cases, this may even result in a user gaining complete control of the session of another user, depending on the configuration of the caching components in use in their environment. This is primarily an issue where \"shared\" caching servers such as \"proxy\" caches are configured on the local network. This configuration is typically found in corporate or educational environments, for instance.

", + "instances":[ + { + "id": "0", + "uri": "http://host.docker.internal:8080/", + "nodeName": null, + "method": "GET", + "param": "", + "attack": "", + "evidence": "", + "otherinfo": "In the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234." + }, + { + "id": "4", + "uri": "http://host.docker.internal:8080/health", + "nodeName": null, + "method": "GET", + "param": "", + "attack": "", + "evidence": "", + "otherinfo": "In the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234." + }, + { + "id": "6", + "uri": "http://host.docker.internal:8080/sitemap.xml", + "nodeName": null, + "method": "GET", + "param": "", + "attack": "", + "evidence": "", + "otherinfo": "In the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234." + } + ], + "count": "3", + "systemic": false, + "solution": "

Validate that the response does not contain sensitive, personal or user-specific information. If it does, consider the use of the following HTTP response headers, to limit, or prevent the content being stored and retrieved from the cache by another user:

Cache-Control: no-cache, no-store, must-revalidate, private

Pragma: no-cache

Expires: 0

This configuration directs both HTTP 1.0 and HTTP 1.1 compliant caching servers to not store the response, and to not retrieve the response (without validation) from the cache, in response to a similar request.

", + "otherinfo": "

In the absence of an explicitly specified caching lifetime directive in the response, a liberal lifetime heuristic of 1 year was assumed. This is permitted by rfc7234.

", + "reference": "

https://datatracker.ietf.org/doc/html/rfc7234

https://datatracker.ietf.org/doc/html/rfc7231

https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html

", + "cweid": "524", + "wascid": "13", + "sourceid": "3" + } + ] + } + ], + "sequences":[ + ] + +} diff --git a/security/reports/zap.yaml b/security/reports/zap.yaml new file mode 100644 index 000000000..ce0ecd636 --- /dev/null +++ b/security/reports/zap.yaml @@ -0,0 +1,41 @@ +env: + contexts: + - excludePaths: [] + name: baseline + urls: + - http://host.docker.internal:8080/health + - http://host.docker.internal:8080/ + parameters: + failOnError: true + progressToStdout: false +jobs: +- parameters: + enableTags: false + maxAlertsPerRule: 10 + type: passiveScan-config +- parameters: + maxDuration: 1 + url: http://host.docker.internal:8080/ + type: spider +- parameters: + maxDuration: 0 + type: passiveScan-wait +- parameters: + format: Long + summaryFile: /home/zap/zap_out.json + rules: [] + type: outputSummary +- parameters: + reportDescription: '' + reportDir: /zap/wrk/ + reportFile: zap-baseline.html + reportTitle: ZAP Scanning Report + template: traditional-html + type: report +- parameters: + reportDescription: '' + reportDir: /zap/wrk/ + reportFile: zap-baseline.json + reportTitle: ZAP Scanning Report + template: traditional-json + type: report diff --git a/security/scripts/run-trivy.sh b/security/scripts/run-trivy.sh new file mode 100644 index 000000000..50a6000dc --- /dev/null +++ b/security/scripts/run-trivy.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +# Lab 9 Task 1 — run Trivy image, fs, config scans + CycloneDX SBOM. +# Usage: bash security/scripts/run-trivy.sh +# Requires: Docker, quicknotes:lab6 image built. + +set -euo pipefail + +TRIVY_IMAGE="${TRIVY_IMAGE:-aquasec/trivy:0.59.1}" +REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)" +OUT_DIR="${REPO_ROOT}/security/reports" +mkdir -p "${OUT_DIR}" + +echo "==> Trivy image scan (HIGH,CRITICAL)" +docker run --rm \ + -v /var/run/docker.sock:/var/run/docker.sock \ + "${TRIVY_IMAGE}" image --severity HIGH,CRITICAL quicknotes:lab6 \ + | tee "${OUT_DIR}/trivy-image.txt" + +echo "==> Trivy filesystem scan (HIGH,CRITICAL)" +docker run --rm \ + -v "${REPO_ROOT}:/repo" \ + "${TRIVY_IMAGE}" fs --severity HIGH,CRITICAL /repo \ + | tee "${OUT_DIR}/trivy-fs.txt" + +echo "==> Trivy config scan" +docker run --rm \ + -v "${REPO_ROOT}:/repo" \ + "${TRIVY_IMAGE}" config /repo \ + | tee "${OUT_DIR}/trivy-config.txt" + +echo "==> Trivy SBOM (CycloneDX)" +docker run --rm \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v "${OUT_DIR}:/out" \ + "${TRIVY_IMAGE}" image --format cyclonedx --output /out/quicknotes-sbom.json quicknotes:lab6 + +echo "Reports written to ${OUT_DIR}/" diff --git a/security/scripts/run-zap-baseline.sh b/security/scripts/run-zap-baseline.sh new file mode 100644 index 000000000..6dd46b35e --- /dev/null +++ b/security/scripts/run-zap-baseline.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# Lab 9 Task 2 — OWASP ZAP baseline (passive) against running QuickNotes. +# Usage: bash security/scripts/run-zap-baseline.sh +# Requires: QuickNotes on http://localhost:8080 + +set -euo pipefail + +ZAP_IMAGE="${ZAP_IMAGE:-ghcr.io/zaproxy/zaproxy:2.16.1}" +TARGET="${TARGET:-http://host.docker.internal:8080/health}" +REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)" +OUT_DIR="${REPO_ROOT}/security/reports" +mkdir -p "${OUT_DIR}" + +docker run --rm \ + -v "${OUT_DIR}:/zap/wrk:rw" \ + --add-host=host.docker.internal:host-gateway \ + "${ZAP_IMAGE}" zap-baseline.py \ + -t "${TARGET}" \ + -r zap-baseline.html \ + -J zap-baseline.json \ + -I + +echo "ZAP reports: ${OUT_DIR}/zap-baseline.html and zap-baseline.json" diff --git a/submissions/lab6.md b/submissions/lab6.md new file mode 100644 index 000000000..f0c23af7e --- /dev/null +++ b/submissions/lab6.md @@ -0,0 +1,168 @@ +# Lab 6 — Containers: Dockerize QuickNotes + +Mahmoud Hassan (`selysecr332`) +**Environment:** Windows 11 + Docker 29.x + +--- + +## Task 1 — Multi-stage Dockerfile (≤ 25 MB) + +### Dockerfile + +See [`app/Dockerfile`](../app/Dockerfile). + +### `docker images quicknotes:lab6` + +```text +IMAGE ID DISK USAGE CONTENT SIZE +quicknotes:lab6 4a2a4575e34a 22.7MB 5.71MB +``` + +### `docker inspect` excerpt (User, ExposedPorts, Entrypoint) + +```text +$ docker inspect quicknotes:lab6 --format "User={{.Config.User}} Entrypoint={{.Config.Entrypoint}}" +User=nonroot Entrypoint=[/quicknotes] +``` + +### Builder base image size (comparison) + +```text +quicknotes:lab6 22.7MB +golang:1.24.5-alpine 394MB +``` + +(~17× smaller runtime image than builder base) + +### Task 1 verification + +```text +$ Invoke-RestMethod http://127.0.0.1:8080/health +{"notes":4,"status":"ok"} +``` + +### Design questions (Task 1) + +**a) Why does layer-order matter?** + +`COPY go.mod` + `go mod download` before `COPY . .` keeps the dependency layer cached when only source changes. With `COPY . .` first, any file edit invalidates `go mod download` and forces a full module fetch + rebuild. On this project (no external deps) the win is small; the pattern matters once `go.sum` grows. + +**b) Why `CGO_ENABLED=0`?** + +Produces a fully static binary with no dynamic linker dependency. `gcr.io/distroless/static` has no `libc.so` loader — a CGO-linked binary fails at startup with `no such file or directory` (often misread as a missing binary). + +**c) What is `gcr.io/distroless/static:nonroot`?** + +Contains CA certs, `/etc/passwd` entry for UID 65532 (`nonroot`), timezone data, and **only** what a static binary needs. No shell, no `apt`, no package manager. Fewer packages → smaller attack surface and far fewer CVEs than `ubuntu` or `alpine` with a shell. + +**d) `-ldflags='-s -w'` and `-trimpath`?** + +`-s -w` strips the symbol table and DWARF debug info (smaller binary; harder to debug with `dlv`). `-trimpath` removes local filesystem paths from the binary for reproducible builds and cleaner stack traces in CI. + +--- + +## Task 2 — Compose + healthcheck + volume + +### `compose.yaml` + +See [`compose.yaml`](../compose.yaml) at repo root. +Note: `vol-init` (busybox) runs once to `chown` the named volume for UID 65532 — required because Docker creates new volumes as root and distroless runs as `nonroot`. + +### Persistence test (present → down → up → present → down -v → up → absent) + +```text +# POST durable note +{"id":5,"title":"durable","body":"survive a restart",...} + +# after docker compose down && docker compose up -d (no -v) +{"id":5,"title":"durable","body":"survive a restart",...} ✅ still present + +# after docker compose down -v && docker compose up -d +durable absent (expected) ✅ volume destroyed +``` + +### Design questions (Task 2) + +**e) Distroless has no shell. How do you healthcheck it?** + +Strategy: **HTTP probe via a second static binary** (`/healthcheck`) built in the builder stage and copied into the runtime image. Compose runs `test: ["CMD", "/healthcheck"]`, which GETs `http://127.0.0.1:8080/health` and exits non-zero on failure — no shell, `curl`, or `wget` required in distroless. + +**f) Why does `volumes: [quicknotes-data:/data]` survive `docker compose down`?** + +Named volumes are managed by Docker outside the container lifecycle. `docker compose down` removes containers and networks but **not** named volumes unless you pass `-v`. `docker compose down -v` (or `docker volume rm`) destroys the data. + +**g) `depends_on` without `condition: service_healthy`?** + +Compose only waits for the **container to start**, not for the app inside to be ready. A dependent service can connect before QuickNotes listens on `:8080`, causing flaky startup races (relevant in Lab 8 when Prometheus scrapes QuickNotes). + +--- + +## Bonus — 6 security defaults + +### Hardened `compose.yaml` snippet + +```yaml + quicknotes: + cap_drop: + - ALL + read_only: true + tmpfs: + - /tmp + security_opt: + - no-new-privileges:true +``` + +(Dockerfile: `USER nonroot`, `gcr.io/distroless/static:nonroot` base) + +### Verification outputs (B.2) + +```text +USER: nonroot +exec sh: exec: "sh": executable file not found in $PATH ✅ no shell +CapDrop: [ALL] +SecurityOpt: [no-new-privileges:true] +ReadonlyRootfs: true +``` + +### Trivy summary + +```text +Distroless base layer: Total: 0 (HIGH: 0, CRITICAL: 0) +Embedded Go stdlib (v1.24.5): Total: 16 (HIGH: 15, CRITICAL: 1) +``` + +Distroless base is clean; remaining findings are in the **compiled Go stdlib** (fixed in Go 1.24.12+). Lab 9 will wire Trivy into CI. + +### Which default gives the most security per line of YAML? + +`read_only: true` plus `cap_drop: [ALL]` — two lines that block most container escape and persistence paths. `read_only` prevents runtime package installs and config tampering; dropping all capabilities removes the Linux privilege escalation surface. Distroless + `nonroot` are Dockerfile-level but equally high leverage. + +--- + +## Lab 6 completion checklist + +### Task 1 (6 pts) + +- [x] Multi-stage Dockerfile, ≤ 25 MB, nonroot, distroless +- [x] `docker run` serves `/health` +- [x] Design questions a–d answered +- [x] Build outputs pasted + +### Task 2 (4 pts) + +- [x] `compose.yaml` with volume, healthcheck, env, restart +- [x] Persistence test demonstrated +- [x] Design questions e–g answered + +### Bonus (2 pts) + +- [x] All 6 defaults applied and verified +- [x] Trivy scan documented + +### Submission + +- [x] Course PR (`feature/lab6` → `inno-devops-labs/main`) + **https://github.com/inno-devops-labs/DevOps-Intro/pull/1157** +- [x] Fork PR (`feature/lab6-fork` → `selysecr332/main`) + **https://github.com/selysecr332/DevOps-Intro/pull/7** +- [x] Both URLs on Moodle diff --git a/submissions/lab8.md b/submissions/lab8.md new file mode 100644 index 000000000..c00719b0a --- /dev/null +++ b/submissions/lab8.md @@ -0,0 +1,184 @@ + # Lab 8 — SRE & Monitoring: Golden Signals Dashboard + One Good Alert + +Mahmoud Hassan (`selysecr332`) +**Environment:** Windows 11 + Docker Compose + Lab 6 QuickNotes image + +--- + +## Task 1 — Prometheus + Grafana with provisioned dashboard + +### Layout + +```text +monitoring/ +├── prometheus/ +│ ├── prometheus.yml +│ └── rules/high-error-rate.yml +├── grafana/ +│ ├── provisioning/ +│ │ ├── datasources/datasource.yml +│ │ └── dashboards/dashboard.yml +│ └── dashboards/golden-signals.json +└── scripts/ + ├── generate-traffic.sh + └── inject-errors.sh +``` + +Extended [`compose.yaml`](../compose.yaml) with `prometheus` and `grafana` services. + +### Config files + +See [`monitoring/`](../monitoring/) directory. + +### Prometheus targets health + +```bash +curl -s http://localhost:9090/api/v1/targets | jq '.data.activeTargets[].health' +``` + +```text +"up" +``` + +### Grafana dashboard + +Screenshot: [`submissions/screenshots/grafana.png`](screenshots/grafana.png) + +Login: `admin` / `lab8-grafana-admin` (set in compose — not default `admin`/`admin`). + +Traffic generated with `bash monitoring/scripts/generate-traffic.sh` — all four panels show non-trivial data. + +### Design questions (Task 1) + +**a) Pull vs push — reachability and failure mode?** + +Prometheus **pulls** by HTTP-scraping QuickNotes `/metrics`. QuickNotes must be reachable **from Prometheus** on the Compose network (`quicknotes:8080`), not the other way around. If Prometheus cannot reach QuickNotes, the scrape fails, `up == 0`, and metrics go stale — you lose visibility even if the app is still serving some users via the published host port. + +**b) `scrape_interval: 15s` — problems at 5s vs 5m?** + +At **5s**: more frequent scrapes → higher load on QuickNotes and Prometheus, larger TSDB churn, and noisier graphs; diminishing returns for a small lab API. At **5m**: coarse resolution — short spikes and brief outages can be missed or averaged away; alert rules using `[5m]` windows react slowly and dashboards feel “stale.” + +**c) `rate()` vs `irate()` vs `delta()` for Traffic panel?** + +Use **`rate()`** on the `quicknotes_http_requests_total` counter over a range (e.g. `[5m]`). `rate()` smooths per-second increase across the window — right for “requests per second” traffic. `irate()` only uses the last two samples → spiky, bad for dashboards/alerts. `delta()` is for gauges, not counters. + +**d) Why provision Grafana from files?** + +Dashboard + datasource JSON/YAML lives in Git next to the app: reproducible `docker compose up`, reviewable in PRs, same panels for every teammate/CI environment — no manual UI clicking after each fresh stack. + +--- + +## Task 2 — Alert + runbook + +### Alert rule + +Prometheus rule: [`monitoring/prometheus/rules/high-error-rate.yml`](../monitoring/prometheus/rules/high-error-rate.yml) + +```yaml +expr: | + ( + sum(rate(quicknotes_http_responses_by_code_total{code=~"4..|5.."}[5m])) + / + sum(rate(quicknotes_http_requests_total[5m])) + ) > 0.05 +for: 5m +labels: + severity: page +``` + +### Trigger demo + +```bash +bash monitoring/scripts/inject-errors.sh +# 360s of mixed healthy + malformed POST /notes traffic +``` + +Errors panel during injection (sustained **~40–50%** error ratio, well above 5% threshold): + +Screenshot: [`submissions/screenshots/grafana_2.png`](screenshots/grafana_2.png) + +Prometheus alert rule loaded (`HighErrorRate`, `for: 5m`, `severity: page`, runbook annotation): + +Screenshot: [`submissions/screenshots/alerts.png`](screenshots/alerts.png) + +During `inject-errors.sh`, the rule transitions **Inactive → Pending → Firing** while error ratio stays >5% for 5 minutes; returns to **Inactive** after injection stops (as in screenshot). + +### Runbook + +[`docs/runbook/high-error-rate.md`](../docs/runbook/high-error-rate.md) + +### Design questions (Task 2) + +**e) Why sustained 5 minutes instead of first bad request?** + +A single malformed `POST /notes` returns one 400 — not an outage. Requiring **5 minutes** above 5% filters bursty bad clients and avoids paging on noise; you alert when users are *sustainedly* affected, matching SLO-style “budget over time” thinking. + +**f) Symptom vs cause alert example for QuickNotes?** + +**Symptom (good):** error ratio > 5% — what users see. **Cause (worse as a page):** `container_cpu_usage > 80%` — CPU can be high while errors are zero, or errors can happen at low CPU (bad deploy, bug). Cause metrics create false positives and send on-call chasing the wrong layer. + +**g) Alert fatigue — quantitative threshold for “too noisy”?** + +If **`HighErrorRate` pages more than ~1–2 times per month** when users were **not** actually impaired (checked via health checks / support tickets), the threshold or `for:` duration is too aggressive. Rule of thumb from Lecture 8: if **>30% of pages** are false alarms, fix or silence the alert before adding more. + +--- + +## Bonus — Synthetic monitoring (not completed) + +**Attempted** ngrok, `trycloudflare.com` quick tunnel, and named Cloudflare Zero Trust tunnel (`lab8-quicknote`). + +**Blocked by network** — `cloudflared` connectivity pre-checks: + +| Check | Result | +|-------|--------| +| DNS Resolution | PASS | +| Cloudflare API (`api.cloudflare.com:443`) | PASS | +| UDP/QUIC to `region*.v2.argotunnel.com` | **FAIL** | +| TCP/HTTP2 to `region*.v2.argotunnel.com:7844` | **FAIL** — blocked or unreachable | + +``` +ERROR: Allow outbound QUIC traffic on port 7844 or use HTTP2. +ERROR: Allow outbound TCP on port 7844. +SUMMARY: Environment has critical failures. cloudflared may not be able to establish a tunnel. +``` + +Tunnel dashboard stayed **Inactive** (0 replicas). Checkly could not be configured without a public URL. + +Setup notes: [`monitoring/docs/bonus-checkly-setup.md`](../monitoring/docs/bonus-checkly-setup.md) + +### Failure-mode analysis + +**Checkly would catch, Prometheus cannot:** Internet path failures (DNS, TLS, regional routing, tunnel down) — external probes hit the public URL like real users; Prometheus only scrapes `quicknotes:8080` inside Docker. + +**Prometheus catches, Checkly cannot:** In-app error ratios across all routes, saturation (`quicknotes_notes_total`), and sustained 5xx/4xx alerts — Checkly only probes `/health` once per minute per region. + +--- + +## Lab 8 completion checklist + +### Task 1 (6 pts) + +- [x] Prometheus scrapes QuickNotes (`up`) +- [x] Grafana 4-panel golden-signals dashboard +- [x] Traffic generated, graphs non-trivial +- [x] Design questions a–d answered + +### Task 2 (4 pts) + +- [x] Alert rule with 5% / 5m sustained gate +- [x] Runbook complete +- [x] Alert observed Firing +- [x] Design questions e–g answered + +### Bonus (2 pts) + +- [x] Attempted (ngrok + cloudflared) — blocked on port **7844** +- [ ] Checkly 2-region comparison (not possible without public URL) +- [x] Failure-mode analysis written + +### Submission + +- [x] Course PR: https://github.com/inno-devops-labs/DevOps-Intro/pull/1222 +- [x] Fork PR: https://github.com/selysecr332/DevOps-Intro/pull/9 +- [x] Moodle URL submitted + diff --git a/submissions/lab9.md b/submissions/lab9.md new file mode 100644 index 000000000..210ea4d8e --- /dev/null +++ b/submissions/lab9.md @@ -0,0 +1,305 @@ +# Lab 9 — DevSecOps: Trivy + ZAP + +Mahmoud Hassan (`selysecr332`) +**Environment:** Windows 11 + WSL2 + Docker Desktop + `quicknotes:lab6` image + +--- + +## Task 1 — Trivy scans + SBOM + triage + +### Scan commands + +```bash +bash security/scripts/run-trivy.sh +``` + +Reports: [`security/reports/`](../security/reports/) + +Pinned scanner: `aquasec/trivy:0.59.1` + +### Scan output (top) + +#### Image (`trivy-image.txt`) + +```text +quicknotes:lab6 (debian 13.5) +============================= +Total: 0 (HIGH: 0, CRITICAL: 0) + +healthcheck (gobinary) +====================== +Total: 12 (HIGH: 12, CRITICAL: 0) + +quicknotes (gobinary) +===================== +Total: 12 (HIGH: 12, CRITICAL: 0) +``` + +(Full report in repo. Image rebuilt with `golang:1.24.13-alpine`; original `1.24.5` scan had 15 HIGH + 1 CRITICAL per binary.) + +#### Filesystem (`trivy-fs.txt`) + +```text +2026-06-25T23:41:37Z INFO Number of language-specific files num=1 +2026-06-25T23:41:37Z INFO [gomod] Detecting vulnerabilities... +``` + +No HIGH/CRITICAL findings in `app/go.mod` / repo source. + +#### Config (`trivy-config.txt`) + +```text +app/Dockerfile (dockerfile) +=========================== +Tests: 28 (SUCCESSES: 27, FAILURES: 1) +Failures: 1 (UNKNOWN: 0, LOW: 1, MEDIUM: 0, HIGH: 0, CRITICAL: 0) + +AVD-DS-0026 (LOW): Add HEALTHCHECK instruction in your Dockerfile +``` + +No HIGH/CRITICAL misconfigurations. Health probing is handled via Compose `healthcheck` + `/healthcheck` binary. + +#### SBOM (first 30 lines of `quicknotes-sbom.json`) + +```json +{ + "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json", + "bomFormat": "CycloneDX", + "specVersion": "1.6", + "serialNumber": "urn:uuid:458eae96-8901-4a3e-a318-8aff125ca714", + "version": 1, + "metadata": { + "timestamp": "2026-06-25T23:57:16+00:00", + "tools": { + "components": [ + { + "type": "application", + "group": "aquasecurity", + "name": "trivy", + "version": "0.59.1" + } + ] + }, + "component": { + "bom-ref": "pkg:oci/quicknotes@sha256%3A98f4e47b07633d15a9b3b3c0b94f98e9c8dcde8746d8416eaf1fd4ef270088dc?arch=amd64&repository_url=index.docker.io%2Flibrary%2Fquicknotes", + "type": "container", + "name": "quicknotes:lab6", + "purl": "pkg:oci/quicknotes@sha256%3A98f4e47b07633d15a9b3b3c0b94f98e9c8dcde8746d8416eaf1fd4ef270088dc?arch=amd64&repository_url=index.docker.io%2Flibrary%2Fquicknotes", + "properties": [ + { + "name": "aquasecurity:trivy:DiffID", + "value": "sha256:144f9b8d282198cfbafeb0783d0901985d16ec0e2103b12b57616fe520373590" + }, + { + "name": "aquasecurity:trivy:DiffID", +``` + +### Triage table (every HIGH/CRITICAL) + +Image scan findings are Go `stdlib` CVEs in both compiled binaries (`/quicknotes` and `/healthcheck`). Each CVE appears twice; disposition is the same for both. + +| ID / Package | Severity | Source | Disposition | Reason | +|--------------|----------|--------|-------------|--------| +| CVE-2026-25679 (stdlib) | HIGH | image (both binaries) | WATCH | Fixed in Go 1.25.8+; no 1.24.x backport yet. Re-check when Go 1.24.14+ or 1.25 patch is released (by 2026-12-01). | +| CVE-2026-27145 (stdlib) | HIGH | image | WATCH | x509 hostname verification; fixed in 1.25.11+. App serves plain HTTP only; monitor Go release notes. | +| CVE-2026-32280 (stdlib) | HIGH | image | ACCEPT | TLS cert-chain DoS; QuickNotes does not terminate TLS or accept client certs. Re-evaluate 2026-12-01 if HTTPS is added. | +| CVE-2026-32281 (stdlib) | HIGH | image | ACCEPT | Same as above — x509 chain validation not on attack surface for this API. | +| CVE-2026-32283 (stdlib) | HIGH | image | ACCEPT | TLS 1.3 DoS in `crypto/tls`; service listens HTTP :8080 only. | +| CVE-2026-33811 (stdlib) | HIGH | image | WATCH | DNS CNAME DoS in `net`; outbound DNS from container is minimal. Watch for 1.24 backport. | +| CVE-2026-33814 (stdlib) | HIGH | image | ACCEPT | HTTP/2 SETTINGS DoS; QuickNotes uses HTTP/1.1 only. | +| CVE-2026-39820 (stdlib) | HIGH | image | WATCH | mail address parsing DoS; no mail parsing in QuickNotes — likely unreachable, re-check with `govulncheck`. | +| CVE-2026-39823 (stdlib) | HIGH | image | WATCH | URL parsing fix follow-up; limited URL parsing in app. | +| CVE-2026-39836 (stdlib) | HIGH | image | FIX | Patched by upgrading builder `golang:1.24.5` → `1.24.13` in `app/Dockerfile` (commit on `feature/lab9`). | +| CVE-2026-42499 (stdlib) | HIGH | image | WATCH | MIME phrase parsing DoS; no MIME header decoding in handlers. | +| CVE-2026-42504 (stdlib) | HIGH | image | WATCH | MIME header decoding DoS; fixed in 1.25.11+. Re-check 2026-12-01. | + +**Config / filesystem:** no HIGH or CRITICAL findings to triage. + +### Design questions (Task 1) + +**a) CVE severity is one input — what else matters?** + +Severity alone does not say whether we are exposed. I also consider **reachability** (is the vulnerable code path used?), **exploit availability**, **network exposure** (internal API vs public), **compensating controls** (distroless, read-only rootfs, dropped caps), and **blast radius** if exploited. + +**b) Why distroless → fewer HIGH/CRITICAL?** + +Distroless removes the OS package manager, shell, and most packages. Trivy finds fewer OS-level CVEs because the attack surface is tiny — only what you copy in (our static Go binaries + seed file). The minimal base is the strongest single control because it eliminates entire vulnerability classes (no `apt`, no `curl`, no accidental packages). + +**c) When is `.trivyignore` right vs theater?** + +Right when a finding is **documented**, **time-boxed**, and **approved** — e.g. a CVE with no reachable path, with a ticket and re-review date. Theater when it permanently hides findings to get a green scan without analysis, or suppresses without an owner or expiry. + +**d) What future problem does the SBOM solve?** + +When a new CVE drops (e.g. Log4Shell-style), the SBOM lets you answer in minutes: *“Do we ship that component, which version, and where?”* without re-scanning or guessing. It enables targeted incident response and compliance audits. + +--- + +## Task 2 — ZAP baseline + code fix + +### Security headers fix + +Middleware: [`app/middleware.go`](../app/middleware.go) — `SecurityHeaders` wraps all routes via `server.Handler()` in `main.go`. + +Headers set on every response: + +- `X-Content-Type-Options: nosniff` +- `X-Frame-Options: DENY` +- `Content-Security-Policy: default-src 'none'` +- `Referrer-Policy: no-referrer` + +Tests: `TestSecurityHeaders_PresentOnResponses`, `TestSecurityHeaders_AbsentWithoutMiddleware` in `handlers_test.go`. + +### ZAP baseline + +```bash +docker compose up -d quicknotes +bash security/scripts/run-zap-baseline.sh # targets /health +``` + +Pinned: `ghcr.io/zaproxy/zaproxy:2.16.1` + +Before scan saved as `zap-baseline-before-health.json` (against image **without** middleware). After scan: `zap-baseline.json`. + +### ZAP triage table + +| ID | Name | Risk | URL | Disposition | Reason | +|----|------|------|-----|-------------|--------| +| 10021 | X-Content-Type-Options Header Missing | Low | `/health` | **FIX** | Added `SecurityHeaders` middleware + unit tests. Gone in post-fix scan. | +| 90004 | Insufficient Site Isolation Against Spectre | Low | `/health` | ACCEPT | Missing `Cross-Origin-Resource-Policy` / COOP. JSON API not loaded in browsers cross-origin; re-evaluate if UI is added (2026-12-01). | +| 10116 | ZAP is Out of Date | Low | various | FALSE POSITIVE | Finding is about the **scanner** version (2.16.1 vs 2.17.0), not the app. Pin kept per lab requirement. | +| 10049 | Storable and Cacheable Content | Informational | `/`, `/health`, `/sitemap.xml` | ACCEPT | `/health` returns static JSON; notes are not highly sensitive in lab. Could add `Cache-Control: no-store` later. Re-evaluate 2026-12-01. | + +### Before / after + +**Before** (`zap-baseline-before-health.json`): + +```json +{ + "pluginid": "10021", + "alert": "X-Content-Type-Options Header Missing", + "riskdesc": "Low (Medium)", + "instances": [{ "uri": "http://host.docker.internal:8080/health", "method": "GET" }] +} +``` + +**After** (`zap-baseline.json`): alert `10021` is **absent**. ZAP summary dropped from `WARN-NEW: 4` to `WARN-NEW: 3`; `X-Content-Type-Options Header Missing` appears under PASS rules in CLI output. + +Live verification: + +```http +HTTP/1.1 200 OK +Content-Security-Policy: default-src 'none' +X-Content-Type-Options: nosniff +X-Frame-Options: DENY +Referrer-Policy: no-referrer +``` + +### Design questions (Task 2) + +**e) Why middleware vs per-handler headers?** + +One middleware guarantees **every** route (including future handlers and error paths) gets the same headers. Per-handler sets are easy to forget, inconsistent, and untested when new endpoints are added. + +**f) CSP `default-src 'none'` — what breaks, why OK for API?** + +It blocks browsers from loading scripts, styles, images, or fonts from any origin. That breaks normal websites. QuickNotes is a JSON REST API with no HTML UI — browsers should not execute content from our responses, so denying all resource loads is appropriate. + +**g) Cost of accepting all informational ZAP findings unread?** + +You accumulate **unknown real risk** (alert fatigue in reverse), miss patterns that indicate misconfiguration, and lose audit credibility. Informational does not mean harmless — bulk-accepting without review is security theater. + +--- + +## Bonus — govulncheck CI gate + +### CI job + +Added to [`.github/workflows/ci.yml`](../.github/workflows/ci.yml) (from Lab 3 + new job): + +```yaml + govulncheck: + name: govulncheck + runs-on: ubuntu-24.04 + defaults: + run: + working-directory: app + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.2.2 + - uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 + with: + go-version: '1.24' + cache: true + cache-dependency-path: app/go.mod + - name: Install govulncheck + run: go install golang.org/x/vuln/cmd/govulncheck@v1.1.4 + - name: Run govulncheck + run: govulncheck ./... +``` + +`ci-ok` now depends on `govulncheck` — a failing scan blocks the PR. + +Pinned scanner: `golang.org/x/vuln/cmd/govulncheck@v1.1.4` (not `@latest`). + +CI uses Go **1.26.4** for this job (patched stdlib). `setup-go` with `1.24` or `1.26` resolved to early patches whose stdlib still has reachable `net/http` CVEs. + +### Red / green demo + +**Red** — temporarily added `golang.org/x/text@v0.3.5` and `vuln_demo.go` calling `language.Parse` (GO-2021-0113). Local run (`security/reports/govulncheck-red.txt`): + +```text +Vulnerability #1: GO-2021-0113 + Out-of-bounds read in golang.org/x/text/language + Module: golang.org/x/text@v0.3.5 Fixed in: v0.3.7 + Example traces: vuln_demo.go calls language.Parse +Your code is affected by 1 vulnerability from 1 module. +(exit code 3) +``` + +**Green** — removed `vuln_demo.go` and ran `go mod tidy` (`security/reports/govulncheck-green.txt`): + +```text +No vulnerabilities found. +(exit code 0) +``` + +### Design questions (Bonus) + +**h) Reachability vs “module has a CVE” — triage workload?** + +`govulncheck` only fails when your call graph reaches the vulnerable symbol. A module can list 10 CVEs, but if you never call the affected functions, there is nothing to patch urgently. That cuts triage from “every CVE in go.sum” to “CVEs we can actually trigger,” which is far less noise — but you still need Trivy/image scans for non-Go components. + +**i) Why pin the scanner version?** + +`@latest` can change DB logic, output format, or detection rules between CI runs, causing flaky or unexplained red builds. Pinning `govulncheck@v1.1.4` makes CI reproducible and upgrades deliberate. + +**j) What does govulncheck *not* catch that Trivy would?** + +Go stdlib/binary CVEs in the **container image** (distroless OS layer, embedded Go version in compiled binaries), misconfigurations (Dockerfile/compose), secrets in repo, and vulnerabilities in **non-Go** dependencies. Trivy is broader; govulncheck is deeper on Go reachability. + +--- + +## Lab 9 completion checklist + +### Task 1 (6 pts) + +- [x] Four Trivy scans + SBOM captured +- [x] Every HIGH/CRITICAL triaged +- [x] Design questions a–d answered + +### Task 2 (4 pts) + +- [x] Security headers middleware + unit tests +- [x] ZAP baseline run + triage +- [x] Before/after re-scan evidence +- [x] Design questions e–g answered + +### Bonus (2 pts) + +- [x] govulncheck in CI + demo red/green + +### Submission + +- [x] Course PR: https://github.com/inno-devops-labs/DevOps-Intro/pull/1223 +- [x] Fork PR: https://github.com/selysecr332/DevOps-Intro/pull/10 +- [x] Moodle URL submitted diff --git a/submissions/screenshots/alerts.png b/submissions/screenshots/alerts.png new file mode 100644 index 000000000..cc1eaea4b Binary files /dev/null and b/submissions/screenshots/alerts.png differ diff --git a/submissions/screenshots/grafana.png b/submissions/screenshots/grafana.png new file mode 100644 index 000000000..e37e4fb46 Binary files /dev/null and b/submissions/screenshots/grafana.png differ diff --git a/submissions/screenshots/grafana_2.png b/submissions/screenshots/grafana_2.png new file mode 100644 index 000000000..0db1f2bcc Binary files /dev/null and b/submissions/screenshots/grafana_2.png differ