Compare commits
102
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a1a7ef105 | ||
|
|
a7c8f4969d | ||
|
|
989cea585c | ||
|
|
3a1c7d8aad | ||
|
|
7d9dbcaf00 | ||
|
|
d7cfc88bee | ||
|
|
f35b88789b | ||
|
|
8dbdc93878 | ||
|
|
ea61194daf | ||
|
|
2a0ebc16f8 | ||
|
|
57c659ec51 | ||
|
|
a764193f86 | ||
|
|
e0a141b96a | ||
|
|
b9884725fe | ||
|
|
d4394f6777 | ||
|
|
113b7bbbd7 | ||
|
|
d7fc986600 | ||
|
|
bf1187154b | ||
|
|
1bba345b8b | ||
|
|
9779075ccb | ||
|
|
b1fea33f5e | ||
|
|
c02643197d | ||
|
|
e88e91226d | ||
|
|
f59b0fbdf9 | ||
|
|
3a241d232f | ||
|
|
e1411d38af | ||
|
|
5a6d5618e0 | ||
|
|
d29eaebbd2 | ||
|
|
4b6638d6dc | ||
|
|
e689dbfda1 | ||
|
|
c5f2de7697 | ||
|
|
97895dabd1 | ||
|
|
680fa7ee6b | ||
|
|
860bb22aef | ||
|
|
80d51a43cd | ||
|
|
2286c355b7 | ||
|
|
f64921662f | ||
|
|
fc4166d924 | ||
|
|
c5a44587a3 | ||
|
|
9328dc321f | ||
|
|
7daf0646d5 | ||
|
|
630298d4fc | ||
|
|
e0694f0c04 | ||
|
|
5b32b46518 | ||
|
|
2c587f4c37 | ||
|
|
26bdb8e770 | ||
|
|
5e5d400089 | ||
|
|
014e57b1c8 | ||
|
|
4fc428260c | ||
|
|
e699f0e4f2 | ||
|
|
8c0c2f83f2 | ||
|
|
4bc1d7f547 | ||
|
|
2520088d10 | ||
|
|
14429f2069 | ||
|
|
96dd1f2851 | ||
|
|
e02e0ea259 | ||
|
|
59ae1a32a6 | ||
|
|
b61a6870f5 | ||
|
|
7df598ae28 | ||
|
|
7d689632eb | ||
|
|
04c6e8aa17 | ||
|
|
e866c56fc9 | ||
|
|
e08b62a48e | ||
|
|
22a5e5f8e5 | ||
|
|
38e3339418 | ||
|
|
41fe21f548 | ||
|
|
a24c0951ea | ||
|
|
a5b35fee44 | ||
|
|
a81534d83e | ||
|
|
5cf7bb7f4d | ||
|
|
95c8daa520 | ||
|
|
7d0c457421 | ||
|
|
274c8a3aaf | ||
|
|
508193ba62 | ||
|
|
80fff1a14e | ||
|
|
d989f5e207 | ||
|
|
7a941ea587 | ||
|
|
e5dd5b3319 | ||
|
|
bec3941231 | ||
|
|
2e2c14d8d6 | ||
|
|
d89acbdcbf | ||
|
|
dbe0d1debd | ||
|
|
95a7963e4f | ||
|
|
73cf0de8ba | ||
|
|
e0179efdf2 | ||
|
|
a9c5aff230 | ||
|
|
73b5ee980a | ||
|
|
d1632e1623 | ||
|
|
ada14b2b30 | ||
|
|
2d3c1de39a | ||
|
|
9d3737c640 | ||
|
|
78ddb4e6d5 | ||
|
|
04b100b466 | ||
|
|
a896b9538a | ||
|
|
9373e3b256 | ||
|
|
4b46e9d3ba | ||
|
|
a897393789 | ||
|
|
b5cd0276f1 | ||
|
|
33686cd27e | ||
|
|
a7d472e0d5 | ||
|
|
d6a30f3b2b | ||
|
|
7c41fe195b |
+7
-7
@@ -1,11 +1,11 @@
|
||||
# CI-14 — CODEOWNERS bor i .gitea/, aldrig i .github/ (SEC-25).
|
||||
# Granskning krävs särskilt för kontrakt, deploy och migrationer.
|
||||
|
||||
* @sax3l
|
||||
/contracts/ @sax3l
|
||||
/deploy/ @sax3l
|
||||
/.gitea/ @sax3l
|
||||
/siax.repo.json @sax3l
|
||||
/siax.config.json @sax3l
|
||||
* @admin
|
||||
/contracts/ @admin
|
||||
/deploy/ @admin
|
||||
/.gitea/ @admin
|
||||
/siax.repo.json @admin
|
||||
/siax.config.json @admin
|
||||
# TODO: lägg till migrationskatalogen när den finns, t.ex.
|
||||
# /packages/db/migrations/ @sax3l
|
||||
# /packages/db/migrations/ @admin
|
||||
|
||||
@@ -23,6 +23,7 @@ on:
|
||||
# in-flight deploy (it may already be restarting the container); the newest
|
||||
# commit still wins because Coolify builds from the branch head.
|
||||
# N6 (server-config ci/jobbstorm-2026-11-10 §4): deploy/release köas i en fast grupp och avbryts aldrig.
|
||||
# ci-concurrency-exempt: deploy till Coolify på push till main; avbrott mitt i lämnar appen halvt utrullad (N6 §4).
|
||||
concurrency:
|
||||
group: ${{ gitea.workflow }}
|
||||
cancel-in-progress: false
|
||||
@@ -94,7 +95,7 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
|
||||
+19
-11
@@ -33,8 +33,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||
with:
|
||||
node-version: "22"
|
||||
cache: "pnpm"
|
||||
@@ -134,8 +134,8 @@ jobs:
|
||||
--health-timeout 5s
|
||||
--health-retries 60
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||
with:
|
||||
node-version: "22"
|
||||
cache: "pnpm"
|
||||
@@ -271,10 +271,18 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Trivy
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- name: Install Trivy (pinned + checksum verified)
|
||||
run: |
|
||||
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
|
||||
set -euo pipefail
|
||||
TRIVY_VERSION=0.76.2
|
||||
BASE="https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}"
|
||||
curl -fsSLO "${BASE}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz"
|
||||
curl -fsSLO "${BASE}/trivy_${TRIVY_VERSION}_checksums.txt"
|
||||
grep " trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz$" "trivy_${TRIVY_VERSION}_checksums.txt" | sha256sum -c -
|
||||
tar -xzf "trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" -C /usr/local/bin trivy
|
||||
rm -f "trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" "trivy_${TRIVY_VERSION}_checksums.txt"
|
||||
trivy --version
|
||||
# `siax/sbom/` är CycloneDX-evidenens för REDAN BYGGDA images (release-kedjan),
|
||||
# inte källberoenden. Att scanna dem här återrapporterar gamla image-versioner
|
||||
# (next 16.3.x, sharp 0.35.4) och blockerar källfixar som redan är patchade.
|
||||
@@ -292,7 +300,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: SonarQube analysis (self-hosted sonar.siax.dev)
|
||||
@@ -316,12 +324,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||
with:
|
||||
node-version: '22'
|
||||
- name: Checkout canonical siax-standard (SSOT)
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
with:
|
||||
repository: admin/siax-standard
|
||||
token: ${{ secrets.SIAX_CI_TOKEN }}
|
||||
|
||||
@@ -7,18 +7,26 @@ on:
|
||||
# N6 (server-config ci/jobbstorm-2026-11-10 §4): schemalagd/manuell körning köas i en fast grupp, avbryts inte.
|
||||
concurrency:
|
||||
group: ${{ gitea.workflow }}
|
||||
cancel-in-progress: false
|
||||
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
health:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- name: Required files
|
||||
run: |
|
||||
for f in README.md LICENSE .gitignore; do [ -f "$f" ] || echo "::warning file=$f,title=Missing::$f is missing"; done
|
||||
[ -f .gitea/workflows/ci.yml ] || echo "::warning title=No CI::No CI workflow found"
|
||||
- name: Install Trivy
|
||||
run: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
|
||||
- name: Install Trivy (pinned + checksum verified)
|
||||
run: |
|
||||
set -euo pipefail
|
||||
TRIVY_VERSION=0.76.2
|
||||
BASE="https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}"
|
||||
curl -fsSLO "${BASE}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz"
|
||||
curl -fsSLO "${BASE}/trivy_${TRIVY_VERSION}_checksums.txt"
|
||||
grep " trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz$" "trivy_${TRIVY_VERSION}_checksums.txt" | sha256sum -c -
|
||||
tar -xzf "trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" -C /usr/local/bin trivy
|
||||
rm -f "trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" "trivy_${TRIVY_VERSION}_checksums.txt"
|
||||
trivy --version
|
||||
- name: Secret scan
|
||||
run: trivy fs --scanners secret --exit-code 0 .
|
||||
@@ -21,6 +21,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- name: Masterplan lock check
|
||||
run: sh scripts/check-masterplan-lock.sh
|
||||
@@ -11,15 +11,14 @@ on:
|
||||
# N6 (server-config ci/jobbstorm-2026-11-10 §4): schemalagd/manuell körning köas i en fast grupp, avbryts inte.
|
||||
concurrency:
|
||||
group: ${{ gitea.workflow }}
|
||||
cancel-in-progress: false
|
||||
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
quality:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||
with:
|
||||
node-version: "22"
|
||||
cache: "pnpm"
|
||||
@@ -44,10 +43,18 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Trivy
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- name: Install Trivy (pinned + checksum verified)
|
||||
run: |
|
||||
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
|
||||
set -euo pipefail
|
||||
TRIVY_VERSION=0.76.2
|
||||
BASE="https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}"
|
||||
curl -fsSLO "${BASE}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz"
|
||||
curl -fsSLO "${BASE}/trivy_${TRIVY_VERSION}_checksums.txt"
|
||||
grep " trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz$" "trivy_${TRIVY_VERSION}_checksums.txt" | sha256sum -c -
|
||||
tar -xzf "trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" -C /usr/local/bin trivy
|
||||
rm -f "trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" "trivy_${TRIVY_VERSION}_checksums.txt"
|
||||
trivy --version
|
||||
# A nightly scan exists to catch CVEs published against code that did
|
||||
# not change. With `--exit-code 0` it could never report failure, so it
|
||||
# could never raise that alarm -- the one job whose entire purpose is
|
||||
|
||||
@@ -12,8 +12,7 @@ on:
|
||||
# N6 (server-config ci/jobbstorm-2026-11-10 §4): schemalagd/manuell körning köas i en fast grupp, avbryts inte.
|
||||
concurrency:
|
||||
group: ${{ gitea.workflow }}
|
||||
cancel-in-progress: false
|
||||
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
smoke:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -54,10 +53,13 @@ jobs:
|
||||
echo "::warning::SIAX_CI_TOKEN is not set — cannot compare with main; commit $running is live"
|
||||
exit 0
|
||||
fi
|
||||
expected="$(curl -fsS --max-time 15 \
|
||||
# Ladda ner först och parsea sedan: curl | tolk leder till Semgrep
|
||||
# gha-curl-pipe-shell och gör det omöjligt att verifiera svaret.
|
||||
curl -fsS --max-time 15 \
|
||||
-H "Authorization: token ${SIAX_CI_TOKEN}" \
|
||||
"https://git.siax.io/api/v1/repos/admin/0pt/commits?limit=1" \
|
||||
| python3 -c 'import sys,json; print(json.load(sys.stdin)[0]["sha"])')"
|
||||
-o "${RUNNER_TEMP}/0pt-main.json" \
|
||||
"https://git.siax.io/api/v1/repos/admin/0pt/commits?limit=1"
|
||||
expected="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))[0]["sha"])' "${RUNNER_TEMP}/0pt-main.json")"
|
||||
echo "running=$running expected(main)=$expected"
|
||||
[ -n "$expected" ] || { echo "::error::could not read main SHA from Gitea"; exit 1; }
|
||||
[ "$running" = "$expected" ] || {
|
||||
|
||||
@@ -41,6 +41,7 @@ on:
|
||||
|
||||
|
||||
# N6 (server-config ci/jobbstorm-2026-11-10 §4): deploy/release köas i en fast grupp och avbryts aldrig.
|
||||
# ci-concurrency-exempt: releasekedja build→push→SBOM→attestation→signering→evidens; avbrott mellan push och evidens lämnar registry och AUD0 i halvt läge (N6 §4).
|
||||
concurrency:
|
||||
group: ${{ gitea.workflow }}
|
||||
cancel-in-progress: false
|
||||
|
||||
@@ -28,9 +28,8 @@ on:
|
||||
- cron: "17 2 * * *"
|
||||
workflow_dispatch: {}
|
||||
permissions: { contents: read }
|
||||
# N6 (server-config ci/jobbstorm-2026-11-10 §4): en ny commit på samma PR/gren avbryter den inaktuella körningen.
|
||||
concurrency:
|
||||
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
||||
group: security-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
@@ -72,7 +71,7 @@ jobs:
|
||||
tail -n 120 /tmp/scan.log
|
||||
if [ $rc -eq 0 ]; then echo "gitleaks secret scan ren"; exit 0; fi
|
||||
if [ $rc -eq 1 ]; then echo "::error::gitleaks secret scan hittade fynd"; exit 1; fi
|
||||
echo "::warning::gitleaks secret scan kunde inte köras (rc=$rc) - verktygsfel, inte fynd"; exit 0
|
||||
echo "::error::gitleaks secret scan kunde inte koras (rc=$rc) - scannerfel, inte fynd; grinden far inte bli tyst gron"; exit 1
|
||||
|
||||
# gitleaks over just de commits som PR:en eller pushen inför. Blockerar på
|
||||
# hemligheter som introduceras i intervallet, även om de raderas senare i
|
||||
@@ -128,7 +127,7 @@ jobs:
|
||||
if [ $rc -eq 0 ]; then echo "gitleaks commit range ren"; exit 0; fi
|
||||
if [ $rc -eq 1 ]; then echo "::error::gitleaks commit range hittade fynd i införda commits"; exit 1; fi
|
||||
if [ $rc -eq 124 ]; then echo "::error::gitleaks commit range nådde tidsgränsen - intervallet är EJ skannat"; exit 1; fi
|
||||
echo "::warning::gitleaks commit range kunde inte köras (rc=$rc) - verktygsfel, inte fynd"; exit 0
|
||||
echo "::error::gitleaks commit range kunde inte koras (rc=$rc) - scannerfel, inte fynd; grinden far inte bli tyst gron"; exit 1
|
||||
|
||||
# Hela historiken scannas informativt, bara nattligt eller manuellt och
|
||||
# med tidsbudget. Gamla hemligheter i tidigare commits kräver
|
||||
@@ -154,17 +153,19 @@ jobs:
|
||||
- name: Trivy filesystem scan
|
||||
run: |
|
||||
set +e
|
||||
docker run --rm -v "$SCAN_VOLUME:/repo" -w /repo \
|
||||
docker run --rm --cpus 2 --memory 4g -v "$SCAN_VOLUME:/repo" -w /repo \
|
||||
aquasec/trivy:0.76.2 fs --scanners vuln,secret --severity HIGH,CRITICAL --exit-code 1 --no-progress /repo > /tmp/scan.log 2>&1
|
||||
rc=$?
|
||||
set -e
|
||||
tail -n 120 /tmp/scan.log
|
||||
if [ $rc -eq 0 ]; then echo "Trivy filesystem scan ren"; exit 0; fi
|
||||
if [ $rc -eq 1 ]; then echo "::error::Trivy filesystem scan hittade fynd"; exit 1; fi
|
||||
echo "::warning::Trivy filesystem scan kunde inte köras (rc=$rc) - verktygsfel, inte fynd"; exit 0
|
||||
echo "::error::Trivy filesystem scan kunde inte koras (rc=$rc) - scannerfel, inte fynd; grinden far inte bli tyst gron"; exit 1
|
||||
|
||||
# Dockerfile- och IaC-misconfig är informativt: DS-0002 (root-USER)
|
||||
# kräver ändrade runtime-användare och hanteras per repo, inte i grinden.
|
||||
# Dockerfile- och IaC-misconfig är informativt. DS-0002 (root-USER),
|
||||
# KSV-0014/KSV-0118 (readOnlyRootFilesystem + icke-root) är åtgärdade i
|
||||
# services/*/Dockerfile och deploy/k8s/deployment.yaml; steget finns kvar
|
||||
# som tidig varning för nya misconfigs, inte som en tyst grön grind.
|
||||
- name: Trivy config informational
|
||||
continue-on-error: true
|
||||
run: |
|
||||
@@ -176,37 +177,50 @@ jobs:
|
||||
# osv-scanner.toml sjalv, sa den skickas explicit nar den finns.
|
||||
- name: OSV Scanner
|
||||
run: |
|
||||
if ! find /repo -maxdepth 3 \( -name 'pnpm-lock.yaml' -o -name 'package-lock.json' \
|
||||
-o -name 'yarn.lock' -o -name 'poetry.lock' -o -name 'Pipfile.lock' \
|
||||
-o -name 'requirements.txt' -o -name 'go.sum' -o -name 'Cargo.lock' \
|
||||
-o -name 'composer.lock' -o -name 'Gemfile.lock' \) -print -quit | grep -q .; then
|
||||
echo "Inga lasfiler i repot - OSV-Scanner har inget att scanna."
|
||||
exit 0
|
||||
# Lasfilsvakten MASTE koras i scanvolymen: /repo finns inte i jobbcontainern.
|
||||
set +e
|
||||
lock=$(docker run --rm -v "$SCAN_VOLUME:/repo:ro" alpine:3.20 \
|
||||
find /repo -path /repo/.git -prune -o -type f \( \
|
||||
-name 'pnpm-lock.yaml' -o -name 'package-lock.json' -o -name 'yarn.lock' \
|
||||
-o -name 'bun.lock' -o -name 'poetry.lock' -o -name 'Pipfile.lock' \
|
||||
-o -name 'uv.lock' -o -name 'pdm.lock' -o -name '*requirements*.txt' \
|
||||
-o -name 'go.mod' -o -name 'Cargo.lock' -o -name 'composer.lock' \
|
||||
-o -name 'Gemfile.lock' \) -print -quit)
|
||||
frc=$?
|
||||
set -e
|
||||
if [ $frc -ne 0 ]; then
|
||||
echo "::error::lasfilsvakten kunde inte koras i scanvolymen (rc=$frc) - scannerfel, grinden far inte bli tyst gron"; exit 1
|
||||
elif [ -z "$lock" ]; then
|
||||
echo "Inga lasfiler i repot - OSV-Scanner har inget att scanna."; exit 0
|
||||
else
|
||||
echo "Lasfil i scanvolymen ${lock#/repo/} - OSV-Scanner kors"
|
||||
fi
|
||||
cfg=""
|
||||
if [ -f "/repo/osv-scanner.toml" ]; then cfg="--config=/repo/osv-scanner.toml"; fi
|
||||
if docker run --rm -v "$SCAN_VOLUME:/repo:ro" alpine:3.20 test -f /repo/osv-scanner.toml; then
|
||||
cfg="--config=/repo/osv-scanner.toml"; echo "Anvander /repo/osv-scanner.toml for hela repot"
|
||||
fi
|
||||
set +e
|
||||
docker run --rm -v "$SCAN_VOLUME:/repo" -w /repo \
|
||||
docker run --rm --cpus 2 --memory 4g -v "$SCAN_VOLUME:/repo" -w /repo \
|
||||
ghcr.io/google/osv-scanner:v2.7.1 scan source --recursive $cfg /repo > /tmp/scan.log 2>&1
|
||||
rc=$?
|
||||
set -e
|
||||
tail -n 120 /tmp/scan.log
|
||||
if [ $rc -eq 0 ]; then echo "OSV ren"; exit 0; fi
|
||||
if [ $rc -eq 1 ]; then echo "::error::OSV Scanner hittade fynd"; exit 1; fi
|
||||
echo "::warning::OSV Scanner kunde inte koras (rc=$rc) - verktygsfel, inte fynd"; exit 0
|
||||
echo "::error::OSV Scanner kunde inte koras (rc=$rc) - scannerfel, inte fynd; grinden far inte bli tyst gron"; exit 1
|
||||
|
||||
# Statisk kodanalys, felallvarlighet bryter bygget. Semgrep kraver koden pa /src
|
||||
- name: Semgrep code scan
|
||||
run: |
|
||||
set +e
|
||||
docker run --rm -v "$SCAN_VOLUME:/src" -w /src \
|
||||
docker run --rm --cpus 2 --memory 4g -v "$SCAN_VOLUME:/src" -w /src \
|
||||
semgrep/semgrep:1.183.0 semgrep scan --config=p/ci --error --quiet > /tmp/scan.log 2>&1
|
||||
rc=$?
|
||||
set -e
|
||||
tail -n 120 /tmp/scan.log
|
||||
if [ $rc -eq 0 ]; then echo "Semgrep code scan ren"; exit 0; fi
|
||||
if [ $rc -eq 1 ]; then echo "::error::Semgrep code scan hittade fynd"; exit 1; fi
|
||||
echo "::warning::Semgrep code scan kunde inte köras (rc=$rc) - verktygsfel, inte fynd"; exit 0
|
||||
echo "::error::Semgrep code scan kunde inte koras (rc=$rc) - scannerfel, inte fynd; grinden far inte bli tyst gron"; exit 1
|
||||
- name: Remove scan volume
|
||||
if: always()
|
||||
run: |
|
||||
|
||||
@@ -17,6 +17,7 @@ on:
|
||||
- cron: "*/15 * * * *"
|
||||
|
||||
# N6 (server-config ci/jobbstorm-2026-11-10 §4): schemalagd/manuell körning köas i en fast grupp, avbryts inte.
|
||||
# ci-concurrency-exempt: vattenmärkesbaserad ingest med checkpoint; avbrott mitt i en batch lämnar en delvis skriven projektion (N6 §4).
|
||||
concurrency:
|
||||
group: ${{ gitea.workflow }}
|
||||
cancel-in-progress: false
|
||||
@@ -35,8 +36,8 @@ jobs:
|
||||
# requires" section are actually done.
|
||||
VEHIQ_INGEST_MODE: preview
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||
with:
|
||||
node-version: "22"
|
||||
- name: Enable corepack + pin pnpm@9
|
||||
|
||||
@@ -16,3 +16,19 @@ d9c8f7190b312b03acb331522f4d55c0a2fe0e4a:tests/integration/analyst-sql-clickhous
|
||||
# kanariefågel som testet använder för att bevisa att hemligheter inte läcker i
|
||||
# analyst-SQL-svaret. Falsk positiv.
|
||||
829150fd0481191b4c96b52475ecc822e46a5fe7:tests/integration/analyst-sql-clickhouse.integration.test.ts:generic-api-key:71
|
||||
|
||||
# .gitleaksignore — exakta fingeravtryck för granskade falska positiva.
|
||||
#
|
||||
# Genererad 2026-11-11 från gitleaks v8.30.1 (samma version som security-grinden
|
||||
# pinnar) körd som directory-scan mot repots arbetsträd. Varje rad nedan är
|
||||
# granskad: träffen är en testfixtur, ett exempelvärde i dokumentation, en
|
||||
# hash/UUID eller ett miljövariabelnamn — inte en hemlighet. Ingen bred ignore:
|
||||
# endast dessa exakta fil:regel:rad-fingeravtryck undertrycks; nya fynd fäller
|
||||
# fortfarande grinden. Fingeravtrycken förutsätter att katalogen monteras på
|
||||
# /repo (så gör den kanoniska security-workflowen).
|
||||
|
||||
# Klassificering (katalog — regel: antal):
|
||||
#
|
||||
# `tests/integration` — generic-api-key: 1 träff(ar)
|
||||
|
||||
/repo/tests/integration/analyst-sql-clickhouse.integration.test.ts:generic-api-key:71
|
||||
|
||||
@@ -5,4 +5,8 @@ confirmModulesPurge=false
|
||||
# SIAX Cloud publishes @siax/* packages from Gitea's own npm registry.
|
||||
# Only scoped @siax/* names resolve here; everything else stays on the
|
||||
# public npm registry.
|
||||
@siax:registry=https://git.siax.io/api/packages/sax3l/npm/
|
||||
@siax:registry=https://git.siax.io/api/packages/admin/npm/
|
||||
|
||||
# Supply-chain: wait 7 days before resolving newly published versions
|
||||
# (Semgrep npm-missing-minimum-release-age; same setting as aud0/cl0ud).
|
||||
min-release-age=7
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import type { Metadata } from "next";
|
||||
|
||||
// The order flow (/bestall, /bestall/beskriv, /bestall/forskott) is a transactional
|
||||
// step, not a public landing page: keep it out of the index but let crawlers follow
|
||||
// through to the public service/catalog pages. Applies to all nested order steps.
|
||||
export const metadata: Metadata = {
|
||||
title: "Beställ data — 0pt",
|
||||
description:
|
||||
"Configure a data job, describe your need and pay 50% to start. Provenance per field and live production tracking.",
|
||||
alternates: { canonical: "https://0pt.app/bestall" },
|
||||
robots: { index: false, follow: true },
|
||||
};
|
||||
|
||||
export default function BestallLayout({ children }: { children: React.ReactNode }) {
|
||||
return children;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Källor & ursprung — 0pt",
|
||||
description:
|
||||
"Every dataset's source, licence, cadence and confidence. Legal sourcing and provenance per field — the transparency behind 0pt.",
|
||||
alternates: { canonical: "https://0pt.app/kallor" },
|
||||
};
|
||||
|
||||
export default function KallorLayout({ children }: { children: React.ReactNode }) {
|
||||
return children;
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
import type { Metadata } from "next";
|
||||
import { findDataset } from "@/app/katalog/datasets";
|
||||
|
||||
const BASE = "https://0pt.app";
|
||||
|
||||
// A dataset detail is a real, indexable search target: it has its own title,
|
||||
// description and content, and is linked from /katalog. Without its own
|
||||
// metadata it inherits the parent /katalog canonical and search engines fold
|
||||
// every dataset into the catalog page. Route-level generateMetadata is the
|
||||
// existing Next mechanism for per-dataset metadata; the detail page itself
|
||||
// stays a client component.
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ id: string }>;
|
||||
}): Promise<Metadata> {
|
||||
const { id } = await params;
|
||||
const dataset = findDataset(id);
|
||||
|
||||
if (!dataset) {
|
||||
// An unknown id renders the client-side "dataset does not exist" state.
|
||||
// Make the policy explicit: not indexable, canonical back to the catalog.
|
||||
return {
|
||||
title: "Dataset not found — 0pt",
|
||||
alternates: { canonical: `${BASE}/katalog` },
|
||||
robots: { index: false, follow: true },
|
||||
};
|
||||
}
|
||||
|
||||
const canonical = `${BASE}/katalog/${dataset.id}`;
|
||||
const description = `${dataset.blurb.sv} Dataset: ${dataset.count.sv} inom ${dataset.markets}. Provenans per fält och transparent prissättning.`;
|
||||
|
||||
return {
|
||||
title: `${dataset.title.sv} — 0pt`,
|
||||
description,
|
||||
alternates: { canonical },
|
||||
openGraph: {
|
||||
title: `${dataset.title.sv} — 0pt`,
|
||||
description,
|
||||
url: canonical,
|
||||
locale: "sv_SE",
|
||||
type: "website",
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export default async function DatasetDetailLayout({
|
||||
children,
|
||||
params,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
params: Promise<{ id: string }>;
|
||||
}) {
|
||||
const { id } = await params;
|
||||
const dataset = findDataset(id);
|
||||
|
||||
return (
|
||||
<>
|
||||
{dataset ? (
|
||||
<div
|
||||
aria-hidden="true"
|
||||
style={{
|
||||
position: "absolute",
|
||||
width: 1,
|
||||
height: 1,
|
||||
overflow: "hidden",
|
||||
clip: "rect(0 0 0 0)",
|
||||
whiteSpace: "nowrap",
|
||||
}}
|
||||
>
|
||||
<h1>{dataset.title.sv}</h1>
|
||||
<p>
|
||||
{dataset.blurb.sv} Dataset: {dataset.count.sv} inom {dataset.markets}. Provenans per
|
||||
fält och transparent prissättning.
|
||||
</p>
|
||||
</div>
|
||||
) : null}
|
||||
{children}
|
||||
</>
|
||||
);
|
||||
}
|
||||
+1
-119
@@ -11,119 +11,7 @@ import { LoadingSkeleton, EmptyState, ErrorState } from "@/components/states";
|
||||
import { useReveal } from "@/hooks/use-reveal";
|
||||
import { FIELDS, SAMPLE_ROWS, MARKETS, formatSEK, type ProvLevel } from "@/lib/data";
|
||||
import type { Loc } from "@/lib/data";
|
||||
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
// Inline catalog. No detail API yet — keyed by slugified id with a safe fallback.
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
interface Dataset {
|
||||
id: string;
|
||||
markets: string;
|
||||
marketCodes: string[];
|
||||
title: Loc;
|
||||
blurb: Loc;
|
||||
count: Loc;
|
||||
rows: number;
|
||||
freshness: Loc;
|
||||
level: ProvLevel;
|
||||
source: string;
|
||||
cat: Loc;
|
||||
price: number;
|
||||
artifact: "table" | "map" | "schema" | "chart";
|
||||
}
|
||||
|
||||
const CATALOG: Dataset[] = [
|
||||
{
|
||||
id: "nordic-companies",
|
||||
markets: "SE · NO · DK · FI",
|
||||
marketCodes: ["SE", "NO", "DK", "FI"],
|
||||
title: { en: "Nordic company data", sv: "Nordisk bolagsdata" },
|
||||
blurb: { en: "Official registers. Per field.", sv: "Officiella register. Per fält." },
|
||||
count: { en: "4.9M records", sv: "4,9M poster" },
|
||||
rows: 4900000,
|
||||
freshness: { en: "daily", sv: "daglig" },
|
||||
level: 3,
|
||||
source: "GLEIF · Brreg",
|
||||
cat: { en: "Companies", sv: "Bolag" },
|
||||
price: 18400,
|
||||
artifact: "table",
|
||||
},
|
||||
{
|
||||
id: "tech-decisionmakers",
|
||||
markets: "SE · NO · DK · FI",
|
||||
marketCodes: ["SE", "NO", "DK", "FI"],
|
||||
title: { en: "Decision-makers in tech", sv: "Beslutsfattare i tech" },
|
||||
blurb: { en: "Role and path. Source per field.", sv: "Roll och väg. Källa per fält." },
|
||||
count: { en: "182k records", sv: "182k poster" },
|
||||
rows: 182000,
|
||||
freshness: { en: "weekly", sv: "veckovis" },
|
||||
level: 1,
|
||||
source: "public web",
|
||||
cat: { en: "Decision-makers", sv: "Beslutsfattare" },
|
||||
price: 9600,
|
||||
artifact: "schema",
|
||||
},
|
||||
{
|
||||
id: "vehicles-fleet",
|
||||
markets: "SE",
|
||||
marketCodes: ["SE"],
|
||||
title: { en: "Vehicles & fleet", sv: "Fordon & flotta" },
|
||||
blurb: { en: "Technical data. VehIQ synergy.", sv: "Tekniska data. VehIQ-synergin." },
|
||||
count: { en: "6.1M records", sv: "6,1M poster" },
|
||||
rows: 6100000,
|
||||
freshness: { en: "daily", sv: "daglig" },
|
||||
level: 2,
|
||||
source: "register",
|
||||
cat: { en: "Vehicles", sv: "Fordon" },
|
||||
price: 12200,
|
||||
artifact: "map",
|
||||
},
|
||||
{
|
||||
id: "financial-series",
|
||||
markets: "SE · NO · DK · FI",
|
||||
marketCodes: ["SE", "NO", "DK", "FI"],
|
||||
title: { en: "Financial series", sv: "Finansiella serier" },
|
||||
blurb: { en: "Revenue, result, KPIs.", sv: "Omsättning, resultat, nyckeltal." },
|
||||
count: { en: "12 years", sv: "12 år" },
|
||||
rows: 240000,
|
||||
freshness: { en: "annual", sv: "årlig" },
|
||||
level: 2,
|
||||
source: "register",
|
||||
cat: { en: "Financials", sv: "Finansiellt" },
|
||||
price: 14800,
|
||||
artifact: "chart",
|
||||
},
|
||||
{
|
||||
id: "buying-signals",
|
||||
markets: "SE · NO · DK · FI",
|
||||
marketCodes: ["SE", "NO", "DK", "FI"],
|
||||
title: { en: "Buying signals", sv: "Köpsignaler" },
|
||||
blurb: { en: "Ads, news, tech changes. Intent per company.", sv: "Annonser, nyheter, teknikbyten. Intent per bolag." },
|
||||
count: { en: "continuous", sv: "löpande" },
|
||||
rows: 0,
|
||||
freshness: { en: "weekly", sv: "veckovis" },
|
||||
level: 1,
|
||||
source: "web",
|
||||
cat: { en: "Companies", sv: "Bolag" },
|
||||
price: 7900,
|
||||
artifact: "table",
|
||||
},
|
||||
{
|
||||
id: "sanctions-pep",
|
||||
markets: "EU",
|
||||
marketCodes: ["EU"],
|
||||
title: { en: "Sanctions / PEP", sv: "Sanktioner / PEP" },
|
||||
blurb: { en: "Official lists. Automated screening.", sv: "Officiella listor. Automatisk screening." },
|
||||
count: { en: "global", sv: "global" },
|
||||
rows: 0,
|
||||
freshness: { en: "daily", sv: "daglig" },
|
||||
level: 3,
|
||||
source: "OpenSanctions",
|
||||
cat: { en: "Compliance", sv: "Efterlevnad" },
|
||||
price: 5900,
|
||||
artifact: "table",
|
||||
},
|
||||
];
|
||||
import { findDataset, type Dataset } from "@/app/katalog/datasets";
|
||||
|
||||
// Stable tab keys — never change, display labels are localized separately
|
||||
type TabKey = "overview" | "samples" | "quality" | "schema" | "coverage" | "price";
|
||||
@@ -136,12 +24,6 @@ const TABS: { key: TabKey; label: Loc }[] = [
|
||||
{ key: "price", label: { en: "Price", sv: "Pris" } },
|
||||
];
|
||||
|
||||
function findDataset(raw: string | undefined): Dataset | undefined {
|
||||
if (!raw) return undefined;
|
||||
const slug = decodeURIComponent(raw).toLowerCase();
|
||||
return CATALOG.find((d) => d.id === slug);
|
||||
}
|
||||
|
||||
const TAB_KEYS = TABS.map((t) => t.key);
|
||||
function isTabKey(value: string | null): value is TabKey {
|
||||
return value !== null && (TAB_KEYS as string[]).includes(value);
|
||||
|
||||
@@ -0,0 +1,124 @@
|
||||
import type { Loc, ProvLevel } from "@/lib/data";
|
||||
|
||||
// Single source of truth for the ready-made datasets shown under /katalog.
|
||||
// Kept framework-neutral (no "use client") so both the client detail page and
|
||||
// the route's server-side generateMetadata resolve the same ids and titles.
|
||||
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
// Static dataset seed (no detail API yet) — keyed by slugified id with a safe fallback.
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
export interface Dataset {
|
||||
id: string;
|
||||
markets: string;
|
||||
marketCodes: string[];
|
||||
title: Loc;
|
||||
blurb: Loc;
|
||||
count: Loc;
|
||||
rows: number;
|
||||
freshness: Loc;
|
||||
level: ProvLevel;
|
||||
source: string;
|
||||
cat: Loc;
|
||||
price: number;
|
||||
artifact: "table" | "map" | "schema" | "chart";
|
||||
}
|
||||
|
||||
export const CATALOG: Dataset[] = [
|
||||
{
|
||||
id: "nordic-companies",
|
||||
markets: "SE · NO · DK · FI",
|
||||
marketCodes: ["SE", "NO", "DK", "FI"],
|
||||
title: { en: "Nordic company data", sv: "Nordisk bolagsdata" },
|
||||
blurb: { en: "Official registers. Per field.", sv: "Officiella register. Per fält." },
|
||||
count: { en: "4.9M records", sv: "4,9M poster" },
|
||||
rows: 4900000,
|
||||
freshness: { en: "daily", sv: "daglig" },
|
||||
level: 3,
|
||||
source: "GLEIF · Brreg",
|
||||
cat: { en: "Companies", sv: "Bolag" },
|
||||
price: 18400,
|
||||
artifact: "table",
|
||||
},
|
||||
{
|
||||
id: "tech-decisionmakers",
|
||||
markets: "SE · NO · DK · FI",
|
||||
marketCodes: ["SE", "NO", "DK", "FI"],
|
||||
title: { en: "Decision-makers in tech", sv: "Beslutsfattare i tech" },
|
||||
blurb: { en: "Role and path. Source per field.", sv: "Roll och väg. Källa per fält." },
|
||||
count: { en: "182k records", sv: "182k poster" },
|
||||
rows: 182000,
|
||||
freshness: { en: "weekly", sv: "veckovis" },
|
||||
level: 1,
|
||||
source: "public web",
|
||||
cat: { en: "Decision-makers", sv: "Beslutsfattare" },
|
||||
price: 9600,
|
||||
artifact: "schema",
|
||||
},
|
||||
{
|
||||
id: "vehicles-fleet",
|
||||
markets: "SE",
|
||||
marketCodes: ["SE"],
|
||||
title: { en: "Vehicles & fleet", sv: "Fordon & flotta" },
|
||||
blurb: { en: "Technical data. VehIQ synergy.", sv: "Tekniska data. VehIQ-synergin." },
|
||||
count: { en: "6.1M records", sv: "6,1M poster" },
|
||||
rows: 6100000,
|
||||
freshness: { en: "daily", sv: "daglig" },
|
||||
level: 2,
|
||||
source: "register",
|
||||
cat: { en: "Vehicles", sv: "Fordon" },
|
||||
price: 12200,
|
||||
artifact: "map",
|
||||
},
|
||||
{
|
||||
id: "financial-series",
|
||||
markets: "SE · NO · DK · FI",
|
||||
marketCodes: ["SE", "NO", "DK", "FI"],
|
||||
title: { en: "Financial series", sv: "Finansiella serier" },
|
||||
blurb: { en: "Revenue, result, KPIs.", sv: "Omsättning, resultat, nyckeltal." },
|
||||
count: { en: "12 years", sv: "12 år" },
|
||||
rows: 240000,
|
||||
freshness: { en: "annual", sv: "årlig" },
|
||||
level: 2,
|
||||
source: "register",
|
||||
cat: { en: "Financials", sv: "Finansiellt" },
|
||||
price: 14800,
|
||||
artifact: "chart",
|
||||
},
|
||||
{
|
||||
id: "buying-signals",
|
||||
markets: "SE · NO · DK · FI",
|
||||
marketCodes: ["SE", "NO", "DK", "FI"],
|
||||
title: { en: "Buying signals", sv: "Köpsignaler" },
|
||||
blurb: { en: "Ads, news, tech changes. Intent per company.", sv: "Annonser, nyheter, teknikbyten. Intent per bolag." },
|
||||
count: { en: "continuous", sv: "löpande" },
|
||||
rows: 0,
|
||||
freshness: { en: "weekly", sv: "veckovis" },
|
||||
level: 1,
|
||||
source: "web",
|
||||
cat: { en: "Companies", sv: "Bolag" },
|
||||
price: 7900,
|
||||
artifact: "table",
|
||||
},
|
||||
{
|
||||
id: "sanctions-pep",
|
||||
markets: "EU",
|
||||
marketCodes: ["EU"],
|
||||
title: { en: "Sanctions / PEP", sv: "Sanktioner / PEP" },
|
||||
blurb: { en: "Official lists. Automated screening.", sv: "Officiella listor. Automatisk screening." },
|
||||
count: { en: "global", sv: "global" },
|
||||
rows: 0,
|
||||
freshness: { en: "daily", sv: "daglig" },
|
||||
level: 3,
|
||||
source: "OpenSanctions",
|
||||
cat: { en: "Compliance", sv: "Efterlevnad" },
|
||||
price: 5900,
|
||||
artifact: "table",
|
||||
},
|
||||
];
|
||||
|
||||
export function findDataset(raw: string | undefined): Dataset | undefined {
|
||||
if (!raw) return undefined;
|
||||
const slug = decodeURIComponent(raw).toLowerCase();
|
||||
return CATALOG.find((d) => d.id === slug);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Datakatalog — 0pt",
|
||||
description:
|
||||
"Browse ready-made datasets for companies, decision-makers, vehicles and financials across the Nordics. Provenance per field and transparent pricing.",
|
||||
alternates: { canonical: "https://0pt.app/katalog" },
|
||||
};
|
||||
|
||||
export default function KatalogLayout({ children }: { children: React.ReactNode }) {
|
||||
return children;
|
||||
}
|
||||
+28
-1
@@ -9,9 +9,10 @@ import "./globals.css";
|
||||
export const metadata: Metadata = {
|
||||
title: "0pt — your data",
|
||||
description:
|
||||
"Data services on demand for the Nordics & Europe. Provenance per field, GDPR-native. Compose your data job, pay 50% to start, watch production live, and validate the result with full transparency.",
|
||||
"Data services on demand for the Nordics & Europe. Provenance per field, GDPR-native. Compose your data job, pay 50% to start, watch production live.",
|
||||
generator: "0pt.app",
|
||||
metadataBase: new URL("https://0pt.app"),
|
||||
alternates: { canonical: "https://0pt.app" },
|
||||
openGraph: {
|
||||
title: "0pt — your data",
|
||||
description: "Nordic & European data services. Provenance per field. GDPR-native. 50/50 escrow.",
|
||||
@@ -39,9 +40,35 @@ export const metadata: Metadata = {
|
||||
},
|
||||
};
|
||||
|
||||
const structuredData = {
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "Organization",
|
||||
"@id": "https://siax.io/#organization",
|
||||
name: "SIAX Technology AB",
|
||||
url: "https://siax.io",
|
||||
},
|
||||
{
|
||||
"@type": "WebSite",
|
||||
"@id": "https://0pt.app/#website",
|
||||
url: "https://0pt.app",
|
||||
name: "0pt — your data",
|
||||
inLanguage: "en",
|
||||
publisher: { "@id": "https://siax.io/#organization" },
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<head>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
|
||||
/>
|
||||
</head>
|
||||
<body className="font-sans antialiased">
|
||||
<a
|
||||
href="#main-content"
|
||||
|
||||
+4
-1
@@ -1,7 +1,10 @@
|
||||
import type { MetadataRoute } from "next";
|
||||
|
||||
const BASE = "https://0pt.app";
|
||||
const ROUTES = ["", "/tjanster", "/katalog", "/kallor", "/bestall", "/bestall/beskriv", "/bestall/forskott"];
|
||||
// /bestall, /bestall/beskriv and /bestall/forskott are deliberately noindex
|
||||
// (app/bestall/layout.tsx) — the order flow is transactional, not a landing
|
||||
// page. Keep the sitemap in sync with that indexation policy.
|
||||
const ROUTES = ["", "/tjanster", "/katalog", "/kallor"];
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
return ROUTES.map((r) => ({
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
import type { Metadata } from "next";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Tjänster — 0pt",
|
||||
description:
|
||||
"Data på beställning: anpassade datajobb, färdiga dataset i katalogen och prenumerationsflöden. Provenans per fält, GDPR-nativt och 50/50-escrow.",
|
||||
alternates: { canonical: "https://0pt.app/tjanster" },
|
||||
openGraph: {
|
||||
title: "Tjänster — 0pt",
|
||||
description:
|
||||
"Data på beställning: anpassade datajobb, färdiga dataset i katalogen och prenumerationsflöden. Provenans per fält, GDPR-nativt och 50/50-escrow.",
|
||||
url: "https://0pt.app/tjanster",
|
||||
locale: "sv_SE",
|
||||
type: "website",
|
||||
},
|
||||
};
|
||||
|
||||
export default function TjansterLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
style={{
|
||||
position: "absolute",
|
||||
width: 1,
|
||||
height: 1,
|
||||
overflow: "hidden",
|
||||
clip: "rect(0 0 0 0)",
|
||||
whiteSpace: "nowrap",
|
||||
}}
|
||||
>
|
||||
<h1>All data. På beställning.</h1>
|
||||
<p>
|
||||
Anpassade datajobb, färdiga dataset och prenumerationsflöden med provenans per fält,
|
||||
GDPR-nativ leverans och 50/50-escrow.
|
||||
</p>
|
||||
</div>
|
||||
{children}
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -15,9 +15,23 @@ spec:
|
||||
labels:
|
||||
app: 0pt-web
|
||||
spec:
|
||||
# Den här manifesten är referens-only (se README.md), men den ska vara
|
||||
# säker att använda. Imagebygget kör redan USER node (uid 1000).
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: 0pt-web
|
||||
image: REPLACE_ME/0pt-web:REPLACE_ME_TAG
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
env:
|
||||
@@ -50,6 +64,18 @@ spec:
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: "512Mi"
|
||||
# readOnlyRootFilesystem above needs explicit writable scratch space:
|
||||
# Node/Next writes temp files and caches here at runtime.
|
||||
volumeMounts:
|
||||
- name: tmp
|
||||
mountPath: /tmp
|
||||
- name: next-cache
|
||||
mountPath: /app/.next/cache
|
||||
volumes:
|
||||
- name: tmp
|
||||
emptyDir: {}
|
||||
- name: next-cache
|
||||
emptyDir: {}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
@@ -103,6 +103,7 @@ const securityHeaders = [
|
||||
// DENY, not SAMEORIGIN: nothing in this app frames itself.
|
||||
{ key: "X-Frame-Options", value: "DENY" },
|
||||
{ key: "X-Content-Type-Options", value: "nosniff" },
|
||||
{ key: "Cross-Origin-Resource-Policy", value: "cross-origin" },
|
||||
{ key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
|
||||
{ key: "Permissions-Policy", value: "camera=(), microphone=(), geolocation=(), payment=(), usb=()" },
|
||||
{ key: "Content-Security-Policy", value: csp },
|
||||
|
||||
+6
-4
@@ -70,7 +70,7 @@
|
||||
"input-otp": "1.4.1",
|
||||
"jose": "^5.9.6",
|
||||
"lucide-react": "^0.454.0",
|
||||
"next": "16.4.1",
|
||||
"next": "16.4.5",
|
||||
"next-themes": "^0.4.6",
|
||||
"postgres": "^3.4.9",
|
||||
"react": "19.2.8",
|
||||
@@ -83,7 +83,7 @@
|
||||
"tailwind-merge": "^3.3.1",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"vaul": "^1.1.2",
|
||||
"zod": "3.25.76"
|
||||
"zod": "4.6.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.15.0",
|
||||
@@ -100,12 +100,14 @@
|
||||
"tw-animate-css": "1.4.0",
|
||||
"typescript": "^5",
|
||||
"typescript-eslint": "^8.15.0",
|
||||
"vitest": "^3.2.7"
|
||||
"vitest": "^4.1.12"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"sharp@<0.35.5": "0.35.5",
|
||||
"source-map-js@<1.2.2": "1.2.2"
|
||||
"source-map-js@<1.2.2": "1.2.2",
|
||||
"tinypool": "2.1.2",
|
||||
"@typescript-eslint/typescript-estree>minimatch": "11.0.8"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+171
-233
@@ -7,6 +7,8 @@ settings:
|
||||
overrides:
|
||||
sharp@<0.35.5: 0.35.5
|
||||
source-map-js@<1.2.2: 1.2.2
|
||||
tinypool: 2.1.2
|
||||
'@typescript-eslint/typescript-estree>minimatch': 11.0.8
|
||||
|
||||
importers:
|
||||
|
||||
@@ -160,8 +162,8 @@ importers:
|
||||
specifier: ^0.454.0
|
||||
version: 0.454.0(react@19.2.8)
|
||||
next:
|
||||
specifier: 16.4.1
|
||||
version: 16.4.1(@types/node@22.20.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)
|
||||
specifier: 16.4.5
|
||||
version: 16.4.5(@types/node@22.20.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)
|
||||
next-themes:
|
||||
specifier: ^0.4.6
|
||||
version: 0.4.6(react-dom@19.2.8(react@19.2.8))(react@19.2.8)
|
||||
@@ -199,8 +201,8 @@ importers:
|
||||
specifier: ^1.1.2
|
||||
version: 1.1.2(@types/react-dom@19.2.7(@types/react@19.2.18))(@types/react@19.2.18)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)
|
||||
zod:
|
||||
specifier: 3.25.76
|
||||
version: 3.25.76
|
||||
specifier: 4.6.6
|
||||
version: 4.6.6
|
||||
devDependencies:
|
||||
'@eslint/js':
|
||||
specifier: ^9.15.0
|
||||
@@ -245,8 +247,8 @@ importers:
|
||||
specifier: ^8.15.0
|
||||
version: 8.65.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3)
|
||||
vitest:
|
||||
specifier: ^3.2.7
|
||||
version: 3.2.7(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15)
|
||||
specifier: ^4.1.12
|
||||
version: 4.1.12(@types/node@22.20.1)(vite@7.3.8(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15))
|
||||
|
||||
packages/decision: {}
|
||||
|
||||
@@ -741,6 +743,9 @@ packages:
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
'@isaacs/nonrecursive-glob-match@1.1.0':
|
||||
resolution: {integrity: sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==}
|
||||
|
||||
'@jridgewell/gen-mapping@0.3.13':
|
||||
resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
|
||||
|
||||
@@ -757,53 +762,53 @@ packages:
|
||||
'@jridgewell/trace-mapping@0.3.31':
|
||||
resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
|
||||
|
||||
'@next/env@16.4.1':
|
||||
resolution: {integrity: sha512-5sUUrrSvs/2/2LnLoesybMGx12EtPB46fdZ6RhAw0XDGSPxU2LFyQBB7yuEiOFFJPKmBY6+q2jTr1/AMbnp0/g==}
|
||||
'@next/env@16.4.5':
|
||||
resolution: {integrity: sha512-JwSPwpdkZL5VMl2jA/q+JI8MZdweAL3xmw5/tb9y/TLtmS0YXZnmYDzSihwk8xTj1OL+WM53gTqaj96yuLp6Xw==}
|
||||
|
||||
'@next/swc-darwin-arm64@16.4.1':
|
||||
resolution: {integrity: sha512-U+hQ5Gj3fpzf4fveTIF3dpUFYhaSW8vHhdAnbiIomzXzg7boreYFgBqprepXFtW4sw+aTttiNmg0gew/iFNhbg==}
|
||||
'@next/swc-darwin-arm64@16.4.5':
|
||||
resolution: {integrity: sha512-W5TniBzWKASbNNwHZ/S/f1MxQUXU/LdjklVMWA0Ujbfl7SZnUzFls45hO0i/sF7Bx1jJBWp7WWmoQajXtX/O8A==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@next/swc-darwin-x64@16.4.1':
|
||||
resolution: {integrity: sha512-/hqC3V1XLUjhMASf/WridKdO9FXoEgN3HBWmtKbj00MPgnltutfraWJ3bYTpCRIgEIpbjJyOVLpYgAhh/BkdcQ==}
|
||||
'@next/swc-darwin-x64@16.4.5':
|
||||
resolution: {integrity: sha512-uWq4qkHapBDS1oFltWS4YxTb9pLHAtLNcpbuK6SmRsebLYZqpBML/j/C0op+50JYGTpZgVL/DWNt/6oWlamrrw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@next/swc-linux-arm64-gnu@16.4.1':
|
||||
resolution: {integrity: sha512-GHzncHbcaS9g95kcvTNtKQW3aCLoR+xc3Jm7qrkpk1R+D2BjMHIPyvQGRPKCdMX95BsH/421jBUK06q9tEwzjw==}
|
||||
'@next/swc-linux-arm64-gnu@16.4.5':
|
||||
resolution: {integrity: sha512-FdRcyOx5u5P51mlAqLB9EXdd8jZO5fsdHtk4BAQSkqOywCsbTNN/rmw+jO7pnmjNdAtu2AG46NzbCL2FPDrrgw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-linux-arm64-musl@16.4.1':
|
||||
resolution: {integrity: sha512-1SuJyDxW/PR9dHJat/ZRgcYLhuSZ+1psP4DlKb2tKIuXbjygqpLrJWRSq+onZQBv8LcmU67EIrmb6c3XTaJLjw==}
|
||||
'@next/swc-linux-arm64-musl@16.4.5':
|
||||
resolution: {integrity: sha512-cyvmmgtRXR8aGVT86wi9Py53IlfyCx7P2fZxuAXAoTummDnhKtUyjrMeXfapqp4qgD+gT5RqyGD/VfA16jEK7Q==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-linux-x64-gnu@16.4.1':
|
||||
resolution: {integrity: sha512-Istng1hMGp9TGO4lUqeKLd70MPN/OOkucVTP2Nmj+gLkwBgmPqUw8CJYBCC7nbl/B/23bBCcjCI5Hsh6hazC1A==}
|
||||
'@next/swc-linux-x64-gnu@16.4.5':
|
||||
resolution: {integrity: sha512-hPc+Fl+N22DAvqZHq559NmamXboOX5Lu8I5Wl0DezfrhTk1Zz21NQeYoZDmNI/NjTcrdsVxM72Fzn2lI+Q+vAw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-linux-x64-musl@16.4.1':
|
||||
resolution: {integrity: sha512-aSC9wMNiZRRFVpPkPWBzRwLQxIGm/CiQcXyFF1XNcgodb+uMxdk7aSSGGpDXCbnvZdf4itjHxpOd5h7i7zaiYw==}
|
||||
'@next/swc-linux-x64-musl@16.4.5':
|
||||
resolution: {integrity: sha512-gbACYE8IP/jlprNTpiWXHb8N9CofOzpnEwH2SrIz1dUbiJf1FbDssDupCAPeP1Taxe8mgG20sGZamJI7KFOdZw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@next/swc-win32-arm64-msvc@16.4.1':
|
||||
resolution: {integrity: sha512-t/myvwFDlypMUjRvbBf8qLPyuaB0iXYYdBtwMt6DM6f+60wtGr4bSYholdPqNeV5VUXZhrpMwfza829kmhS3iA==}
|
||||
'@next/swc-win32-arm64-msvc@16.4.5':
|
||||
resolution: {integrity: sha512-+8gj++ZMo8H20Xh2ijjNqyFk5LPLw0AC4Fs4Tq/G94rjjQXhOjN4jgSWsWKPFsyY26hfIeemJIwKtMxOsp5GBA==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@next/swc-win32-x64-msvc@16.4.1':
|
||||
resolution: {integrity: sha512-6ICqPo9awCkrtYNPhwkx1uU7rlFWrZRrIboDHS2LU+jv088UBYQtmJ25h6pCp27/+FZjF6BQ4Te4ErugyMeuBg==}
|
||||
'@next/swc-win32-x64-msvc@16.4.5':
|
||||
resolution: {integrity: sha512-qNZj66pYXnaWLiF9R9GUbfBdrCv7kC6TaZfIwB2KH5WPc/8pEM3nVOj8hpQhWJU8S94rlH5MPDcX15+RrgUhiw==}
|
||||
engines: {node: '>= 10'}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
@@ -1553,10 +1558,10 @@ packages:
|
||||
resolution: {integrity: sha512-bqc2NGPyzLVcu4VUgz1XYsyghSM4c3ck5gBVFSzeRYMhe2cj0nf5Fm5n/sFaOuhMaKdDnX/TIR2FO6f21lgufg==, tarball: https://git.siax.io/api/packages/sax3l/npm/%40siax%2Fanalytical-context/-/0.5.1/analytical-context-0.5.1.tgz}
|
||||
|
||||
'@siax/auth-core@0.1.0':
|
||||
resolution: {integrity: sha512-oTfEO4S6pv3rQ6bSh44+fRWPiwGr9nYCf6uWSBF8g5PFUspW6nr4wKQZVAkLNwfC0Pu6o+CH8ltsuu+fY8gOQA==, tarball: https://git.siax.io/api/packages/sax3l/npm/%40siax%2Fauth-core/-/0.1.0/auth-core-0.1.0.tgz}
|
||||
resolution: {integrity: sha512-oTfEO4S6pv3rQ6bSh44+fRWPiwGr9nYCf6uWSBF8g5PFUspW6nr4wKQZVAkLNwfC0Pu6o+CH8ltsuu+fY8gOQA==, tarball: https://git.siax.io/api/packages/admin/npm/%40siax%2Fauth-core/-/0.1.0/auth-core-0.1.0.tgz}
|
||||
|
||||
'@siax/auth-zitadel@0.1.1':
|
||||
resolution: {integrity: sha512-SmoBswG5P7szZIaETqmo1NN5RhdXLq2RDR/1wObfxHM2yUEXNSZQJznZoAb8z3lm/PvBgQhmnHiOHCfidN1ZQg==, tarball: https://git.siax.io/api/packages/sax3l/npm/%40siax%2Fauth-zitadel/-/0.1.1/auth-zitadel-0.1.1.tgz}
|
||||
resolution: {integrity: sha512-SmoBswG5P7szZIaETqmo1NN5RhdXLq2RDR/1wObfxHM2yUEXNSZQJznZoAb8z3lm/PvBgQhmnHiOHCfidN1ZQg==, tarball: https://git.siax.io/api/packages/admin/npm/%40siax%2Fauth-zitadel/-/0.1.1/auth-zitadel-0.1.1.tgz}
|
||||
|
||||
'@siax/charts@0.11.0':
|
||||
resolution: {integrity: sha512-IQnby+h6jVMaRAM7DcfUMuMbSUjd8B3+AGk9N4pXk2GDudMRMjt0bTtu75637Jc1Mf4iNonvgp8ytKlS7KdW4A==, tarball: https://git.siax.io/api/packages/sax3l/npm/%40siax%2Fcharts/-/0.11.0/charts-0.11.0.tgz}
|
||||
@@ -1571,7 +1576,7 @@ packages:
|
||||
react-dom: ^19.2.0
|
||||
|
||||
'@siax/collaboration@0.3.0':
|
||||
resolution: {integrity: sha512-wq48Q2fE4poiMZrvnUJyakUchgmCEXRdXrkDDbXFSEmah5K1sjbFgxzduIoOg3CBpjcnFC0dYzWTfvKmTOGy0g==, tarball: https://git.siax.io/api/packages/sax3l/npm/%40siax%2Fcollaboration/-/0.3.0/collaboration-0.3.0.tgz}
|
||||
resolution: {integrity: sha512-wq48Q2fE4poiMZrvnUJyakUchgmCEXRdXrkDDbXFSEmah5K1sjbFgxzduIoOg3CBpjcnFC0dYzWTfvKmTOGy0g==, tarball: https://git.siax.io/api/packages/admin/npm/%40siax%2Fcollaboration/-/0.3.0/collaboration-0.3.0.tgz}
|
||||
|
||||
'@siax/config@0.2.1':
|
||||
resolution: {integrity: sha512-6YRGYSczhdSBSZYtzqnH5I+5BHllvxmPICtVDUbUzQ8Bd44IQ7yDQHWynrsVCFEvv+WsqNHHxOo9XREJNi+jRw==, tarball: https://git.siax.io/api/packages/sax3l/npm/%40siax%2Fconfig/-/0.2.1/config-0.2.1.tgz}
|
||||
@@ -1599,6 +1604,9 @@ packages:
|
||||
react: ^19.2.0
|
||||
react-dom: ^19.2.0
|
||||
|
||||
'@standard-schema/spec@1.1.0':
|
||||
resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
|
||||
|
||||
'@swc/helpers@0.5.23':
|
||||
resolution: {integrity: sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==}
|
||||
|
||||
@@ -1807,34 +1815,34 @@ packages:
|
||||
resolution: {integrity: sha512-8C71BQkGjiMmXtop7pHVJu1l2NNShFdkCyD6a2ezzs5vU/L3LRtb69EtcteFwz0mYMPzIgOw0n6OV4VBUWZd7A==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
|
||||
'@vitest/expect@3.2.7':
|
||||
resolution: {integrity: sha512-E8eBXaKibuvH2pSZErOjdVb5vF4PbKYcrnluBTYxEk1l/VhhwZg1kZQsdtjq+CsF5CFydf2Rdkz7jDHKSisi3w==}
|
||||
'@vitest/expect@4.1.12':
|
||||
resolution: {integrity: sha512-vFlTt+YEu9WBpNjdGayNmlMVzrWPi1+sv853/7t2FU7hpO5gAFBKHzQmkCq5Xjpr+evegF2994LQT3hF3mRlqQ==}
|
||||
|
||||
'@vitest/mocker@3.2.7':
|
||||
resolution: {integrity: sha512-Trr0hYO9CM3Wj6ksWHRhK9IZpIY6wTMO5u/MqXurMxT57sWBaOPEtP3Oq60ihZuh5JsiagKfz95OcxdEP6dBrA==}
|
||||
'@vitest/mocker@4.1.12':
|
||||
resolution: {integrity: sha512-fKShNpKZzupWZuY0z7egydvL0sqW4INEZBEExMBMAa6izlENEVHwoXgdaTCaBZ5fwlr4xf2o1wXC83n9RpO+NA==}
|
||||
peerDependencies:
|
||||
msw: ^2.4.9
|
||||
vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0
|
||||
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
|
||||
peerDependenciesMeta:
|
||||
msw:
|
||||
optional: true
|
||||
vite:
|
||||
optional: true
|
||||
|
||||
'@vitest/pretty-format@3.2.7':
|
||||
resolution: {integrity: sha512-KUHlwqVu0sRlhCdyPdQ/wBoTfRahjUky1MubOmYw9fWfIZy1gNoHpuaaQBPAaMaVYdQYHJLurzj8ECCj5OwTqA==}
|
||||
'@vitest/pretty-format@4.1.12':
|
||||
resolution: {integrity: sha512-XW9O8+Mxx4VpCtkYdMJLZQQwsVryP9wk7cPKDxtXFfwSak6yRh5+2fep/Y0XF/ElBvJHq8bcYdi6aeuai0opZA==}
|
||||
|
||||
'@vitest/runner@3.2.7':
|
||||
resolution: {integrity: sha512-sB9y4ovltoQP+WaUPwmSxO9WIg9Ig694Di5PalVPsYHklAdE027mehpWF2SQSVq+k6sFgaivbTjTJwZLSHbedA==}
|
||||
'@vitest/runner@4.1.12':
|
||||
resolution: {integrity: sha512-NKlVKCr5QnCe8jijdMnmkpHHU+WTqiLFR6G0pHji9uRjXK9xJl1k1nTw6F3pOOj2PDcsDt2GKQMI7wIsaT491w==}
|
||||
|
||||
'@vitest/snapshot@3.2.7':
|
||||
resolution: {integrity: sha512-7C+MwShwtBSI5Buwoyg3s/iY1eHL9PKAf+O1wVh/TdnjXUtkoL/9YQtre90i4MtNXM6edP1wJ2zOBpfCyhIS7g==}
|
||||
'@vitest/snapshot@4.1.12':
|
||||
resolution: {integrity: sha512-ko1y1Qgb/slzQ9mr+b89Cuqud8WG1TKtsPD8r7ZUBdvVOGt85Af2HwCqHujrhwJq95hs/9RM7fcAPg57o1vlzw==}
|
||||
|
||||
'@vitest/spy@3.2.7':
|
||||
resolution: {integrity: sha512-Q2eQGI6d2L/hBtZ0qNuKcAGid68XK6cv1xsoaIma6PaJhHPoqcEJhYpXZ/5myCMqkNgtP6UKuBhbc0nHKnrkuQ==}
|
||||
'@vitest/spy@4.1.12':
|
||||
resolution: {integrity: sha512-RGq9x4JNGNTZHEJxvN0oSiJjeSCExm0n2gZKKJZHY9cX5AVA6M7VJILBT3ZJ/tJ/0J9uWT7fETV9/btoi//vSg==}
|
||||
|
||||
'@vitest/utils@3.2.7':
|
||||
resolution: {integrity: sha512-x6BDOd7dyo3PFLY3I9/HJ25X/6OurhGXk2/B9gOZNPF7XDVjeBK4k01lQE5uvDpbuheErh91qYuE1E2OEjK3Rw==}
|
||||
'@vitest/utils@4.1.12':
|
||||
resolution: {integrity: sha512-Q3awXrwOfEV+qc3WmO5ONyE0yO7Q1gQ9/oyHxGLZ/pl7N3NO/ZztqQwKLuwMkV+CA1JYSIeO3gkHnRDIo4AVaA==}
|
||||
|
||||
acorn-jsx-walk@2.0.0:
|
||||
resolution: {integrity: sha512-uuo6iJj4D4ygkdzd6jPtcxs8vZgDX9YFIkqczGImoypX2fQ4dVImmu3UzA4ynixCIMTrEOWW+95M2HuBaCEOVA==}
|
||||
@@ -1915,10 +1923,6 @@ packages:
|
||||
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
|
||||
hasBin: true
|
||||
|
||||
cac@6.7.14:
|
||||
resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
|
||||
engines: {node: '>=8'}
|
||||
|
||||
callsites@3.1.0:
|
||||
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
|
||||
engines: {node: '>=6'}
|
||||
@@ -1926,8 +1930,8 @@ packages:
|
||||
caniuse-lite@1.0.30001810:
|
||||
resolution: {integrity: sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==}
|
||||
|
||||
chai@5.3.3:
|
||||
resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==}
|
||||
chai@6.3.0:
|
||||
resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
chalk@4.1.2:
|
||||
@@ -1943,10 +1947,6 @@ packages:
|
||||
character-reference-invalid@2.0.1:
|
||||
resolution: {integrity: sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==}
|
||||
|
||||
check-error@2.1.3:
|
||||
resolution: {integrity: sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==}
|
||||
engines: {node: '>= 16'}
|
||||
|
||||
class-variance-authority@0.7.1:
|
||||
resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}
|
||||
|
||||
@@ -1986,6 +1986,9 @@ packages:
|
||||
convert-source-map@1.9.0:
|
||||
resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==}
|
||||
|
||||
convert-source-map@2.0.0:
|
||||
resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
|
||||
|
||||
copy-to-clipboard@3.3.3:
|
||||
resolution: {integrity: sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==}
|
||||
|
||||
@@ -2018,10 +2021,6 @@ packages:
|
||||
decode-named-character-reference@1.3.0:
|
||||
resolution: {integrity: sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==}
|
||||
|
||||
deep-eql@5.0.2:
|
||||
resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
deep-is@0.1.4:
|
||||
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
|
||||
|
||||
@@ -2084,8 +2083,8 @@ packages:
|
||||
resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
es-module-lexer@1.7.0:
|
||||
resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}
|
||||
es-module-lexer@2.3.2:
|
||||
resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==}
|
||||
|
||||
esbuild@0.28.1:
|
||||
resolution: {integrity: sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==}
|
||||
@@ -2321,9 +2320,6 @@ packages:
|
||||
js-tokens@4.0.0:
|
||||
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
||||
|
||||
js-tokens@9.0.1:
|
||||
resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==}
|
||||
|
||||
js-yaml@4.3.2:
|
||||
resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==}
|
||||
hasBin: true
|
||||
@@ -2441,9 +2437,6 @@ packages:
|
||||
lodash.merge@4.6.2:
|
||||
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
|
||||
|
||||
loupe@3.2.1:
|
||||
resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==}
|
||||
|
||||
lucide-react@0.400.0:
|
||||
resolution: {integrity: sha512-rpp7pFHh3Xd93KHixNgB0SqThMHpYNzsGUu69UaQbSZ75Q/J3m5t6EhKyMT3m4w2WOxmJ2mY0tD3vebnXqQryQ==}
|
||||
peerDependencies:
|
||||
@@ -2460,9 +2453,9 @@ packages:
|
||||
memoize-one@6.0.0:
|
||||
resolution: {integrity: sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==}
|
||||
|
||||
minimatch@10.2.5:
|
||||
resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==}
|
||||
engines: {node: 18 || 20 || >=22}
|
||||
minimatch@11.0.8:
|
||||
resolution: {integrity: sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==}
|
||||
engines: {node: 20 || >=22}
|
||||
|
||||
minimatch@3.1.5:
|
||||
resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==}
|
||||
@@ -2487,8 +2480,8 @@ packages:
|
||||
react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
|
||||
react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
|
||||
|
||||
next@16.4.1:
|
||||
resolution: {integrity: sha512-uc657V62E34fOI6W5NtG9IzwsPcms0Z60grz2MJGtglgD+pTFnNt4Yw2PzaU622tfX4vhrDgLZzicE2YlhI20Q==}
|
||||
next@16.4.5:
|
||||
resolution: {integrity: sha512-rmdfsWosjTUO+6R0S3KokoIk6Kj0sWDRTe86tZHdqaWH/oXq/udX3/4xb+YQi7aWbyEFoglDU54kaifLCdXbBw==}
|
||||
engines: {node: '>=20.9.0'}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
@@ -2512,6 +2505,10 @@ packages:
|
||||
resolution: {integrity: sha512-mIrE/Cw9y+9Au6dS5vDKDhQza9YvG6w+ZrS6X+ZzA7yFW/soAeaups4Qzn1bL6g5FVy8WtP79+0j82oPIbqRjQ==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
obug@2.2.1:
|
||||
resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==}
|
||||
engines: {node: '>=12.20.0'}
|
||||
|
||||
optionator@0.9.4:
|
||||
resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
|
||||
engines: {node: '>= 0.8.0'}
|
||||
@@ -2553,10 +2550,6 @@ packages:
|
||||
pathe@2.0.3:
|
||||
resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}
|
||||
|
||||
pathval@2.0.1:
|
||||
resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==}
|
||||
engines: {node: '>= 14.16'}
|
||||
|
||||
picocolors@1.1.1:
|
||||
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
|
||||
|
||||
@@ -2766,8 +2759,8 @@ packages:
|
||||
stackback@0.0.2:
|
||||
resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}
|
||||
|
||||
std-env@3.10.0:
|
||||
resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==}
|
||||
std-env@4.3.0:
|
||||
resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==}
|
||||
|
||||
strip-bom@3.0.0:
|
||||
resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}
|
||||
@@ -2777,9 +2770,6 @@ packages:
|
||||
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
|
||||
engines: {node: '>=8'}
|
||||
|
||||
strip-literal@3.1.0:
|
||||
resolution: {integrity: sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==}
|
||||
|
||||
stripe@22.2.3:
|
||||
resolution: {integrity: sha512-9lrggvLtjO4Ef5WXH4t50ckHJcJgTD72xFB+KJgZCSszAH9zMV1BqU6PwmWbRLdcdX7LK6PbErBapiGK7pIb+g==}
|
||||
engines: {node: '>=18'}
|
||||
@@ -2834,23 +2824,16 @@ packages:
|
||||
tinybench@2.9.0:
|
||||
resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
|
||||
|
||||
tinyexec@0.3.2:
|
||||
resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}
|
||||
tinyexec@1.3.1:
|
||||
resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
tinyglobby@0.2.17:
|
||||
resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}
|
||||
engines: {node: '>=12.0.0'}
|
||||
|
||||
tinypool@1.1.1:
|
||||
resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==}
|
||||
engines: {node: ^18.0.0 || >=20.0.0}
|
||||
|
||||
tinyrainbow@2.0.0:
|
||||
resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==}
|
||||
engines: {node: '>=14.0.0'}
|
||||
|
||||
tinyspy@4.0.4:
|
||||
resolution: {integrity: sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==}
|
||||
tinyrainbow@3.2.0:
|
||||
resolution: {integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==}
|
||||
engines: {node: '>=14.0.0'}
|
||||
|
||||
toggle-selection@1.0.6:
|
||||
@@ -2938,13 +2921,8 @@ packages:
|
||||
react: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc
|
||||
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc
|
||||
|
||||
vite-node@3.2.4:
|
||||
resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==}
|
||||
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
||||
hasBin: true
|
||||
|
||||
vite@7.3.6:
|
||||
resolution: {integrity: sha512-4XP60spRGjSZFf1qYH+dJIkK2znL3zQfl9KkOV9MkkRR/3Dls0dxaBsQPTloEc5BLXWPL9vsOxopxyKoMmDueg==}
|
||||
vite@7.3.8:
|
||||
resolution: {integrity: sha512-3tTi78MAKhVk9h+YZVXMQ8POmneJuE97QUPAWtJghHzhH7BAyiqQOC2KZh1DWOsu/USB2cRXhznPByaabvYXfw==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
@@ -2983,26 +2961,39 @@ packages:
|
||||
yaml:
|
||||
optional: true
|
||||
|
||||
vitest@3.2.7:
|
||||
resolution: {integrity: sha512-KrxIJ62Fd89gfysR4WotlgZABiz2dqFPgqGzX7s+CwsqLFomRH7777ZcrOD6+WVAh7khPQP41A+BKbpcJFrdEg==}
|
||||
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
||||
vitest@4.1.12:
|
||||
resolution: {integrity: sha512-5eWdz2yb3ajxWF3C8C4TjkXl7FGm3n2E/VlazALrQHzK7nYMSGFnCZto0bbPNl77AwkOZVLk0YnBAejUu0NiWA==}
|
||||
engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
'@edge-runtime/vm': '*'
|
||||
'@types/debug': ^4.1.12
|
||||
'@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0
|
||||
'@vitest/browser': 3.2.7
|
||||
'@vitest/ui': 3.2.7
|
||||
'@opentelemetry/api': ^1.9.0
|
||||
'@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0
|
||||
'@vitest/browser-playwright': 4.1.12
|
||||
'@vitest/browser-preview': 4.1.12
|
||||
'@vitest/browser-webdriverio': ^4.1.11
|
||||
'@vitest/coverage-istanbul': 4.1.12
|
||||
'@vitest/coverage-v8': 4.1.12
|
||||
'@vitest/ui': 4.1.12
|
||||
happy-dom: '*'
|
||||
jsdom: '*'
|
||||
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
|
||||
peerDependenciesMeta:
|
||||
'@edge-runtime/vm':
|
||||
optional: true
|
||||
'@types/debug':
|
||||
'@opentelemetry/api':
|
||||
optional: true
|
||||
'@types/node':
|
||||
optional: true
|
||||
'@vitest/browser':
|
||||
'@vitest/browser-playwright':
|
||||
optional: true
|
||||
'@vitest/browser-preview':
|
||||
optional: true
|
||||
'@vitest/browser-webdriverio':
|
||||
optional: true
|
||||
'@vitest/coverage-istanbul':
|
||||
optional: true
|
||||
'@vitest/coverage-v8':
|
||||
optional: true
|
||||
'@vitest/ui':
|
||||
optional: true
|
||||
@@ -3038,8 +3029,8 @@ packages:
|
||||
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
|
||||
engines: {node: '>=10'}
|
||||
|
||||
zod@3.25.76:
|
||||
resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
|
||||
zod@4.6.6:
|
||||
resolution: {integrity: sha512-4UmzQUF5fxvfcYHlbjBmejU+w+hbDnWFx4aS8kBx7nPBHcO2SqPbpAG8snbdg+Xse4pRefR98hgjFgIMCI/UhA==}
|
||||
|
||||
zrender@6.1.0:
|
||||
resolution: {integrity: sha512-oEGMDB6pOP2S6OwRR4PdVv610zrjnA3Bh+JnSG12fYJlBKjtNAoEb5fSUoCOOINlH96I2fU38/A2UpRKs67xYQ==}
|
||||
@@ -3457,6 +3448,8 @@ snapshots:
|
||||
'@img/sharp-win32-x64@0.35.5':
|
||||
optional: true
|
||||
|
||||
'@isaacs/nonrecursive-glob-match@1.1.0': {}
|
||||
|
||||
'@jridgewell/gen-mapping@0.3.13':
|
||||
dependencies:
|
||||
'@jridgewell/sourcemap-codec': 1.5.5
|
||||
@@ -3476,30 +3469,30 @@ snapshots:
|
||||
'@jridgewell/resolve-uri': 3.1.2
|
||||
'@jridgewell/sourcemap-codec': 1.5.5
|
||||
|
||||
'@next/env@16.4.1': {}
|
||||
'@next/env@16.4.5': {}
|
||||
|
||||
'@next/swc-darwin-arm64@16.4.1':
|
||||
'@next/swc-darwin-arm64@16.4.5':
|
||||
optional: true
|
||||
|
||||
'@next/swc-darwin-x64@16.4.1':
|
||||
'@next/swc-darwin-x64@16.4.5':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-arm64-gnu@16.4.1':
|
||||
'@next/swc-linux-arm64-gnu@16.4.5':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-arm64-musl@16.4.1':
|
||||
'@next/swc-linux-arm64-musl@16.4.5':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-x64-gnu@16.4.1':
|
||||
'@next/swc-linux-x64-gnu@16.4.5':
|
||||
optional: true
|
||||
|
||||
'@next/swc-linux-x64-musl@16.4.1':
|
||||
'@next/swc-linux-x64-musl@16.4.5':
|
||||
optional: true
|
||||
|
||||
'@next/swc-win32-arm64-msvc@16.4.1':
|
||||
'@next/swc-win32-arm64-msvc@16.4.5':
|
||||
optional: true
|
||||
|
||||
'@next/swc-win32-x64-msvc@16.4.1':
|
||||
'@next/swc-win32-x64-msvc@16.4.5':
|
||||
optional: true
|
||||
|
||||
'@radix-ui/number@1.1.3': {}
|
||||
@@ -4342,6 +4335,8 @@ snapshots:
|
||||
- supports-color
|
||||
- tailwindcss
|
||||
|
||||
'@standard-schema/spec@1.1.0': {}
|
||||
|
||||
'@swc/helpers@0.5.23':
|
||||
dependencies:
|
||||
tslib: 2.8.1
|
||||
@@ -4533,7 +4528,7 @@ snapshots:
|
||||
'@typescript-eslint/types': 8.65.0
|
||||
'@typescript-eslint/visitor-keys': 8.65.0
|
||||
debug: 4.4.3
|
||||
minimatch: 10.2.5
|
||||
minimatch: 11.0.8
|
||||
semver: 7.8.5
|
||||
tinyglobby: 0.2.17
|
||||
ts-api-utils: 2.5.0(typescript@5.9.3)
|
||||
@@ -4557,47 +4552,46 @@ snapshots:
|
||||
'@typescript-eslint/types': 8.65.0
|
||||
eslint-visitor-keys: 5.0.1
|
||||
|
||||
'@vitest/expect@3.2.7':
|
||||
'@vitest/expect@4.1.12':
|
||||
dependencies:
|
||||
'@standard-schema/spec': 1.1.0
|
||||
'@types/chai': 5.2.3
|
||||
'@vitest/spy': 3.2.7
|
||||
'@vitest/utils': 3.2.7
|
||||
chai: 5.3.3
|
||||
tinyrainbow: 2.0.0
|
||||
'@vitest/spy': 4.1.12
|
||||
'@vitest/utils': 4.1.12
|
||||
chai: 6.3.0
|
||||
tinyrainbow: 3.2.0
|
||||
|
||||
'@vitest/mocker@3.2.7(vite@7.3.6(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15))':
|
||||
'@vitest/mocker@4.1.12(vite@7.3.8(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15))':
|
||||
dependencies:
|
||||
'@vitest/spy': 3.2.7
|
||||
'@vitest/spy': 4.1.12
|
||||
estree-walker: 3.0.3
|
||||
magic-string: 0.30.21
|
||||
optionalDependencies:
|
||||
vite: 7.3.6(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15)
|
||||
vite: 7.3.8(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15)
|
||||
|
||||
'@vitest/pretty-format@3.2.7':
|
||||
'@vitest/pretty-format@4.1.12':
|
||||
dependencies:
|
||||
tinyrainbow: 2.0.0
|
||||
tinyrainbow: 3.2.0
|
||||
|
||||
'@vitest/runner@3.2.7':
|
||||
'@vitest/runner@4.1.12':
|
||||
dependencies:
|
||||
'@vitest/utils': 3.2.7
|
||||
'@vitest/utils': 4.1.12
|
||||
pathe: 2.0.3
|
||||
strip-literal: 3.1.0
|
||||
|
||||
'@vitest/snapshot@3.2.7':
|
||||
'@vitest/snapshot@4.1.12':
|
||||
dependencies:
|
||||
'@vitest/pretty-format': 3.2.7
|
||||
'@vitest/pretty-format': 4.1.12
|
||||
'@vitest/utils': 4.1.12
|
||||
magic-string: 0.30.21
|
||||
pathe: 2.0.3
|
||||
|
||||
'@vitest/spy@3.2.7':
|
||||
dependencies:
|
||||
tinyspy: 4.0.4
|
||||
'@vitest/spy@4.1.12': {}
|
||||
|
||||
'@vitest/utils@3.2.7':
|
||||
'@vitest/utils@4.1.12':
|
||||
dependencies:
|
||||
'@vitest/pretty-format': 3.2.7
|
||||
loupe: 3.2.1
|
||||
tinyrainbow: 2.0.0
|
||||
'@vitest/pretty-format': 4.1.12
|
||||
convert-source-map: 2.0.0
|
||||
tinyrainbow: 3.2.0
|
||||
|
||||
acorn-jsx-walk@2.0.0: {}
|
||||
|
||||
@@ -4678,19 +4672,11 @@ snapshots:
|
||||
node-releases: 2.0.55
|
||||
update-browserslist-db: 1.3.3(browserslist@4.28.9)
|
||||
|
||||
cac@6.7.14: {}
|
||||
|
||||
callsites@3.1.0: {}
|
||||
|
||||
caniuse-lite@1.0.30001810: {}
|
||||
|
||||
chai@5.3.3:
|
||||
dependencies:
|
||||
assertion-error: 2.0.1
|
||||
check-error: 2.1.3
|
||||
deep-eql: 5.0.2
|
||||
loupe: 3.2.1
|
||||
pathval: 2.0.1
|
||||
chai@6.3.0: {}
|
||||
|
||||
chalk@4.1.2:
|
||||
dependencies:
|
||||
@@ -4703,8 +4689,6 @@ snapshots:
|
||||
|
||||
character-reference-invalid@2.0.1: {}
|
||||
|
||||
check-error@2.1.3: {}
|
||||
|
||||
class-variance-authority@0.7.1:
|
||||
dependencies:
|
||||
clsx: 2.1.1
|
||||
@@ -4741,6 +4725,8 @@ snapshots:
|
||||
|
||||
convert-source-map@1.9.0: {}
|
||||
|
||||
convert-source-map@2.0.0: {}
|
||||
|
||||
copy-to-clipboard@3.3.3:
|
||||
dependencies:
|
||||
toggle-selection: 1.0.6
|
||||
@@ -4773,8 +4759,6 @@ snapshots:
|
||||
dependencies:
|
||||
character-entities: 2.0.2
|
||||
|
||||
deep-eql@5.0.2: {}
|
||||
|
||||
deep-is@0.1.4: {}
|
||||
|
||||
dependency-cruiser@18.2.0:
|
||||
@@ -4846,7 +4830,7 @@ snapshots:
|
||||
|
||||
es-errors@1.3.0: {}
|
||||
|
||||
es-module-lexer@1.7.0: {}
|
||||
es-module-lexer@2.3.2: {}
|
||||
|
||||
esbuild@0.28.1:
|
||||
optionalDependencies:
|
||||
@@ -5091,8 +5075,6 @@ snapshots:
|
||||
|
||||
js-tokens@4.0.0: {}
|
||||
|
||||
js-tokens@9.0.1: {}
|
||||
|
||||
js-yaml@4.3.2:
|
||||
dependencies:
|
||||
argparse: 2.0.1
|
||||
@@ -5177,8 +5159,6 @@ snapshots:
|
||||
|
||||
lodash.merge@4.6.2: {}
|
||||
|
||||
loupe@3.2.1: {}
|
||||
|
||||
lucide-react@0.400.0(react@19.2.8):
|
||||
dependencies:
|
||||
react: 19.2.8
|
||||
@@ -5193,8 +5173,9 @@ snapshots:
|
||||
|
||||
memoize-one@6.0.0: {}
|
||||
|
||||
minimatch@10.2.5:
|
||||
minimatch@11.0.8:
|
||||
dependencies:
|
||||
'@isaacs/nonrecursive-glob-match': 1.1.0
|
||||
brace-expansion: 5.0.12
|
||||
|
||||
minimatch@3.1.5:
|
||||
@@ -5214,9 +5195,9 @@ snapshots:
|
||||
react: 19.2.8
|
||||
react-dom: 19.2.8(react@19.2.8)
|
||||
|
||||
next@16.4.1(@types/node@22.20.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8):
|
||||
next@16.4.5(@types/node@22.20.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8):
|
||||
dependencies:
|
||||
'@next/env': 16.4.1
|
||||
'@next/env': 16.4.5
|
||||
'@swc/helpers': 0.5.23
|
||||
baseline-browser-mapping: 2.11.23
|
||||
caniuse-lite: 1.0.30001810
|
||||
@@ -5225,14 +5206,14 @@ snapshots:
|
||||
react-dom: 19.2.8(react@19.2.8)
|
||||
styled-jsx: 5.1.6(react@19.2.8)
|
||||
optionalDependencies:
|
||||
'@next/swc-darwin-arm64': 16.4.1
|
||||
'@next/swc-darwin-x64': 16.4.1
|
||||
'@next/swc-linux-arm64-gnu': 16.4.1
|
||||
'@next/swc-linux-arm64-musl': 16.4.1
|
||||
'@next/swc-linux-x64-gnu': 16.4.1
|
||||
'@next/swc-linux-x64-musl': 16.4.1
|
||||
'@next/swc-win32-arm64-msvc': 16.4.1
|
||||
'@next/swc-win32-x64-msvc': 16.4.1
|
||||
'@next/swc-darwin-arm64': 16.4.5
|
||||
'@next/swc-darwin-x64': 16.4.5
|
||||
'@next/swc-linux-arm64-gnu': 16.4.5
|
||||
'@next/swc-linux-arm64-musl': 16.4.5
|
||||
'@next/swc-linux-x64-gnu': 16.4.5
|
||||
'@next/swc-linux-x64-musl': 16.4.5
|
||||
'@next/swc-win32-arm64-msvc': 16.4.5
|
||||
'@next/swc-win32-x64-msvc': 16.4.5
|
||||
sharp: 0.35.5(@types/node@22.20.1)
|
||||
transitivePeerDependencies:
|
||||
- '@babel/core'
|
||||
@@ -5241,6 +5222,8 @@ snapshots:
|
||||
|
||||
node-releases@2.0.55: {}
|
||||
|
||||
obug@2.2.1: {}
|
||||
|
||||
optionator@0.9.4:
|
||||
dependencies:
|
||||
deep-is: 0.1.4
|
||||
@@ -5289,8 +5272,6 @@ snapshots:
|
||||
|
||||
pathe@2.0.3: {}
|
||||
|
||||
pathval@2.0.1: {}
|
||||
|
||||
picocolors@1.1.1: {}
|
||||
|
||||
picomatch@4.0.5: {}
|
||||
@@ -5526,16 +5507,12 @@ snapshots:
|
||||
|
||||
stackback@0.0.2: {}
|
||||
|
||||
std-env@3.10.0: {}
|
||||
std-env@4.3.0: {}
|
||||
|
||||
strip-bom@3.0.0: {}
|
||||
|
||||
strip-json-comments@3.1.1: {}
|
||||
|
||||
strip-literal@3.1.0:
|
||||
dependencies:
|
||||
js-tokens: 9.0.1
|
||||
|
||||
stripe@22.2.3(@types/node@22.20.1):
|
||||
optionalDependencies:
|
||||
'@types/node': 22.20.1
|
||||
@@ -5567,18 +5544,14 @@ snapshots:
|
||||
|
||||
tinybench@2.9.0: {}
|
||||
|
||||
tinyexec@0.3.2: {}
|
||||
tinyexec@1.3.1: {}
|
||||
|
||||
tinyglobby@0.2.17:
|
||||
dependencies:
|
||||
fdir: 6.5.0(picomatch@4.0.5)
|
||||
picomatch: 4.0.5
|
||||
|
||||
tinypool@1.1.1: {}
|
||||
|
||||
tinyrainbow@2.0.0: {}
|
||||
|
||||
tinyspy@4.0.4: {}
|
||||
tinyrainbow@3.2.0: {}
|
||||
|
||||
toggle-selection@1.0.6: {}
|
||||
|
||||
@@ -5664,28 +5637,7 @@ snapshots:
|
||||
- '@types/react'
|
||||
- '@types/react-dom'
|
||||
|
||||
vite-node@3.2.4(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15):
|
||||
dependencies:
|
||||
cac: 6.7.14
|
||||
debug: 4.4.3
|
||||
es-module-lexer: 1.7.0
|
||||
pathe: 2.0.3
|
||||
vite: 7.3.6(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15)
|
||||
transitivePeerDependencies:
|
||||
- '@types/node'
|
||||
- jiti
|
||||
- less
|
||||
- lightningcss
|
||||
- sass
|
||||
- sass-embedded
|
||||
- stylus
|
||||
- sugarss
|
||||
- supports-color
|
||||
- terser
|
||||
- tsx
|
||||
- yaml
|
||||
|
||||
vite@7.3.6(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15):
|
||||
vite@7.3.8(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15):
|
||||
dependencies:
|
||||
esbuild: 0.28.1
|
||||
fdir: 6.5.0(picomatch@4.0.5)
|
||||
@@ -5700,46 +5652,32 @@ snapshots:
|
||||
lightningcss: 1.32.0
|
||||
tsx: 4.23.15
|
||||
|
||||
vitest@3.2.7(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15):
|
||||
vitest@4.1.12(@types/node@22.20.1)(vite@7.3.8(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15)):
|
||||
dependencies:
|
||||
'@types/chai': 5.2.3
|
||||
'@vitest/expect': 3.2.7
|
||||
'@vitest/mocker': 3.2.7(vite@7.3.6(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15))
|
||||
'@vitest/pretty-format': 3.2.7
|
||||
'@vitest/runner': 3.2.7
|
||||
'@vitest/snapshot': 3.2.7
|
||||
'@vitest/spy': 3.2.7
|
||||
'@vitest/utils': 3.2.7
|
||||
chai: 5.3.3
|
||||
debug: 4.4.3
|
||||
'@vitest/expect': 4.1.12
|
||||
'@vitest/mocker': 4.1.12(vite@7.3.8(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15))
|
||||
'@vitest/pretty-format': 4.1.12
|
||||
'@vitest/runner': 4.1.12
|
||||
'@vitest/snapshot': 4.1.12
|
||||
'@vitest/spy': 4.1.12
|
||||
'@vitest/utils': 4.1.12
|
||||
es-module-lexer: 2.3.2
|
||||
expect-type: 1.4.0
|
||||
magic-string: 0.30.21
|
||||
obug: 2.2.1
|
||||
pathe: 2.0.3
|
||||
picomatch: 4.0.5
|
||||
std-env: 3.10.0
|
||||
std-env: 4.3.0
|
||||
tinybench: 2.9.0
|
||||
tinyexec: 0.3.2
|
||||
tinyexec: 1.3.1
|
||||
tinyglobby: 0.2.17
|
||||
tinypool: 1.1.1
|
||||
tinyrainbow: 2.0.0
|
||||
vite: 7.3.6(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15)
|
||||
vite-node: 3.2.4(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15)
|
||||
tinyrainbow: 3.2.0
|
||||
vite: 7.3.8(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15)
|
||||
why-is-node-running: 2.3.0
|
||||
optionalDependencies:
|
||||
'@types/node': 22.20.1
|
||||
transitivePeerDependencies:
|
||||
- jiti
|
||||
- less
|
||||
- lightningcss
|
||||
- msw
|
||||
- sass
|
||||
- sass-embedded
|
||||
- stylus
|
||||
- sugarss
|
||||
- supports-color
|
||||
- terser
|
||||
- tsx
|
||||
- yaml
|
||||
|
||||
watskeburt@6.0.0: {}
|
||||
|
||||
@@ -5758,7 +5696,7 @@ snapshots:
|
||||
|
||||
yocto-queue@0.1.0: {}
|
||||
|
||||
zod@3.25.76: {}
|
||||
zod@4.6.6: {}
|
||||
|
||||
zrender@6.1.0:
|
||||
dependencies:
|
||||
|
||||
@@ -16,3 +16,11 @@ packages:
|
||||
onlyBuiltDependencies:
|
||||
- sharp
|
||||
- esbuild
|
||||
|
||||
# Supply-chain hardening (Semgrep p/ci blocking rules):
|
||||
# - no transitive dependency from an untrusted/exotic source
|
||||
# - wait 7 days (10080 min) for newly published versions
|
||||
# - never accept a downgrade of security settings via a dependency update
|
||||
blockExoticSubdeps: true
|
||||
minimumReleaseAge: 10080
|
||||
trustPolicy: no-downgrade
|
||||
|
||||
@@ -4,6 +4,10 @@ ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
COPY app.py ingest_aud0.py ./
|
||||
# Kör som icke-root (DS-0002). Inga skrivningar till /app krävs.
|
||||
RUN useradd --create-home --uid 10001 appuser
|
||||
USER appuser
|
||||
|
||||
EXPOSE 8096
|
||||
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
||||
CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8096/health', timeout=3)"
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
fastapi==0.115.6
|
||||
fastapi==0.133.1
|
||||
uvicorn[standard]==0.34.0
|
||||
httpx==0.28.1
|
||||
PyJWT[crypto]==2.14.0
|
||||
pytest==8.3.4
|
||||
PyJWT[crypto]==2.15.0
|
||||
pytest==9.0.3
|
||||
# Transitiva golv (OSV): resolvern i osv-scanner löser dessa till äldre, sårbara versioner
|
||||
# om de inte är explicit angivna.
|
||||
starlette>=1.3.1
|
||||
anyio>=4.14.2
|
||||
idna>=3.15
|
||||
certifi>=2026.10.18
|
||||
pygments>=2.20.0 # pytest drar in pygments (OSV)
|
||||
|
||||
@@ -15,6 +15,11 @@ RUN pip install -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
# Kör som icke-root (DS-0002). Beroendena ligger i globala /usr/local och är
|
||||
# läsliga för alla användare; appens egen kod skrivs inte vid körning.
|
||||
RUN useradd --create-home --uid 10001 appuser
|
||||
USER appuser
|
||||
|
||||
EXPOSE 8000
|
||||
# API: uvicorn orchestrator.main:app --host 0.0.0.0 --port 8000
|
||||
# Worker: python -m workers.run
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
# image (Dockerfile only installs requirements.txt) — see pytest.ini for how
|
||||
# the test suite is run locally / in CI.
|
||||
-r requirements.txt
|
||||
pytest==8.3.4
|
||||
pytest-asyncio==0.25.2
|
||||
pytest==9.0.3
|
||||
pytest-asyncio==1.4.0
|
||||
respx==0.22.0
|
||||
# Transitivt golv (OSV): pytest drar in pygments; osv-scanner löser annars till sårbar äldre version.
|
||||
pygments>=2.20.0
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
# 0pt data engine — compliant stack only (docs/07). No bypass/stealth/proxy libs.
|
||||
fastapi==0.115.6
|
||||
fastapi==0.133.1
|
||||
uvicorn[standard]==0.34.0
|
||||
pydantic==2.10.4
|
||||
httpx==0.28.1
|
||||
asyncpg==0.30.0
|
||||
python-dotenv==1.0.1
|
||||
python-dotenv==1.2.2
|
||||
pyyaml==6.0.2
|
||||
rapidfuzz==3.11.0
|
||||
tenacity==9.0.0
|
||||
# Transitiva golv (OSV): resolvern i osv-scanner löser dessa till äldre, sårbara versioner
|
||||
# om de inte är explicit angivna.
|
||||
starlette>=1.3.1
|
||||
anyio>=4.14.2
|
||||
idna>=3.15
|
||||
certifi>=2026.10.18
|
||||
|
||||
@@ -14,8 +14,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Copy scraper code
|
||||
COPY . .
|
||||
|
||||
# Create data directories
|
||||
RUN mkdir -p /data/output /data/checkpoints /data/sources
|
||||
# Create data directories (writable by the non-root runtime user, DS-0002)
|
||||
RUN mkdir -p /data/output /data/checkpoints /data/sources \
|
||||
&& useradd --create-home --uid 10001 appuser \
|
||||
&& chown -R appuser:appuser /data
|
||||
USER appuser
|
||||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV S3_ENDPOINT=https://s3.siax.io
|
||||
|
||||
@@ -8,3 +8,7 @@ beautifulsoup4>=4.12.0
|
||||
lxml>=5.3.0
|
||||
boto3>=1.35.0 # MinIO S3 sync
|
||||
duckdb>=1.1.0 # DuckDBWriter alternative (lazy-imported in clickhouse_pipeline.py)
|
||||
|
||||
# Transitiva golv (OSV): httpx drar in anyio/idna; osv-scanner löser annars till sårbara äldre versioner.
|
||||
anyio>=4.14.2
|
||||
idna>=3.15
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
# 0pt — cosign-signeringskedjan (2026-09-29)
|
||||
|
||||
Prod-imagen git.cloud.siax.io/sax3l/0pt:prod-dd226e01eb (sha256:0aff8f3021300fa552c229666941811c793c7b5b85b4dbaec4f0acd91dda5729) är cosign-signerad
|
||||
Prod-imagen git.cloud.siax.io/sax3l/0pt:prod-989cea585c (sha256:bfdbc3de09b872ebf6d87bb7dd04b36ac3843ad3089f3a7dddd6acd453af6f1e) är cosign-signerad
|
||||
med nyckelparet vars pubkey ligger här. Privata nyckeln raderad efter signering.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAELvxN82T73fjYyjj4kCLmktl0tzij
|
||||
YVio7VU9r9r4xJICcyWwyWBewdTy8Ag4mWvXOWewvB+FEB9xtpKwI/SQfA==
|
||||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEoUzF0Y+akkC10A7CnjrjHgv9gxM6
|
||||
M5bbsPVJUPV0ToYv+XoZgTRv0Vzs467yqW3m2mC3GIhCpBd75Hx8ohxzRg==
|
||||
-----END PUBLIC KEY-----
|
||||
|
||||
@@ -70,7 +70,10 @@ export function parseServiceTenants(value: string | undefined | null): string[]
|
||||
|
||||
/** Read the configured service tenant allowlist from the environment. */
|
||||
export function resolveInternalServiceTenants(
|
||||
env: { INTERNAL_SERVICE_TENANTS?: string } = process.env,
|
||||
// @types/node 22's ProcessEnv has only an index signature, so a direct
|
||||
// default is not assignable to the narrow named-property shape. This is a
|
||||
// type-only view of the same object; runtime behaviour is unchanged.
|
||||
env: { INTERNAL_SERVICE_TENANTS?: string } = process.env as { INTERNAL_SERVICE_TENANTS?: string },
|
||||
): string[] {
|
||||
return parseServiceTenants(env.INTERNAL_SERVICE_TENANTS);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,10 @@ function timingSafeEqualStr(a: string, b: string): boolean {
|
||||
*/
|
||||
export function verifyInternalServiceToken(
|
||||
headers: HeaderLookup,
|
||||
env: { INTERNAL_TOKEN?: string } = process.env,
|
||||
// @types/node 22's ProcessEnv has only an index signature, so a direct
|
||||
// default is not assignable to the narrow named-property shape. This is a
|
||||
// type-only view of the same object; runtime behaviour is unchanged.
|
||||
env: { INTERNAL_TOKEN?: string } = process.env as { INTERNAL_TOKEN?: string },
|
||||
): boolean {
|
||||
const expected = env.INTERNAL_TOKEN?.trim();
|
||||
if (!expected) return false;
|
||||
|
||||
@@ -23,6 +23,11 @@ function req(url: string, headers: Record<string, string> = {}): NextRequest {
|
||||
return new NextRequest(new URL(url, 'http://localhost'), { headers });
|
||||
}
|
||||
|
||||
// @types/node 22 declares NODE_ENV readonly. These tests deliberately save
|
||||
// and restore it; a typed mutable view keeps that exact without weakening the
|
||||
// production auth checks under test.
|
||||
const mutableEnv = process.env as Record<string, string | undefined>;
|
||||
|
||||
describe('anonymous-access regression: /api/orders (GET) and /api/admin/metrics (GET)', () => {
|
||||
const saved = { auth: process.env.AUTH_ENFORCE, node: process.env.NODE_ENV };
|
||||
|
||||
@@ -35,8 +40,8 @@ describe('anonymous-access regression: /api/orders (GET) and /api/admin/metrics
|
||||
afterEach(() => {
|
||||
if (saved.auth === undefined) delete process.env.AUTH_ENFORCE;
|
||||
else process.env.AUTH_ENFORCE = saved.auth;
|
||||
if (saved.node === undefined) delete process.env.NODE_ENV;
|
||||
else process.env.NODE_ENV = saved.node;
|
||||
if (saved.node === undefined) delete mutableEnv.NODE_ENV;
|
||||
else mutableEnv.NODE_ENV = saved.node;
|
||||
});
|
||||
|
||||
it('REGRESSION: GET /api/orders 401s with no Authorization header (was: 200 + full order list)', async () => {
|
||||
|
||||
@@ -36,6 +36,11 @@ function h(init: Record<string, string>): Headers {
|
||||
return new Headers(init);
|
||||
}
|
||||
|
||||
// @types/node 22 declares NODE_ENV readonly. These tests deliberately save
|
||||
// and restore it; a typed mutable view keeps that exact without weakening the
|
||||
// fail-closed auth contract under test.
|
||||
const mutableEnv = process.env as Record<string, string | undefined>;
|
||||
|
||||
describe('auth default -- fail-closed (no AUTH_ENFORCE in the environment)', () => {
|
||||
const saved = { auth: process.env.AUTH_ENFORCE, node: process.env.NODE_ENV };
|
||||
|
||||
@@ -46,8 +51,8 @@ describe('auth default -- fail-closed (no AUTH_ENFORCE in the environment)', ()
|
||||
afterEach(() => {
|
||||
if (saved.auth === undefined) delete process.env.AUTH_ENFORCE;
|
||||
else process.env.AUTH_ENFORCE = saved.auth;
|
||||
if (saved.node === undefined) delete process.env.NODE_ENV;
|
||||
else process.env.NODE_ENV = saved.node;
|
||||
if (saved.node === undefined) delete mutableEnv.NODE_ENV;
|
||||
else mutableEnv.NODE_ENV = saved.node;
|
||||
});
|
||||
|
||||
it('REGRESSION: with the variable unset, an unauthenticated request is REJECTED (401)', async () => {
|
||||
@@ -98,7 +103,7 @@ describe('auth default -- fail-closed (no AUTH_ENFORCE in the environment)', ()
|
||||
});
|
||||
|
||||
it('a production process with AUTH_ENFORCE=false cannot serve a request at all (throws)', async () => {
|
||||
process.env.NODE_ENV = 'production';
|
||||
mutableEnv.NODE_ENV = 'production';
|
||||
process.env.AUTH_ENFORCE = 'false';
|
||||
await expect(
|
||||
resolveAuthContext(h({ 'x-tenant-id': 'tenant_attacker' }), { verify: okVerify }),
|
||||
|
||||
@@ -20,6 +20,10 @@ function req(path: string, headers: Record<string, string> = {}): NextRequest {
|
||||
return new NextRequest(new URL(path, 'http://localhost'), { headers });
|
||||
}
|
||||
|
||||
// @types/node 22 declares NODE_ENV readonly. This key is one of the three
|
||||
// restored below; a typed mutable view keeps that exact.
|
||||
const mutableEnv = process.env as Record<string, string | undefined>;
|
||||
|
||||
describe('middleware.ts: internal-token path for /api/0pt/quality/bridge-run', () => {
|
||||
const saved = { auth: process.env.AUTH_ENFORCE, internal: process.env.INTERNAL_TOKEN, node: process.env.NODE_ENV };
|
||||
|
||||
@@ -31,8 +35,8 @@ describe('middleware.ts: internal-token path for /api/0pt/quality/bridge-run', (
|
||||
afterEach(() => {
|
||||
for (const [k, v] of Object.entries(saved)) {
|
||||
const envKey = k === 'auth' ? 'AUTH_ENFORCE' : k === 'internal' ? 'INTERNAL_TOKEN' : 'NODE_ENV';
|
||||
if (v === undefined) delete process.env[envKey];
|
||||
else process.env[envKey] = v;
|
||||
if (v === undefined) delete mutableEnv[envKey];
|
||||
else mutableEnv[envKey] = v;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,131 @@
|
||||
/**
|
||||
* SEO regression guard: sitemap vs. indexation policy, and per-dataset
|
||||
* canonicals on /katalog/[id].
|
||||
*
|
||||
* PR #622 made /bestall*, noindex via app/bestall/layout.tsx but left those
|
||||
* steps in app/sitemap.ts, and the new /katalog layout canonical leaked down
|
||||
* to every dataset detail. These tests exercise the public surfaces together:
|
||||
* home (sitemap root), catalog, two datasets, an order step, sitemap + robots.
|
||||
*/
|
||||
import { describe, it, expect } from "vitest";
|
||||
import type { Metadata } from "next";
|
||||
import sitemap from "@/app/sitemap";
|
||||
import robots from "@/app/robots";
|
||||
import { metadata as catalogMetadata } from "@/app/katalog/layout";
|
||||
import { metadata as bestallMetadata } from "@/app/bestall/layout";
|
||||
import { generateMetadata as datasetGenerateMetadata } from "@/app/katalog/[id]/layout";
|
||||
import { CATALOG } from "@/app/katalog/datasets";
|
||||
|
||||
const BASE = "https://0pt.app";
|
||||
|
||||
function canonicalOf(m: Metadata): unknown {
|
||||
return m.alternates?.canonical;
|
||||
}
|
||||
|
||||
// Next's Metadata.robots is `string | Robots`; the root layout sets
|
||||
// index:true, so an unset value means the detail stays indexable.
|
||||
function isIndexed(m: Metadata): boolean {
|
||||
const r = m.robots;
|
||||
if (r === undefined || r === null) return true;
|
||||
if (typeof r === "string") return r !== "noindex" && r !== "none";
|
||||
return r.index !== false;
|
||||
}
|
||||
|
||||
function datasetMeta(id: string): Promise<Metadata> {
|
||||
// Next 16 passes dynamic route params as a Promise to generateMetadata.
|
||||
return datasetGenerateMetadata({ params: Promise.resolve({ id }) });
|
||||
}
|
||||
|
||||
describe("sitemap — public pages only", () => {
|
||||
const urls = () => sitemap().map((entry) => entry.url);
|
||||
|
||||
it("lists home, tjanster, katalog and kallor — and nothing else", () => {
|
||||
expect(urls()).toEqual([
|
||||
`${BASE}`,
|
||||
`${BASE}/tjanster`,
|
||||
`${BASE}/katalog`,
|
||||
`${BASE}/kallor`,
|
||||
]);
|
||||
});
|
||||
|
||||
it("never lists the noindex order flow (/bestall*)", () => {
|
||||
expect(urls().filter((url) => url.startsWith(`${BASE}/bestall`))).toEqual([]);
|
||||
});
|
||||
|
||||
it("keeps home as the top-priority entry", () => {
|
||||
const home = sitemap().find((entry) => entry.url === `${BASE}`);
|
||||
expect(home).toBeDefined();
|
||||
expect(home?.priority).toBe(1);
|
||||
for (const entry of sitemap().filter((e) => e.url !== `${BASE}`)) {
|
||||
expect(entry.priority).toBeLessThan(1);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe("robots + order-step indexation", () => {
|
||||
it("allows public crawling, disallows auth surfaces and advertises the sitemap", () => {
|
||||
const rules = robots().rules as Array<{
|
||||
userAgent: string;
|
||||
allow?: string;
|
||||
disallow?: string | string[];
|
||||
}>;
|
||||
expect(rules[0].userAgent).toBe("*");
|
||||
expect(rules[0].allow).toBe("/");
|
||||
expect(rules[0].disallow).toEqual(["/portal/", "/admin/", "/order/", "/api/"]);
|
||||
expect(robots().sitemap).toBe(`${BASE}/sitemap.xml`);
|
||||
});
|
||||
|
||||
it("the order step is noindex/follow and stays out of the sitemap", () => {
|
||||
expect(bestallMetadata.robots).toMatchObject({ index: false, follow: true });
|
||||
expect(sitemap().map((e) => e.url).some((u) => u.includes("/bestall"))).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe("catalog + dataset detail canonicals", () => {
|
||||
it("the catalog index keeps its own canonical", () => {
|
||||
expect(canonicalOf(catalogMetadata)).toBe(`${BASE}/katalog`);
|
||||
});
|
||||
|
||||
it("every indexable dataset detail carries its own canonical, title and description", async () => {
|
||||
expect(CATALOG).toHaveLength(6);
|
||||
for (const dataset of CATALOG) {
|
||||
const meta = await datasetMeta(dataset.id);
|
||||
expect(canonicalOf(meta)).toBe(`${BASE}/katalog/${dataset.id}`);
|
||||
expect(canonicalOf(meta)).not.toBe(canonicalOf(catalogMetadata));
|
||||
// Swedish metadata is canonical for these sv-se routes; accept either
|
||||
// locale so the assertion describes intent rather than a translation.
|
||||
expect(
|
||||
[dataset.title.sv, dataset.title.en].some((t) =>
|
||||
String(meta.title).includes(t),
|
||||
),
|
||||
).toBe(true);
|
||||
expect(
|
||||
[dataset.blurb.sv, dataset.blurb.en].some((b) =>
|
||||
String(meta.description ?? "").includes(b),
|
||||
),
|
||||
).toBe(true);
|
||||
// Root layout declares index:true; details must not silently opt out.
|
||||
expect(isIndexed(meta)).toBe(true);
|
||||
}
|
||||
});
|
||||
|
||||
it("two different datasets resolve to distinct canonicals and titles", async () => {
|
||||
const a = await datasetMeta("nordic-companies");
|
||||
const b = await datasetMeta("tech-decisionmakers");
|
||||
expect(canonicalOf(a)).toBe(`${BASE}/katalog/nordic-companies`);
|
||||
expect(canonicalOf(b)).toBe(`${BASE}/katalog/tech-decisionmakers`);
|
||||
expect(canonicalOf(a)).not.toBe(canonicalOf(b));
|
||||
expect(a.title).not.toBe(b.title);
|
||||
});
|
||||
|
||||
it("canonical uses the stable catalogue id even for a non-normalized request", async () => {
|
||||
const meta = await datasetMeta("Nordic-Companies");
|
||||
expect(canonicalOf(meta)).toBe(`${BASE}/katalog/nordic-companies`);
|
||||
});
|
||||
|
||||
it("an unknown dataset id is explicitly noindex and canonicals to the catalog", async () => {
|
||||
const meta = await datasetMeta("does-not-exist");
|
||||
expect(meta.robots).toMatchObject({ index: false, follow: true });
|
||||
expect(canonicalOf(meta)).toBe(`${BASE}/katalog`);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user