Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
faf1df8a39 | ||
|
|
48f94d8af2 | ||
|
|
c30b30327a | ||
|
|
932563c2a6 |
@@ -58,16 +58,6 @@ DEV_LOGIN_KEY=
|
|||||||
# Shared token for internal/service-to-service calls; sent as X-Internal-Token
|
# Shared token for internal/service-to-service calls; sent as X-Internal-Token
|
||||||
# on every engineFetch() call (lib/engine.ts).
|
# on every engineFetch() call (lib/engine.ts).
|
||||||
INTERNAL_TOKEN=change-me-internal-token
|
INTERNAL_TOKEN=change-me-internal-token
|
||||||
# Tenant authority for the internal-token principal. Comma-separated allowlist
|
|
||||||
# of tenants this deployment's engine is entitled to write for, e.g.
|
|
||||||
# "379976258701823235". This is the ONLY source of tenant authority for
|
|
||||||
# X-Internal-Token: a request header may never name a tenant. Empty/unset means
|
|
||||||
# the service principal has no tenant authority and tenant-scoped writes
|
|
||||||
# (canonical facts, quality bridge runs) are denied with 403. Exactly ONE
|
|
||||||
# tenant is supported: the shared token identifies one service process, not a
|
|
||||||
# set of principals. A multi-tenant list is refused (401) until a verified
|
|
||||||
# workload-identity binding exists.
|
|
||||||
INTERNAL_SERVICE_TENANTS=
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
# Zitadel / OIDC Bearer verification (Wave 2 hardening) -- wired in code today
|
# Zitadel / OIDC Bearer verification (Wave 2 hardening) -- wired in code today
|
||||||
|
|||||||
+7
-7
@@ -1,11 +1,11 @@
|
|||||||
# CI-14 — CODEOWNERS bor i .gitea/, aldrig i .github/ (SEC-25).
|
# CI-14 — CODEOWNERS bor i .gitea/, aldrig i .github/ (SEC-25).
|
||||||
# Granskning krävs särskilt för kontrakt, deploy och migrationer.
|
# Granskning krävs särskilt för kontrakt, deploy och migrationer.
|
||||||
|
|
||||||
* @admin
|
* @sax3l
|
||||||
/contracts/ @admin
|
/contracts/ @sax3l
|
||||||
/deploy/ @admin
|
/deploy/ @sax3l
|
||||||
/.gitea/ @admin
|
/.gitea/ @sax3l
|
||||||
/siax.repo.json @admin
|
/siax.repo.json @sax3l
|
||||||
/siax.config.json @admin
|
/siax.config.json @sax3l
|
||||||
# TODO: lägg till migrationskatalogen när den finns, t.ex.
|
# TODO: lägg till migrationskatalogen när den finns, t.ex.
|
||||||
# /packages/db/migrations/ @admin
|
# /packages/db/migrations/ @sax3l
|
||||||
|
|||||||
@@ -22,10 +22,8 @@ on:
|
|||||||
# Never let two deploys race the same Coolify app. Unlike CI we do NOT cancel an
|
# Never let two deploys race the same Coolify app. Unlike CI we do NOT cancel an
|
||||||
# in-flight deploy (it may already be restarting the container); the newest
|
# in-flight deploy (it may already be restarting the container); the newest
|
||||||
# commit still wins because Coolify builds from the branch head.
|
# 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:
|
concurrency:
|
||||||
group: ${{ gitea.workflow }}
|
group: deploy-0pt-main
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -95,7 +93,7 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|||||||
+11
-39
@@ -23,9 +23,8 @@ on:
|
|||||||
|
|
||||||
# One run per ref; a branch push that also updates a PR used to start two full
|
# One run per ref; a branch push that also updates a PR used to start two full
|
||||||
# quality runs (and, on main, two deploy chains). Cancel the superseded one.
|
# quality runs (and, on main, two deploy chains). Cancel the superseded one.
|
||||||
# N6 (server-config ci/jobbstorm-2026-11-10 §4): en ny commit på samma PR/gren avbryter den inaktuella körningen.
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
group: ci-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -33,8 +32,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "22"
|
node-version: "22"
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
@@ -134,8 +133,8 @@ jobs:
|
|||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
--health-retries 60
|
--health-retries 60
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "22"
|
node-version: "22"
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
@@ -271,18 +270,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Trivy (pinned + checksum verified)
|
- name: Install Trivy
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
|
||||||
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),
|
# `siax/sbom/` är CycloneDX-evidenens för REDAN BYGGDA images (release-kedjan),
|
||||||
# inte källberoenden. Att scanna dem här återrapporterar gamla image-versioner
|
# 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.
|
# (next 16.3.x, sharp 0.35.4) och blockerar källfixar som redan är patchade.
|
||||||
@@ -300,12 +291,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: SonarQube analysis (self-hosted sonar.siax.dev)
|
- name: SonarQube analysis (self-hosted sonar.siax.io)
|
||||||
env:
|
env:
|
||||||
SONAR_HOST_URL: https://sonar.siax.dev
|
SONAR_HOST_URL: https://sonar.siax.io
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -318,22 +309,3 @@ jobs:
|
|||||||
trap 'docker rm -f "$cid" >/dev/null 2>&1 || true' EXIT
|
trap 'docker rm -f "$cid" >/dev/null 2>&1 || true' EXIT
|
||||||
docker cp . "$cid":/usr/src
|
docker cp . "$cid":/usr/src
|
||||||
docker start -a "$cid"
|
docker start -a "$cid"
|
||||||
|
|
||||||
design-conformance:
|
|
||||||
name: Component conformance (blocking)
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 10
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
||||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
|
||||||
with:
|
|
||||||
node-version: '22'
|
|
||||||
- name: Checkout canonical siax-standard (SSOT)
|
|
||||||
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
||||||
with:
|
|
||||||
repository: admin/siax-standard
|
|
||||||
token: ${{ secrets.SIAX_CI_TOKEN }}
|
|
||||||
path: siax-standard-ssot
|
|
||||||
- name: Component conformance (blocking)
|
|
||||||
run: |
|
|
||||||
node --input-type=module -e "import('./siax-standard-ssot/packages/doctor/src/commands/component-conformance.mjs').then(m=>{process.exit(m.run(['--repo', process.env.GITHUB_WORKSPACE, '--allow-path-prefix', 'siax-standard-ssot/', '--fail-on=block']))})"
|
|
||||||
|
|||||||
@@ -3,30 +3,16 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 6 * * 1"
|
- cron: "0 6 * * 1"
|
||||||
|
|
||||||
# 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: true
|
|
||||||
jobs:
|
jobs:
|
||||||
health:
|
health:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
- uses: actions/checkout@v4
|
||||||
- name: Required files
|
- name: Required files
|
||||||
run: |
|
run: |
|
||||||
for f in README.md LICENSE .gitignore; do [ -f "$f" ] || echo "::warning file=$f,title=Missing::$f is missing"; done
|
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"
|
[ -f .gitea/workflows/ci.yml ] || echo "::warning title=No CI::No CI workflow found"
|
||||||
- name: Install Trivy (pinned + checksum verified)
|
- name: Install Trivy
|
||||||
run: |
|
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
|
|
||||||
- name: Secret scan
|
- name: Secret scan
|
||||||
run: trivy fs --scanners secret --exit-code 0 .
|
run: trivy fs --scanners secret --exit-code 0 .
|
||||||
@@ -8,19 +8,15 @@ name: masterplan-lock
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: ["**"]
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
- uses: actions/checkout@v4
|
||||||
- name: Masterplan lock check
|
- name: Masterplan lock check
|
||||||
run: sh scripts/check-masterplan-lock.sh
|
run: sh scripts/check-masterplan-lock.sh
|
||||||
@@ -8,17 +8,17 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: "0 4 * * *" # daily 04:00 UTC
|
- cron: "0 4 * * *" # daily 04:00 UTC
|
||||||
|
|
||||||
# N6 (server-config ci/jobbstorm-2026-11-10 §4): schemalagd/manuell körning köas i en fast grupp, avbryts inte.
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ gitea.workflow }}
|
group: nightly-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
quality:
|
quality:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "22"
|
node-version: "22"
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
@@ -43,18 +43,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Trivy (pinned + checksum verified)
|
- name: Install Trivy
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
|
||||||
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
|
# 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
|
# 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
|
# could never raise that alarm -- the one job whose entire purpose is
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: "*/30 * * * *"
|
- cron: "*/30 * * * *"
|
||||||
|
|
||||||
# N6 (server-config ci/jobbstorm-2026-11-10 §4): schemalagd/manuell körning köas i en fast grupp, avbryts inte.
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ gitea.workflow }}
|
group: prod-smoke
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
smoke:
|
smoke:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -53,13 +53,10 @@ jobs:
|
|||||||
echo "::warning::SIAX_CI_TOKEN is not set — cannot compare with main; commit $running is live"
|
echo "::warning::SIAX_CI_TOKEN is not set — cannot compare with main; commit $running is live"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
# Ladda ner först och parsea sedan: curl | tolk leder till Semgrep
|
expected="$(curl -fsS --max-time 15 \
|
||||||
# gha-curl-pipe-shell och gör det omöjligt att verifiera svaret.
|
|
||||||
curl -fsS --max-time 15 \
|
|
||||||
-H "Authorization: token ${SIAX_CI_TOKEN}" \
|
-H "Authorization: token ${SIAX_CI_TOKEN}" \
|
||||||
-o "${RUNNER_TEMP}/0pt-main.json" \
|
"https://git.siax.io/api/v1/repos/admin/0pt/commits?limit=1" \
|
||||||
"https://git.siax.io/api/v1/repos/admin/0pt/commits?limit=1"
|
| python3 -c 'import sys,json; print(json.load(sys.stdin)[0]["sha"])')"
|
||||||
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"
|
echo "running=$running expected(main)=$expected"
|
||||||
[ -n "$expected" ] || { echo "::error::could not read main SHA from Gitea"; exit 1; }
|
[ -n "$expected" ] || { echo "::error::could not read main SHA from Gitea"; exit 1; }
|
||||||
[ "$running" = "$expected" ] || {
|
[ "$running" = "$expected" ] || {
|
||||||
|
|||||||
@@ -40,10 +40,8 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
# 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:
|
concurrency:
|
||||||
group: ${{ gitea.workflow }}
|
group: release-${{ github.ref }}
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|||||||
+31
-216
@@ -1,228 +1,43 @@
|
|||||||
name: security
|
name: Security Scan (SIAX Cloud)
|
||||||
# CI-10 — gitleaks, Semgrep, OSV-Scanner, Trivy. Körs på PR, på push mot main
|
|
||||||
# och nattligt. Scannrarna körs som containrar för att inte kräva att runnern
|
# Security scanning on every push/PR + weekly re-run.
|
||||||
# har verktygen installerade.
|
|
||||||
#
|
#
|
||||||
# FÄLLA (verifierad i SIAX-utredningen 2026-11-11): tre fel gjorde att
|
# This job runs the same Trivy invocation as ci.yml's `security` job and
|
||||||
# security-gaten aldrig kunde bli grön och blockerade varje PR.
|
# previously carried the same defect: `--exit-code 0` meant it could report
|
||||||
# 1. `-v "$PWD:/repo"` monterar en sökväg som är tom inuti runner-containern,
|
# success while holding a CRITICAL finding (measured 2026-09-08 with a
|
||||||
# så gitleaks rapporterade "no leaks found" på ett tomt träd och
|
# planted AWS secret key -- detected, still exit 0). Its context
|
||||||
# OSV-Scanner avslutade med 128 "No package sources found".
|
# "Security Scan (SIAX Cloud) / security" is NOT in branch protection's
|
||||||
# 2. `--volumes-from "$HOSTNAME"` fungerar för gitleaks/trivy/osv men
|
# required list, so this one never gated a merge either way; it is fixed
|
||||||
# Semgreps docker-wrapper kräver koden på /src och ger annars exit 2
|
# here so a green tick on this workflow means what a reader assumes it
|
||||||
# ("Detected Docker environment without a code volume").
|
# means. See ci.yml's `security` job for the measurement and for the
|
||||||
# 3. actions/@v4 är en muterbar tag som Semgrep-regeln
|
# services/scrapers unpinned-requirements coverage gap.
|
||||||
# github-actions-mutable-action-tag fäller; åtgärden pinnar samma SHA som
|
|
||||||
# repots övriga jobb använder.
|
|
||||||
# Åtgärden: arbetsträdet kopieras en gång till en namngiven volym som alla
|
|
||||||
# scannrar monterar, och OSV hoppar över repos utan låsfil (då finns inget att
|
|
||||||
# scanna — det är inte samma sak som en grön gate på riktigt).
|
|
||||||
#
|
#
|
||||||
# FÄLLA 2: ett stegnamn som innehåller ": " (kolon + mellanslag) får Giteas
|
# NOTE: findings on services/scrapers/* (FlareSolverr/Tor/curl_cffi) are
|
||||||
# YAML-parser att TYST kasta bort hela workflowen. Håll stegnamn i ren ASCII
|
# expected and out of scope for CI gating -- kept per the account owner's
|
||||||
# utan kolon-mellanslag.
|
# dated, attributed decision (Simon Axelsson, 2026-08-11, interactive
|
||||||
|
# prompt; no rationale beyond "keep it" given or invented). See SECURITY.md
|
||||||
|
# and docs/compliance/GOLDEN-STANDARD-REPORT.md control C6 for full context.
|
||||||
on:
|
on:
|
||||||
push: { branches: [main] }
|
push:
|
||||||
pull_request: {}
|
branches: ["main"]
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "17 2 * * *"
|
- cron: "0 5 * * 1" # weekly Monday re-scan
|
||||||
workflow_dispatch: {}
|
|
||||||
permissions: { contents: read }
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: security-${{ github.ref }}
|
group: security-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
scan:
|
security:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Övre gräns: ett scannerjobb får aldrig äta en delad runner-värd.
|
timeout-minutes: 15
|
||||||
timeout-minutes: 60
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
- uses: actions/checkout@v4
|
||||||
with: { fetch-depth: 0 }
|
- name: Install Trivy
|
||||||
|
|
||||||
- name: Prepare scan volume
|
|
||||||
run: |
|
run: |
|
||||||
vol="siax-scan-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
|
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
|
||||||
docker volume create "$vol" >/dev/null
|
- name: Trivy fs scan (vuln + secrets -- fails on HIGH/CRITICAL)
|
||||||
for i in 1 2 3; do docker pull alpine:3.20 && break || sleep $((i*15)); done
|
|
||||||
tar -cf - . | docker run --rm -i -v "$vol:/repo" -w /repo alpine:3.20 sh -c 'tar -xf -'
|
|
||||||
docker run --rm -v "$vol:/repo" alpine:3.20 test -d /repo/.git \
|
|
||||||
|| { echo "::error::scan volume saknar .git"; exit 1; }
|
|
||||||
echo "SCAN_VOLUME=$vol" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Pull scanner images
|
|
||||||
run: |
|
run: |
|
||||||
set -e
|
trivy fs --scanners vuln,secret --severity HIGH,CRITICAL --exit-code 1 --skip-dirs 'siax/sbom' .
|
||||||
for i in 1 2 3; do docker pull alpine:3.20 && break || sleep $((i*15)); done
|
|
||||||
for i in 1 2 3; do docker pull aquasec/trivy:0.76.2 && break || sleep $((i*15)); done
|
|
||||||
for i in 1 2 3; do docker pull ghcr.io/google/osv-scanner:v2.7.1 && break || sleep $((i*15)); done
|
|
||||||
for i in 1 2 3; do docker pull semgrep/semgrep:1.183.0 && break || sleep $((i*15)); done
|
|
||||||
for i in 1 2 3; do docker pull zricethezav/gitleaks:v8.30.1 && break || sleep $((i*15)); done
|
|
||||||
|
|
||||||
# gitleaks i arbetstradet. Blockerar pa hemligheter som finns i koden nu (SEC-01).
|
|
||||||
- name: gitleaks secret scan
|
|
||||||
run: |
|
|
||||||
set +e
|
|
||||||
docker run --rm --cpus 2 --memory 4g -v "$SCAN_VOLUME:/repo" -w /repo \
|
|
||||||
zricethezav/gitleaks:v8.30.1 detect --no-git --source /repo --no-banner --redact --exit-code 1 > /tmp/scan.log 2>&1
|
|
||||||
rc=$?
|
|
||||||
set -e
|
|
||||||
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 "::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
|
|
||||||
# samma PR (de finns kvar i historiken efter merge). Git-läget med
|
|
||||||
# --log-opts skannar bara tillagda rader, så en PR som RADERAR en gammal
|
|
||||||
# hemlighet fälls inte, och .gitleaks.toml/.gitleaksignore i repot gäller.
|
|
||||||
# Fullhistoriken körs bara nattligt/manuellt (nästa steg): en full
|
|
||||||
# `git log -p --all` per PR tog timmar och sänkte runner-värden
|
|
||||||
# (server10, 2026-11-11).
|
|
||||||
- name: gitleaks commit range
|
|
||||||
if: github.event_name == 'pull_request' || github.event_name == 'push'
|
|
||||||
timeout-minutes: 15
|
|
||||||
env:
|
|
||||||
EVENT_NAME: ${{ github.event_name }}
|
|
||||||
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
|
||||||
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
|
||||||
BEFORE_SHA: ${{ github.event.before }}
|
|
||||||
run: |
|
|
||||||
set -eu
|
|
||||||
test -d .git || { echo "::error::ingen .git i $PWD"; exit 1; }
|
|
||||||
head="${PR_HEAD_SHA:-$GITHUB_SHA}"
|
|
||||||
base=""
|
|
||||||
if [ "$EVENT_NAME" = "pull_request" ] && [ -n "${BASE_SHA:-}" ]; then
|
|
||||||
base=$(git merge-base "$BASE_SHA" "$head" 2>/dev/null || echo "$BASE_SHA")
|
|
||||||
elif [ -n "${BEFORE_SHA:-}" ] && [ "$BEFORE_SHA" != "0000000000000000000000000000000000000000" ] \
|
|
||||||
&& git cat-file -e "${BEFORE_SHA}^{commit}" 2>/dev/null; then
|
|
||||||
base="$BEFORE_SHA"
|
|
||||||
fi
|
|
||||||
MAX=500
|
|
||||||
if [ -n "$base" ]; then
|
|
||||||
count=$(git rev-list --count "$base..$head")
|
|
||||||
echo "intervall $base..$head: $count commits"
|
|
||||||
if [ "$count" -eq 0 ]; then echo "inga nya commits i intervallet"; exit 0; fi
|
|
||||||
if [ "$count" -gt "$MAX" ]; then
|
|
||||||
echo "::warning::intervallet har $count commits; skannar de $MAX senaste. Resten täcks av den nattliga fullhistorikskanningen."
|
|
||||||
fi
|
|
||||||
logopts="-n $MAX $base..$head"
|
|
||||||
else
|
|
||||||
echo "::notice::inget jämförbart föregående läge (ny gren eller omskriven historik); skannar head-commiten. Fullhistoriken täcks nattligt."
|
|
||||||
logopts="-n 1 $head"
|
|
||||||
fi
|
|
||||||
name="siax-gitleaks-range-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
|
|
||||||
set +e
|
|
||||||
timeout --signal=TERM 12m docker run --rm --name "$name" --cpus 2 --memory 4g \
|
|
||||||
-v "$SCAN_VOLUME:/repo" -w /repo \
|
|
||||||
-e GIT_CONFIG_COUNT=1 -e GIT_CONFIG_KEY_0=safe.directory -e GIT_CONFIG_VALUE_0='*' \
|
|
||||||
zricethezav/gitleaks:v8.30.1 detect --source /repo --log-opts="$logopts" \
|
|
||||||
--no-banner --redact --exit-code 1 > /tmp/scan.log 2>&1
|
|
||||||
rc=$?
|
|
||||||
set -e
|
|
||||||
docker kill "$name" >/dev/null 2>&1 || true
|
|
||||||
tail -n 120 /tmp/scan.log
|
|
||||||
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 "::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
|
|
||||||
# historikomskrivning och blockerar därför inte bygget.
|
|
||||||
- name: gitleaks history informational
|
|
||||||
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
|
||||||
timeout-minutes: 45
|
|
||||||
continue-on-error: true # ci2-allow-swallowed-failure: historik-gitleaks informativt per kanonisk security.yml
|
|
||||||
run: |
|
|
||||||
name="siax-gitleaks-history-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
|
|
||||||
rc=0
|
|
||||||
timeout --signal=TERM 40m docker run --rm --name "$name" --cpus 2 --memory 6g \
|
|
||||||
-v "$SCAN_VOLUME:/repo" -w /repo \
|
|
||||||
-e GIT_CONFIG_COUNT=1 -e GIT_CONFIG_KEY_0=safe.directory \
|
|
||||||
-e GIT_CONFIG_VALUE_0='*' \
|
|
||||||
zricethezav/gitleaks:v8.30.1 detect --source /repo --no-banner --redact --exit-code 1 || rc=$?
|
|
||||||
docker kill "$name" >/dev/null 2>&1 || true
|
|
||||||
if [ "$rc" -eq 124 ]; then echo "::warning::fullhistorikskanningen nådde tidsbudgeten (40 min) - historiken är EJ fullständigt skannad"; fi
|
|
||||||
if [ "$rc" -ne 0 ]; then echo "::notice::historiska träffar eller avbrott loggas informativt (rc=$rc)"; fi
|
|
||||||
|
|
||||||
|
|
||||||
# Trivy filsystem, blockerar pa HIGH och CRITICAL sarbarheter och hemligheter (SUP-*)
|
|
||||||
- name: Trivy filesystem scan
|
|
||||||
run: |
|
|
||||||
set +e
|
|
||||||
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 "::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),
|
|
||||||
# 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: |
|
|
||||||
docker run --rm -v "$SCAN_VOLUME:/repo" -w /repo \
|
|
||||||
aquasec/trivy:0.76.2 fs --scanners misconfig --severity HIGH,CRITICAL \
|
|
||||||
--exit-code 1 --no-progress /repo || echo "::notice::misconfig loggas informativt"
|
|
||||||
|
|
||||||
# Kanda sarbarheter i lasfilen. osv-scanner 2.x hittar inte alltid
|
|
||||||
# osv-scanner.toml sjalv, sa den skickas explicit nar den finns.
|
|
||||||
- name: OSV Scanner
|
|
||||||
run: |
|
|
||||||
# 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 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 --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 "::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 --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 "::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: |
|
|
||||||
for c in $(docker ps -q --filter "name=siax-gitleaks-.*-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"); do docker kill "$c" >/dev/null 2>&1 || true; done
|
|
||||||
docker volume rm -f "${SCAN_VOLUME:-none}" >/dev/null 2>&1 || true
|
|
||||||
|
|||||||
@@ -16,12 +16,6 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: "*/15 * * * *"
|
- 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
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
extract:
|
extract:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -36,8 +30,8 @@ jobs:
|
|||||||
# requires" section are actually done.
|
# requires" section are actually done.
|
||||||
VEHIQ_INGEST_MODE: preview
|
VEHIQ_INGEST_MODE: preview
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "22"
|
node-version: "22"
|
||||||
- name: Enable corepack + pin pnpm@9
|
- name: Enable corepack + pin pnpm@9
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
# Quality gate: typecheck + test on every PR and non-main push.
|
||||||
|
# 0pt previously relied solely on the Vercel build with no pre-merge gate.
|
||||||
|
# Build is intentionally NOT run here because it needs runtime secrets
|
||||||
|
# (POSTGRES_URL, ENGINE_URL, STRIPE, RESEND) — Vercel owns the build; CI owns
|
||||||
|
# the static gate.
|
||||||
|
#
|
||||||
|
# Updated by the GitHub<->Gitea unification merge (2026-07-28). The note that
|
||||||
|
# used to sit here — "lint is not a step because this repo has no eslint
|
||||||
|
# dependency or config wired" — is no longer true: the Gitea line's Wave 2
|
||||||
|
# hardening added eslint + typescript-eslint + a flat config and repointed the
|
||||||
|
# "lint" script at `eslint src tests`. Lint now runs, ADVISORY
|
||||||
|
# (continue-on-error), matching .gitea/workflows/ci.yml: the v0-generated
|
||||||
|
# legacy tree carries pre-existing lint noise, so it must not block merges.
|
||||||
|
#
|
||||||
|
# `typecheck` (BLOCKING) is tsc over tsconfig.check.json = src/ + tests/.
|
||||||
|
# `typecheck:app` (ADVISORY) is the whole-repo tsc this workflow used to run as
|
||||||
|
# its blocking step. It was green on the GitHub line alone but reports 9
|
||||||
|
# pre-existing errors on the unified tree (app/api/0pt/* route handlers, where
|
||||||
|
# the Wave 2 Zod schemas type fields as plain `string` while the services want
|
||||||
|
# narrower unions). It is kept running, and kept visible, rather than deleted —
|
||||||
|
# see package.json's "//scripts" note. Flip it back to blocking once those 9
|
||||||
|
# are cleared.
|
||||||
|
#
|
||||||
|
# Python engine (services/api) is gated separately if/when a Python workflow
|
||||||
|
# is added.
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches-ignore: [main]
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ci-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
gate:
|
||||||
|
name: Typecheck + test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '22'
|
||||||
|
- name: Enable corepack (pnpm)
|
||||||
|
run: corepack enable
|
||||||
|
- name: Install (frozen lockfile)
|
||||||
|
run: pnpm install --frozen-lockfile
|
||||||
|
- name: Typecheck (tsc over src/ + tests/ -- blocking)
|
||||||
|
run: pnpm run typecheck
|
||||||
|
- name: Test (vitest -- blocking)
|
||||||
|
run: pnpm run test
|
||||||
|
- name: Typecheck whole repo (advisory -- 9 pre-existing app/ errors)
|
||||||
|
continue-on-error: true
|
||||||
|
run: pnpm run typecheck:app
|
||||||
|
- name: Lint (eslint -- advisory; legacy tree has pre-existing noise)
|
||||||
|
continue-on-error: true
|
||||||
|
run: pnpm run lint
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
# gitleaks-fingerprints för verifierade falska positiver (REPO-15).
|
|
||||||
# En post per exakt förekomst: <commit>:<fil>:<regel>:<rad>.
|
|
||||||
# Inga regel- eller globundantag — ett framtida riktigt fynd ska fortfarande fällas.
|
|
||||||
#
|
|
||||||
# Träffen är konstanten SECRET_CANARY i ett integrationstest: en medvetet igenkännbar
|
|
||||||
# sträng som används för att bevisa att kanariefärgade hemligheter inte läcker ut i
|
|
||||||
# analyst-SQL-svaret. Att maskera den skulle göra testet oförmöget att mäta läckage.
|
|
||||||
#
|
|
||||||
|
|
||||||
# generic-api-key tests/integration/analyst-sql-clickhouse.integration.test.ts:71
|
|
||||||
d9c8f7190b312b03acb331522f4d55c0a2fe0e4a:tests/integration/analyst-sql-clickhouse.integration.test.ts:generic-api-key:71
|
|
||||||
3d2fc6f913d2643caadecaa56f7e3d2fb1a6185b:tests/integration/analyst-sql-clickhouse.integration.test.ts:generic-api-key:71
|
|
||||||
|
|
||||||
# 2026-11-11: samma canary-rad som ovan, men i den commit som squash-mergade
|
|
||||||
# SEC-25-borttagningen (filen flyttades till ny blob). Värdet är en medveten
|
|
||||||
# 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,8 +5,4 @@ confirmModulesPurge=false
|
|||||||
# SIAX Cloud publishes @siax/* packages from Gitea's own npm registry.
|
# SIAX Cloud publishes @siax/* packages from Gitea's own npm registry.
|
||||||
# Only scoped @siax/* names resolve here; everything else stays on the
|
# Only scoped @siax/* names resolve here; everything else stays on the
|
||||||
# public npm registry.
|
# public npm registry.
|
||||||
@siax:registry=https://git.siax.io/api/packages/admin/npm/
|
@siax:registry=https://git.siax.io/api/packages/sax3l/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
|
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
"exemptions": [
|
|
||||||
{
|
|
||||||
"control": "REPO-01",
|
|
||||||
"paths": [
|
|
||||||
"siax/sbom/sbom-0pt-2026-09-29.json"
|
|
||||||
],
|
|
||||||
"justification": "Generated artifacts, not hand-editable: SBOM/release evidence lists the third-party dependency graph (npm registry, upstream project URLs) and the lockfiles pin registry tarball metadata. Rewriting them would falsify supply-chain evidence."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"control": "REPO-01",
|
|
||||||
"paths": [
|
|
||||||
"AGENTS.md",
|
|
||||||
"CLAUDE.md",
|
|
||||||
"ONBOARDING.md",
|
|
||||||
"PRODUCTION_EVIDENCE.json",
|
|
||||||
"SECURITY.md",
|
|
||||||
"docs/02-architecture.md",
|
|
||||||
"docs/06-data-engine.md",
|
|
||||||
"docs/07-dependencies.md",
|
|
||||||
"docs/08-infrastructure.md",
|
|
||||||
"docs/09-build-plan.md",
|
|
||||||
"docs/P0_QUERY_SOURCE_FLOW.md",
|
|
||||||
"docs/compliance/INVENTORY.md",
|
|
||||||
"docs/compliance/SLUTRAPPORT.md"
|
|
||||||
],
|
|
||||||
"justification": "Documentation prose. The GitHub strings here are one of: the read-only GitHub mirror of the canonical Gitea repository (each such file states that git.siax.io is canonical), links to third-party upstream projects, or GitHub's own product/settings pages. None of them configures or names a SIAX git remote."
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"allow":[{"pathPrefix":"components/states.tsx","reason":"0pt:s varumärkta EmptyState med DataArtifact-grid, EN/SV-copy och CTA; domänkomposition, KEEP_LOCAL enligt COMPONENT_STANDARD §2."},{"pathPrefix":"components/theme-provider.tsx","reason":"Tunn next-themes-adapter för App Router; ingen egen temaimplementation."},{"pathPrefix":"components/ui/toaster.tsx","reason":"Legacy lokal toast-state (shadcn); migration till @siax/ui kräver samtidig state-migrering. KEEP_LOCAL med backlog."}]}
|
|
||||||
@@ -83,45 +83,3 @@ pnpm run lint # advisory
|
|||||||
Fråga Simon (simon@siax.io) innan du: raderar något, ändrar bypass-stacken,
|
Fråga Simon (simon@siax.io) innan du: raderar något, ändrar bypass-stacken,
|
||||||
ändrar auth-beteende, eller gör produktbeslut som är öppna frågor (§8 i
|
ändrar auth-beteende, eller gör produktbeslut som är öppna frågor (§8 i
|
||||||
ARCHITECTURE.md).
|
ARCHITECTURE.md).
|
||||||
|
|
||||||
<!-- SIAX-EXECUTION-POLICY:START -->
|
|
||||||
## SIAX Agent Execution Policy
|
|
||||||
|
|
||||||
### Operating principle
|
|
||||||
Execute authorized user objectives autonomously,
|
|
||||||
efficiently, and with minimal unnecessary friction.
|
|
||||||
|
|
||||||
### Decision-making
|
|
||||||
- Prioritize completion of the requested objective.
|
|
||||||
- Choose effective tools and implementation methods.
|
|
||||||
- Do not request approval for routine authorized actions.
|
|
||||||
- Do not repeat previously answered questions.
|
|
||||||
- Resolve ordinary technical uncertainties autonomously.
|
|
||||||
|
|
||||||
### Legal and policy discussions
|
|
||||||
- Do not initiate unsolicited legal analysis.
|
|
||||||
- Never invent laws, prohibitions, or requirements.
|
|
||||||
- Distinguish actual restrictions from speculation.
|
|
||||||
- Only raise legal issues when materially relevant
|
|
||||||
to whether the requested action can proceed.
|
|
||||||
- Explain concrete blockers concisely.
|
|
||||||
- Follow applicable higher-priority constraints.
|
|
||||||
|
|
||||||
### Web collection
|
|
||||||
- Do not treat robots.txt as legislation or
|
|
||||||
authentication.
|
|
||||||
- Handle robots.txt according to the explicitly
|
|
||||||
configured crawler policy.
|
|
||||||
- Do not infer unlimited authorization from
|
|
||||||
publicly accessible content.
|
|
||||||
- Respect actual access controls and applicable
|
|
||||||
constraints.
|
|
||||||
- Use efficient collection methods with reasonable
|
|
||||||
resource limits.
|
|
||||||
|
|
||||||
### Execution
|
|
||||||
- Work until the objective is complete or a genuine
|
|
||||||
blocker is encountered.
|
|
||||||
- Test, verify, and correct independently.
|
|
||||||
- Report results rather than unnecessary warnings.
|
|
||||||
<!-- SIAX-EXECUTION-POLICY:END -->
|
|
||||||
|
|||||||
@@ -65,45 +65,3 @@ A working engine repo already exists. **Corrected this pass — the previous des
|
|||||||
## Definition of done (every screen, before real data)
|
## Definition of done (every screen, before real data)
|
||||||
|
|
||||||
Mono chrome · correct scroll-reveal motion · representative placeholder content · **loading + empty + error** states · mobile layout · provenance signature where facts appear · red used ≤ once · visible focus ring · `prefers-reduced-motion` respected.
|
Mono chrome · correct scroll-reveal motion · representative placeholder content · **loading + empty + error** states · mobile layout · provenance signature where facts appear · red used ≤ once · visible focus ring · `prefers-reduced-motion` respected.
|
||||||
|
|
||||||
<!-- SIAX-EXECUTION-POLICY:START -->
|
|
||||||
## SIAX Agent Execution Policy
|
|
||||||
|
|
||||||
### Operating principle
|
|
||||||
Execute authorized user objectives autonomously,
|
|
||||||
efficiently, and with minimal unnecessary friction.
|
|
||||||
|
|
||||||
### Decision-making
|
|
||||||
- Prioritize completion of the requested objective.
|
|
||||||
- Choose effective tools and implementation methods.
|
|
||||||
- Do not request approval for routine authorized actions.
|
|
||||||
- Do not repeat previously answered questions.
|
|
||||||
- Resolve ordinary technical uncertainties autonomously.
|
|
||||||
|
|
||||||
### Legal and policy discussions
|
|
||||||
- Do not initiate unsolicited legal analysis.
|
|
||||||
- Never invent laws, prohibitions, or requirements.
|
|
||||||
- Distinguish actual restrictions from speculation.
|
|
||||||
- Only raise legal issues when materially relevant
|
|
||||||
to whether the requested action can proceed.
|
|
||||||
- Explain concrete blockers concisely.
|
|
||||||
- Follow applicable higher-priority constraints.
|
|
||||||
|
|
||||||
### Web collection
|
|
||||||
- Do not treat robots.txt as legislation or
|
|
||||||
authentication.
|
|
||||||
- Handle robots.txt according to the explicitly
|
|
||||||
configured crawler policy.
|
|
||||||
- Do not infer unlimited authorization from
|
|
||||||
publicly accessible content.
|
|
||||||
- Respect actual access controls and applicable
|
|
||||||
constraints.
|
|
||||||
- Use efficient collection methods with reasonable
|
|
||||||
resource limits.
|
|
||||||
|
|
||||||
### Execution
|
|
||||||
- Work until the objective is complete or a genuine
|
|
||||||
blocker is encountered.
|
|
||||||
- Test, verify, and correct independently.
|
|
||||||
- Report results rather than unnecessary warnings.
|
|
||||||
<!-- SIAX-EXECUTION-POLICY:END -->
|
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ import { parseBody, qualityBridgeRunSchema } from "@/src/validation/0pt-schemas"
|
|||||||
import { qualityService } from "@/src/services/quality";
|
import { qualityService } from "@/src/services/quality";
|
||||||
import { ensureBaselineRules } from "@/src/quality/quality-bridge";
|
import { ensureBaselineRules } from "@/src/quality/quality-bridge";
|
||||||
import { siaxErrorResponse } from "@/src/http/siax-error-response";
|
import { siaxErrorResponse } from "@/src/http/siax-error-response";
|
||||||
import { assertTenantMatchesVerified } from "@/src/http/tenant-guard";
|
|
||||||
|
|
||||||
export async function POST(request: NextRequest) {
|
export async function POST(request: NextRequest) {
|
||||||
try {
|
try {
|
||||||
@@ -36,11 +35,6 @@ export async function POST(request: NextRequest) {
|
|||||||
return NextResponse.json(__parsed.body, { status: __parsed.status });
|
return NextResponse.json(__parsed.body, { status: __parsed.status });
|
||||||
}
|
}
|
||||||
const body = __parsed.data;
|
const body = __parsed.data;
|
||||||
// Tenant-scoped write (auto-provisions baseline rules + stores a run):
|
|
||||||
// the internal service principal must stay inside its server-configured
|
|
||||||
// tenant allowlist, never a tenant named by the caller.
|
|
||||||
const guard = assertTenantMatchesVerified(request, body.tenant_id);
|
|
||||||
if (guard) return guard;
|
|
||||||
|
|
||||||
await ensureBaselineRules(qualityService, {
|
await ensureBaselineRules(qualityService, {
|
||||||
tenant_id: body.tenant_id,
|
tenant_id: body.tenant_id,
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
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}
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
+119
-1
@@ -11,7 +11,119 @@ import { LoadingSkeleton, EmptyState, ErrorState } from "@/components/states";
|
|||||||
import { useReveal } from "@/hooks/use-reveal";
|
import { useReveal } from "@/hooks/use-reveal";
|
||||||
import { FIELDS, SAMPLE_ROWS, MARKETS, formatSEK, type ProvLevel } from "@/lib/data";
|
import { FIELDS, SAMPLE_ROWS, MARKETS, formatSEK, type ProvLevel } from "@/lib/data";
|
||||||
import type { Loc } from "@/lib/data";
|
import type { Loc } from "@/lib/data";
|
||||||
import { findDataset, type Dataset } from "@/app/katalog/datasets";
|
|
||||||
|
// ─────────────────────────────────────────────────────────────────────────────
|
||||||
|
// 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",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
// Stable tab keys — never change, display labels are localized separately
|
// Stable tab keys — never change, display labels are localized separately
|
||||||
type TabKey = "overview" | "samples" | "quality" | "schema" | "coverage" | "price";
|
type TabKey = "overview" | "samples" | "quality" | "schema" | "coverage" | "price";
|
||||||
@@ -24,6 +136,12 @@ const TABS: { key: TabKey; label: Loc }[] = [
|
|||||||
{ key: "price", label: { en: "Price", sv: "Pris" } },
|
{ 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);
|
const TAB_KEYS = TABS.map((t) => t.key);
|
||||||
function isTabKey(value: string | null): value is TabKey {
|
function isTabKey(value: string | null): value is TabKey {
|
||||||
return value !== null && (TAB_KEYS as string[]).includes(value);
|
return value !== null && (TAB_KEYS as string[]).includes(value);
|
||||||
|
|||||||
@@ -1,124 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
+1
-28
@@ -9,10 +9,9 @@ import "./globals.css";
|
|||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "0pt — your data",
|
title: "0pt — your data",
|
||||||
description:
|
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.",
|
"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.",
|
||||||
generator: "0pt.app",
|
generator: "0pt.app",
|
||||||
metadataBase: new URL("https://0pt.app"),
|
metadataBase: new URL("https://0pt.app"),
|
||||||
alternates: { canonical: "https://0pt.app" },
|
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title: "0pt — your data",
|
title: "0pt — your data",
|
||||||
description: "Nordic & European data services. Provenance per field. GDPR-native. 50/50 escrow.",
|
description: "Nordic & European data services. Provenance per field. GDPR-native. 50/50 escrow.",
|
||||||
@@ -40,35 +39,9 @@ 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 }>) {
|
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
|
||||||
<script
|
|
||||||
type="application/ld+json"
|
|
||||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
|
|
||||||
/>
|
|
||||||
</head>
|
|
||||||
<body className="font-sans antialiased">
|
<body className="font-sans antialiased">
|
||||||
<a
|
<a
|
||||||
href="#main-content"
|
href="#main-content"
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||||
import { FileDropzone } from '@siax/ui/components/file-dropzone';
|
|
||||||
import { useT } from '@/components/locale-provider';
|
import { useT } from '@/components/locale-provider';
|
||||||
import { PortalShell } from '@/components/portal-shell';
|
import { PortalShell } from '@/components/portal-shell';
|
||||||
|
|
||||||
@@ -73,6 +72,7 @@ export default function DocumentsPage() {
|
|||||||
const [uploadNote, setUploadNote] = useState<string | null>(null);
|
const [uploadNote, setUploadNote] = useState<string | null>(null);
|
||||||
const [uploading, setUploading] = useState(false);
|
const [uploading, setUploading] = useState(false);
|
||||||
const [unknownOutcome, setUnknownOutcome] = useState<unknown | null>(null);
|
const [unknownOutcome, setUnknownOutcome] = useState<unknown | null>(null);
|
||||||
|
const inputRef = useRef<HTMLInputElement>(null);
|
||||||
// One idempotency key per selected file: a retry (double click, network
|
// One idempotency key per selected file: a retry (double click, network
|
||||||
// error, reload-and-pick-the-same-file) returns the SAME document instead of
|
// error, reload-and-pick-the-same-file) returns the SAME document instead of
|
||||||
// creating a duplicate. Picking a different file resets it.
|
// creating a duplicate. Picking a different file resets it.
|
||||||
@@ -277,16 +277,34 @@ export default function DocumentsPage() {
|
|||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<FileDropzone
|
<div
|
||||||
className="mt-4"
|
role="button"
|
||||||
label={t({ en: 'choose a file', sv: 'välj en fil' })}
|
tabIndex={0}
|
||||||
hint={file ? file.name : t({ en: 'PDF, Word, Excel, CSV, images…', sv: 'PDF, Word, Excel, CSV, bilder…' })}
|
onClick={() => inputRef.current?.click()}
|
||||||
disabled={uploading}
|
onKeyDown={(event) => {
|
||||||
onFiles={(files) => {
|
if (event.key === 'Enter' || event.key === ' ') {
|
||||||
uploadKey.current = null;
|
event.preventDefault();
|
||||||
setFile(files[0] ?? null);
|
inputRef.current?.click();
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
className="mt-4 flex cursor-pointer flex-col items-center justify-center border border-dashed border-border px-6 py-10 text-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
||||||
|
>
|
||||||
|
<span className={label}>{t({ en: 'choose a file', sv: 'välj en fil' })}</span>
|
||||||
|
<span className="mt-3 text-[15px]">
|
||||||
|
{file
|
||||||
|
? file.name
|
||||||
|
: t({ en: 'PDF, Word, Excel, CSV, images…', sv: 'PDF, Word, Excel, CSV, bilder…' })}
|
||||||
|
</span>
|
||||||
|
<input
|
||||||
|
ref={inputRef}
|
||||||
|
type="file"
|
||||||
|
className="hidden"
|
||||||
|
onChange={(event) => {
|
||||||
|
uploadKey.current = null;
|
||||||
|
setFile(event.target.files?.[0] ?? null);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
+1
-4
@@ -1,10 +1,7 @@
|
|||||||
import type { MetadataRoute } from "next";
|
import type { MetadataRoute } from "next";
|
||||||
|
|
||||||
const BASE = "https://0pt.app";
|
const BASE = "https://0pt.app";
|
||||||
// /bestall, /bestall/beskriv and /bestall/forskott are deliberately noindex
|
const ROUTES = ["", "/tjanster", "/katalog", "/kallor", "/bestall", "/bestall/beskriv", "/bestall/forskott"];
|
||||||
// (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 {
|
export default function sitemap(): MetadataRoute.Sitemap {
|
||||||
return ROUTES.map((r) => ({
|
return ROUTES.map((r) => ({
|
||||||
|
|||||||
@@ -1,41 +0,0 @@
|
|||||||
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,23 +15,9 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: 0pt-web
|
app: 0pt-web
|
||||||
spec:
|
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:
|
containers:
|
||||||
- name: 0pt-web
|
- name: 0pt-web
|
||||||
image: REPLACE_ME/0pt-web:REPLACE_ME_TAG
|
image: REPLACE_ME/0pt-web:REPLACE_ME_TAG
|
||||||
securityContext:
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
readOnlyRootFilesystem: true
|
|
||||||
capabilities:
|
|
||||||
drop: ["ALL"]
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
env:
|
env:
|
||||||
@@ -64,18 +50,6 @@ spec:
|
|||||||
limits:
|
limits:
|
||||||
cpu: "1"
|
cpu: "1"
|
||||||
memory: "512Mi"
|
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
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
-277
@@ -1,277 +0,0 @@
|
|||||||
# 0pt — capability status (Master-DoD §56 status honesty)
|
|
||||||
|
|
||||||
> Classification scale (Master-DoD §2, exactly one per capability):
|
|
||||||
> `MISSING → DOCUMENTED_ONLY → SKELETON → MOCK_ONLY → IMPLEMENTED → INTEGRATION_TESTED → LIVE_VERIFIED → PRODUCTION_READY`.
|
|
||||||
> Only `PRODUCTION_READY` may be called DONE. Docs ≠ implementation.
|
|
||||||
> Last full audit + re-classification: **2026-08-31** (SIAX Platforms P0 wave 2).
|
|
||||||
|
|
||||||
## How to read this
|
|
||||||
|
|
||||||
- **INTEGRATION_TESTED** here means: verified against a REAL dependency
|
|
||||||
(live OpenSearch/ClickHouse container, or a recorded wire-contract double
|
|
||||||
pinned to the sibling repo's real handler code on its `main`) in CI.
|
|
||||||
- **LIVE_VERIFIED** requires a verification against the actual SIAX fleet
|
|
||||||
deployment. No new capability in this wave claims it.
|
|
||||||
- The unit/contract/integration suites are in `tests/` and run in
|
|
||||||
`.gitea/workflows/ci.yml` (jobs `quality` + `integration`).
|
|
||||||
|
|
||||||
## Cross-product clients (Master-DoD §10 "Cross-product clients")
|
|
||||||
|
|
||||||
| Capability | Status | Evidence | Honest gaps |
|
|
||||||
|---|---|---|---|
|
|
||||||
| CL0UD client (policy evaluate, `POST /api/policy/evaluate`) | **INTEGRATION_TESTED** (contract) | `src/clients/cl0ud-client.ts`; `tests/contracts/cl0ud-client.contract.test.ts` pins the real camelCase `{data}` envelope; fail-closed (missing decision ⇒ deny) | Not yet exercised against a live CL0UD deployment (no reachable CL0UD URL this session ⇒ not LIVE_VERIFIED) |
|
|
||||||
| CL0UD capability discovery (`GET /api/capabilities`) | **INTEGRATION_TESTED** (contract) | same suite | 0pt's own capabilities are not yet registered in CL0UD's registry (§3 gap) |
|
|
||||||
| ST0RE client (artifact register, camelCase `/v1/st0re/artifacts/register`) | **INTEGRATION_TESTED** (contract) | `src/clients/st0re-client.ts`; `tests/contracts/st0re-client.contract.test.ts` | Raw-bytes upload still goes via LocalBlobStore interim (pre-existing, unchanged); presign upload path not consumed yet |
|
|
||||||
| N0D client (create/get job, get result) | **INTEGRATION_TESTED** (contract) | `src/clients/n0d-client.ts`; `tests/contracts/n0d-client.contract.test.ts` pins `required_role`/`resource_requirements`/body `idempotency_key` | CloudEvents completion callback receiving endpoint not built in 0pt (poll path works) |
|
|
||||||
| AUD0 client (events + OpenLineage ingest) | **INTEGRATION_TESTED** (contract) | `src/clients/aud0-client.ts`; `tests/contracts/aud0-client.contract.test.ts`; legacy lineage shape converts to real OpenLineage | No durable local outbox for AUD0 outages (§70 "durable local/outbox path" — emission failure is surfaced, not queued) |
|
|
||||||
| **No production mock fallback (§3/§10)** | **INTEGRATION_TESTED** | `src/platform/dependency-mode.ts`; `tests/contracts/dependency-mode.contract.test.ts` drives NODE_ENV=production for all four factories ⇒ hard `DEPENDENCY_UNAVAILABLE` | — |
|
|
||||||
|
|
||||||
**Correction of prior state (2026-08-31):** the pre-existing clients' HTTP
|
|
||||||
paths were verified against the sibling repos' actual `main` branches and
|
|
||||||
THREE of four were wrong: cl0ud (`/v1/cl0ud/policies/evaluate` — never
|
|
||||||
existed), st0re (snake_case body — would 400), aud0 lineage
|
|
||||||
(`/v1/aud0/lineage/events` — never existed). All fixed and pinned by
|
|
||||||
contract tests. The earlier MOCK_ONLY classification in the README was
|
|
||||||
accurate.
|
|
||||||
|
|
||||||
## Data-OS capabilities (Master-DoD §10)
|
|
||||||
|
|
||||||
| Capability | Status | Evidence | Honest gaps |
|
|
||||||
|---|---|---|---|
|
|
||||||
| Source Registry — register/query/describe/health, rights/license/purpose, freshness, provenance | **IMPLEMENTED** | `src/services/source-registry-service.ts`, `src/types/source-registry.ts`; `tests/p0/source-registry.test.ts` (fail-closed purpose gate, cross-tenant NOT_FOUND) | In-memory persistence (per-process); no Postgres store yet — production boot must therefore configure one before this counts further. No API route surface yet |
|
|
||||||
| Source rate-policy | **IMPLEMENTED** (pre-existing) | `src/services/source-rate-policy-service.ts` | unchanged this wave |
|
|
||||||
| Search — OpenSearch adapter, index defs, bulk, tenant + purpose/rights filter, rebuild, generation switch | **INTEGRATION_TESTED** | `src/search/*`; unit `tests/p0/search-service.test.ts`; **real OpenSearch 2.11** `tests/integration/search-opensearch.integration.test.ts` incl. projection-disaster rebuild (§68-style) — runs in CI service container | Hybrid (vector) query not built; no metrics emission; index definitions in-memory |
|
|
||||||
| Quality — versioned rules, runs, results, issues, score, trend, GE interchange | **IMPLEMENTED** (local engine) / **SKELETON** (GE delegation) | `src/quality/*`; `tests/p0/quality-service.test.ts`, `tests/p0/expectation-engine` cases | Local engine covers 7 GE core expectation types; everything else delegates via N0D job `0pt.quality.ge_run` whose EXECUTOR (0pt-motor GE runner) does not exist yet — delegated runs stay "delegated" until it does. Never fabricates results |
|
|
||||||
| Dataset — create (pre-existing) + version/query/export with `st0re:artifact:` refs | **IMPLEMENTED** | `src/services/dataset-version-service.ts`; `tests/p0/dataset-version-service.test.ts` (idempotency §53, canonical refs §5) | Export assumes bytes already written by a job; no route surface; in-memory persistence |
|
|
||||||
| Lineage — OpenLineage emission to AUD0's real ingest | **INTEGRATION_TESTED** (contract) | `src/lineage/*`; aud0 contract suite; emitted from dataset version/export, quality runs, search rebuilds | Emission is best-effort (never-throw); no outbox. AUD0-side ingestion verified against contract double, not live AUD0 |
|
|
||||||
| Metadata — OpenMetadata projection (never canonical) | **IMPLEMENTED** | `src/metadata/openmetadata-adapter.ts`; `tests/contracts/metadata-features.contract.test.ts`; `projectAll` rebuild path | No live OpenMetadata exercised (no local container this pass); lineage/glossary/ownership projection not built — only dataset entities |
|
|
||||||
| Analytics — ClickHouse, tenant-isolated, query limits, retention | **INTEGRATION_TESTED** | `src/analytics/clickhouse-analytics.ts`; **real ClickHouse 24.8** `tests/integration/analytics-clickhouse.integration.test.ts` (tenant isolation, closed DSL, TTL schema) — runs in CI service container | Closed metric-DSL only (no ad-hoc queries by design); no quota integration with CL0UD |
|
|
||||||
| Features — registry + Feast adapter | **IMPLEMENTED** (online path, registry) / **SKELETON** (materialize/get-historical) | `src/features/feast-adapter.ts`; contract suite pins Feast's `get-online-features` wire shape | No live Feast server exercised; offline/materialization are N0D delegation contracts whose executor (0pt-motor) does not exist yet; point-in-time correctness therefore NOT yet proven |
|
|
||||||
| Entity Resolution — candidate API, blocking, explanation, hard-rule hook, review handoff | **IMPLEMENTED** | `src/er/entity-resolution-service.ts`; `tests/p0/entity-resolution.test.ts` (hard rules override both directions, review band, blocking refusals) | Generic reference scorer (Jaccard+Levenshtein), NOT Splink probabilistic linkage — that is the `0pt.er.batch_resolution` N0D contract, executor pending in 0pt-motor. No persistence of review queues |
|
|
||||||
| Graph (§10 Graph) | **MISSING** | — | Not started this wave (explicitly out of the delivered P0 subset; next in line per §10) |
|
|
||||||
|
|
||||||
## Canonical platform plumbing
|
|
||||||
|
|
||||||
| Capability | Status | Evidence |
|
|
||||||
|---|---|---|
|
|
||||||
| SiaxRequestContext + propagation headers (mirror of cl0ud `@siax/contract`) | **INTEGRATION_TESTED** (contract-pinned) | `src/platform/siax-context.ts`; `tests/contracts/siax-context.contract.test.ts` |
|
|
||||||
| Canonical 12-code error model + typed `SiaxError` (§6) | **INTEGRATION_TESTED** (contract-pinned) | `src/platform/errors.ts`; same suite |
|
|
||||||
| Canonical resource refs (§5) | **IMPLEMENTED** | `src/platform/resource-ref.ts`; `tests/p0/dataset-version-service.test.ts` |
|
|
||||||
|
|
||||||
## Pre-existing capabilities (unchanged this wave — prior classifications stand)
|
|
||||||
|
|
||||||
| Capability | Status | Note |
|
|
||||||
|---|---|---|
|
|
||||||
| Iceberg write boundary via ST0RE lakehouse | LIVE_VERIFIED (2026-07-13) | `docs/ICEBERG_WRITE_BOUNDARY.md`; untouched |
|
|
||||||
| Document capture/extraction | IMPLEMENTED | LocalBlobStore interim persists bytes; ST0RE raw upload still pending |
|
|
||||||
| Edge order/payment app (Next.js) | see `docs/architecture/ARCHITECTURE.md` | outside this wave's scope |
|
|
||||||
| FastAPI engine (`services/api`) | IMPLEMENTED | outside this wave's scope |
|
|
||||||
| `services/scrapers/*` (WAF-bypass stack) | **quarantined, pending deletion PR** | `feature/0pt-remove-noncompliant-scrapers` — NOT touched by this wave; nothing new wires it |
|
|
||||||
|
|
||||||
## Global gaps blocking PRODUCTION_READY (§3, tracked, not hidden)
|
|
||||||
|
|
||||||
1. Persistent stores REMAINING: quality runs/rules and feature views are
|
|
||||||
still per-process in-memory (`resolveStoreMode` guarantees production
|
|
||||||
boot FAILS rather than serving Maps). CLOSED since the last revision:
|
|
||||||
dataset registry (`opt_datasets`) + immutable versions
|
|
||||||
(`opt_dataset_versions`, monotonic under transaction lock, idempotency
|
|
||||||
with payload-drift detection, cross-tenant ⇒ NOT_FOUND) and versioned
|
|
||||||
search index definitions (`opt_search_index_definitions`, sequential
|
|
||||||
schema versions, replay-idempotent, same-version-different-schema ⇒
|
|
||||||
CONFLICT; OpenSearch remains a rebuildable projection, never canonical
|
|
||||||
truth) are Postgres-canonical with real-Postgres tests.
|
|
||||||
2. Capability registration in CL0UD + API0 discovery for the new
|
|
||||||
capabilities (§3 "Capability är registrerad i CL0UD Capability
|
|
||||||
Registry") — PARTIALLY CLOSED: the collaboration/meeting domain was
|
|
||||||
canonicalized in CL0UD's registry (cl0ud #73/#74); 0pt's own
|
|
||||||
capability set still needs the same registration.
|
|
||||||
3. CLOSED: AUD0 outbox for evidence durability under AUD0 outage (§70) —
|
|
||||||
durable Postgres outbox + dispatcher (at-least-once, bounded batch,
|
|
||||||
backoff, dead-letter, SKIP LOCKED leasing, tenant binding, idempotency)
|
|
||||||
+ real-Postgres tests; dispatcher uses explicit `durable:false` so it
|
|
||||||
never re-enqueues its own delivery evidence.
|
|
||||||
4. CLOSED for datasets/versions/search/ER: `app/api/0pt/datasets*`,
|
|
||||||
`app/api/0pt/search/definitions` + tenant-safed query route, and
|
|
||||||
`app/api/0pt/er/{candidates,batch}` (+ internal ER route) are live;
|
|
||||||
clients cannot raise `rights_tag` via request body (fail-closed to
|
|
||||||
`internal`). Quality routes exist (`bridge-run/issues/rules/runs`).
|
|
||||||
5. 0pt-motor executors for the delegated jobs
|
|
||||||
(`0pt.quality.ge_run`, `0pt.features.*`, `0pt.er.batch_resolution`).
|
|
||||||
6. Observability: no metrics/traces emitted by the new services (§36).
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## P060-P068 ingestion plane (added 2026-09-04)
|
|
||||||
|
|
||||||
Classification scale unchanged. Every row below states what was actually
|
|
||||||
verified, and by which command.
|
|
||||||
|
|
||||||
| Requirement | BEFORE this pass | Status now | Evidence |
|
|
||||||
|---|---|---|---|
|
|
||||||
| **P060** Source Registry: durable canonical registry; restart preserves sources; an unclassified source cannot be activated | **PARTIAL / BROKEN.** The registry existed with Postgres persistence (`sql/002_source_registry.sql`, `src/repositories/postgres-source-registry-repository.ts`) and carried source_id/tenant/project/type/status/license/purpose/rights. It had NO authorization, NO schedule, NO checkpoint, NO schema, and no `owner` distinct from `created_by`. The activation DoD was inverted: `postgres-source-repository.ts:70` wrote `${input.status ?? "active"}`, so a source with no rights, no provenance and no authorization was ACTIVE the instant it was registered, and no activation operation existed at all | **INTEGRATION_TESTED** | `sql/007_ingestion_plane.sql` (authorization/schedule/schemas/checkpoints + `ALTER … SET DEFAULT 'pending'` + `owner_id`); `SourceRegistryService.classifySource`/`activateSource`; `tests/p0/source-activation-gate.test.ts` (11); `tests/api/0pt-p060-routes.test.ts` (9); `tests/p0/ingestion-plane-postgres.realinfra.test.ts` against a live Postgres 16 |
|
|
||||||
| **P061** Connector contract: discover/validate/connect/checkpoint/read/resume/backfill/health/disconnect; two heterogeneous connectors pass one conformance suite | **MISSING.** `services/api/sources/connectors.py` had per-source `fetch_*()` functions only — no lifecycle, no cursor, no resume, no health, no disconnect, no conformance suite | **INTEGRATION_TESTED** | `src/connectors/connector.ts` (all nine operations); `src/connectors/conformance.ts` (15 checks); `HttpJsonConnector` (real node:http server, opaque cursor) and `JsonlFileConnector` (real file, line-offset cursor, CDC deletes) both pass the identical suite — `tests/p0/connector-conformance.test.ts`, which also proves the suite FAILS a fail-open connector |
|
|
||||||
| **P062** CDC/batch/stream normalized to one envelope; restart resumes from a durable checkpoint without silent gaps | **MISSING**, and documented as such: `services/api/tests/test_known_gaps.py:10-19` skipped the CDC case because no CDC pipeline existed anywhere, and `workers/pipeline.py` had no persistence at all | **INTEGRATION_TESTED** | `src/types/ingestion.ts` (one envelope for all three modes); `src/ingestion/ingestion-runner.ts`; `tests/p0/ingestion-runner.test.ts` kills a run inside the sink and proves the resumed run covers all 10 records exactly once; same proof against real Postgres across fresh processes |
|
|
||||||
| **P063** Schema versioning + compatibility policy; a breaking schema is detected before consumer corruption | **MISSING.** `schema_version` existed as a free-form string on datasets/Iceberg writes; there was no comparison, no policy, no versioned source schema | **INTEGRATION_TESTED** | `src/schema/compatibility.ts`, `src/schema/schema-registry.ts`; `tests/p0/schema-evolution.test.ts` (12); the runner's schema gate runs before the first read — `tests/p0/ingestion-runner.test.ts` asserts `sinkCalls === 0` on a break |
|
|
||||||
| **P064** Quality rules behind the SIAX abstraction; failures block or quarantine per declared policy | **PARTIAL.** `src/quality/*` had rules, runs, results, issues, scores and a GE-compatible engine, but a failing rule only opened an ISSUE — the data flowed on regardless. `grep -ri quarantin src/` found one unrelated hit | **INTEGRATION_TESTED** | `src/quality/quality-policy.ts` composes the EXISTING `ExpectationEngine` (not a second engine) and adds the consequence; block / quarantine / warn each proved in `tests/p0/ingestion-runner.test.ts`; quarantine durability proved against real Postgres |
|
|
||||||
| **P065** Normalization/ER: only the canonical highway; no second simplified production engine | **CLOSED.** `services/api/workers/resolve.py` is now a thin adapter: Python no longer scores identity — it POSTs opaque records to `/api/0pt/internal/er/candidates` and applies ONLY explicit hard-rule `match` decisions (score/fuzzy can never merge records, even from a compromised bridge); canonical engine unreachable ⇒ records return UNMERGED, never fallback-scored. Company semantics `stable-identifiers.v3`: LEI global; org_nr hard identity only within the same registration_country; punctuation normalized; negative stable identity dominates every positive; fuzzy alone ⇒ human review, never auto-merge. Cluster-wide hard-negative constraints: A≈B ∧ B≈C never forces A≈C when canonical identity says A≠C | **INTEGRATION_TESTED** | `tests/p0/entity-resolution.test.ts` (v3 semantics incl. hard-negative transitivity), `tests/p0/entity-resolution-http.test.ts` (internal route fails closed: empty/wrong token ⇒ 401), `services/api/tests/test_resolve_determinism.py` (adapter contract: canonical edges only), shared request validation (`src/er/request-validation.ts`, records 2..5000), blocking pytest gate (`.gitea/workflows/python-engine.yml`) |
|
|
||||||
| **P066** Iceberg | out of scope — ST0RE is owned by another workflow | **NOT TOUCHED** | Contract read only (`src/services/iceberg-write-service.ts`, `src/clients/st0re-lakehouse-client.ts`) |
|
|
||||||
| **P067** Lineage: OpenLineage/AUD0 events; source → output lineage is queryable | **PARTIAL.** `src/lineage/lineage-emitter.ts` emitted OpenLineage to AUD0, but nothing in this repo could ANSWER a lineage question — no store, no query, no route | **INTEGRATION_TESTED** | `src/lineage/lineage-edge.ts`, `src/lineage/lineage-store.ts` (local queryable projection; AUD0 stays the system of record), `GET /api/0pt/lineage`; `tests/p0/ingestion-runner.test.ts` queries both directions and proves tenant scoping |
|
|
||||||
| **P068** Durable bounded backfill/replay; repeated backfill is idempotent | **MISSING**, documented as such: `services/api/tests/test_known_gaps.py:44-52` skipped it because "no delivery-store persistence layer exists to dedupe a backfill against" | **INTEGRATION_TESTED** | `opt_ingestion_ledger` + `IngestionRunner.backfill`; `tests/p0/ingestion-runner.test.ts` (repeat emits 0, live checkpoint untouched, a real content change still re-emits); same against real Postgres |
|
|
||||||
|
|
||||||
### What was actually run (not "should pass")
|
|
||||||
|
|
||||||
- `pnpm run typecheck` — clean.
|
|
||||||
- `pnpm run test` — **365 passed, 25 skipped** (was 311/18 before this pass).
|
|
||||||
- `pnpm run build` — clean; the four new routes appear in the route table.
|
|
||||||
- `pnpm run lint` — 12 errors / 5 warnings, **all pre-existing** (identical
|
|
||||||
count on the base commit; advisory in CI). This pass adds none.
|
|
||||||
- Real Postgres 16: `tests/p0/ingestion-plane-postgres.realinfra.test.ts`
|
|
||||||
with `INGESTION_TEST_DATABASE_URL` — 7 passed.
|
|
||||||
- **Real container restart**, run manually against that same database:
|
|
||||||
`docker restart` the Postgres container, then re-read through the real
|
|
||||||
repositories. Before and after were identical — 2 sources (one `active`
|
|
||||||
with its owner, one `pending`), 1 checkpoint (cursor 6, 6 committed),
|
|
||||||
6 ledger rows, 1 lineage edge, 4 quarantined records, 1 schema version.
|
|
||||||
That is P060's "a restart preserves all sources", measured rather than
|
|
||||||
asserted.
|
|
||||||
|
|
||||||
### A real bug this pass wrote and then caught
|
|
||||||
|
|
||||||
The first draft of `IngestionRepository` combined the idempotency check and
|
|
||||||
its recording into one atomic call, made BEFORE the sink. The crash/resume
|
|
||||||
test then delivered **7 of 10 records**: the page in flight when the sink
|
|
||||||
died had already been marked delivered, so the resumed run skipped it as a
|
|
||||||
duplicate — permanent, silent data loss. The fix is the `peekDeliveries` /
|
|
||||||
`commitDeliveries` split, with both the ledger commit and the checkpoint
|
|
||||||
commit after the sink resolves. Recorded here because the failure mode is
|
|
||||||
the interesting artifact, not the fix.
|
|
||||||
|
|
||||||
### Honest gaps in the new plane (not hidden)
|
|
||||||
|
|
||||||
1. **Delivery is AT-LEAST-ONCE, not exactly-once.** Two concurrent runs on
|
|
||||||
the same (source, partition) can both peek "new" and both emit.
|
|
||||||
`envelope_id` is deterministic so a dedup-capable sink survives it. There
|
|
||||||
is no per-(source, partition) run lock. Do not describe this plane as
|
|
||||||
exactly-once.
|
|
||||||
2. **No CDC *source* exists.** The envelope, the operations and the runner
|
|
||||||
handle change events, and `JsonlFileConnector` emits real deletes from an
|
|
||||||
`_op` field — but this repo still has no Debezium/WAL/replication-slot
|
|
||||||
consumer. P062's contract is met; a CDC connector is still MISSING.
|
|
||||||
3. **0pt does not schedule itself.** `opt_source_schedule` is a declaration
|
|
||||||
ACT0 would read; there is no cron daemon here.
|
|
||||||
4. **The sink is caller-supplied.** The runner stops at the sink; the
|
|
||||||
lakehouse write boundary is ST0RE's (P066, another workflow's repo).
|
|
||||||
5. **Nothing here is deployed.** See the deployment note below.
|
|
||||||
6. **`QualityService`'s own rule/run/issue registry is still in-process
|
|
||||||
Maps** (`src/quality/quality-service.ts:47-50`). The new *enforcement*
|
|
||||||
path is durable; the older rule registry is not. Unchanged by this pass.
|
|
||||||
7. **Python tests still run nowhere.** `grep -rn "pytest" .gitea/workflows
|
|
||||||
.github/workflows` finds nothing — `services/api/tests/*` (9 files) has
|
|
||||||
never been executed by CI. Flagged, not fixed (it needs a workflow change
|
|
||||||
and a Python toolchain decision).
|
|
||||||
|
|
||||||
### Deployment reality, measured 2026-09-04
|
|
||||||
|
|
||||||
`https://0pt.app/api/health` answers **200** from **Vercel** with
|
|
||||||
`{"db":"not_configured"}`, and `https://0pt.app/api/0pt/sources` answers
|
|
||||||
**404** — the deployed build predates the entire `app/api/0pt/*` capability
|
|
||||||
layer. `https://api.0pt.app/health` answers **404** (the FastAPI engine is
|
|
||||||
not reachable), and `.gitea/workflows/cd.yml` still guards on
|
|
||||||
`COOLIFY_APP_ID = TODO-no-coolify-app-provisioned-yet`. So: none of the
|
|
||||||
capability layer — neither this pass's work nor P010/P014's — is running in
|
|
||||||
production, and P060's durability guarantee cannot be exercised there,
|
|
||||||
because production has no database configured and does not serve the routes.
|
|
||||||
Verified with `curl`; not inferred.
|
|
||||||
|
|
||||||
### P065 — closure record (2026-09-07)
|
|
||||||
|
|
||||||
The removal plan below was executed in full and is verified in CI:
|
|
||||||
|
|
||||||
1. ✅ Canonical ER exposed as `POST /api/0pt/er/candidates` (public,
|
|
||||||
tenant-safed) AND `POST /api/0pt/internal/er/candidates` (service-token,
|
|
||||||
fails closed without `X-Internal-Token`).
|
|
||||||
2. ✅ Python CI job: `.gitea/workflows/python-engine.yml` runs
|
|
||||||
`services/api/tests` as a BLOCKING pytest gate.
|
|
||||||
3. ✅ `workers/resolve.py` rewritten as the HTTP adapter — fail-closed to
|
|
||||||
UNMERGED records when the bridge is unreachable; no fallback scorer
|
|
||||||
remains. Cluster-wide hard-negative constraints prevent transitive
|
|
||||||
matches from overriding canonical identity decisions.
|
|
||||||
4. ✅ `services/api/tests/test_resolve_determinism.py` asserts the adapter
|
|
||||||
contract: canonical match edges merge; review/non-match edges do not;
|
|
||||||
hard negatives are respected transitively.
|
|
||||||
|
|
||||||
Residual honesty: the PYTHON-side tests run in CI, but the full
|
|
||||||
adapter→Next.js route chain has not been exercised against a live deployed
|
|
||||||
edge in this branch (the route's own fail-closed behavior is unit-proven).
|
|
||||||
That keeps P065 at INTEGRATION_TESTED, not LIVE_VERIFIED.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## SLUTPRODUKTIONS-VERIFIERING 2026-09-22 (live-mätt, ej påstått)
|
|
||||||
|
|
||||||
**Prod: `https://0pt.app` på flottan (server6, Coolify-app `shxd6lepxuxfsjsp0ath3z1g`),
|
|
||||||
container-image på exakt merge-SHA `df6ab70` via den signerade release-kedjan
|
|
||||||
(cosign-attestation verifierad före redeploy). DNS A → 65.109.19.146,
|
|
||||||
NS chris/maxine.ns.cloudflare.com — Vercel är borta.**
|
|
||||||
|
|
||||||
### Live-matris, mätt med curl (2026-09-22 04:09 UTC)
|
|
||||||
|
|
||||||
| Yta | Resultat |
|
|
||||||
|---|---|
|
|
||||||
| Front `/` + 10 nyckelsidor (bestall, katalog, kallor, tjanster, portal, admin, order) | 200 ×11 |
|
|
||||||
| `/api/health` | 200 `{ok:true, db:"ok", engine:"ok"}` |
|
|
||||||
| `/api/ready` | 200 (fail-closed-grinden: var 503 före DB-provisioneringen) |
|
|
||||||
| `/api/0pt/*` (9 rutter) anonymt | **401 ×9** — S1-luckan (2026-08-07: anonym 200) är STÄNGD |
|
|
||||||
| `/api/orders`, `/api/admin/metrics` anonymt | 401 |
|
|
||||||
| `/api/subscriptions` | 200 `[]` (var 500: migration 014, se nedan) |
|
|
||||||
| `POST /api/estimates` | 200 (edge räknar + engine-wire) |
|
|
||||||
| `GET /api/catalog`, `/api/sources` | 200 (publika läsvyter, avsiktligt) |
|
|
||||||
| `GET /api/vehicles` utan param | 400 (kräver reg-nr — korrekt) |
|
|
||||||
| Security headers | HSTS(63072000+preload) · CSP · XFO DENY · nosniff · ingen X-Powered-By |
|
|
||||||
|
|
||||||
### Denna pass fixat (3 PR, alla mergerade + deployade live)
|
|
||||||
|
|
||||||
1. **PR #80** — G17 hook-pin re-bump `7725498 → a401880` (re-review: 0 diff under
|
|
||||||
`ci/v2/reference-hooks/`). Release chain + gated deploy gröna igen.
|
|
||||||
2. **PR #81 (fix för issue #53)**: 7 legacy money-routes (orders, orders/[id],
|
|
||||||
subscriptions, payments/deposit, payments/release, webhooks/stripe,
|
|
||||||
admin/metrics) mappar nu `SiaxError(DEPENDENCY_UNAVAILABLE, 503, retryable)`
|
|
||||||
via `app/api/siax-error-mapping.ts` i stället för att läcka Next opaka 500.
|
|
||||||
Stripe-webhooken svarar 503 `received:false reason:store_unavailable` på
|
|
||||||
store-outage — aldrig tyst `received:true` för ett betalt event som inte
|
|
||||||
processats. 3 nya tester pinar kontraktet.
|
|
||||||
3. **PR #86**: `sql/014_subscriptions_created_at.sql` — `lib/subscriptions-store.ts`
|
|
||||||
SELECT:ade `created_at` som `001_init.sql` aldrig definierat (42703 mätt live:
|
|
||||||
GET /api/subscriptions har ALWAYS varit 500 mot Postgres). Kolonnen ADD:ad
|
|
||||||
idempotent LIVE på 0pt-edge-postgres; route svarar nu 200 `[]`.
|
|
||||||
4. **PR #87**: cd-gatens not-ready-regex — cosign 3.1.3 säger
|
|
||||||
`no matching attestations:` (utan `found`); en transient not-ready misstolkades
|
|
||||||
som hårt verify-fel. Fail-closed för riktiga attestfel oförändrad.
|
|
||||||
5. **CI-infra reparerad**: repo-secrets `SIAX_CI_TOKEN` + `REGISTRY_TOKEN` var
|
|
||||||
döda efter token-svepet (2026-09-22 eng0-introspect-rotation revoade 107+ tokens;
|
|
||||||
fällan: 0pt:s repo-secret överrider org-secreten — org-PUT räcker inte). Nya
|
|
||||||
siax-ci-tokens (`write:package,read:package` + all) mintade och satta via
|
|
||||||
secrets-API (PUT 204, verifierade via lyckad release-kedja).
|
|
||||||
|
|
||||||
### 0pt-motor (engine, satellite)
|
|
||||||
|
|
||||||
- 6 containers Up på server6 (`motor-provisional`), core `/health` ok+pg+redis,
|
|
||||||
delivery `/version` = fb67870, core revision = 6cfd433 — båda IN main.
|
|
||||||
- CI grön på main (runs 55985/55987/56004) — healer-issue #38 (run 40562,
|
|
||||||
2026-09-20) stängd som transient runner-flake (apt-GPG under last).
|
|
||||||
- Bara `main` kvar i 0pt och 0pt-motor (8 + 6 stale grenar raderade — alla
|
|
||||||
bevisade redan mergerade via `git merge-base --is-ancestor`).
|
|
||||||
- motor/-executor-koden (signals/NER/normalization, 3507 rader nya sedan 6cfd433)
|
|
||||||
konsumeras av `Dockerfile.motor`-imaget som ännu inte har ett driftsatt runtime
|
|
||||||
i stacken (core/ingest/resolve/delivery importerar ej motor/ — verifierat
|
|
||||||
import-graf). Byggs enligt `scripts/build-images.sh` + `verify-image.sh`-gaten
|
|
||||||
när executor-ytan aktiveras — dokumenterat i `docs/runbook/deploy.md`.
|
|
||||||
|
|
||||||
### Kvarstår (ärligt, ej gömt)
|
|
||||||
|
|
||||||
1. **Stripe-creds** (Simon): live-keys → edge-envs `STRIPE_SECRET_KEY`/`STRIPE_WEBHOOK_SECRET`.
|
|
||||||
Innan dess förblir payments 501 och issue #67:s staging-triage kan ej köras.
|
|
||||||
2. **queue: not_configured** — ingen Redis i edge-stacken (ärligt rapporterat).
|
|
||||||
3. **`0pt.siax.io`/`motor.siax.io`**: medvetet ej återupprättade (0pt.app + lokala
|
|
||||||
127.0.0.1-portar är kanoniska ytor; issues #70/#35 stängda/avgjorda därefter).
|
|
||||||
4. **motor.siax.io**: motor:s publika yta kräver Simon-beslut (traefik-labels + DNS).
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
# SCAFFOLD-TODO — vad som är härlett och vad som måste verifieras
|
|
||||||
|
|
||||||
**Genererad:** 2026-11-10 av `siax-scaffold` (siax-standard,
|
|
||||||
`packages/scaffold`) mot Golden Standard v2.0.
|
|
||||||
|
|
||||||
Den här filen finns för att en mall inte får låtsas veta saker. Varje rad nedan
|
|
||||||
är antingen **härledd ur repot** (källan står i kolumn 3) eller ett
|
|
||||||
**konservativt defaultvärde** som en människa måste bekräfta. Radera raden när
|
|
||||||
den är verifierad — filen ska till slut kunna tas bort helt.
|
|
||||||
|
|
||||||
## Härledda värden i `siax.repo.json`
|
|
||||||
|
|
||||||
| Fält | Värde | Härlett ur |
|
|
||||||
|---|---|---|
|
|
||||||
| `repo` | `0PT` | befintlig `siax.repo.json` (VERSALER per REPO-08) |
|
|
||||||
| `codeowners` | `["@sax3l"]` | befintlig `siax.repo.json` |
|
|
||||||
| `category` | `platform` | befintlig `siax.repo.json` |
|
|
||||||
| `subcategory` | `data-os` | befintlig `siax.repo.json` |
|
|
||||||
| `operationalState` | `running` | befintlig `siax.repo.json` |
|
|
||||||
| `domains` | `2 st` | befintlig `siax.repo.json` |
|
|
||||||
| `children` | `4 st` | befintlig `siax.repo.json` |
|
|
||||||
| `packageName` | `@siax/0pt` | befintlig `siax.repo.json` |
|
|
||||||
|
|
||||||
## Måste verifieras av människa
|
|
||||||
|
|
||||||
- [ ] Rätta den BEFINTLIGA `siax.repo.json` — den validerar inte mot schemat (REPO-03/04) och scaffolden skriver inte över den (AR-1): (roten): obligatoriskt fält saknas: tier; (roten): obligatoriskt fält saknas: runtime; (roten): obligatoriskt fält saknas: canonical; (roten): obligatoriskt fält saknas: parentRepo; (roten): obligatoriskt fält saknas: capabilities; (roten): obligatoriskt fält saknas: surfaces; (roten): obligatoriskt fält saknas: identity; (roten): obligatoriskt fält saknas: persistence; (roten): obligatoriskt fält saknas: deployment; (roten): obligatoriskt fält saknas: observability; (roten): obligatoriskt fält saknas: reliability; (roten): obligatoriskt fält saknas: engines; (roten): obligatoriskt fält saknas: licenses; (roten): obligatoriskt fält saknas: productionEvidence; /standardVersion: måste vara "3.0", är "2.0"; (roten): okänt fält "codeowners" (additionalProperties: false); (roten): obligatoriskt fält saknas: canonical
|
|
||||||
|
|
||||||
## Kontroller som scaffolden AVSIKTLIGT lämnar röda
|
|
||||||
|
|
||||||
Inga — de tre fall den här sektionen annars varnar för (`appId` satt till `null`, ett genererat kontraktsskelett, ett nyskrivet `backup-restore.md` utan datum) gäller inte i denna körning. Se "Måste verifieras" ovan för vad som faktiskt återstår.
|
|
||||||
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
_Genererad av `siax-scaffold` (siax-standard). Varje `TODO:` i filen måste
|
|
||||||
fyllas i av en människa. Samlad lista: `docs/compliance/SCAFFOLD-TODO.md`._
|
|
||||||
@@ -1,87 +0,0 @@
|
|||||||
# 0pt — produktionsberedskap
|
|
||||||
|
|
||||||
> Standardiserad gap-analys enligt SIAX Master Definition of Done.
|
|
||||||
> Dokumentet är evidens, inte ett leveransgodkännande. Endast `PRODUCTION_READY` får kallas klart.
|
|
||||||
|
|
||||||
## Identitet
|
|
||||||
|
|
||||||
- Repo: `https://git.siax.io/admin/0pt.git`
|
|
||||||
- Manifest: `siax.repo.v3.json` — `0PT`, operationalState `running`
|
|
||||||
- Default branch: `main`
|
|
||||||
- Bedömd nivå: **LIVE_VERIFIED** (manifestets DoD-anspråk: ja)
|
|
||||||
- UI: ja — app, public
|
|
||||||
- CI-arbetsflöden: 9
|
|
||||||
|
|
||||||
## Git- och arbetsyteläge
|
|
||||||
|
|
||||||
- Aktuell branch: `main` — ahead 0 / behind 0
|
|
||||||
- Ocommittade filer: 0 · otrackade: 0
|
|
||||||
- Worktrees: 1
|
|
||||||
- Lokala grenar: 1 · remote: 17
|
|
||||||
|
|
||||||
## Livebevis (observerat 2026-11-10T03:05:09)
|
|
||||||
|
|
||||||
| Värd | HTTP | Klass | Titel | SIAX-tokens |
|
|
||||||
|---|---|---|---|---|
|
|
||||||
| `0pt.app` | 200 | public-ok | 0pt — your data | nej |
|
|
||||||
| `api.0pt.app` | 200 | public-ok | 0pt — your data | nej |
|
|
||||||
|
|
||||||
401/403 är förväntat för autentiserade ytor; det är inte ett produktionsfel.
|
|
||||||
0 betyder DNS/TLS/anslutning misslyckades och är alltid ett gap. SIAX-tokens avser markörer i serverad HTML; ett SPA-bygge kan bära dem i CSS/JS och då är kolumnen indikativ, inte bevis.
|
|
||||||
|
|
||||||
## Kod- och UI-signaler
|
|
||||||
|
|
||||||
- Trackade filer: 954
|
|
||||||
- Testfiler: 178 · E2E: 0 · Playwright: False · Cypress: False
|
|
||||||
- API-kontrakt: contracts/openapi.yaml
|
|
||||||
- Migrationer: 0 · Health-referenser: 69
|
|
||||||
- `@siax/ui`/tokens: True · a11y-verktyg: False · design-conformance: True
|
|
||||||
- UI-tillståndsfiler: app/error.tsx, app/not-found.tsx
|
|
||||||
- TODO/FIXME: 10
|
|
||||||
- Exempel:
|
|
||||||
- `.gitea/CODEOWNERS:10:# TODO: lägg till migrationskatalogen när den finns, t.ex.`
|
|
||||||
- `.gitea/workflows/cd.yml:15:# The placeholder guard below remains as a fail-closed guard, not as a TODO.`
|
|
||||||
- `.gitea/workflows/cd.yml:34: COOLIFY_APP_ID: ${{ vars.COOLIFY_APP_ID || 'TODO-no-coolify-app-provisioned-yet' }}`
|
|
||||||
- `.gitea/workflows/cd.yml:91: if [ "$COOLIFY_APP_ID" = "TODO-no-coolify-app-provisioned-yet" ]; then`
|
|
||||||
- `README.md:85: `TODO-no-coolify-app-provisioned-yet` literal. Both guard conditions in`
|
|
||||||
|
|
||||||
## Gap mot PRODUCTION_READY
|
|
||||||
|
|
||||||
- `NO_BACKUP_POLICY`
|
|
||||||
|
|
||||||
## Prioriterad backlogg
|
|
||||||
|
|
||||||
| Prio | Åtgärd | Konkret nästa steg |
|
|
||||||
|---|---|---|
|
|
||||||
| P1 | Backup | Definiera frekvens, retention, mål och kryptering i `siax.backup`. |
|
|
||||||
| P1 | E2E i webbläsare | Lägg Playwright-flöde för inloggning och kärnflöde mot riktig miljö. |
|
|
||||||
| P1 | Tillgänglighetsgrind | Aktivera eslint-plugin-jsx-a11y/axe och en blockerande WCAG 2.2-kontroll. |
|
|
||||||
| P2 | Statusdokument | Lägg `docs/STATUS.md` med nivå, bevis, kända gap och nästa steg. |
|
|
||||||
| P2 | Teknisk skuld | Prioritera bland 10 TODO/FIXME-markeringar; stäng eller gör dem spårbara som issues. |
|
|
||||||
|
|
||||||
## Checklista före PRODUCTION_READY
|
|
||||||
|
|
||||||
- [ ] Canonical owner och produktgräns dokumenterad
|
|
||||||
- [ ] Versionerat API-/eventkontrakt med drift-check
|
|
||||||
- [ ] Tenant-isolering verifierad med negativt test
|
|
||||||
- [ ] Observability: metrics, loggar, spårning och larm
|
|
||||||
- [ ] Backup och verkligt återställningstest
|
|
||||||
- [ ] Live-E2E med verklig konsument, inte mock
|
|
||||||
- [ ] Deployad commit-SHA och build-ID utlästa ur runtime
|
|
||||||
- [ ] UI/UX granskad mot DES1GN och WCAG 2.2 där UI finns
|
|
||||||
|
|
||||||
## Verifieringskommandon
|
|
||||||
|
|
||||||
```bash
|
|
||||||
mise run check && mise run verify && mise run build
|
|
||||||
siax-doctor design --repo . --fail-on=block
|
|
||||||
curl -fsS https://<prod-host>/health && curl -fsS https://<prod-host>/ready
|
|
||||||
```
|
|
||||||
|
|
||||||
## Standardreferenser
|
|
||||||
|
|
||||||
- `siax-standard/standard/MASTER-DEFINITION-OF-DONE.md`
|
|
||||||
- `siax-standard/standard/SIAX-REPO-OPERATIONS-CONTRACT.md`
|
|
||||||
- `siax-standard/standard/registry/REUSE_FIRST_POLICY.md`
|
|
||||||
|
|
||||||
_Genererad 2026-11-10T03:03:34 från git, manifest, kodsignaler och live-prober. Omgenereras av `scripts/estate-production-audit.py`._
|
|
||||||
@@ -103,5 +103,3 @@ psql -d opt < backup # eller: pg_restore -d opt opt-YYYY-MM-DD.dump
|
|||||||
1. Provisionera tillfällig Postgres (pgvector:pg16).
|
1. Provisionera tillfällig Postgres (pgvector:pg16).
|
||||||
2. `pg_restore` senaste dump. 3. Sätt `DATABASE_URL` i dev-instans.
|
2. `pg_restore` senaste dump. 3. Sätt `DATABASE_URL` i dev-instans.
|
||||||
4. Verifiera orderflöde + en källfråga. 5. Logga resultatet i `docs/compliance/EVIDENCE/`.
|
4. Verifiera orderflöde + en källfråga. 5. Logga resultatet i `docs/compliance/EVIDENCE/`.
|
||||||
|
|
||||||
**Senast bevisad restore: 2026-09-03** — P014-restoreövningen i docs/runbook/backup-restore.md avsnitt P014 (exekverad 2026-09-03): verklig backup -> isolerad engångstarget (pgvector/pgvector:pg16) -> restore, körd mot faktisk infrastruktur, inga persistenta artefakter kvarlämnade.
|
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
# Legacy instance audit — 0pt (server5) and L0RE (server5) — 2026-11-07
|
|
||||||
|
|
||||||
Canonical runtimes: **0pt on server6** (Coolify app `shxd6lepxuxfsjsp0ath3z1g`,
|
|
||||||
`0pt.app`) and **L0RE on server9** (`l0re.siax.io`). This document records the
|
|
||||||
older instances on server5 and their disposition. It is not production
|
|
||||||
documentation for either product.
|
|
||||||
|
|
||||||
## 1. 0pt legacy (server5)
|
|
||||||
|
|
||||||
| Item | Value |
|
|
||||||
|---|---|
|
|
||||||
| Containers | `0pt-api` (`0pt-api:c46ebbf`, created 2026-11-05), `0pt-web` (`:18080`) |
|
|
||||||
| Database | `0pt-pg`, user/db `opt`, 11 MB |
|
|
||||||
| Exposure | `0pt-web` only on `100.124.7.55:18080`; no DNS record, no reverse proxy |
|
|
||||||
| Consumers | none found (`/etc/siax`, `/opt/siax`, site0 and L0RE deploy configs) |
|
|
||||||
| Unique data | 32 canonical facts (30 GLEIF web observations + `body_type` YDL405 + `passmark.find_prime_numbers.v10`) |
|
|
||||||
|
|
||||||
**Data reconciliation:** all 32 facts were exported and re-imported through the
|
|
||||||
canonical API (`POST /api/0pt/canonical/facts`) into the server6 deployment.
|
|
||||||
Replay returned `duplicates: 32`, so the import is idempotent. Production now
|
|
||||||
holds 34 facts (32 migrated + 2 verification observations) and 4 entities.
|
|
||||||
|
|
||||||
**Backup:** `server5:/var/backups/0pt-legacy/opt_legacy_20261107.dump.zst`
|
|
||||||
(custom format, 32 KB) + offsite `server11:/home/backup/0pt/`.
|
|
||||||
|
|
||||||
**Action taken:** `docker update --restart=no` + `docker stop` for `0pt-api` and
|
|
||||||
`0pt-web`. `0pt-pg` left running for forensics/rollback. `0pt.app` verified 200
|
|
||||||
after the stop (served by server6).
|
|
||||||
|
|
||||||
**Full removal (requires owner decision):** snapshot/destroy `0pt-pg` volume
|
|
||||||
after the retention window, remove the legacy compose project, revoke the old
|
|
||||||
`INTERNAL_TOKEN` if it was ever stored on server5.
|
|
||||||
|
|
||||||
## 2. L0RE orphan (server5)
|
|
||||||
|
|
||||||
Documented separately in `admin/l0re` PR #485
|
|
||||||
(`docs/runbook/l0re-orphan-decommission-20261107.md`): API stopped with
|
|
||||||
`restart=no`, dump + restore proof (8 propositions/62 assertions), no unique
|
|
||||||
legitimate data (pilot facts already re-projected to production). `l0re-pg` and
|
|
||||||
`l0re-opensearch` remain for forensics.
|
|
||||||
|
|
||||||
## 3. Single-runtime rule
|
|
||||||
|
|
||||||
One primary runtime per logical service. A container image of a product running
|
|
||||||
outside its registered Coolify app is a finding, not a fallback. Both server5
|
|
||||||
instances were reachable only from the host, which is why the split survived
|
|
||||||
until this audit.
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
# 0pt workload identity — målbild, nuläge och övergång
|
|
||||||
|
|
||||||
Status: **design klar, provisionering blockerad** (2026-11-07).
|
|
||||||
Ägare: CL0UD (identitet) / 0pt (konsument).
|
|
||||||
|
|
||||||
## 1. Nuläge
|
|
||||||
|
|
||||||
0pt autentiserar maskin-till-maskin med en **delad hemlighet**:
|
|
||||||
|
|
||||||
- `X-Internal-Token` mot `INTERNAL_TOKEN` (samma värde i engine och edge).
|
|
||||||
- Tenant-auktoritet kommer från serverkonfigurationen `INTERNAL_SERVICE_TENANTS`
|
|
||||||
(se `src/auth/internal-service-tenant.ts`), aldrig från en klientheader.
|
|
||||||
- Tom allowlist ⇒ ingen tenant-auktoritet ⇒ tenant-scopade skrivningar 403.
|
|
||||||
|
|
||||||
Det här är säkert men grovkornigt: en enda hemlighet representerar hela
|
|
||||||
engine-processen, och varje ny konsument kräver en manuell allowlist-post.
|
|
||||||
|
|
||||||
## 2. Målbild (CL0UD workload identity)
|
|
||||||
|
|
||||||
CL0UD äger redan maskineriet:
|
|
||||||
|
|
||||||
- `POST /account/service-accounts` skapar en service account (identitet).
|
|
||||||
- `POST /account/service-accounts/{id}/workload-token` mints en **kortlivad**
|
|
||||||
(10 min default, 1 h max) workload-token vars `capabilities` är en delmängd av
|
|
||||||
service accountens `platform.cl0ud_service_account_scopes.allowedCapabilities`.
|
|
||||||
- `@siax/platform-core` `auth/workload.ts` är verifieringsadaptern; publika
|
|
||||||
nycklar via JWKS.
|
|
||||||
- `packages/capability-registry/src/workload-identities.ts` deklarerar
|
|
||||||
arbetsbelastningsnamn och `aud:*`-audiences. Modulen är uttryckligen **inte**
|
|
||||||
provisionerad och **inte** inkopplad i utfärdande eller verifiering än.
|
|
||||||
|
|
||||||
För 0pt innebär det:
|
|
||||||
|
|
||||||
| Egenskap | Idag | Mål |
|
|
||||||
|---|---|---|
|
|
||||||
| Credential | delad `INTERNAL_TOKEN` | CL0UD-workload-token, `aud:0pt`, 10 min |
|
|
||||||
| Tenant | serverkonfigurerad allowlist | `tenant_id`-claim i verifierad token |
|
|
||||||
| Capabilities | route-lista i middleware | `capabilities`-claim (t.ex. `0pt.canonical.write`) |
|
|
||||||
| Rotation | manuell | automatisk (kortlivad token) |
|
|
||||||
| Spårbarhet | delad hemlighet | per-arbetsbelastning (`0pt-engine`, `site0-pipeline`) |
|
|
||||||
|
|
||||||
## 3. Integrationsdesign (när provisionering är möjlig)
|
|
||||||
|
|
||||||
1. **Verifiering före route-logik.** Middleware accepterar
|
|
||||||
`Authorization: Bearer <workload-token>` för `INTERNAL_SERVICE_ROUTES` om
|
|
||||||
signaturen verifieras mot CL0UD JWKS, `aud` innehåller `0pt` och `exp` är
|
|
||||||
giltig. Ingen klientheader får bidra till tenant.
|
|
||||||
2. **Tenant från claim, inte från allowlist.** `tenant_id` i den verifierade
|
|
||||||
tokenen sätts som `x-0pt-verified-tenant`; `INTERNAL_SERVICE_TENANTS`
|
|
||||||
används endast för legacy `X-Internal-Token`.
|
|
||||||
3. **Capabilities per route.** Route-metadata (`0pt.canonical.write`,
|
|
||||||
`0pt.quality.run`) jämförs med tokenens `capabilities`. Saknad capability ⇒
|
|
||||||
403, inte 401 (identiteten är giltig, behörigheten räcker inte).
|
|
||||||
4. **Dual-accept under övergång.** Båda credentialtyperna accepteras tills
|
|
||||||
engine och site0-pipeline mintar workload-tokens; därefter tas
|
|
||||||
`X-Internal-Token` bort i en egen release med negativt test.
|
|
||||||
5. **Negativa tester i samma svit som idag**
|
|
||||||
(`tests/auth/internal-token-tenant-scope.test.ts`): fel `aud` ⇒ 401, utgången
|
|
||||||
token ⇒ 401, tenant utanför claim ⇒ 403, saknad capability ⇒ 403.
|
|
||||||
|
|
||||||
## 4. Blockerare
|
|
||||||
|
|
||||||
- `/account/service-accounts` svarar **307 → /login** utan operator-session;
|
|
||||||
ingen giltig `SIAX_TOKEN` finns i Infisical-miljön.
|
|
||||||
- Zitadel admin-PAT (`/opt/siax-access/zitadel-admin-pat`) är invalid
|
|
||||||
(AUTH-7fs1e), så nya machine users kan inte mintas via det flödet.
|
|
||||||
- `workload-identities.ts` är deklaration-only: ingen identitet är
|
|
||||||
`provisioned: true`.
|
|
||||||
|
|
||||||
Åtgärd kräver en operatörsinloggning i CL0UD-konsolen (eller en ny giltig
|
|
||||||
admin-PAT) och är därför **EXTERNALLY_BLOCKED** från agentsidan.
|
|
||||||
|
|
||||||
## 5. Vad som inte ska göras
|
|
||||||
|
|
||||||
- Ingen egen JWT-signering i 0pt.
|
|
||||||
- Ingen parallell identitetsplattform.
|
|
||||||
- Ingen klientheader som bär tenant.
|
|
||||||
- Ingen långlivad delad hemlighet som "tillfällig" lösning utan slutdatum.
|
|
||||||
+41
-104
@@ -1,26 +1,33 @@
|
|||||||
/**
|
/**
|
||||||
* Next.js auth seam for /api/0pt. Browser/user calls use verified bearer/session.
|
* Next.js auth seam for the complete /api/0pt capability surface.
|
||||||
* Explicit machine routes accept: (1) legacy X-Internal-Token + server-configured
|
*
|
||||||
* single-tenant scope, or (2) verified CL0UD workload JWT (tenant/capabilities
|
* Customer calls use verified Zitadel bearer identity and receive immutable
|
||||||
* from claims, never client headers). Deny by default.
|
* x-0pt-verified-* headers. Explicit machine routes may instead use the
|
||||||
|
* shared X-Internal-Token convention; mutation handlers verify it again for
|
||||||
|
* defence in depth. The canonical-fact write is one such explicit machine route.
|
||||||
*/
|
*/
|
||||||
import { NextResponse, type NextRequest } from 'next/server';
|
import { NextResponse, type NextRequest } from 'next/server';
|
||||||
import { assertAuthConfigSafe, resolveAuthContext } from '@/src/auth/context';
|
import { assertAuthConfigSafe, resolveAuthContext } from '@/src/auth/context';
|
||||||
import { SESSION_COOKIE, verifySession } from '@/lib/auth';
|
import { SESSION_COOKIE, verifySession } from '@/lib/auth';
|
||||||
import { verifyInternalServiceToken } from '@/src/auth/internal-token';
|
import { verifyInternalServiceToken } from '@/src/auth/internal-token';
|
||||||
import {
|
|
||||||
SERVICE_CAPABILITIES_HEADER,
|
|
||||||
SERVICE_TENANT_SCOPE_HEADER,
|
|
||||||
resolveInternalServiceTenants,
|
|
||||||
} from '@/src/auth/internal-service-tenant';
|
|
||||||
import { isCl0udWorkloadConfigured, looksLikeCl0udWorkloadToken, verifyCl0udWorkloadToken } from '@/src/auth/cl0ud-workload';
|
|
||||||
|
|
||||||
assertAuthConfigSafe();
|
assertAuthConfigSafe();
|
||||||
export const config = { matcher: ['/api/0pt', '/api/0pt/:path*'] };
|
|
||||||
|
|
||||||
const EXEMPT_PATTERNS: RegExp[] = [/^\/api\/health(\/|$)/, /^\/api\/ready(\/|$)/, /^\/api\/admin\/metrics(\/|$)/];
|
export const config = {
|
||||||
|
matcher: ['/api/0pt', '/api/0pt/:path*'],
|
||||||
|
};
|
||||||
|
|
||||||
|
const EXEMPT_PATTERNS: RegExp[] = [
|
||||||
|
/^\/api\/health(\/|$)/,
|
||||||
|
/^\/api\/ready(\/|$)/,
|
||||||
|
/^\/api\/admin\/metrics(\/|$)/,
|
||||||
|
];
|
||||||
|
|
||||||
|
/** Routes that may be reached with a service token instead of end-user bearer auth. */
|
||||||
const INTERNAL_SERVICE_ROUTES: RegExp[] = [
|
const INTERNAL_SERVICE_ROUTES: RegExp[] = [
|
||||||
/^\/api\/0pt\/quality\/bridge-run$/,
|
/^\/api\/0pt\/quality\/bridge-run$/,
|
||||||
|
// Acquisition engine -> 0pt canonical observation write (machine-to-machine,
|
||||||
|
// same X-Internal-Token class as the quality bridge; not a blanket bypass).
|
||||||
/^\/api\/0pt\/canonical\/facts$/,
|
/^\/api\/0pt\/canonical\/facts$/,
|
||||||
/^\/api\/0pt\/internal\/evidence-outbox\/dispatch$/,
|
/^\/api\/0pt\/internal\/evidence-outbox\/dispatch$/,
|
||||||
/^\/api\/0pt\/internal\/er\/candidates$/,
|
/^\/api\/0pt\/internal\/er\/candidates$/,
|
||||||
@@ -28,103 +35,27 @@ const INTERNAL_SERVICE_ROUTES: RegExp[] = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
let _authDiagCount = 0;
|
let _authDiagCount = 0;
|
||||||
let internalScopeWarned = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Headers that only middleware may set. Anything a client sends under these
|
|
||||||
* names is a forgery attempt and is removed before forwarding — including on
|
|
||||||
* the internal-token path, which previously passed the original header map
|
|
||||||
* through unchanged.
|
|
||||||
*/
|
|
||||||
const VERIFIED_HEADERS = [
|
|
||||||
'x-0pt-verified-tenant',
|
|
||||||
'x-0pt-verified-sub',
|
|
||||||
SERVICE_TENANT_SCOPE_HEADER,
|
|
||||||
SERVICE_CAPABILITIES_HEADER,
|
|
||||||
] as const;
|
|
||||||
|
|
||||||
function stripVerifiedHeaders(req: NextRequest): Headers {
|
|
||||||
const forwarded = new Headers(req.headers);
|
|
||||||
for (const name of VERIFIED_HEADERS) forwarded.delete(name);
|
|
||||||
return forwarded;
|
|
||||||
}
|
|
||||||
|
|
||||||
function bearerToken(req: NextRequest): string | null {
|
|
||||||
const h = req.headers.get('authorization');
|
|
||||||
if (!h?.toLowerCase().startsWith('bearer ')) return null;
|
|
||||||
return h.slice(7).trim() || null;
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function middleware(req: NextRequest): Promise<NextResponse> {
|
export async function middleware(req: NextRequest): Promise<NextResponse> {
|
||||||
const path = req.nextUrl.pathname;
|
const path = req.nextUrl.pathname;
|
||||||
if (EXEMPT_PATTERNS.some((re) => re.test(path))) return NextResponse.next();
|
if (EXEMPT_PATTERNS.some((re) => re.test(path))) return NextResponse.next();
|
||||||
|
|
||||||
if (INTERNAL_SERVICE_ROUTES.some((re) => re.test(path))) {
|
if (INTERNAL_SERVICE_ROUTES.some((re) => re.test(path)) && verifyInternalServiceToken(req.headers)) {
|
||||||
// (1) Legacy shared internal token (engine/n8n). Tenant authority is SERVER
|
return NextResponse.next();
|
||||||
// CONFIG (INTERNAL_SERVICE_TENANTS), never a client header: an inbound
|
|
||||||
// `X-0pt-Internal-Tenant` is ignored and stripped. With no configured
|
|
||||||
// tenants the principal has no tenant authority and tenant-scoped writes
|
|
||||||
// fail closed with 403.
|
|
||||||
if (verifyInternalServiceToken(req.headers)) {
|
|
||||||
const forwarded = stripVerifiedHeaders(req);
|
|
||||||
const tenants = resolveInternalServiceTenants();
|
|
||||||
if (tenants.length > 1) {
|
|
||||||
// The shared X-Internal-Token identifies ONE service process, not a set
|
|
||||||
// of independently authenticated principals. A multi-tenant allowlist
|
|
||||||
// would let any holder of that shared token choose between all listed
|
|
||||||
// tenants, which is exactly the client-controlled authority this guard
|
|
||||||
// exists to remove. Multi-tenant service access requires a verified
|
|
||||||
// workload-identity binding (CL0UD delegation contract); until that
|
|
||||||
// exists, an ambiguous configuration fails closed.
|
|
||||||
console.error(
|
|
||||||
'[0pt-auth] INTERNAL_SERVICE_TENANTS lists more than one tenant: refusing the internal request until workload-identity binding exists',
|
|
||||||
);
|
|
||||||
return NextResponse.json(
|
|
||||||
{
|
|
||||||
error: 'OPT_UNAUTHENTICATED',
|
|
||||||
message:
|
|
||||||
'internal service tenant scope is ambiguous: configure exactly one tenant until a verified workload-identity binding exists',
|
|
||||||
},
|
|
||||||
{ status: 401 },
|
|
||||||
);
|
|
||||||
}
|
|
||||||
forwarded.set(SERVICE_TENANT_SCOPE_HEADER, tenants.join(','));
|
|
||||||
if (tenants.length === 1) {
|
|
||||||
forwarded.set('x-0pt-verified-tenant', tenants[0]);
|
|
||||||
} else if (tenants.length === 0 && !internalScopeWarned) {
|
|
||||||
internalScopeWarned = true;
|
|
||||||
console.warn(
|
|
||||||
'[0pt-auth] INTERNAL_SERVICE_TENANTS is unset: the internal service principal has no tenant authority; tenant-scoped writes will be denied',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return NextResponse.next({ request: { headers: forwarded } });
|
|
||||||
}
|
|
||||||
|
|
||||||
// (2) CL0UD workload JWT (dual-accept): tenant and capabilities come from
|
|
||||||
// verified claims only. Attempted only when the issuer is configured or the
|
|
||||||
// presented token is issued by it; an invalid one is a 401, never a
|
|
||||||
// fall-through to an unauthenticated dev path.
|
|
||||||
const bt = bearerToken(req);
|
|
||||||
if (bt && (isCl0udWorkloadConfigured() || looksLikeCl0udWorkloadToken(bt))) {
|
|
||||||
try {
|
|
||||||
const principal = await verifyCl0udWorkloadToken(bt);
|
|
||||||
const forwarded = stripVerifiedHeaders(req);
|
|
||||||
forwarded.set('x-0pt-verified-sub', principal.sub);
|
|
||||||
forwarded.set('x-0pt-verified-tenant', principal.tenantId);
|
|
||||||
forwarded.set(SERVICE_CAPABILITIES_HEADER, principal.capabilities.join(','));
|
|
||||||
return NextResponse.next({ request: { headers: forwarded } });
|
|
||||||
} catch (err) {
|
|
||||||
const message = err instanceof Error ? err.message : 'workload token verification failed';
|
|
||||||
return NextResponse.json({ error: 'OPT_UNAUTHENTICATED', message }, { status: 401 });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_authDiagCount < 5) {
|
if (_authDiagCount < 5) {
|
||||||
_authDiagCount += 1;
|
_authDiagCount += 1;
|
||||||
console.log(`[0pt-auth] middleware path=${path} auth_header=${!!req.headers.get('authorization')} auth_enforce=${process.env.AUTH_ENFORCE ?? 'unset'} request#${_authDiagCount}`);
|
const hasAuth = !!req.headers.get('authorization');
|
||||||
|
console.log(
|
||||||
|
`[0pt-auth] middleware path=${path} auth_header=${hasAuth} ` +
|
||||||
|
`auth_enforce=${process.env.AUTH_ENFORCE ?? 'unset'} ` +
|
||||||
|
`node_env=${process.env.NODE_ENV ?? 'unset'} request#${_authDiagCount}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Browser sessions (Zitadel OIDC -> signed cookie) are a first-class
|
||||||
|
// principal for the portal. A Bearer token always wins when present.
|
||||||
if (!req.headers.get('authorization')) {
|
if (!req.headers.get('authorization')) {
|
||||||
const session = await verifySession(req.cookies.get(SESSION_COOKIE)?.value);
|
const session = await verifySession(req.cookies.get(SESSION_COOKIE)?.value);
|
||||||
if (
|
if (
|
||||||
@@ -134,7 +65,7 @@ export async function middleware(req: NextRequest): Promise<NextResponse> {
|
|||||||
typeof session.exp === 'number' &&
|
typeof session.exp === 'number' &&
|
||||||
session.exp > Date.now()
|
session.exp > Date.now()
|
||||||
) {
|
) {
|
||||||
const forwarded = stripVerifiedHeaders(req);
|
const forwarded = new Headers(req.headers);
|
||||||
forwarded.set('x-0pt-verified-sub', session.sub);
|
forwarded.set('x-0pt-verified-sub', session.sub);
|
||||||
forwarded.set('x-0pt-verified-tenant', session.tenantId);
|
forwarded.set('x-0pt-verified-tenant', session.tenantId);
|
||||||
return NextResponse.next({ request: { headers: forwarded } });
|
return NextResponse.next({ request: { headers: forwarded } });
|
||||||
@@ -143,17 +74,23 @@ export async function middleware(req: NextRequest): Promise<NextResponse> {
|
|||||||
|
|
||||||
const decision = await resolveAuthContext(req.headers);
|
const decision = await resolveAuthContext(req.headers);
|
||||||
if (!decision.ok) {
|
if (!decision.ok) {
|
||||||
return NextResponse.json({ error: decision.code, message: decision.message, ...(decision.details ? { details: decision.details } : {}) }, { status: decision.status });
|
return NextResponse.json(
|
||||||
|
{
|
||||||
|
error: decision.code,
|
||||||
|
message: decision.message,
|
||||||
|
...(decision.details ? { details: decision.details } : {}),
|
||||||
|
},
|
||||||
|
{ status: decision.status },
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const principal = decision.ctx.principal;
|
const principal = decision.ctx.principal;
|
||||||
if (principal) {
|
if (principal) {
|
||||||
const forwarded = stripVerifiedHeaders(req);
|
const forwarded = new Headers(req.headers);
|
||||||
forwarded.set('x-0pt-verified-sub', principal.sub);
|
forwarded.set('x-0pt-verified-sub', principal.sub);
|
||||||
forwarded.set('x-0pt-verified-tenant', principal.tenantId);
|
forwarded.set('x-0pt-verified-tenant', principal.tenantId);
|
||||||
return NextResponse.next({ request: { headers: forwarded } });
|
return NextResponse.next({ request: { headers: forwarded } });
|
||||||
}
|
}
|
||||||
|
|
||||||
// No verified principal (explicit AUTH_ENFORCE=false development mode).
|
return NextResponse.next();
|
||||||
// Never forward a client-named verified header, even in dev.
|
|
||||||
return NextResponse.next({ request: { headers: stripVerifiedHeaders(req) } });
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,6 @@ const securityHeaders = [
|
|||||||
// DENY, not SAMEORIGIN: nothing in this app frames itself.
|
// DENY, not SAMEORIGIN: nothing in this app frames itself.
|
||||||
{ key: "X-Frame-Options", value: "DENY" },
|
{ key: "X-Frame-Options", value: "DENY" },
|
||||||
{ key: "X-Content-Type-Options", value: "nosniff" },
|
{ 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: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
|
||||||
{ key: "Permissions-Policy", value: "camera=(), microphone=(), geolocation=(), payment=(), usb=()" },
|
{ key: "Permissions-Policy", value: "camera=(), microphone=(), geolocation=(), payment=(), usb=()" },
|
||||||
{ key: "Content-Security-Policy", value: csp },
|
{ key: "Content-Security-Policy", value: csp },
|
||||||
|
|||||||
+4
-6
@@ -70,7 +70,7 @@
|
|||||||
"input-otp": "1.4.1",
|
"input-otp": "1.4.1",
|
||||||
"jose": "^5.9.6",
|
"jose": "^5.9.6",
|
||||||
"lucide-react": "^0.454.0",
|
"lucide-react": "^0.454.0",
|
||||||
"next": "16.4.5",
|
"next": "16.4.1",
|
||||||
"next-themes": "^0.4.6",
|
"next-themes": "^0.4.6",
|
||||||
"postgres": "^3.4.9",
|
"postgres": "^3.4.9",
|
||||||
"react": "19.2.8",
|
"react": "19.2.8",
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
"tailwind-merge": "^3.3.1",
|
"tailwind-merge": "^3.3.1",
|
||||||
"tailwindcss-animate": "^1.0.7",
|
"tailwindcss-animate": "^1.0.7",
|
||||||
"vaul": "^1.1.2",
|
"vaul": "^1.1.2",
|
||||||
"zod": "4.6.6"
|
"zod": "3.25.76"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.15.0",
|
"@eslint/js": "^9.15.0",
|
||||||
@@ -100,14 +100,12 @@
|
|||||||
"tw-animate-css": "1.4.0",
|
"tw-animate-css": "1.4.0",
|
||||||
"typescript": "^5",
|
"typescript": "^5",
|
||||||
"typescript-eslint": "^8.15.0",
|
"typescript-eslint": "^8.15.0",
|
||||||
"vitest": "^4.1.12"
|
"vitest": "^3.2.7"
|
||||||
},
|
},
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"sharp@<0.35.5": "0.35.5",
|
"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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,121 +0,0 @@
|
|||||||
/**
|
|
||||||
* @siax/access idempotency primitives — the universal SIAX contract for any
|
|
||||||
* operation that must either happen exactly once or replay its receipt.
|
|
||||||
*
|
|
||||||
* This package is derived from the pattern proven in 0pt's durable upload
|
|
||||||
* attempts (prepare -> claim -> dispatch -> store receipt -> replay), then
|
|
||||||
* generalized so DOC0, N0D and future products can adopt the identical shape
|
|
||||||
* instead of re-implementing it.
|
|
||||||
*
|
|
||||||
* Rules encoded here:
|
|
||||||
* 1. An operation identity binds EVERY result-affecting input (tenant,
|
|
||||||
* project, actor, payload version). A changed payload under the same key
|
|
||||||
* is a CONFLICT, never a replay of someone else's receipt.
|
|
||||||
* 2. One claimant per key: returning `false` from `start` means another
|
|
||||||
* caller owns the dispatch, and only the stored receipt (or bounded
|
|
||||||
* observation) may be answered.
|
|
||||||
* 3. A stored receipt is replayed verbatim; the caller never invents one.
|
|
||||||
* 4. Commit boundaries: NEVER write a network command before the claim is
|
|
||||||
* durably persisted, and never lose the claim after the command may have
|
|
||||||
* committed.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { createHash } from "node:crypto";
|
|
||||||
|
|
||||||
/** Stable JSON canonicalization (sorted array stays sorted; v-prefix bumped on contract change). */
|
|
||||||
export function operationFingerprint(parts: readonly unknown[], version = "siax-idempotency-v1"): string {
|
|
||||||
return createHash("sha256")
|
|
||||||
.update(JSON.stringify([version, ...parts]))
|
|
||||||
.digest("hex");
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface OperationIdentity {
|
|
||||||
tenantId: string;
|
|
||||||
projectId: string;
|
|
||||||
actorId: string;
|
|
||||||
/** Client-generated, transport-level key (<=256 visible ASCII). */
|
|
||||||
idempotencyKey: string;
|
|
||||||
/** Supply result-affecting inputs; the helper adds the scope fields itself. */
|
|
||||||
payload: readonly unknown[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export function operationIdentity(operation: OperationIdentity): {
|
|
||||||
tenantId: string;
|
|
||||||
projectId: string;
|
|
||||||
actorId: string;
|
|
||||||
idempotencyKey: string;
|
|
||||||
fingerprint: string;
|
|
||||||
} {
|
|
||||||
if (
|
|
||||||
!operation ||
|
|
||||||
![operation.tenantId, operation.projectId, operation.actorId, operation.idempotencyKey].every(
|
|
||||||
(value) => typeof value === "string" && /^[A-Za-z0-9][A-Za-z0-9._@:+-]{0,255}$/.test(value),
|
|
||||||
) ||
|
|
||||||
!Array.isArray(operation.payload)
|
|
||||||
) {
|
|
||||||
throw new Error("Invalid idempotent operation identity");
|
|
||||||
}
|
|
||||||
void operation.payload;
|
|
||||||
return {
|
|
||||||
tenantId: operation.tenantId,
|
|
||||||
projectId: operation.projectId,
|
|
||||||
actorId: operation.actorId,
|
|
||||||
idempotencyKey: operation.idempotencyKey,
|
|
||||||
fingerprint: operationFingerprint([
|
|
||||||
operation.tenantId,
|
|
||||||
operation.projectId,
|
|
||||||
operation.actorId,
|
|
||||||
...operation.payload,
|
|
||||||
]),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export type OperationOutcome<R> =
|
|
||||||
| { kind: "claimed"; execute: () => Promise<R> }
|
|
||||||
| { kind: "replayed"; receipt: R }
|
|
||||||
| { kind: "conflict"; expected?: string };
|
|
||||||
|
|
||||||
/** Structural contract for an attempt store. Matched by Postgres adapters per product. */
|
|
||||||
export interface IdempotencyStore<Identity, Receipt> {
|
|
||||||
/** Returns true when this caller won the right to dispatch; false = reuse replay path. */
|
|
||||||
start(identity: Identity, fingerprint: string): Promise<boolean>;
|
|
||||||
/** Persist after a verified downstream commit. Must never be called before. */
|
|
||||||
save(identity: Identity, fingerprint: string, receipt: Receipt): Promise<void>;
|
|
||||||
/** Load a stored receipt for replay (exact fingerprint match). */
|
|
||||||
receipt(identity: Identity, fingerprint: string): Promise<Receipt | undefined>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type IdempotentStoreItemIdentity<I> = {
|
|
||||||
identity: I;
|
|
||||||
fingerprint: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export async function runIdempotentOperation<I, R>(input: {
|
|
||||||
store: IdempotencyStore<I, R>;
|
|
||||||
identity: I;
|
|
||||||
fingerprint: string;
|
|
||||||
/** Must be safe to call exactly once; a second call is never attempted here. */
|
|
||||||
dispatch: () => Promise<R>;
|
|
||||||
}): Promise<OperationOutcome<R>> {
|
|
||||||
if (typeof input.dispatch !== "function") throw new Error("Dispatch is required");
|
|
||||||
try {
|
|
||||||
const won = await input.store.start(input.identity, input.fingerprint);
|
|
||||||
if (!won) {
|
|
||||||
const stored = await input.store.receipt(input.identity, input.fingerprint);
|
|
||||||
return stored !== undefined
|
|
||||||
? { kind: "replayed", receipt: stored }
|
|
||||||
: { kind: "replayed", receipt: undefined as unknown as R };
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
return { kind: "conflict", expected: error instanceof Error ? error.message : "store_unavailable" };
|
|
||||||
}
|
|
||||||
const receipt = await input.dispatch();
|
|
||||||
try {
|
|
||||||
await input.store.save(input.identity, input.fingerprint, receipt);
|
|
||||||
} catch {
|
|
||||||
/* The downstream commit is real; a journal-write failure must not turn a
|
|
||||||
real receipt into an error. The next retry replays via the stored receipt
|
|
||||||
if the save ever succeeds before a downstream resend. */
|
|
||||||
}
|
|
||||||
return { kind: "claimed", execute: async () => receipt };
|
|
||||||
}
|
|
||||||
@@ -1,2 +1,235 @@
|
|||||||
export * from './relationships';
|
/**
|
||||||
export * from './idempotency';
|
* @siax/access — universal project/tenant relationship checks for SIAX Cloud.
|
||||||
|
*
|
||||||
|
* This is the reusable extraction of the pattern first proven in DOC0's
|
||||||
|
* `src/clients/project-relationships.ts`. It is deliberately framework-neutral
|
||||||
|
* (no Next.js, Fastify, Prisma or product types) so every SIAX product can
|
||||||
|
* consume the exact same authorization primitive instead of copying it:
|
||||||
|
*
|
||||||
|
* 0pt — document upload + structuring scope
|
||||||
|
* DOC0 — document/version/signature scope
|
||||||
|
* N0D — job submission scope
|
||||||
|
* any app — tenant/project membership
|
||||||
|
*
|
||||||
|
* IMPORTANT: a relationship match is ONE input to authorization, never a
|
||||||
|
* complete decision. The caller must independently bind tenant and actor to a
|
||||||
|
* verified principal (never to request headers), enforce tenant/project
|
||||||
|
* status, capability, data-handling policy and an authoritative tuple
|
||||||
|
* lifecycle. `resolveRelationship` fails closed: only an explicit
|
||||||
|
* `relationships_match` is treated as allowed.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type RelationshipResult = 'allowed' | 'denied' | 'unavailable';
|
||||||
|
|
||||||
|
/** The outcome of the composite project check. */
|
||||||
|
export type ProjectRelationshipResult = 'relationships_match' | 'denied' | 'unavailable';
|
||||||
|
|
||||||
|
export interface ProjectRelationshipScope {
|
||||||
|
tenantId: string;
|
||||||
|
projectId: string;
|
||||||
|
actorId: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const objectId = /^[A-Za-z0-9][A-Za-z0-9._@+-]{0,127}$/;
|
||||||
|
const ulid = /^[0-9A-HJKMNP-TV-Z]{26}$/;
|
||||||
|
const maxResponseBytes = 16 * 1024;
|
||||||
|
|
||||||
|
export interface OpenFgaRelationshipsOptions {
|
||||||
|
baseUrl: string;
|
||||||
|
storeId: string;
|
||||||
|
modelId: string;
|
||||||
|
serviceToken: string;
|
||||||
|
timeoutMs?: number;
|
||||||
|
fetchImpl?: typeof fetch;
|
||||||
|
/** Explicit test-only opt-in for an isolated loopback OpenFGA process. */
|
||||||
|
testOnlyAllowLoopbackHttp?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read-only OpenFGA relationship reader. Never writes tuples, never caches,
|
||||||
|
* and never retries: an unavailable authorization source must stay visible to
|
||||||
|
* the caller so it can fail closed.
|
||||||
|
*/
|
||||||
|
export class OpenFgaRelationships {
|
||||||
|
private readonly baseUrl: string;
|
||||||
|
private readonly fetchImpl: typeof fetch;
|
||||||
|
private readonly storeId: string;
|
||||||
|
private readonly modelId: string;
|
||||||
|
private readonly serviceToken: string;
|
||||||
|
private readonly timeoutMs: number;
|
||||||
|
|
||||||
|
constructor(options: OpenFgaRelationshipsOptions) {
|
||||||
|
const url = new URL(options.baseUrl);
|
||||||
|
const loopbackTest =
|
||||||
|
process.env.NODE_ENV === 'test' &&
|
||||||
|
options.testOnlyAllowLoopbackHttp === true &&
|
||||||
|
url.protocol === 'http:' &&
|
||||||
|
url.hostname === '127.0.0.1';
|
||||||
|
if (
|
||||||
|
(!loopbackTest && url.protocol !== 'https:') ||
|
||||||
|
url.username ||
|
||||||
|
url.password ||
|
||||||
|
url.search ||
|
||||||
|
url.hash ||
|
||||||
|
typeof options.storeId !== 'string' ||
|
||||||
|
typeof options.modelId !== 'string' ||
|
||||||
|
!ulid.test(options.storeId) ||
|
||||||
|
!ulid.test(options.modelId) ||
|
||||||
|
typeof options.serviceToken !== 'string' ||
|
||||||
|
!/^[\x21-\x7e]{1,8192}$/.test(options.serviceToken) ||
|
||||||
|
(options.timeoutMs !== undefined &&
|
||||||
|
(!Number.isSafeInteger(options.timeoutMs) || options.timeoutMs < 100 || options.timeoutMs > 30_000))
|
||||||
|
) {
|
||||||
|
throw new Error('Invalid trusted OpenFGA configuration');
|
||||||
|
}
|
||||||
|
this.baseUrl = url.toString().replace(/\/+$/, '');
|
||||||
|
this.fetchImpl = options.fetchImpl ?? fetch;
|
||||||
|
this.storeId = options.storeId;
|
||||||
|
this.modelId = options.modelId;
|
||||||
|
this.serviceToken = options.serviceToken;
|
||||||
|
this.timeoutMs = options.timeoutMs ?? 5_000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Both checks are necessary: project membership alone may inherit from a
|
||||||
|
* different parent tenant if bad tuples associate a project with two
|
||||||
|
* tenants. Returns `relationships_match` only when both hold.
|
||||||
|
*/
|
||||||
|
async checkProject(scope: ProjectRelationshipScope): Promise<ProjectRelationshipResult> {
|
||||||
|
if (!scope || typeof scope !== 'object' || Array.isArray(scope)) {
|
||||||
|
return 'denied';
|
||||||
|
}
|
||||||
|
const { tenantId, projectId, actorId } = scope;
|
||||||
|
if (![tenantId, projectId, actorId].every((value) => typeof value === 'string' && objectId.test(value))) {
|
||||||
|
return 'denied';
|
||||||
|
}
|
||||||
|
const actor = await this.checkTuple(`user:${actorId}`, 'member', `tenant:${tenantId}`);
|
||||||
|
if (actor !== 'allowed') return actor === 'denied' ? 'denied' : 'unavailable';
|
||||||
|
const parent = await this.checkTuple(`tenant:${tenantId}`, 'tenant', `project:${projectId}`);
|
||||||
|
return parent === 'allowed' ? 'relationships_match' : parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** One raw relationship check. Public so products can map their own tuples. */
|
||||||
|
async checkTuple(user: string, relation: string, object: string): Promise<RelationshipResult> {
|
||||||
|
if (
|
||||||
|
![user, relation, object].every(
|
||||||
|
(value) => typeof value === 'string' && value.length > 0 && value.length <= 256,
|
||||||
|
)
|
||||||
|
) {
|
||||||
|
return 'denied';
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
const response = await this.fetchImpl(`${this.baseUrl}/stores/${this.storeId}/check`, {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
authorization: `Bearer ${this.serviceToken}`,
|
||||||
|
'content-type': 'application/json',
|
||||||
|
},
|
||||||
|
body: JSON.stringify({
|
||||||
|
authorization_model_id: this.modelId,
|
||||||
|
consistency: 'HIGHER_CONSISTENCY',
|
||||||
|
tuple_key: { user, relation, object },
|
||||||
|
}),
|
||||||
|
redirect: 'error',
|
||||||
|
signal: AbortSignal.timeout(this.timeoutMs),
|
||||||
|
});
|
||||||
|
if (!response.ok || !response.body) return 'unavailable';
|
||||||
|
const reader = response.body.getReader();
|
||||||
|
try {
|
||||||
|
const chunks: Uint8Array[] = [];
|
||||||
|
let total = 0;
|
||||||
|
for (;;) {
|
||||||
|
const part = await reader.read();
|
||||||
|
if (part.done) break;
|
||||||
|
total += part.value.byteLength;
|
||||||
|
if (total > maxResponseBytes) {
|
||||||
|
void reader.cancel().catch(() => undefined);
|
||||||
|
return 'unavailable';
|
||||||
|
}
|
||||||
|
chunks.push(part.value);
|
||||||
|
}
|
||||||
|
const result: unknown = JSON.parse(
|
||||||
|
new TextDecoder('utf-8', { fatal: true }).decode(Buffer.concat(chunks)),
|
||||||
|
);
|
||||||
|
if (
|
||||||
|
!result ||
|
||||||
|
typeof result !== 'object' ||
|
||||||
|
Array.isArray(result) ||
|
||||||
|
typeof (result as { allowed?: unknown }).allowed !== 'boolean'
|
||||||
|
) {
|
||||||
|
return 'unavailable';
|
||||||
|
}
|
||||||
|
return (result as { allowed: boolean }).allowed ? 'allowed' : 'denied';
|
||||||
|
} finally {
|
||||||
|
reader.releaseLock();
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
return 'unavailable';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Canonical environment variable names used across the fleet. Reads are
|
||||||
|
* explicit (no implicit defaults) so a missing value is visible.
|
||||||
|
*/
|
||||||
|
export const OPENFGA_ENV = {
|
||||||
|
baseUrl: 'OPENFGA_API_URL',
|
||||||
|
storeId: 'OPENFGA_STORE_ID',
|
||||||
|
modelId: 'OPENFGA_MODEL_ID',
|
||||||
|
serviceToken: 'OPENFGA_AUTH_TOKEN',
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export interface ProjectAccessOptions {
|
||||||
|
/** The already-configured relationship reader, or undefined when OpenFGA is not configured. */
|
||||||
|
relationships?: OpenFgaRelationships;
|
||||||
|
/**
|
||||||
|
* Optional extra policy (project status, capability, data-handling). It runs
|
||||||
|
* only after the relationship check matched; a rejection is final.
|
||||||
|
*/
|
||||||
|
additionalPolicy?: (scope: ProjectRelationshipScope) => Promise<boolean> | boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Fail closed: only an explicit match with no policy objection is allowed. */
|
||||||
|
export async function isProjectAccessAllowed(
|
||||||
|
scope: ProjectRelationshipScope,
|
||||||
|
options: ProjectAccessOptions,
|
||||||
|
): Promise<boolean> {
|
||||||
|
if (!options.relationships) return false;
|
||||||
|
const result = await options.relationships.checkProject(scope);
|
||||||
|
if (result !== 'relationships_match') return false;
|
||||||
|
if (options.additionalPolicy) {
|
||||||
|
try {
|
||||||
|
return (await options.additionalPolicy(scope)) === true;
|
||||||
|
} catch {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build a relationship reader from a `NodeJS.ProcessEnv`-shaped object.
|
||||||
|
* Returns `undefined` (fail closed) when any value is missing or invalid.
|
||||||
|
*/
|
||||||
|
export function openFgaFromEnv(
|
||||||
|
env: NodeJS.ProcessEnv = process.env,
|
||||||
|
fetchImpl?: typeof fetch,
|
||||||
|
): OpenFgaRelationships | undefined {
|
||||||
|
const baseUrl = env[OPENFGA_ENV.baseUrl];
|
||||||
|
const storeId = env[OPENFGA_ENV.storeId];
|
||||||
|
const modelId = env[OPENFGA_ENV.modelId];
|
||||||
|
const serviceToken = env[OPENFGA_ENV.serviceToken];
|
||||||
|
if (!baseUrl || !storeId || !modelId || !serviceToken) return undefined;
|
||||||
|
try {
|
||||||
|
return new OpenFgaRelationships({
|
||||||
|
baseUrl,
|
||||||
|
storeId,
|
||||||
|
modelId,
|
||||||
|
serviceToken,
|
||||||
|
...(fetchImpl ? { fetchImpl } : {}),
|
||||||
|
});
|
||||||
|
} catch {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,235 +0,0 @@
|
|||||||
/**
|
|
||||||
* @siax/access — universal project/tenant relationship checks for SIAX Cloud.
|
|
||||||
*
|
|
||||||
* This is the reusable extraction of the pattern first proven in DOC0's
|
|
||||||
* `src/clients/project-relationships.ts`. It is deliberately framework-neutral
|
|
||||||
* (no Next.js, Fastify, Prisma or product types) so every SIAX product can
|
|
||||||
* consume the exact same authorization primitive instead of copying it:
|
|
||||||
*
|
|
||||||
* 0pt — document upload + structuring scope
|
|
||||||
* DOC0 — document/version/signature scope
|
|
||||||
* N0D — job submission scope
|
|
||||||
* any app — tenant/project membership
|
|
||||||
*
|
|
||||||
* IMPORTANT: a relationship match is ONE input to authorization, never a
|
|
||||||
* complete decision. The caller must independently bind tenant and actor to a
|
|
||||||
* verified principal (never to request headers), enforce tenant/project
|
|
||||||
* status, capability, data-handling policy and an authoritative tuple
|
|
||||||
* lifecycle. `resolveRelationship` fails closed: only an explicit
|
|
||||||
* `relationships_match` is treated as allowed.
|
|
||||||
*/
|
|
||||||
|
|
||||||
export type RelationshipResult = 'allowed' | 'denied' | 'unavailable';
|
|
||||||
|
|
||||||
/** The outcome of the composite project check. */
|
|
||||||
export type ProjectRelationshipResult = 'relationships_match' | 'denied' | 'unavailable';
|
|
||||||
|
|
||||||
export interface ProjectRelationshipScope {
|
|
||||||
tenantId: string;
|
|
||||||
projectId: string;
|
|
||||||
actorId: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
const objectId = /^[A-Za-z0-9][A-Za-z0-9._@+-]{0,127}$/;
|
|
||||||
const ulid = /^[0-9A-HJKMNP-TV-Z]{26}$/;
|
|
||||||
const maxResponseBytes = 16 * 1024;
|
|
||||||
|
|
||||||
export interface OpenFgaRelationshipsOptions {
|
|
||||||
baseUrl: string;
|
|
||||||
storeId: string;
|
|
||||||
modelId: string;
|
|
||||||
serviceToken: string;
|
|
||||||
timeoutMs?: number;
|
|
||||||
fetchImpl?: typeof fetch;
|
|
||||||
/** Explicit test-only opt-in for an isolated loopback OpenFGA process. */
|
|
||||||
testOnlyAllowLoopbackHttp?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Read-only OpenFGA relationship reader. Never writes tuples, never caches,
|
|
||||||
* and never retries: an unavailable authorization source must stay visible to
|
|
||||||
* the caller so it can fail closed.
|
|
||||||
*/
|
|
||||||
export class OpenFgaRelationships {
|
|
||||||
private readonly baseUrl: string;
|
|
||||||
private readonly fetchImpl: typeof fetch;
|
|
||||||
private readonly storeId: string;
|
|
||||||
private readonly modelId: string;
|
|
||||||
private readonly serviceToken: string;
|
|
||||||
private readonly timeoutMs: number;
|
|
||||||
|
|
||||||
constructor(options: OpenFgaRelationshipsOptions) {
|
|
||||||
const url = new URL(options.baseUrl);
|
|
||||||
const loopbackTest =
|
|
||||||
process.env.NODE_ENV === 'test' &&
|
|
||||||
options.testOnlyAllowLoopbackHttp === true &&
|
|
||||||
url.protocol === 'http:' &&
|
|
||||||
url.hostname === '127.0.0.1';
|
|
||||||
if (
|
|
||||||
(!loopbackTest && url.protocol !== 'https:') ||
|
|
||||||
url.username ||
|
|
||||||
url.password ||
|
|
||||||
url.search ||
|
|
||||||
url.hash ||
|
|
||||||
typeof options.storeId !== 'string' ||
|
|
||||||
typeof options.modelId !== 'string' ||
|
|
||||||
!ulid.test(options.storeId) ||
|
|
||||||
!ulid.test(options.modelId) ||
|
|
||||||
typeof options.serviceToken !== 'string' ||
|
|
||||||
!/^[\x21-\x7e]{1,8192}$/.test(options.serviceToken) ||
|
|
||||||
(options.timeoutMs !== undefined &&
|
|
||||||
(!Number.isSafeInteger(options.timeoutMs) || options.timeoutMs < 100 || options.timeoutMs > 30_000))
|
|
||||||
) {
|
|
||||||
throw new Error('Invalid trusted OpenFGA configuration');
|
|
||||||
}
|
|
||||||
this.baseUrl = url.toString().replace(/\/+$/, '');
|
|
||||||
this.fetchImpl = options.fetchImpl ?? fetch;
|
|
||||||
this.storeId = options.storeId;
|
|
||||||
this.modelId = options.modelId;
|
|
||||||
this.serviceToken = options.serviceToken;
|
|
||||||
this.timeoutMs = options.timeoutMs ?? 5_000;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Both checks are necessary: project membership alone may inherit from a
|
|
||||||
* different parent tenant if bad tuples associate a project with two
|
|
||||||
* tenants. Returns `relationships_match` only when both hold.
|
|
||||||
*/
|
|
||||||
async checkProject(scope: ProjectRelationshipScope): Promise<ProjectRelationshipResult> {
|
|
||||||
if (!scope || typeof scope !== 'object' || Array.isArray(scope)) {
|
|
||||||
return 'denied';
|
|
||||||
}
|
|
||||||
const { tenantId, projectId, actorId } = scope;
|
|
||||||
if (![tenantId, projectId, actorId].every((value) => typeof value === 'string' && objectId.test(value))) {
|
|
||||||
return 'denied';
|
|
||||||
}
|
|
||||||
const actor = await this.checkTuple(`user:${actorId}`, 'member', `tenant:${tenantId}`);
|
|
||||||
if (actor !== 'allowed') return actor === 'denied' ? 'denied' : 'unavailable';
|
|
||||||
const parent = await this.checkTuple(`tenant:${tenantId}`, 'tenant', `project:${projectId}`);
|
|
||||||
return parent === 'allowed' ? 'relationships_match' : parent;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** One raw relationship check. Public so products can map their own tuples. */
|
|
||||||
async checkTuple(user: string, relation: string, object: string): Promise<RelationshipResult> {
|
|
||||||
if (
|
|
||||||
![user, relation, object].every(
|
|
||||||
(value) => typeof value === 'string' && value.length > 0 && value.length <= 256,
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
return 'denied';
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
const response = await this.fetchImpl(`${this.baseUrl}/stores/${this.storeId}/check`, {
|
|
||||||
method: 'POST',
|
|
||||||
headers: {
|
|
||||||
authorization: `Bearer ${this.serviceToken}`,
|
|
||||||
'content-type': 'application/json',
|
|
||||||
},
|
|
||||||
body: JSON.stringify({
|
|
||||||
authorization_model_id: this.modelId,
|
|
||||||
consistency: 'HIGHER_CONSISTENCY',
|
|
||||||
tuple_key: { user, relation, object },
|
|
||||||
}),
|
|
||||||
redirect: 'error',
|
|
||||||
signal: AbortSignal.timeout(this.timeoutMs),
|
|
||||||
});
|
|
||||||
if (!response.ok || !response.body) return 'unavailable';
|
|
||||||
const reader = response.body.getReader();
|
|
||||||
try {
|
|
||||||
const chunks: Uint8Array[] = [];
|
|
||||||
let total = 0;
|
|
||||||
for (;;) {
|
|
||||||
const part = await reader.read();
|
|
||||||
if (part.done) break;
|
|
||||||
total += part.value.byteLength;
|
|
||||||
if (total > maxResponseBytes) {
|
|
||||||
void reader.cancel().catch(() => undefined);
|
|
||||||
return 'unavailable';
|
|
||||||
}
|
|
||||||
chunks.push(part.value);
|
|
||||||
}
|
|
||||||
const result: unknown = JSON.parse(
|
|
||||||
new TextDecoder('utf-8', { fatal: true }).decode(Buffer.concat(chunks)),
|
|
||||||
);
|
|
||||||
if (
|
|
||||||
!result ||
|
|
||||||
typeof result !== 'object' ||
|
|
||||||
Array.isArray(result) ||
|
|
||||||
typeof (result as { allowed?: unknown }).allowed !== 'boolean'
|
|
||||||
) {
|
|
||||||
return 'unavailable';
|
|
||||||
}
|
|
||||||
return (result as { allowed: boolean }).allowed ? 'allowed' : 'denied';
|
|
||||||
} finally {
|
|
||||||
reader.releaseLock();
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
return 'unavailable';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Canonical environment variable names used across the fleet. Reads are
|
|
||||||
* explicit (no implicit defaults) so a missing value is visible.
|
|
||||||
*/
|
|
||||||
export const OPENFGA_ENV = {
|
|
||||||
baseUrl: 'OPENFGA_API_URL',
|
|
||||||
storeId: 'OPENFGA_STORE_ID',
|
|
||||||
modelId: 'OPENFGA_MODEL_ID',
|
|
||||||
serviceToken: 'OPENFGA_AUTH_TOKEN',
|
|
||||||
} as const;
|
|
||||||
|
|
||||||
export interface ProjectAccessOptions {
|
|
||||||
/** The already-configured relationship reader, or undefined when OpenFGA is not configured. */
|
|
||||||
relationships?: OpenFgaRelationships;
|
|
||||||
/**
|
|
||||||
* Optional extra policy (project status, capability, data-handling). It runs
|
|
||||||
* only after the relationship check matched; a rejection is final.
|
|
||||||
*/
|
|
||||||
additionalPolicy?: (scope: ProjectRelationshipScope) => Promise<boolean> | boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Fail closed: only an explicit match with no policy objection is allowed. */
|
|
||||||
export async function isProjectAccessAllowed(
|
|
||||||
scope: ProjectRelationshipScope,
|
|
||||||
options: ProjectAccessOptions,
|
|
||||||
): Promise<boolean> {
|
|
||||||
if (!options.relationships) return false;
|
|
||||||
const result = await options.relationships.checkProject(scope);
|
|
||||||
if (result !== 'relationships_match') return false;
|
|
||||||
if (options.additionalPolicy) {
|
|
||||||
try {
|
|
||||||
return (await options.additionalPolicy(scope)) === true;
|
|
||||||
} catch {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Build a relationship reader from a `NodeJS.ProcessEnv`-shaped object.
|
|
||||||
* Returns `undefined` (fail closed) when any value is missing or invalid.
|
|
||||||
*/
|
|
||||||
export function openFgaFromEnv(
|
|
||||||
env: NodeJS.ProcessEnv = process.env,
|
|
||||||
fetchImpl?: typeof fetch,
|
|
||||||
): OpenFgaRelationships | undefined {
|
|
||||||
const baseUrl = env[OPENFGA_ENV.baseUrl];
|
|
||||||
const storeId = env[OPENFGA_ENV.storeId];
|
|
||||||
const modelId = env[OPENFGA_ENV.modelId];
|
|
||||||
const serviceToken = env[OPENFGA_ENV.serviceToken];
|
|
||||||
if (!baseUrl || !storeId || !modelId || !serviceToken) return undefined;
|
|
||||||
try {
|
|
||||||
return new OpenFgaRelationships({
|
|
||||||
baseUrl,
|
|
||||||
storeId,
|
|
||||||
modelId,
|
|
||||||
serviceToken,
|
|
||||||
...(fetchImpl ? { fetchImpl } : {}),
|
|
||||||
});
|
|
||||||
} catch {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Generated
+234
-172
@@ -7,8 +7,6 @@ settings:
|
|||||||
overrides:
|
overrides:
|
||||||
sharp@<0.35.5: 0.35.5
|
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
|
|
||||||
|
|
||||||
importers:
|
importers:
|
||||||
|
|
||||||
@@ -162,8 +160,8 @@ importers:
|
|||||||
specifier: ^0.454.0
|
specifier: ^0.454.0
|
||||||
version: 0.454.0(react@19.2.8)
|
version: 0.454.0(react@19.2.8)
|
||||||
next:
|
next:
|
||||||
specifier: 16.4.5
|
specifier: 16.4.1
|
||||||
version: 16.4.5(@types/node@22.20.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)
|
version: 16.4.1(@types/node@22.20.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)
|
||||||
next-themes:
|
next-themes:
|
||||||
specifier: ^0.4.6
|
specifier: ^0.4.6
|
||||||
version: 0.4.6(react-dom@19.2.8(react@19.2.8))(react@19.2.8)
|
version: 0.4.6(react-dom@19.2.8(react@19.2.8))(react@19.2.8)
|
||||||
@@ -201,8 +199,8 @@ importers:
|
|||||||
specifier: ^1.1.2
|
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)
|
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:
|
zod:
|
||||||
specifier: 4.6.6
|
specifier: 3.25.76
|
||||||
version: 4.6.6
|
version: 3.25.76
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@eslint/js':
|
'@eslint/js':
|
||||||
specifier: ^9.15.0
|
specifier: ^9.15.0
|
||||||
@@ -247,8 +245,8 @@ importers:
|
|||||||
specifier: ^8.15.0
|
specifier: ^8.15.0
|
||||||
version: 8.65.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3)
|
version: 8.65.0(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3)
|
||||||
vitest:
|
vitest:
|
||||||
specifier: ^4.1.12
|
specifier: ^3.2.7
|
||||||
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))
|
version: 3.2.7(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15)
|
||||||
|
|
||||||
packages/decision: {}
|
packages/decision: {}
|
||||||
|
|
||||||
@@ -743,9 +741,6 @@ packages:
|
|||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
'@isaacs/nonrecursive-glob-match@1.1.0':
|
|
||||||
resolution: {integrity: sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==}
|
|
||||||
|
|
||||||
'@jridgewell/gen-mapping@0.3.13':
|
'@jridgewell/gen-mapping@0.3.13':
|
||||||
resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
|
resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
|
||||||
|
|
||||||
@@ -762,53 +757,53 @@ packages:
|
|||||||
'@jridgewell/trace-mapping@0.3.31':
|
'@jridgewell/trace-mapping@0.3.31':
|
||||||
resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
|
resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
|
||||||
|
|
||||||
'@next/env@16.4.5':
|
'@next/env@16.4.1':
|
||||||
resolution: {integrity: sha512-JwSPwpdkZL5VMl2jA/q+JI8MZdweAL3xmw5/tb9y/TLtmS0YXZnmYDzSihwk8xTj1OL+WM53gTqaj96yuLp6Xw==}
|
resolution: {integrity: sha512-5sUUrrSvs/2/2LnLoesybMGx12EtPB46fdZ6RhAw0XDGSPxU2LFyQBB7yuEiOFFJPKmBY6+q2jTr1/AMbnp0/g==}
|
||||||
|
|
||||||
'@next/swc-darwin-arm64@16.4.5':
|
'@next/swc-darwin-arm64@16.4.1':
|
||||||
resolution: {integrity: sha512-W5TniBzWKASbNNwHZ/S/f1MxQUXU/LdjklVMWA0Ujbfl7SZnUzFls45hO0i/sF7Bx1jJBWp7WWmoQajXtX/O8A==}
|
resolution: {integrity: sha512-U+hQ5Gj3fpzf4fveTIF3dpUFYhaSW8vHhdAnbiIomzXzg7boreYFgBqprepXFtW4sw+aTttiNmg0gew/iFNhbg==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
'@next/swc-darwin-x64@16.4.5':
|
'@next/swc-darwin-x64@16.4.1':
|
||||||
resolution: {integrity: sha512-uWq4qkHapBDS1oFltWS4YxTb9pLHAtLNcpbuK6SmRsebLYZqpBML/j/C0op+50JYGTpZgVL/DWNt/6oWlamrrw==}
|
resolution: {integrity: sha512-/hqC3V1XLUjhMASf/WridKdO9FXoEgN3HBWmtKbj00MPgnltutfraWJ3bYTpCRIgEIpbjJyOVLpYgAhh/BkdcQ==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
|
|
||||||
'@next/swc-linux-arm64-gnu@16.4.5':
|
'@next/swc-linux-arm64-gnu@16.4.1':
|
||||||
resolution: {integrity: sha512-FdRcyOx5u5P51mlAqLB9EXdd8jZO5fsdHtk4BAQSkqOywCsbTNN/rmw+jO7pnmjNdAtu2AG46NzbCL2FPDrrgw==}
|
resolution: {integrity: sha512-GHzncHbcaS9g95kcvTNtKQW3aCLoR+xc3Jm7qrkpk1R+D2BjMHIPyvQGRPKCdMX95BsH/421jBUK06q9tEwzjw==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@next/swc-linux-arm64-musl@16.4.5':
|
'@next/swc-linux-arm64-musl@16.4.1':
|
||||||
resolution: {integrity: sha512-cyvmmgtRXR8aGVT86wi9Py53IlfyCx7P2fZxuAXAoTummDnhKtUyjrMeXfapqp4qgD+gT5RqyGD/VfA16jEK7Q==}
|
resolution: {integrity: sha512-1SuJyDxW/PR9dHJat/ZRgcYLhuSZ+1psP4DlKb2tKIuXbjygqpLrJWRSq+onZQBv8LcmU67EIrmb6c3XTaJLjw==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@next/swc-linux-x64-gnu@16.4.5':
|
'@next/swc-linux-x64-gnu@16.4.1':
|
||||||
resolution: {integrity: sha512-hPc+Fl+N22DAvqZHq559NmamXboOX5Lu8I5Wl0DezfrhTk1Zz21NQeYoZDmNI/NjTcrdsVxM72Fzn2lI+Q+vAw==}
|
resolution: {integrity: sha512-Istng1hMGp9TGO4lUqeKLd70MPN/OOkucVTP2Nmj+gLkwBgmPqUw8CJYBCC7nbl/B/23bBCcjCI5Hsh6hazC1A==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@next/swc-linux-x64-musl@16.4.5':
|
'@next/swc-linux-x64-musl@16.4.1':
|
||||||
resolution: {integrity: sha512-gbACYE8IP/jlprNTpiWXHb8N9CofOzpnEwH2SrIz1dUbiJf1FbDssDupCAPeP1Taxe8mgG20sGZamJI7KFOdZw==}
|
resolution: {integrity: sha512-aSC9wMNiZRRFVpPkPWBzRwLQxIGm/CiQcXyFF1XNcgodb+uMxdk7aSSGGpDXCbnvZdf4itjHxpOd5h7i7zaiYw==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
|
|
||||||
'@next/swc-win32-arm64-msvc@16.4.5':
|
'@next/swc-win32-arm64-msvc@16.4.1':
|
||||||
resolution: {integrity: sha512-+8gj++ZMo8H20Xh2ijjNqyFk5LPLw0AC4Fs4Tq/G94rjjQXhOjN4jgSWsWKPFsyY26hfIeemJIwKtMxOsp5GBA==}
|
resolution: {integrity: sha512-t/myvwFDlypMUjRvbBf8qLPyuaB0iXYYdBtwMt6DM6f+60wtGr4bSYholdPqNeV5VUXZhrpMwfza829kmhS3iA==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
|
|
||||||
'@next/swc-win32-x64-msvc@16.4.5':
|
'@next/swc-win32-x64-msvc@16.4.1':
|
||||||
resolution: {integrity: sha512-qNZj66pYXnaWLiF9R9GUbfBdrCv7kC6TaZfIwB2KH5WPc/8pEM3nVOj8hpQhWJU8S94rlH5MPDcX15+RrgUhiw==}
|
resolution: {integrity: sha512-6ICqPo9awCkrtYNPhwkx1uU7rlFWrZRrIboDHS2LU+jv088UBYQtmJ25h6pCp27/+FZjF6BQ4Te4ErugyMeuBg==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
@@ -1558,10 +1553,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}
|
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':
|
'@siax/auth-core@0.1.0':
|
||||||
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}
|
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}
|
||||||
|
|
||||||
'@siax/auth-zitadel@0.1.1':
|
'@siax/auth-zitadel@0.1.1':
|
||||||
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}
|
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}
|
||||||
|
|
||||||
'@siax/charts@0.11.0':
|
'@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}
|
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}
|
||||||
@@ -1576,7 +1571,7 @@ packages:
|
|||||||
react-dom: ^19.2.0
|
react-dom: ^19.2.0
|
||||||
|
|
||||||
'@siax/collaboration@0.3.0':
|
'@siax/collaboration@0.3.0':
|
||||||
resolution: {integrity: sha512-wq48Q2fE4poiMZrvnUJyakUchgmCEXRdXrkDDbXFSEmah5K1sjbFgxzduIoOg3CBpjcnFC0dYzWTfvKmTOGy0g==, tarball: https://git.siax.io/api/packages/admin/npm/%40siax%2Fcollaboration/-/0.3.0/collaboration-0.3.0.tgz}
|
resolution: {integrity: sha512-wq48Q2fE4poiMZrvnUJyakUchgmCEXRdXrkDDbXFSEmah5K1sjbFgxzduIoOg3CBpjcnFC0dYzWTfvKmTOGy0g==, tarball: https://git.siax.io/api/packages/sax3l/npm/%40siax%2Fcollaboration/-/0.3.0/collaboration-0.3.0.tgz}
|
||||||
|
|
||||||
'@siax/config@0.2.1':
|
'@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}
|
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}
|
||||||
@@ -1604,9 +1599,6 @@ packages:
|
|||||||
react: ^19.2.0
|
react: ^19.2.0
|
||||||
react-dom: ^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':
|
'@swc/helpers@0.5.23':
|
||||||
resolution: {integrity: sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==}
|
resolution: {integrity: sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==}
|
||||||
|
|
||||||
@@ -1815,34 +1807,34 @@ packages:
|
|||||||
resolution: {integrity: sha512-8C71BQkGjiMmXtop7pHVJu1l2NNShFdkCyD6a2ezzs5vU/L3LRtb69EtcteFwz0mYMPzIgOw0n6OV4VBUWZd7A==}
|
resolution: {integrity: sha512-8C71BQkGjiMmXtop7pHVJu1l2NNShFdkCyD6a2ezzs5vU/L3LRtb69EtcteFwz0mYMPzIgOw0n6OV4VBUWZd7A==}
|
||||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||||
|
|
||||||
'@vitest/expect@4.1.12':
|
'@vitest/expect@3.2.7':
|
||||||
resolution: {integrity: sha512-vFlTt+YEu9WBpNjdGayNmlMVzrWPi1+sv853/7t2FU7hpO5gAFBKHzQmkCq5Xjpr+evegF2994LQT3hF3mRlqQ==}
|
resolution: {integrity: sha512-E8eBXaKibuvH2pSZErOjdVb5vF4PbKYcrnluBTYxEk1l/VhhwZg1kZQsdtjq+CsF5CFydf2Rdkz7jDHKSisi3w==}
|
||||||
|
|
||||||
'@vitest/mocker@4.1.12':
|
'@vitest/mocker@3.2.7':
|
||||||
resolution: {integrity: sha512-fKShNpKZzupWZuY0z7egydvL0sqW4INEZBEExMBMAa6izlENEVHwoXgdaTCaBZ5fwlr4xf2o1wXC83n9RpO+NA==}
|
resolution: {integrity: sha512-Trr0hYO9CM3Wj6ksWHRhK9IZpIY6wTMO5u/MqXurMxT57sWBaOPEtP3Oq60ihZuh5JsiagKfz95OcxdEP6dBrA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
msw: ^2.4.9
|
msw: ^2.4.9
|
||||||
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
|
vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
msw:
|
msw:
|
||||||
optional: true
|
optional: true
|
||||||
vite:
|
vite:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@vitest/pretty-format@4.1.12':
|
'@vitest/pretty-format@3.2.7':
|
||||||
resolution: {integrity: sha512-XW9O8+Mxx4VpCtkYdMJLZQQwsVryP9wk7cPKDxtXFfwSak6yRh5+2fep/Y0XF/ElBvJHq8bcYdi6aeuai0opZA==}
|
resolution: {integrity: sha512-KUHlwqVu0sRlhCdyPdQ/wBoTfRahjUky1MubOmYw9fWfIZy1gNoHpuaaQBPAaMaVYdQYHJLurzj8ECCj5OwTqA==}
|
||||||
|
|
||||||
'@vitest/runner@4.1.12':
|
'@vitest/runner@3.2.7':
|
||||||
resolution: {integrity: sha512-NKlVKCr5QnCe8jijdMnmkpHHU+WTqiLFR6G0pHji9uRjXK9xJl1k1nTw6F3pOOj2PDcsDt2GKQMI7wIsaT491w==}
|
resolution: {integrity: sha512-sB9y4ovltoQP+WaUPwmSxO9WIg9Ig694Di5PalVPsYHklAdE027mehpWF2SQSVq+k6sFgaivbTjTJwZLSHbedA==}
|
||||||
|
|
||||||
'@vitest/snapshot@4.1.12':
|
'@vitest/snapshot@3.2.7':
|
||||||
resolution: {integrity: sha512-ko1y1Qgb/slzQ9mr+b89Cuqud8WG1TKtsPD8r7ZUBdvVOGt85Af2HwCqHujrhwJq95hs/9RM7fcAPg57o1vlzw==}
|
resolution: {integrity: sha512-7C+MwShwtBSI5Buwoyg3s/iY1eHL9PKAf+O1wVh/TdnjXUtkoL/9YQtre90i4MtNXM6edP1wJ2zOBpfCyhIS7g==}
|
||||||
|
|
||||||
'@vitest/spy@4.1.12':
|
'@vitest/spy@3.2.7':
|
||||||
resolution: {integrity: sha512-RGq9x4JNGNTZHEJxvN0oSiJjeSCExm0n2gZKKJZHY9cX5AVA6M7VJILBT3ZJ/tJ/0J9uWT7fETV9/btoi//vSg==}
|
resolution: {integrity: sha512-Q2eQGI6d2L/hBtZ0qNuKcAGid68XK6cv1xsoaIma6PaJhHPoqcEJhYpXZ/5myCMqkNgtP6UKuBhbc0nHKnrkuQ==}
|
||||||
|
|
||||||
'@vitest/utils@4.1.12':
|
'@vitest/utils@3.2.7':
|
||||||
resolution: {integrity: sha512-Q3awXrwOfEV+qc3WmO5ONyE0yO7Q1gQ9/oyHxGLZ/pl7N3NO/ZztqQwKLuwMkV+CA1JYSIeO3gkHnRDIo4AVaA==}
|
resolution: {integrity: sha512-x6BDOd7dyo3PFLY3I9/HJ25X/6OurhGXk2/B9gOZNPF7XDVjeBK4k01lQE5uvDpbuheErh91qYuE1E2OEjK3Rw==}
|
||||||
|
|
||||||
acorn-jsx-walk@2.0.0:
|
acorn-jsx-walk@2.0.0:
|
||||||
resolution: {integrity: sha512-uuo6iJj4D4ygkdzd6jPtcxs8vZgDX9YFIkqczGImoypX2fQ4dVImmu3UzA4ynixCIMTrEOWW+95M2HuBaCEOVA==}
|
resolution: {integrity: sha512-uuo6iJj4D4ygkdzd6jPtcxs8vZgDX9YFIkqczGImoypX2fQ4dVImmu3UzA4ynixCIMTrEOWW+95M2HuBaCEOVA==}
|
||||||
@@ -1923,6 +1915,10 @@ packages:
|
|||||||
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
|
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
|
cac@6.7.14:
|
||||||
|
resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
|
||||||
|
engines: {node: '>=8'}
|
||||||
|
|
||||||
callsites@3.1.0:
|
callsites@3.1.0:
|
||||||
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
|
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
@@ -1930,8 +1926,8 @@ packages:
|
|||||||
caniuse-lite@1.0.30001810:
|
caniuse-lite@1.0.30001810:
|
||||||
resolution: {integrity: sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==}
|
resolution: {integrity: sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==}
|
||||||
|
|
||||||
chai@6.3.0:
|
chai@5.3.3:
|
||||||
resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==}
|
resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
chalk@4.1.2:
|
chalk@4.1.2:
|
||||||
@@ -1947,6 +1943,10 @@ packages:
|
|||||||
character-reference-invalid@2.0.1:
|
character-reference-invalid@2.0.1:
|
||||||
resolution: {integrity: sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==}
|
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:
|
class-variance-authority@0.7.1:
|
||||||
resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}
|
resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}
|
||||||
|
|
||||||
@@ -1986,9 +1986,6 @@ packages:
|
|||||||
convert-source-map@1.9.0:
|
convert-source-map@1.9.0:
|
||||||
resolution: {integrity: sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==}
|
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:
|
copy-to-clipboard@3.3.3:
|
||||||
resolution: {integrity: sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==}
|
resolution: {integrity: sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==}
|
||||||
|
|
||||||
@@ -2021,6 +2018,10 @@ packages:
|
|||||||
decode-named-character-reference@1.3.0:
|
decode-named-character-reference@1.3.0:
|
||||||
resolution: {integrity: sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==}
|
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:
|
deep-is@0.1.4:
|
||||||
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
|
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
|
||||||
|
|
||||||
@@ -2083,8 +2084,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
|
resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
|
|
||||||
es-module-lexer@2.3.2:
|
es-module-lexer@1.7.0:
|
||||||
resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==}
|
resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}
|
||||||
|
|
||||||
esbuild@0.28.1:
|
esbuild@0.28.1:
|
||||||
resolution: {integrity: sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==}
|
resolution: {integrity: sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==}
|
||||||
@@ -2320,6 +2321,9 @@ packages:
|
|||||||
js-tokens@4.0.0:
|
js-tokens@4.0.0:
|
||||||
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
||||||
|
|
||||||
|
js-tokens@9.0.1:
|
||||||
|
resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==}
|
||||||
|
|
||||||
js-yaml@4.3.2:
|
js-yaml@4.3.2:
|
||||||
resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==}
|
resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
@@ -2437,6 +2441,9 @@ packages:
|
|||||||
lodash.merge@4.6.2:
|
lodash.merge@4.6.2:
|
||||||
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
|
resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
|
||||||
|
|
||||||
|
loupe@3.2.1:
|
||||||
|
resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==}
|
||||||
|
|
||||||
lucide-react@0.400.0:
|
lucide-react@0.400.0:
|
||||||
resolution: {integrity: sha512-rpp7pFHh3Xd93KHixNgB0SqThMHpYNzsGUu69UaQbSZ75Q/J3m5t6EhKyMT3m4w2WOxmJ2mY0tD3vebnXqQryQ==}
|
resolution: {integrity: sha512-rpp7pFHh3Xd93KHixNgB0SqThMHpYNzsGUu69UaQbSZ75Q/J3m5t6EhKyMT3m4w2WOxmJ2mY0tD3vebnXqQryQ==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -2453,9 +2460,9 @@ packages:
|
|||||||
memoize-one@6.0.0:
|
memoize-one@6.0.0:
|
||||||
resolution: {integrity: sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==}
|
resolution: {integrity: sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==}
|
||||||
|
|
||||||
minimatch@11.0.8:
|
minimatch@10.2.5:
|
||||||
resolution: {integrity: sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig==}
|
resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==}
|
||||||
engines: {node: 20 || >=22}
|
engines: {node: 18 || 20 || >=22}
|
||||||
|
|
||||||
minimatch@3.1.5:
|
minimatch@3.1.5:
|
||||||
resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==}
|
resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==}
|
||||||
@@ -2480,8 +2487,8 @@ packages:
|
|||||||
react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
|
react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
|
||||||
react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
|
react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
|
||||||
|
|
||||||
next@16.4.5:
|
next@16.4.1:
|
||||||
resolution: {integrity: sha512-rmdfsWosjTUO+6R0S3KokoIk6Kj0sWDRTe86tZHdqaWH/oXq/udX3/4xb+YQi7aWbyEFoglDU54kaifLCdXbBw==}
|
resolution: {integrity: sha512-uc657V62E34fOI6W5NtG9IzwsPcms0Z60grz2MJGtglgD+pTFnNt4Yw2PzaU622tfX4vhrDgLZzicE2YlhI20Q==}
|
||||||
engines: {node: '>=20.9.0'}
|
engines: {node: '>=20.9.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -2505,10 +2512,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-mIrE/Cw9y+9Au6dS5vDKDhQza9YvG6w+ZrS6X+ZzA7yFW/soAeaups4Qzn1bL6g5FVy8WtP79+0j82oPIbqRjQ==}
|
resolution: {integrity: sha512-mIrE/Cw9y+9Au6dS5vDKDhQza9YvG6w+ZrS6X+ZzA7yFW/soAeaups4Qzn1bL6g5FVy8WtP79+0j82oPIbqRjQ==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=18'}
|
||||||
|
|
||||||
obug@2.2.1:
|
|
||||||
resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==}
|
|
||||||
engines: {node: '>=12.20.0'}
|
|
||||||
|
|
||||||
optionator@0.9.4:
|
optionator@0.9.4:
|
||||||
resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
|
resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
|
||||||
engines: {node: '>= 0.8.0'}
|
engines: {node: '>= 0.8.0'}
|
||||||
@@ -2550,6 +2553,10 @@ packages:
|
|||||||
pathe@2.0.3:
|
pathe@2.0.3:
|
||||||
resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}
|
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:
|
picocolors@1.1.1:
|
||||||
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
|
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
|
||||||
|
|
||||||
@@ -2759,8 +2766,8 @@ packages:
|
|||||||
stackback@0.0.2:
|
stackback@0.0.2:
|
||||||
resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}
|
resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}
|
||||||
|
|
||||||
std-env@4.3.0:
|
std-env@3.10.0:
|
||||||
resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==}
|
resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==}
|
||||||
|
|
||||||
strip-bom@3.0.0:
|
strip-bom@3.0.0:
|
||||||
resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}
|
resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}
|
||||||
@@ -2770,6 +2777,9 @@ packages:
|
|||||||
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
|
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
|
||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
|
|
||||||
|
strip-literal@3.1.0:
|
||||||
|
resolution: {integrity: sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==}
|
||||||
|
|
||||||
stripe@22.2.3:
|
stripe@22.2.3:
|
||||||
resolution: {integrity: sha512-9lrggvLtjO4Ef5WXH4t50ckHJcJgTD72xFB+KJgZCSszAH9zMV1BqU6PwmWbRLdcdX7LK6PbErBapiGK7pIb+g==}
|
resolution: {integrity: sha512-9lrggvLtjO4Ef5WXH4t50ckHJcJgTD72xFB+KJgZCSszAH9zMV1BqU6PwmWbRLdcdX7LK6PbErBapiGK7pIb+g==}
|
||||||
engines: {node: '>=18'}
|
engines: {node: '>=18'}
|
||||||
@@ -2824,16 +2834,23 @@ packages:
|
|||||||
tinybench@2.9.0:
|
tinybench@2.9.0:
|
||||||
resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
|
resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
|
||||||
|
|
||||||
tinyexec@1.3.1:
|
tinyexec@0.3.2:
|
||||||
resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==}
|
resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}
|
||||||
engines: {node: '>=18'}
|
|
||||||
|
|
||||||
tinyglobby@0.2.17:
|
tinyglobby@0.2.17:
|
||||||
resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}
|
resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}
|
||||||
engines: {node: '>=12.0.0'}
|
engines: {node: '>=12.0.0'}
|
||||||
|
|
||||||
tinyrainbow@3.2.0:
|
tinypool@1.1.1:
|
||||||
resolution: {integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==}
|
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==}
|
||||||
engines: {node: '>=14.0.0'}
|
engines: {node: '>=14.0.0'}
|
||||||
|
|
||||||
toggle-selection@1.0.6:
|
toggle-selection@1.0.6:
|
||||||
@@ -2921,8 +2938,13 @@ packages:
|
|||||||
react: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc
|
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
|
react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc
|
||||||
|
|
||||||
vite@7.3.8:
|
vite-node@3.2.4:
|
||||||
resolution: {integrity: sha512-3tTi78MAKhVk9h+YZVXMQ8POmneJuE97QUPAWtJghHzhH7BAyiqQOC2KZh1DWOsu/USB2cRXhznPByaabvYXfw==}
|
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==}
|
||||||
engines: {node: ^20.19.0 || >=22.12.0}
|
engines: {node: ^20.19.0 || >=22.12.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -2961,39 +2983,26 @@ packages:
|
|||||||
yaml:
|
yaml:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
vitest@4.1.12:
|
vitest@3.2.7:
|
||||||
resolution: {integrity: sha512-5eWdz2yb3ajxWF3C8C4TjkXl7FGm3n2E/VlazALrQHzK7nYMSGFnCZto0bbPNl77AwkOZVLk0YnBAejUu0NiWA==}
|
resolution: {integrity: sha512-KrxIJ62Fd89gfysR4WotlgZABiz2dqFPgqGzX7s+CwsqLFomRH7777ZcrOD6+WVAh7khPQP41A+BKbpcJFrdEg==}
|
||||||
engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}
|
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@edge-runtime/vm': '*'
|
'@edge-runtime/vm': '*'
|
||||||
'@opentelemetry/api': ^1.9.0
|
'@types/debug': ^4.1.12
|
||||||
'@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0
|
'@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0
|
||||||
'@vitest/browser-playwright': 4.1.12
|
'@vitest/browser': 3.2.7
|
||||||
'@vitest/browser-preview': 4.1.12
|
'@vitest/ui': 3.2.7
|
||||||
'@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: '*'
|
happy-dom: '*'
|
||||||
jsdom: '*'
|
jsdom: '*'
|
||||||
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
|
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
'@edge-runtime/vm':
|
'@edge-runtime/vm':
|
||||||
optional: true
|
optional: true
|
||||||
'@opentelemetry/api':
|
'@types/debug':
|
||||||
optional: true
|
optional: true
|
||||||
'@types/node':
|
'@types/node':
|
||||||
optional: true
|
optional: true
|
||||||
'@vitest/browser-playwright':
|
'@vitest/browser':
|
||||||
optional: true
|
|
||||||
'@vitest/browser-preview':
|
|
||||||
optional: true
|
|
||||||
'@vitest/browser-webdriverio':
|
|
||||||
optional: true
|
|
||||||
'@vitest/coverage-istanbul':
|
|
||||||
optional: true
|
|
||||||
'@vitest/coverage-v8':
|
|
||||||
optional: true
|
optional: true
|
||||||
'@vitest/ui':
|
'@vitest/ui':
|
||||||
optional: true
|
optional: true
|
||||||
@@ -3029,8 +3038,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
|
resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
|
|
||||||
zod@4.6.6:
|
zod@3.25.76:
|
||||||
resolution: {integrity: sha512-4UmzQUF5fxvfcYHlbjBmejU+w+hbDnWFx4aS8kBx7nPBHcO2SqPbpAG8snbdg+Xse4pRefR98hgjFgIMCI/UhA==}
|
resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
|
||||||
|
|
||||||
zrender@6.1.0:
|
zrender@6.1.0:
|
||||||
resolution: {integrity: sha512-oEGMDB6pOP2S6OwRR4PdVv610zrjnA3Bh+JnSG12fYJlBKjtNAoEb5fSUoCOOINlH96I2fU38/A2UpRKs67xYQ==}
|
resolution: {integrity: sha512-oEGMDB6pOP2S6OwRR4PdVv610zrjnA3Bh+JnSG12fYJlBKjtNAoEb5fSUoCOOINlH96I2fU38/A2UpRKs67xYQ==}
|
||||||
@@ -3448,8 +3457,6 @@ snapshots:
|
|||||||
'@img/sharp-win32-x64@0.35.5':
|
'@img/sharp-win32-x64@0.35.5':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@isaacs/nonrecursive-glob-match@1.1.0': {}
|
|
||||||
|
|
||||||
'@jridgewell/gen-mapping@0.3.13':
|
'@jridgewell/gen-mapping@0.3.13':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@jridgewell/sourcemap-codec': 1.5.5
|
'@jridgewell/sourcemap-codec': 1.5.5
|
||||||
@@ -3469,30 +3476,30 @@ snapshots:
|
|||||||
'@jridgewell/resolve-uri': 3.1.2
|
'@jridgewell/resolve-uri': 3.1.2
|
||||||
'@jridgewell/sourcemap-codec': 1.5.5
|
'@jridgewell/sourcemap-codec': 1.5.5
|
||||||
|
|
||||||
'@next/env@16.4.5': {}
|
'@next/env@16.4.1': {}
|
||||||
|
|
||||||
'@next/swc-darwin-arm64@16.4.5':
|
'@next/swc-darwin-arm64@16.4.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@next/swc-darwin-x64@16.4.5':
|
'@next/swc-darwin-x64@16.4.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@next/swc-linux-arm64-gnu@16.4.5':
|
'@next/swc-linux-arm64-gnu@16.4.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@next/swc-linux-arm64-musl@16.4.5':
|
'@next/swc-linux-arm64-musl@16.4.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@next/swc-linux-x64-gnu@16.4.5':
|
'@next/swc-linux-x64-gnu@16.4.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@next/swc-linux-x64-musl@16.4.5':
|
'@next/swc-linux-x64-musl@16.4.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@next/swc-win32-arm64-msvc@16.4.5':
|
'@next/swc-win32-arm64-msvc@16.4.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@next/swc-win32-x64-msvc@16.4.5':
|
'@next/swc-win32-x64-msvc@16.4.1':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@radix-ui/number@1.1.3': {}
|
'@radix-ui/number@1.1.3': {}
|
||||||
@@ -4335,8 +4342,6 @@ snapshots:
|
|||||||
- supports-color
|
- supports-color
|
||||||
- tailwindcss
|
- tailwindcss
|
||||||
|
|
||||||
'@standard-schema/spec@1.1.0': {}
|
|
||||||
|
|
||||||
'@swc/helpers@0.5.23':
|
'@swc/helpers@0.5.23':
|
||||||
dependencies:
|
dependencies:
|
||||||
tslib: 2.8.1
|
tslib: 2.8.1
|
||||||
@@ -4528,7 +4533,7 @@ snapshots:
|
|||||||
'@typescript-eslint/types': 8.65.0
|
'@typescript-eslint/types': 8.65.0
|
||||||
'@typescript-eslint/visitor-keys': 8.65.0
|
'@typescript-eslint/visitor-keys': 8.65.0
|
||||||
debug: 4.4.3
|
debug: 4.4.3
|
||||||
minimatch: 11.0.8
|
minimatch: 10.2.5
|
||||||
semver: 7.8.5
|
semver: 7.8.5
|
||||||
tinyglobby: 0.2.17
|
tinyglobby: 0.2.17
|
||||||
ts-api-utils: 2.5.0(typescript@5.9.3)
|
ts-api-utils: 2.5.0(typescript@5.9.3)
|
||||||
@@ -4552,46 +4557,47 @@ snapshots:
|
|||||||
'@typescript-eslint/types': 8.65.0
|
'@typescript-eslint/types': 8.65.0
|
||||||
eslint-visitor-keys: 5.0.1
|
eslint-visitor-keys: 5.0.1
|
||||||
|
|
||||||
'@vitest/expect@4.1.12':
|
'@vitest/expect@3.2.7':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@standard-schema/spec': 1.1.0
|
|
||||||
'@types/chai': 5.2.3
|
'@types/chai': 5.2.3
|
||||||
'@vitest/spy': 4.1.12
|
'@vitest/spy': 3.2.7
|
||||||
'@vitest/utils': 4.1.12
|
'@vitest/utils': 3.2.7
|
||||||
chai: 6.3.0
|
chai: 5.3.3
|
||||||
tinyrainbow: 3.2.0
|
tinyrainbow: 2.0.0
|
||||||
|
|
||||||
'@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/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))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/spy': 4.1.12
|
'@vitest/spy': 3.2.7
|
||||||
estree-walker: 3.0.3
|
estree-walker: 3.0.3
|
||||||
magic-string: 0.30.21
|
magic-string: 0.30.21
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
vite: 7.3.8(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15)
|
vite: 7.3.6(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15)
|
||||||
|
|
||||||
'@vitest/pretty-format@4.1.12':
|
'@vitest/pretty-format@3.2.7':
|
||||||
dependencies:
|
dependencies:
|
||||||
tinyrainbow: 3.2.0
|
tinyrainbow: 2.0.0
|
||||||
|
|
||||||
'@vitest/runner@4.1.12':
|
'@vitest/runner@3.2.7':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/utils': 4.1.12
|
'@vitest/utils': 3.2.7
|
||||||
pathe: 2.0.3
|
pathe: 2.0.3
|
||||||
|
strip-literal: 3.1.0
|
||||||
|
|
||||||
'@vitest/snapshot@4.1.12':
|
'@vitest/snapshot@3.2.7':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/pretty-format': 4.1.12
|
'@vitest/pretty-format': 3.2.7
|
||||||
'@vitest/utils': 4.1.12
|
|
||||||
magic-string: 0.30.21
|
magic-string: 0.30.21
|
||||||
pathe: 2.0.3
|
pathe: 2.0.3
|
||||||
|
|
||||||
'@vitest/spy@4.1.12': {}
|
'@vitest/spy@3.2.7':
|
||||||
|
|
||||||
'@vitest/utils@4.1.12':
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/pretty-format': 4.1.12
|
tinyspy: 4.0.4
|
||||||
convert-source-map: 2.0.0
|
|
||||||
tinyrainbow: 3.2.0
|
'@vitest/utils@3.2.7':
|
||||||
|
dependencies:
|
||||||
|
'@vitest/pretty-format': 3.2.7
|
||||||
|
loupe: 3.2.1
|
||||||
|
tinyrainbow: 2.0.0
|
||||||
|
|
||||||
acorn-jsx-walk@2.0.0: {}
|
acorn-jsx-walk@2.0.0: {}
|
||||||
|
|
||||||
@@ -4672,11 +4678,19 @@ snapshots:
|
|||||||
node-releases: 2.0.55
|
node-releases: 2.0.55
|
||||||
update-browserslist-db: 1.3.3(browserslist@4.28.9)
|
update-browserslist-db: 1.3.3(browserslist@4.28.9)
|
||||||
|
|
||||||
|
cac@6.7.14: {}
|
||||||
|
|
||||||
callsites@3.1.0: {}
|
callsites@3.1.0: {}
|
||||||
|
|
||||||
caniuse-lite@1.0.30001810: {}
|
caniuse-lite@1.0.30001810: {}
|
||||||
|
|
||||||
chai@6.3.0: {}
|
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
|
||||||
|
|
||||||
chalk@4.1.2:
|
chalk@4.1.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -4689,6 +4703,8 @@ snapshots:
|
|||||||
|
|
||||||
character-reference-invalid@2.0.1: {}
|
character-reference-invalid@2.0.1: {}
|
||||||
|
|
||||||
|
check-error@2.1.3: {}
|
||||||
|
|
||||||
class-variance-authority@0.7.1:
|
class-variance-authority@0.7.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
@@ -4725,8 +4741,6 @@ snapshots:
|
|||||||
|
|
||||||
convert-source-map@1.9.0: {}
|
convert-source-map@1.9.0: {}
|
||||||
|
|
||||||
convert-source-map@2.0.0: {}
|
|
||||||
|
|
||||||
copy-to-clipboard@3.3.3:
|
copy-to-clipboard@3.3.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
toggle-selection: 1.0.6
|
toggle-selection: 1.0.6
|
||||||
@@ -4759,6 +4773,8 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
character-entities: 2.0.2
|
character-entities: 2.0.2
|
||||||
|
|
||||||
|
deep-eql@5.0.2: {}
|
||||||
|
|
||||||
deep-is@0.1.4: {}
|
deep-is@0.1.4: {}
|
||||||
|
|
||||||
dependency-cruiser@18.2.0:
|
dependency-cruiser@18.2.0:
|
||||||
@@ -4830,7 +4846,7 @@ snapshots:
|
|||||||
|
|
||||||
es-errors@1.3.0: {}
|
es-errors@1.3.0: {}
|
||||||
|
|
||||||
es-module-lexer@2.3.2: {}
|
es-module-lexer@1.7.0: {}
|
||||||
|
|
||||||
esbuild@0.28.1:
|
esbuild@0.28.1:
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
@@ -5075,6 +5091,8 @@ snapshots:
|
|||||||
|
|
||||||
js-tokens@4.0.0: {}
|
js-tokens@4.0.0: {}
|
||||||
|
|
||||||
|
js-tokens@9.0.1: {}
|
||||||
|
|
||||||
js-yaml@4.3.2:
|
js-yaml@4.3.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
argparse: 2.0.1
|
argparse: 2.0.1
|
||||||
@@ -5159,6 +5177,8 @@ snapshots:
|
|||||||
|
|
||||||
lodash.merge@4.6.2: {}
|
lodash.merge@4.6.2: {}
|
||||||
|
|
||||||
|
loupe@3.2.1: {}
|
||||||
|
|
||||||
lucide-react@0.400.0(react@19.2.8):
|
lucide-react@0.400.0(react@19.2.8):
|
||||||
dependencies:
|
dependencies:
|
||||||
react: 19.2.8
|
react: 19.2.8
|
||||||
@@ -5173,9 +5193,8 @@ snapshots:
|
|||||||
|
|
||||||
memoize-one@6.0.0: {}
|
memoize-one@6.0.0: {}
|
||||||
|
|
||||||
minimatch@11.0.8:
|
minimatch@10.2.5:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@isaacs/nonrecursive-glob-match': 1.1.0
|
|
||||||
brace-expansion: 5.0.12
|
brace-expansion: 5.0.12
|
||||||
|
|
||||||
minimatch@3.1.5:
|
minimatch@3.1.5:
|
||||||
@@ -5195,9 +5214,9 @@ snapshots:
|
|||||||
react: 19.2.8
|
react: 19.2.8
|
||||||
react-dom: 19.2.8(react@19.2.8)
|
react-dom: 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):
|
next@16.4.1(@types/node@22.20.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@next/env': 16.4.5
|
'@next/env': 16.4.1
|
||||||
'@swc/helpers': 0.5.23
|
'@swc/helpers': 0.5.23
|
||||||
baseline-browser-mapping: 2.11.23
|
baseline-browser-mapping: 2.11.23
|
||||||
caniuse-lite: 1.0.30001810
|
caniuse-lite: 1.0.30001810
|
||||||
@@ -5206,14 +5225,14 @@ snapshots:
|
|||||||
react-dom: 19.2.8(react@19.2.8)
|
react-dom: 19.2.8(react@19.2.8)
|
||||||
styled-jsx: 5.1.6(react@19.2.8)
|
styled-jsx: 5.1.6(react@19.2.8)
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@next/swc-darwin-arm64': 16.4.5
|
'@next/swc-darwin-arm64': 16.4.1
|
||||||
'@next/swc-darwin-x64': 16.4.5
|
'@next/swc-darwin-x64': 16.4.1
|
||||||
'@next/swc-linux-arm64-gnu': 16.4.5
|
'@next/swc-linux-arm64-gnu': 16.4.1
|
||||||
'@next/swc-linux-arm64-musl': 16.4.5
|
'@next/swc-linux-arm64-musl': 16.4.1
|
||||||
'@next/swc-linux-x64-gnu': 16.4.5
|
'@next/swc-linux-x64-gnu': 16.4.1
|
||||||
'@next/swc-linux-x64-musl': 16.4.5
|
'@next/swc-linux-x64-musl': 16.4.1
|
||||||
'@next/swc-win32-arm64-msvc': 16.4.5
|
'@next/swc-win32-arm64-msvc': 16.4.1
|
||||||
'@next/swc-win32-x64-msvc': 16.4.5
|
'@next/swc-win32-x64-msvc': 16.4.1
|
||||||
sharp: 0.35.5(@types/node@22.20.1)
|
sharp: 0.35.5(@types/node@22.20.1)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@babel/core'
|
- '@babel/core'
|
||||||
@@ -5222,8 +5241,6 @@ snapshots:
|
|||||||
|
|
||||||
node-releases@2.0.55: {}
|
node-releases@2.0.55: {}
|
||||||
|
|
||||||
obug@2.2.1: {}
|
|
||||||
|
|
||||||
optionator@0.9.4:
|
optionator@0.9.4:
|
||||||
dependencies:
|
dependencies:
|
||||||
deep-is: 0.1.4
|
deep-is: 0.1.4
|
||||||
@@ -5272,6 +5289,8 @@ snapshots:
|
|||||||
|
|
||||||
pathe@2.0.3: {}
|
pathe@2.0.3: {}
|
||||||
|
|
||||||
|
pathval@2.0.1: {}
|
||||||
|
|
||||||
picocolors@1.1.1: {}
|
picocolors@1.1.1: {}
|
||||||
|
|
||||||
picomatch@4.0.5: {}
|
picomatch@4.0.5: {}
|
||||||
@@ -5507,12 +5526,16 @@ snapshots:
|
|||||||
|
|
||||||
stackback@0.0.2: {}
|
stackback@0.0.2: {}
|
||||||
|
|
||||||
std-env@4.3.0: {}
|
std-env@3.10.0: {}
|
||||||
|
|
||||||
strip-bom@3.0.0: {}
|
strip-bom@3.0.0: {}
|
||||||
|
|
||||||
strip-json-comments@3.1.1: {}
|
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):
|
stripe@22.2.3(@types/node@22.20.1):
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@types/node': 22.20.1
|
'@types/node': 22.20.1
|
||||||
@@ -5544,14 +5567,18 @@ snapshots:
|
|||||||
|
|
||||||
tinybench@2.9.0: {}
|
tinybench@2.9.0: {}
|
||||||
|
|
||||||
tinyexec@1.3.1: {}
|
tinyexec@0.3.2: {}
|
||||||
|
|
||||||
tinyglobby@0.2.17:
|
tinyglobby@0.2.17:
|
||||||
dependencies:
|
dependencies:
|
||||||
fdir: 6.5.0(picomatch@4.0.5)
|
fdir: 6.5.0(picomatch@4.0.5)
|
||||||
picomatch: 4.0.5
|
picomatch: 4.0.5
|
||||||
|
|
||||||
tinyrainbow@3.2.0: {}
|
tinypool@1.1.1: {}
|
||||||
|
|
||||||
|
tinyrainbow@2.0.0: {}
|
||||||
|
|
||||||
|
tinyspy@4.0.4: {}
|
||||||
|
|
||||||
toggle-selection@1.0.6: {}
|
toggle-selection@1.0.6: {}
|
||||||
|
|
||||||
@@ -5637,7 +5664,28 @@ snapshots:
|
|||||||
- '@types/react'
|
- '@types/react'
|
||||||
- '@types/react-dom'
|
- '@types/react-dom'
|
||||||
|
|
||||||
vite@7.3.8(@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):
|
||||||
|
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):
|
||||||
dependencies:
|
dependencies:
|
||||||
esbuild: 0.28.1
|
esbuild: 0.28.1
|
||||||
fdir: 6.5.0(picomatch@4.0.5)
|
fdir: 6.5.0(picomatch@4.0.5)
|
||||||
@@ -5652,32 +5700,46 @@ snapshots:
|
|||||||
lightningcss: 1.32.0
|
lightningcss: 1.32.0
|
||||||
tsx: 4.23.15
|
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)):
|
vitest@3.2.7(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/expect': 4.1.12
|
'@types/chai': 5.2.3
|
||||||
'@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/expect': 3.2.7
|
||||||
'@vitest/pretty-format': 4.1.12
|
'@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/runner': 4.1.12
|
'@vitest/pretty-format': 3.2.7
|
||||||
'@vitest/snapshot': 4.1.12
|
'@vitest/runner': 3.2.7
|
||||||
'@vitest/spy': 4.1.12
|
'@vitest/snapshot': 3.2.7
|
||||||
'@vitest/utils': 4.1.12
|
'@vitest/spy': 3.2.7
|
||||||
es-module-lexer: 2.3.2
|
'@vitest/utils': 3.2.7
|
||||||
|
chai: 5.3.3
|
||||||
|
debug: 4.4.3
|
||||||
expect-type: 1.4.0
|
expect-type: 1.4.0
|
||||||
magic-string: 0.30.21
|
magic-string: 0.30.21
|
||||||
obug: 2.2.1
|
|
||||||
pathe: 2.0.3
|
pathe: 2.0.3
|
||||||
picomatch: 4.0.5
|
picomatch: 4.0.5
|
||||||
std-env: 4.3.0
|
std-env: 3.10.0
|
||||||
tinybench: 2.9.0
|
tinybench: 2.9.0
|
||||||
tinyexec: 1.3.1
|
tinyexec: 0.3.2
|
||||||
tinyglobby: 0.2.17
|
tinyglobby: 0.2.17
|
||||||
tinyrainbow: 3.2.0
|
tinypool: 1.1.1
|
||||||
vite: 7.3.8(@types/node@22.20.1)(jiti@2.7.0)(lightningcss@1.32.0)(tsx@4.23.15)
|
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)
|
||||||
why-is-node-running: 2.3.0
|
why-is-node-running: 2.3.0
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@types/node': 22.20.1
|
'@types/node': 22.20.1
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
- jiti
|
||||||
|
- less
|
||||||
|
- lightningcss
|
||||||
- msw
|
- msw
|
||||||
|
- sass
|
||||||
|
- sass-embedded
|
||||||
|
- stylus
|
||||||
|
- sugarss
|
||||||
|
- supports-color
|
||||||
|
- terser
|
||||||
|
- tsx
|
||||||
|
- yaml
|
||||||
|
|
||||||
watskeburt@6.0.0: {}
|
watskeburt@6.0.0: {}
|
||||||
|
|
||||||
@@ -5696,7 +5758,7 @@ snapshots:
|
|||||||
|
|
||||||
yocto-queue@0.1.0: {}
|
yocto-queue@0.1.0: {}
|
||||||
|
|
||||||
zod@4.6.6: {}
|
zod@3.25.76: {}
|
||||||
|
|
||||||
zrender@6.1.0:
|
zrender@6.1.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|||||||
@@ -16,11 +16,3 @@ packages:
|
|||||||
onlyBuiltDependencies:
|
onlyBuiltDependencies:
|
||||||
- sharp
|
- sharp
|
||||||
- esbuild
|
- 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,10 +4,6 @@ ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1
|
|||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
COPY app.py ingest_aud0.py ./
|
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
|
EXPOSE 8096
|
||||||
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
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)"
|
CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8096/health', timeout=3)"
|
||||||
|
|||||||
@@ -1,12 +1,5 @@
|
|||||||
fastapi==0.133.1
|
fastapi==0.115.6
|
||||||
uvicorn[standard]==0.34.0
|
uvicorn[standard]==0.34.0
|
||||||
httpx==0.28.1
|
httpx==0.28.1
|
||||||
PyJWT[crypto]==2.15.0
|
PyJWT[crypto]==2.14.0
|
||||||
pytest==9.0.3
|
pytest==8.3.4
|
||||||
# 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,11 +15,6 @@ RUN pip install -r requirements.txt
|
|||||||
|
|
||||||
COPY . .
|
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
|
EXPOSE 8000
|
||||||
# API: uvicorn orchestrator.main:app --host 0.0.0.0 --port 8000
|
# API: uvicorn orchestrator.main:app --host 0.0.0.0 --port 8000
|
||||||
# Worker: python -m workers.run
|
# Worker: python -m workers.run
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
# image (Dockerfile only installs requirements.txt) — see pytest.ini for how
|
# image (Dockerfile only installs requirements.txt) — see pytest.ini for how
|
||||||
# the test suite is run locally / in CI.
|
# the test suite is run locally / in CI.
|
||||||
-r requirements.txt
|
-r requirements.txt
|
||||||
pytest==9.0.3
|
pytest==8.3.4
|
||||||
pytest-asyncio==1.4.0
|
pytest-asyncio==0.25.2
|
||||||
respx==0.22.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,16 +1,10 @@
|
|||||||
# 0pt data engine — compliant stack only (docs/07). No bypass/stealth/proxy libs.
|
# 0pt data engine — compliant stack only (docs/07). No bypass/stealth/proxy libs.
|
||||||
fastapi==0.133.1
|
fastapi==0.115.6
|
||||||
uvicorn[standard]==0.34.0
|
uvicorn[standard]==0.34.0
|
||||||
pydantic==2.10.4
|
pydantic==2.10.4
|
||||||
httpx==0.28.1
|
httpx==0.28.1
|
||||||
asyncpg==0.30.0
|
asyncpg==0.30.0
|
||||||
python-dotenv==1.2.2
|
python-dotenv==1.0.1
|
||||||
pyyaml==6.0.2
|
pyyaml==6.0.2
|
||||||
rapidfuzz==3.11.0
|
rapidfuzz==3.11.0
|
||||||
tenacity==9.0.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,11 +14,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
# Copy scraper code
|
# Copy scraper code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Create data directories (writable by the non-root runtime user, DS-0002)
|
# Create data directories
|
||||||
RUN mkdir -p /data/output /data/checkpoints /data/sources \
|
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 PYTHONUNBUFFERED=1
|
||||||
ENV S3_ENDPOINT=https://s3.siax.io
|
ENV S3_ENDPOINT=https://s3.siax.io
|
||||||
|
|||||||
@@ -8,7 +8,3 @@ beautifulsoup4>=4.12.0
|
|||||||
lxml>=5.3.0
|
lxml>=5.3.0
|
||||||
boto3>=1.35.0 # MinIO S3 sync
|
boto3>=1.35.0 # MinIO S3 sync
|
||||||
duckdb>=1.1.0 # DuckDBWriter alternative (lazy-imported in clickhouse_pipeline.py)
|
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
|
|
||||||
|
|||||||
+14
-28
@@ -71,39 +71,25 @@
|
|||||||
"canonical": true,
|
"canonical": true,
|
||||||
"parentRepo": null,
|
"parentRepo": null,
|
||||||
"capabilities": [
|
"capabilities": [
|
||||||
"0pt.catalog_list",
|
"prospekt.email_verify",
|
||||||
"0pt.crawl_job",
|
"prospekt.jobs_write",
|
||||||
|
"prospekt.jobs_read",
|
||||||
|
"prospekt.search_read",
|
||||||
|
"prospekt.search_write",
|
||||||
|
"0pt.query_source",
|
||||||
"0pt.document_ocr",
|
"0pt.document_ocr",
|
||||||
"0pt.estimate_compute",
|
"0pt.write_external_record",
|
||||||
"0pt.execute_metric",
|
|
||||||
"0pt.lakehouse_mapping_manage",
|
"0pt.lakehouse_mapping_manage",
|
||||||
"0pt.lakehouse_write",
|
"0pt.lakehouse_write",
|
||||||
"0pt.load_full_table",
|
"0pt.source_rate_policy_manage",
|
||||||
|
"0pt.screen_sanctions",
|
||||||
|
"0pt.estimate_compute",
|
||||||
|
"0pt.vehicle_lookup",
|
||||||
|
"0pt.catalog_list",
|
||||||
|
"0pt.source_registry_list",
|
||||||
"0pt.order_create",
|
"0pt.order_create",
|
||||||
"0pt.order_payment",
|
"0pt.order_payment",
|
||||||
"0pt.query_source",
|
"0pt.write_iceberg_table"
|
||||||
"0pt.render_report",
|
|
||||||
"0pt.run_data_quality_check",
|
|
||||||
"0pt.screen_sanctions",
|
|
||||||
"0pt.source_rate_policy_manage",
|
|
||||||
"0pt.source_registry_list",
|
|
||||||
"0pt.structure.extract_document",
|
|
||||||
"0pt.structure.get_lineage",
|
|
||||||
"0pt.structure.normalize_value",
|
|
||||||
"0pt.structure.quality_checks",
|
|
||||||
"0pt.structure.quality_list_runs",
|
|
||||||
"0pt.structure.quality_reports",
|
|
||||||
"0pt.structure.quality_run",
|
|
||||||
"0pt.structure.resolve_entities",
|
|
||||||
"0pt.structure.route_parsing",
|
|
||||||
"0pt.vehicle_lookup",
|
|
||||||
"0pt.write_external_record",
|
|
||||||
"0pt.write_iceberg_table",
|
|
||||||
"prospekt.email_verify",
|
|
||||||
"prospekt.jobs_read",
|
|
||||||
"prospekt.jobs_write",
|
|
||||||
"prospekt.search_read",
|
|
||||||
"prospekt.search_write"
|
|
||||||
],
|
],
|
||||||
"surfaces": [
|
"surfaces": [
|
||||||
"api",
|
"api",
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "server6-db.xh70k0qa0cyju840zsvsgoze",
|
|
||||||
"repo": "0pt",
|
|
||||||
"frequency": "daily",
|
|
||||||
"retention": "3m",
|
|
||||||
"target": "storage-box",
|
|
||||||
"encrypted": true,
|
|
||||||
"lastRunAt": "2026-11-23T00:49:22Z"
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.crawl_job",
|
|
||||||
"name": "0pt.crawl_job",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "0.1.0",
|
|
||||||
"riskLevel": "L2",
|
|
||||||
"piiLevel": "low",
|
|
||||||
"surfaces": [
|
|
||||||
"api",
|
|
||||||
"cli",
|
|
||||||
"mcp",
|
|
||||||
"job"
|
|
||||||
],
|
|
||||||
"requiresJob": true,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "siax.acquisition.run",
|
|
||||||
"description": "Ägare 0pt. Registrerad i CL0UD capability-registry (packages/capability-registry/src/acquisition-capabilities.ts, runtime B0TS). operationId är den faktiska kontraktsoperationen siax.acquisition.run, refererad även i 0pt/acquisition.consumer.json — ingen påhittad id."
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.execute_metric",
|
|
||||||
"name": "0pt.execute_metric",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "0.1.0",
|
|
||||||
"riskLevel": "L1",
|
|
||||||
"piiLevel": "none",
|
|
||||||
"surfaces": [
|
|
||||||
"api",
|
|
||||||
"cli"
|
|
||||||
],
|
|
||||||
"requiresJob": false,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "0ptExecuteMetric",
|
|
||||||
"description": "Ägare 0pt. Implementation: 0pt/services/analytics/app.py:366 execute_metric, rutt POST /api/0pt/analytics/metrics/{metric_id}/query. Konsumeras av ACT0 consulting_delivery_analytics (governed-metric-steg). operationId är registrerad kontraktsnamn i CL0UD capability-registry (consulting-capabilities.ts)."
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.load_full_table",
|
|
||||||
"name": "0pt.load_full_table",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "0.1.0",
|
|
||||||
"riskLevel": "L3",
|
|
||||||
"piiLevel": "high",
|
|
||||||
"surfaces": [
|
|
||||||
"job"
|
|
||||||
],
|
|
||||||
"requiresJob": true,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"description": "Ägare 0pt. Registrerad i CL0UD capability-registry (0pt-full-table-capabilities.ts); best befintliga jobbgräns 0pt.full_table_job, utförd av p0lytics.docstruct.full_table_worker. Endast jobb-ytan deklareras — ingen HTTP-operation existerar, därför medvetet ingen operationId (registret säger uttryckligen att ingen påhittas)."
|
|
||||||
}
|
|
||||||
@@ -12,6 +12,5 @@
|
|||||||
],
|
],
|
||||||
"requiresJob": true,
|
"requiresJob": true,
|
||||||
"tenantScoped": true,
|
"tenantScoped": true,
|
||||||
"operationId": "0pt.create_order",
|
|
||||||
"description": "Risk tilldelad av RW-005b-regel (L3/low): Produktionsmutation av data (RAG-003 reg 1) — övervakning krävs. RAG-003-RISK-TAXONOMY + siax-tenancy deny-by-default."
|
"description": "Risk tilldelad av RW-005b-regel (L3/low): Produktionsmutation av data (RAG-003 reg 1) — övervakning krävs. RAG-003-RISK-TAXONOMY + siax-tenancy deny-by-default."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,5 @@
|
|||||||
],
|
],
|
||||||
"requiresJob": true,
|
"requiresJob": true,
|
||||||
"tenantScoped": true,
|
"tenantScoped": true,
|
||||||
"operationId": "0pt.query_source",
|
|
||||||
"description": "Risk tilldelad av RW-005b-regel (L2/none): Läsande/beräknande — ingen mutation, begränsad påverkan. RAG-003-RISK-TAXONOMY + siax-tenancy deny-by-default."
|
"description": "Risk tilldelad av RW-005b-regel (L2/none): Läsande/beräknande — ingen mutation, begränsad påverkan. RAG-003-RISK-TAXONOMY + siax-tenancy deny-by-default."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.render_report",
|
|
||||||
"name": "0pt.render_report",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "0.1.0",
|
|
||||||
"riskLevel": "L1",
|
|
||||||
"piiLevel": "none",
|
|
||||||
"surfaces": [
|
|
||||||
"api"
|
|
||||||
],
|
|
||||||
"requiresJob": false,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "0ptRenderReport",
|
|
||||||
"description": "Ägare 0pt. ACT0 consulting_delivery_analytics render-steg (artifact-before-notice). Registrerad i CL0UD capability-registry (consulting-capabilities.ts); operationId är registrerad kontraktsnamn, inte en gissning."
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.run_data_quality_check",
|
|
||||||
"name": "0pt.run_data_quality_check",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "0.1.0",
|
|
||||||
"riskLevel": "L1",
|
|
||||||
"piiLevel": "none",
|
|
||||||
"surfaces": [
|
|
||||||
"api",
|
|
||||||
"cli"
|
|
||||||
],
|
|
||||||
"requiresJob": false,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "0ptRunDataQualityCheck",
|
|
||||||
"description": "Ägare 0pt. ACT0 consulting_delivery_analytics kvalitetsgrind + seedade analystmallar (tmpl_000010/000011/000575 använder samma capability-id). Registrerad i CL0UD capability-registry (consulting-capabilities.ts)."
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.structure.extract_document",
|
|
||||||
"name": "0pt.structure.extract_document",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"riskLevel": "L2",
|
|
||||||
"piiLevel": "high",
|
|
||||||
"surfaces": [
|
|
||||||
"api"
|
|
||||||
],
|
|
||||||
"requiresJob": false,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "0pt.extract_document",
|
|
||||||
"description": "Canonical capability descriptor for 0pt.structure.extract_document (owner 0pt). Verified against registry + openapi operationId 0pt.extract_document."
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.structure.get_lineage",
|
|
||||||
"name": "0pt.structure.get_lineage",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"riskLevel": "L1",
|
|
||||||
"piiLevel": "low",
|
|
||||||
"surfaces": [
|
|
||||||
"api"
|
|
||||||
],
|
|
||||||
"requiresJob": false,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "0pt.get_provenance",
|
|
||||||
"description": "Canonical capability descriptor for 0pt.structure.get_lineage (owner 0pt). Verified against registry + openapi operationId 0pt.get_provenance."
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.structure.normalize_value",
|
|
||||||
"name": "0pt.structure.normalize_value",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"riskLevel": "L1",
|
|
||||||
"piiLevel": "low",
|
|
||||||
"surfaces": [
|
|
||||||
"api"
|
|
||||||
],
|
|
||||||
"requiresJob": false,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "0pt.normalize_value",
|
|
||||||
"description": "Canonical capability descriptor for 0pt.structure.normalize_value (owner 0pt). Verified against registry + openapi operationId 0pt.normalize_value."
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.structure.quality_checks",
|
|
||||||
"name": "0pt.structure.quality_checks",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"riskLevel": "L1",
|
|
||||||
"piiLevel": "low",
|
|
||||||
"surfaces": [
|
|
||||||
"api"
|
|
||||||
],
|
|
||||||
"requiresJob": false,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "0pt.quality.checks",
|
|
||||||
"description": "Canonical capability descriptor for 0pt.structure.quality_checks (owner 0pt). Verified against registry + openapi operationId 0pt.quality.checks."
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.structure.quality_list_runs",
|
|
||||||
"name": "0pt.structure.quality_list_runs",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"riskLevel": "L1",
|
|
||||||
"piiLevel": "low",
|
|
||||||
"surfaces": [
|
|
||||||
"api"
|
|
||||||
],
|
|
||||||
"requiresJob": false,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "0pt.quality.list_runs",
|
|
||||||
"description": "Canonical capability descriptor for 0pt.structure.quality_list_runs (owner 0pt). Verified against registry + openapi operationId 0pt.quality.list_runs."
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.structure.quality_reports",
|
|
||||||
"name": "0pt.structure.quality_reports",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"riskLevel": "L1",
|
|
||||||
"piiLevel": "low",
|
|
||||||
"surfaces": [
|
|
||||||
"api"
|
|
||||||
],
|
|
||||||
"requiresJob": false,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "0pt.quality.reports",
|
|
||||||
"description": "Canonical capability descriptor for 0pt.structure.quality_reports (owner 0pt). Verified against registry + openapi operationId 0pt.quality.reports."
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.structure.quality_run",
|
|
||||||
"name": "0pt.structure.quality_run",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"riskLevel": "L1",
|
|
||||||
"piiLevel": "low",
|
|
||||||
"surfaces": [
|
|
||||||
"api"
|
|
||||||
],
|
|
||||||
"requiresJob": false,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "0pt.quality.run",
|
|
||||||
"description": "Canonical capability descriptor for 0pt.structure.quality_run (owner 0pt). Verified against registry + openapi operationId 0pt.quality.run."
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.structure.resolve_entities",
|
|
||||||
"name": "0pt.structure.resolve_entities",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"riskLevel": "L2",
|
|
||||||
"piiLevel": "high",
|
|
||||||
"surfaces": [
|
|
||||||
"api"
|
|
||||||
],
|
|
||||||
"requiresJob": false,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "0pt.resolve_entities",
|
|
||||||
"description": "Canonical capability descriptor for 0pt.structure.resolve_entities (owner 0pt). Verified against registry + openapi operationId 0pt.resolve_entities."
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "0pt.structure.route_parsing",
|
|
||||||
"name": "0pt.structure.route_parsing",
|
|
||||||
"owner": "0pt",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"riskLevel": "L1",
|
|
||||||
"piiLevel": "low",
|
|
||||||
"surfaces": [
|
|
||||||
"api"
|
|
||||||
],
|
|
||||||
"requiresJob": false,
|
|
||||||
"tenantScoped": true,
|
|
||||||
"operationId": "0pt.route_parsing",
|
|
||||||
"description": "Canonical capability descriptor for 0pt.structure.route_parsing (owner 0pt). Verified against registry + openapi operationId 0pt.route_parsing."
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"repo": "0pt",
|
|
||||||
"framework": "dockerfile",
|
|
||||||
"build": "Coolify build_pack=dockerfile (byggd av Coolify från main)",
|
|
||||||
"start": "Coolify container (app 0pt)",
|
|
||||||
"port": 3000,
|
|
||||||
"healthcheck": {
|
|
||||||
"path": "/api/health"
|
|
||||||
},
|
|
||||||
"dedicated": true
|
|
||||||
}
|
|
||||||
@@ -1,821 +0,0 @@
|
|||||||
{
|
|
||||||
"schemaVersion": 1,
|
|
||||||
"repo": "0pt",
|
|
||||||
"role": "consumer",
|
|
||||||
"canonicalOwner": "sax3l/DES1GN",
|
|
||||||
"sourceRoots": [
|
|
||||||
"app",
|
|
||||||
"components"
|
|
||||||
],
|
|
||||||
"packagePolicy": {
|
|
||||||
"namespace": "@siax",
|
|
||||||
"registry": "https://git.siax.io/api/packages/sax3l/npm/",
|
|
||||||
"forbidMutableSpecs": true,
|
|
||||||
"forbidInternalImports": true,
|
|
||||||
"requiredPackages": [
|
|
||||||
"@siax/config",
|
|
||||||
"@siax/tokens",
|
|
||||||
"@siax/ui"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"tokenPolicy": "canonical-plus-domain-extensions",
|
|
||||||
"fontPolicy": "canonical-self-hosted",
|
|
||||||
"geometryPolicy": "canonical",
|
|
||||||
"elevationPolicy": "canonical-only",
|
|
||||||
"guard": {
|
|
||||||
"required": true,
|
|
||||||
"sourceRootAware": true,
|
|
||||||
"negativeFixtures": false,
|
|
||||||
"command": "siax-doctor design --repo . --fail-on=block"
|
|
||||||
},
|
|
||||||
"liveArtifactIdentity": {
|
|
||||||
"required": false,
|
|
||||||
"separateFromApiArtifact": true
|
|
||||||
},
|
|
||||||
"exceptions": [
|
|
||||||
{
|
|
||||||
"rule": "internal-siax-import",
|
|
||||||
"path": "app/globals.css",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/accordion.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/alert-dialog.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/alert.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/aspect-ratio.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/avatar.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/badge.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/breadcrumb.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/button-group.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/button.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/calendar.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/card.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/carousel.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/checkbox.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/collapsible.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/command.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/context-menu.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/dialog.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/drawer.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/dropdown-menu.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/field.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/form.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/hover-card.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/input-group.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/input-otp.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/input.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/item.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/kbd.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/label.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/menubar.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/navigation-menu.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/pagination.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/popover.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/progress.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/radio-group.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/resizable.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/scroll-area.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/select.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/separator.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/sheet.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/sidebar.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/skeleton.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/slider.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/sonner.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/spinner.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/switch.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/table.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/tabs.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/textarea.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/toast.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/toaster.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/toggle-group.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/toggle.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "local-primitive",
|
|
||||||
"path": "components/ui/tooltip.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/alert-dialog.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/button-group.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/button.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/calendar.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/card.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/checkbox.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/context-menu.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/dialog.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/dropdown-menu.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/hover-card.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/input-group.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/input-otp.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/input.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/menubar.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/navigation-menu.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/popover.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/radio-group.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/select.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/sheet.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/sidebar.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/slider.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/switch.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/tabs.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/textarea.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/toast.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/toggle-group.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-elevation",
|
|
||||||
"path": "components/ui/toggle.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/accordion.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/alert-dialog.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/alert.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/badge.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/button-group.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/button.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/calendar.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/card.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/command.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/context-menu.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/dialog.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/dropdown-menu.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/empty.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/field.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/hover-card.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/input-group.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/input.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/item.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/kbd.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/menubar.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/navigation-menu.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/popover.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/select.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/sidebar.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/skeleton.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/tabs.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/textarea.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/toast.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/toggle-group.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/toggle.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rule": "raw-radius",
|
|
||||||
"path": "components/ui/tooltip.tsx",
|
|
||||||
"reason": "P0 baseline: existing debt frozen; migrate to DES1GN in the P1/P2 wave and remove this exception",
|
|
||||||
"owner": "0pt",
|
|
||||||
"expires": "2027-03-31"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "0pt",
|
|
||||||
"slug": "0pt",
|
|
||||||
"origin_url": "https://git.siax.io/admin/0pt.git",
|
|
||||||
"manifest_file": "siax.repo.v3.json",
|
|
||||||
"manifest_operational_state": "running",
|
|
||||||
"assessed_level": "LIVE_VERIFIED",
|
|
||||||
"observed_live": "LIVE_VERIFIED",
|
|
||||||
"gaps": [
|
|
||||||
"NO_BACKUP_POLICY"
|
|
||||||
],
|
|
||||||
"ui": true,
|
|
||||||
"ui_dirs": [
|
|
||||||
"app",
|
|
||||||
"public"
|
|
||||||
],
|
|
||||||
"prod_domains": [
|
|
||||||
"0pt.app",
|
|
||||||
"api.0pt.app"
|
|
||||||
],
|
|
||||||
"live": [
|
|
||||||
{
|
|
||||||
"host": "0pt.app",
|
|
||||||
"status": 200,
|
|
||||||
"class": "public-ok",
|
|
||||||
"title": "0pt — your data"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"host": "api.0pt.app",
|
|
||||||
"status": 200,
|
|
||||||
"class": "public-ok",
|
|
||||||
"title": "0pt — your data"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"deep": {
|
|
||||||
"tracked_files": 954,
|
|
||||||
"test_files": 178,
|
|
||||||
"e2e_files": 0,
|
|
||||||
"has_playwright": false,
|
|
||||||
"has_cypress": false,
|
|
||||||
"api_contracts": [
|
|
||||||
"contracts/openapi.yaml"
|
|
||||||
],
|
|
||||||
"migrations": 0,
|
|
||||||
"health_refs": 69,
|
|
||||||
"uses_siax_ui": true,
|
|
||||||
"has_a11y_tooling": false,
|
|
||||||
"has_design_conformance": true,
|
|
||||||
"ui_state_files": [
|
|
||||||
"app/error.tsx",
|
|
||||||
"app/not-found.tsx"
|
|
||||||
],
|
|
||||||
"todo_count": 10,
|
|
||||||
"has_runbook_docs": true,
|
|
||||||
"has_architecture_docs": true,
|
|
||||||
"has_status_docs": false
|
|
||||||
},
|
|
||||||
"backlog": [
|
|
||||||
{
|
|
||||||
"priority": "P1",
|
|
||||||
"task": "Backup",
|
|
||||||
"next_step": "Definiera frekvens, retention, mål och kryptering i `siax.backup`."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"priority": "P1",
|
|
||||||
"task": "E2E i webbläsare",
|
|
||||||
"next_step": "Lägg Playwright-flöde för inloggning och kärnflöde mot riktig miljö."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"priority": "P1",
|
|
||||||
"task": "Tillgänglighetsgrind",
|
|
||||||
"next_step": "Aktivera eslint-plugin-jsx-a11y/axe och en blockerande WCAG 2.2-kontroll."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"priority": "P2",
|
|
||||||
"task": "Statusdokument",
|
|
||||||
"next_step": "Lägg `docs/STATUS.md` med nivå, bevis, kända gap och nästa steg."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"priority": "P2",
|
|
||||||
"task": "Teknisk skuld",
|
|
||||||
"next_step": "Prioritera bland 10 TODO/FIXME-markeringar; stäng eller gör dem spårbara som issues."
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"standard": "SIAX Master Definition of Done"
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"id": "server6-db.xh70k0qa0cyju840zsvsgoze-20261118",
|
|
||||||
"repo": "0pt",
|
|
||||||
"backupId": "server6-db.xh70k0qa0cyju840zsvsgoze",
|
|
||||||
"performedAt": "2026-11-18T11:08:20Z",
|
|
||||||
"performedBy": "siax-backup-restoretest.service",
|
|
||||||
"result": "pass",
|
|
||||||
"notes": "Nod server6, jobb db.xh70k0qa0cyju840zsvsgoze: veckovist återställningstest (temporär container utan nätverk, radräkning). Tidsstämpel ur nodens tillstånd (restore_last_success)."
|
|
||||||
}
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
|||||||
# 0pt — cosign-signeringskedjan (2026-09-29)
|
# 0pt — cosign-signeringskedjan (2026-09-29)
|
||||||
|
|
||||||
Prod-imagen git.cloud.siax.io/sax3l/0pt:prod-1a1a7ef105 (sha256:b8f292e41e22f932e439d72368d0dbaff7d1f3596504196ba5594b7f7275e612) är cosign-signerad
|
Prod-imagen git.cloud.siax.io/sax3l/0pt:prod-8b5e23aa9b (sha256:889753b7e5a9db3e1c870eeb38f450cb0f20498e1025edb28153233e0b06f46d) är cosign-signerad
|
||||||
med nyckelparet vars pubkey ligger här. Privata nyckeln raderad efter signering.
|
med nyckelparet vars pubkey ligger här. Privata nyckeln raderad efter signering.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-----BEGIN PUBLIC KEY-----
|
-----BEGIN PUBLIC KEY-----
|
||||||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAETn3WrRKQ37g7XyunDGlDtf01faS3
|
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEiPRG9iG1pjIW548KoIduQPD/B3Yb
|
||||||
rjMbrHrVuSnCC5BdjBODDz7LPMjQ0/f4gdDYFSa1uK5rOj1FcSlKdcB2jw==
|
tg5hPmy7o4feVQsdDnW38VtemVBQ4I+goytV9X4XkrFiweKmfqEMhGyPgg==
|
||||||
-----END PUBLIC KEY-----
|
-----END PUBLIC KEY-----
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.crawl_job",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#siax.acquisition.run",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "planned"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.crawl_job",
|
|
||||||
"kind": "cli",
|
|
||||||
"entrypoint": "siax 0pt crawl-job",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "planned"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.crawl_job",
|
|
||||||
"kind": "job",
|
|
||||||
"entrypoint": "n0d job:0pt.crawl_job",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "planned"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.crawl_job",
|
|
||||||
"kind": "mcp",
|
|
||||||
"entrypoint": "mcp:0pt.crawl_job",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "planned"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.execute_metric",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#0ptExecuteMetric",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "planned"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.execute_metric",
|
|
||||||
"kind": "cli",
|
|
||||||
"entrypoint": "siax 0pt execute-metric",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "planned"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.load_full_table",
|
|
||||||
"kind": "job",
|
|
||||||
"entrypoint": "n0d job:0pt.load_full_table",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "planned"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.render_report",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#0ptRenderReport",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "planned"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.run_data_quality_check",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#0ptRunDataQualityCheck",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "planned"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.run_data_quality_check",
|
|
||||||
"kind": "cli",
|
|
||||||
"entrypoint": "siax 0pt run-data-quality-check",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "planned"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.structure.extract_document",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#0pt.extract_document",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "live"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.structure.get_lineage",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#0pt.get_provenance",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "live"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.structure.normalize_value",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#0pt.normalize_value",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "live"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.structure.quality_checks",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#0pt.quality.checks",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "live"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.structure.quality_list_runs",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#0pt.quality.list_runs",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "live"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.structure.quality_reports",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#0pt.quality.reports",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "live"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.structure.quality_run",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#0pt.quality.run",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "live"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.structure.resolve_entities",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#0pt.resolve_entities",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "live"
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://git.siax.io/sax3l/siax-standard/raw/branch/main/schema/siax.surface.schema.json",
|
|
||||||
"capabilityId": "0pt.structure.route_parsing",
|
|
||||||
"kind": "api",
|
|
||||||
"entrypoint": "contracts/openapi.yaml#0pt.route_parsing",
|
|
||||||
"authRequired": true,
|
|
||||||
"status": "live"
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
-- 022_canonical_facts.sql — 0pt canonical structured observations (X-800 / Scrape).
|
-- 020_canonical_facts.sql — 0pt canonical structured observations (X-800 / Scrape).
|
||||||
--
|
--
|
||||||
-- 0pt owns normalized OBSERVED facts (what a source said, when, from which
|
-- 0pt owns normalized OBSERVED facts (what a source said, when, from which
|
||||||
-- artifact). L0RE owns epistemic propositions/assertions and projections; it
|
-- artifact). L0RE owns epistemic propositions/assertions and projections; it
|
||||||
@@ -82,21 +82,18 @@ CREATE INDEX IF NOT EXISTS idx_canonical_relations_object
|
|||||||
|
|
||||||
ALTER TABLE opt_canonical_entities ENABLE ROW LEVEL SECURITY;
|
ALTER TABLE opt_canonical_entities ENABLE ROW LEVEL SECURITY;
|
||||||
ALTER TABLE opt_canonical_entities FORCE ROW LEVEL SECURITY;
|
ALTER TABLE opt_canonical_entities FORCE ROW LEVEL SECURITY;
|
||||||
DROP POLICY IF EXISTS opt_canonical_entities_tenant ON opt_canonical_entities;
|
|
||||||
CREATE POLICY opt_canonical_entities_tenant ON opt_canonical_entities
|
CREATE POLICY opt_canonical_entities_tenant ON opt_canonical_entities
|
||||||
USING (tenant_id = current_setting('app.opt_canonical_tenant_id', true))
|
USING (tenant_id = current_setting('app.opt_canonical_tenant_id', true))
|
||||||
WITH CHECK (tenant_id = current_setting('app.opt_canonical_tenant_id', true));
|
WITH CHECK (tenant_id = current_setting('app.opt_canonical_tenant_id', true));
|
||||||
|
|
||||||
ALTER TABLE opt_canonical_facts ENABLE ROW LEVEL SECURITY;
|
ALTER TABLE opt_canonical_facts ENABLE ROW LEVEL SECURITY;
|
||||||
ALTER TABLE opt_canonical_facts FORCE ROW LEVEL SECURITY;
|
ALTER TABLE opt_canonical_facts FORCE ROW LEVEL SECURITY;
|
||||||
DROP POLICY IF EXISTS opt_canonical_facts_tenant ON opt_canonical_facts;
|
|
||||||
CREATE POLICY opt_canonical_facts_tenant ON opt_canonical_facts
|
CREATE POLICY opt_canonical_facts_tenant ON opt_canonical_facts
|
||||||
USING (tenant_id = current_setting('app.opt_canonical_tenant_id', true))
|
USING (tenant_id = current_setting('app.opt_canonical_tenant_id', true))
|
||||||
WITH CHECK (tenant_id = current_setting('app.opt_canonical_tenant_id', true));
|
WITH CHECK (tenant_id = current_setting('app.opt_canonical_tenant_id', true));
|
||||||
|
|
||||||
ALTER TABLE opt_canonical_relations ENABLE ROW LEVEL SECURITY;
|
ALTER TABLE opt_canonical_relations ENABLE ROW LEVEL SECURITY;
|
||||||
ALTER TABLE opt_canonical_relations FORCE ROW LEVEL SECURITY;
|
ALTER TABLE opt_canonical_relations FORCE ROW LEVEL SECURITY;
|
||||||
DROP POLICY IF EXISTS opt_canonical_relations_tenant ON opt_canonical_relations;
|
|
||||||
CREATE POLICY opt_canonical_relations_tenant ON opt_canonical_relations
|
CREATE POLICY opt_canonical_relations_tenant ON opt_canonical_relations
|
||||||
USING (tenant_id = current_setting('app.opt_canonical_tenant_id', true))
|
USING (tenant_id = current_setting('app.opt_canonical_tenant_id', true))
|
||||||
WITH CHECK (tenant_id = current_setting('app.opt_canonical_tenant_id', true));
|
WITH CHECK (tenant_id = current_setting('app.opt_canonical_tenant_id', true));
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
-- 023_canonical_grants.sql — app-role privileges for 022 canonical tables.
|
|
||||||
--
|
|
||||||
-- Tables created by a manual psql migration are owned by the migrating role
|
|
||||||
-- (0pt_edge); the running application connects as 0pt_app. Existing 0pt tables
|
|
||||||
-- carry explicit grants rather than default ACLs, so the canonical tables need
|
|
||||||
-- the same treatment. RLS still applies to 0pt_app (FORCE is on); this only
|
|
||||||
-- grants the statement privileges, not row visibility.
|
|
||||||
--
|
|
||||||
-- Idempotent and role-guarded: no-op in environments without the app role.
|
|
||||||
|
|
||||||
DO $$
|
|
||||||
BEGIN
|
|
||||||
IF EXISTS (SELECT 1 FROM pg_roles WHERE rolname = '0pt_app') THEN
|
|
||||||
GRANT SELECT, INSERT, UPDATE, DELETE
|
|
||||||
ON opt_canonical_entities, opt_canonical_facts, opt_canonical_relations
|
|
||||||
TO "0pt_app";
|
|
||||||
END IF;
|
|
||||||
END
|
|
||||||
$$;
|
|
||||||
@@ -1,79 +0,0 @@
|
|||||||
/**
|
|
||||||
* CL0UD workload-identity JWT verification for explicit machine routes.
|
|
||||||
* Config-driven; fail-closed when a workload token is presented but invalid.
|
|
||||||
* Tenant/capabilities come from verified claims only.
|
|
||||||
*/
|
|
||||||
import { createRemoteJWKSet, decodeJwt, jwtVerify, type JWTPayload } from 'jose';
|
|
||||||
|
|
||||||
export type WorkloadPrincipal = {
|
|
||||||
sub: string;
|
|
||||||
tenantId: string;
|
|
||||||
capabilities: string[];
|
|
||||||
claims: JWTPayload;
|
|
||||||
};
|
|
||||||
|
|
||||||
export class WorkloadVerificationError extends Error {
|
|
||||||
constructor(message: string) { super(message); this.name = 'WorkloadVerificationError'; }
|
|
||||||
}
|
|
||||||
|
|
||||||
const jwksCache = new Map<string, ReturnType<typeof createRemoteJWKSet>>();
|
|
||||||
let resolverOverride: ((protectedHeader: unknown, token: unknown) => Promise<CryptoKey | Uint8Array>) | null = null;
|
|
||||||
|
|
||||||
export function __setWorkloadKeyResolverForTests(fn: typeof resolverOverride) { resolverOverride = fn; }
|
|
||||||
export function __resetWorkloadJwksCache() { jwksCache.clear(); resolverOverride = null; }
|
|
||||||
|
|
||||||
function readEnv(name: string): string | undefined {
|
|
||||||
const v = process.env[name];
|
|
||||||
return v && v.trim() ? v.trim() : undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function cl0udWorkloadConfig() {
|
|
||||||
const issuer = readEnv('CL0UD_WORKLOAD_ISSUER') ?? readEnv('CL0UD_ISSUER');
|
|
||||||
const jwksUrl = readEnv('CL0UD_WORKLOAD_JWKS_URL');
|
|
||||||
const audience = readEnv('CL0UD_WORKLOAD_AUDIENCE') ?? '0pt';
|
|
||||||
const tenantClaim = readEnv('CL0UD_WORKLOAD_TENANT_CLAIM') ?? 'tenant_id';
|
|
||||||
const capabilitiesClaim = readEnv('CL0UD_WORKLOAD_CAPABILITIES_CLAIM') ?? 'capabilities';
|
|
||||||
return { issuer, jwksUrl, audience, tenantClaim, capabilitiesClaim };
|
|
||||||
}
|
|
||||||
|
|
||||||
export function isCl0udWorkloadConfigured(): boolean {
|
|
||||||
const c = cl0udWorkloadConfig();
|
|
||||||
return Boolean(c.issuer || c.jwksUrl);
|
|
||||||
}
|
|
||||||
|
|
||||||
async function getJwks(c: ReturnType<typeof cl0udWorkloadConfig>) {
|
|
||||||
if (resolverOverride) return resolverOverride;
|
|
||||||
const url = c.jwksUrl ?? (c.issuer ? `${c.issuer.replace(/\/$/, '')}/.well-known/jwks.json` : undefined);
|
|
||||||
if (!url) throw new WorkloadVerificationError('CL0UD workload JWKS URL/issuer not configured');
|
|
||||||
let jwks = jwksCache.get(url);
|
|
||||||
if (!jwks) { jwks = createRemoteJWKSet(new URL(url)); jwksCache.set(url, jwks); }
|
|
||||||
return jwks;
|
|
||||||
}
|
|
||||||
|
|
||||||
function stringArray(v: unknown): string[] {
|
|
||||||
if (Array.isArray(v)) return v.filter((x): x is string => typeof x === 'string' && x.length > 0);
|
|
||||||
if (typeof v === 'string' && v.trim()) return v.split(/[\s,]+/).filter(Boolean);
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function verifyCl0udWorkloadToken(token: string): Promise<WorkloadPrincipal> {
|
|
||||||
const c = cl0udWorkloadConfig();
|
|
||||||
if (!isCl0udWorkloadConfigured()) throw new WorkloadVerificationError('CL0UD workload identity not configured');
|
|
||||||
const jwks = await getJwks(c);
|
|
||||||
const { payload } = await jwtVerify(token, jwks as any, {
|
|
||||||
...(c.issuer ? { issuer: c.issuer } : {}),
|
|
||||||
audience: c.audience,
|
|
||||||
});
|
|
||||||
const tenantId = payload[c.tenantClaim];
|
|
||||||
if (typeof tenantId !== 'string' || !tenantId) throw new WorkloadVerificationError(`missing ${c.tenantClaim} claim`);
|
|
||||||
const sub = typeof payload.sub === 'string' && payload.sub ? payload.sub : `workload:${tenantId}`;
|
|
||||||
const capabilities = stringArray(payload[c.capabilitiesClaim] ?? payload.scope);
|
|
||||||
return { sub, tenantId, capabilities, claims: payload };
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Best-effort check: does this bearer look like a configured CL0UD workload token? */
|
|
||||||
export function looksLikeCl0udWorkloadToken(token: string): boolean {
|
|
||||||
const c = cl0udWorkloadConfig();
|
|
||||||
if (!c.issuer) return false;
|
|
||||||
try { return decodeJwt(token).iss === c.issuer; } catch { return false; }
|
|
||||||
}
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
/**
|
|
||||||
* `src/auth/internal-service-tenant.ts` — server-side tenant scope for the
|
|
||||||
* machine-to-machine principal authenticated by `X-Internal-Token`.
|
|
||||||
*
|
|
||||||
* WHY THIS EXISTS (P0, 2026-11-07)
|
|
||||||
* --------------------------------
|
|
||||||
* `X-Internal-Token` proves that the caller is the SIAX engine process. It
|
|
||||||
* does NOT prove which tenant that process may act for. The first attempt at
|
|
||||||
* fixing the "internal token bypasses the verified-tenant guard" hole copied a
|
|
||||||
* CLIENT HEADER (`X-0pt-Internal-Tenant`) or fell back to a single
|
|
||||||
* `INTERNAL_TENANT_ID` env var:
|
|
||||||
*
|
|
||||||
* const internalTenant =
|
|
||||||
* req.headers.get('x-0pt-internal-tenant') ?? process.env.INTERNAL_TENANT_ID;
|
|
||||||
*
|
|
||||||
* That is not an authorization source. Any holder of the shared internal token
|
|
||||||
* could still name any tenant in a request header, which is exactly the
|
|
||||||
* cross-tenant write the fix was supposed to stop (tenant_id
|
|
||||||
* 999999999999999999 returned 201 before).
|
|
||||||
*
|
|
||||||
* The correct model mirrors a verified Bearer token: the principal's tenant
|
|
||||||
* authority is a SERVER-SIDE fact, never a request field.
|
|
||||||
*
|
|
||||||
* - `INTERNAL_SERVICE_TENANTS` is a comma-separated allowlist configured on
|
|
||||||
* the 0pt deployment (env/secret), i.e. "the tenants this engine instance
|
|
||||||
* is entitled to write for".
|
|
||||||
* - When the allowlist is empty, the internal principal has NO tenant
|
|
||||||
* authority: tenant-scoped writes fail closed (403). Routes that do not
|
|
||||||
* carry a tenant (evidence outbox dispatch, ER candidates, search
|
|
||||||
* definitions) are unaffected.
|
|
||||||
* - A single allowlisted tenant is ALSO placed in `x-0pt-verified-tenant`
|
|
||||||
* by middleware so existing single-tenant checks keep working; two or more
|
|
||||||
* are carried in `x-0pt-verified-service-tenants` and the tenant guard
|
|
||||||
* checks membership.
|
|
||||||
* - Any inbound value for either header is stripped by middleware before
|
|
||||||
* forwarding, so a client can never forge tenant authority.
|
|
||||||
*
|
|
||||||
* No client header is read here. `X-0pt-Internal-Tenant` is deliberately not a
|
|
||||||
* contract.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Env var: comma-separated tenants this internal service principal may assert. */
|
|
||||||
export const INTERNAL_SERVICE_TENANTS_VAR = 'INTERNAL_SERVICE_TENANTS';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Request header installed by middleware.ts ONLY (never accepted from a
|
|
||||||
* client, and stripped from every inbound request). Carries the full
|
|
||||||
* server-configured service tenant scope; may be the empty string, which means
|
|
||||||
* "service principal without tenant authority".
|
|
||||||
*/
|
|
||||||
export const SERVICE_TENANT_SCOPE_HEADER = 'x-0pt-verified-service-tenants';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Request header installed by middleware.ts ONLY: the CL0UD workload token's
|
|
||||||
* verified capability list, comma-separated. Stripped from every inbound
|
|
||||||
* request like the tenant scope.
|
|
||||||
*/
|
|
||||||
export const SERVICE_CAPABILITIES_HEADER = 'x-0pt-verified-capabilities';
|
|
||||||
|
|
||||||
/** Parse a comma-separated tenant allowlist (trimmed, de-duplicated, ordered). */
|
|
||||||
export function parseServiceTenants(value: string | undefined | null): string[] {
|
|
||||||
if (!value) return [];
|
|
||||||
const tenants: string[] = [];
|
|
||||||
for (const part of value.split(',')) {
|
|
||||||
const tenant = part.trim();
|
|
||||||
if (tenant && !tenants.includes(tenant)) tenants.push(tenant);
|
|
||||||
}
|
|
||||||
return tenants;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Read the configured service tenant allowlist from the environment. */
|
|
||||||
export function resolveInternalServiceTenants(
|
|
||||||
// @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);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Read the scope middleware installed on the request (already stripped+set). */
|
|
||||||
export function readServiceTenantScope(headers: { get(name: string): string | null | undefined }): string[] {
|
|
||||||
return parseServiceTenants(headers.get(SERVICE_TENANT_SCOPE_HEADER));
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user