ci / olares chart · sanity (pull_request) Successful in 3s
ci / app · types + tests + build (pull_request) Successful in 3m7s
markt / eintrag (pull_request) Successful in 29s
release / which version (pull_request) Successful in 3s
release / olares chart · sanity (pull_request) Successful in 4s
release / app (pull_request) Successful in 59s
release / tag and release (pull_request) Skipped
Setup with a code from /app/data, passkeys with required user verification, sessions as hashed cookies bound to the passkey they started with, single-use invitation and device links, removing a passkey or a member, and a recovery code for the owner. Cross-household lookups before sign-in run in withAuth() (app.auth), allowed only on the sign-in tables; a test pins that list. State-changing routes check the session and the Origin header. Security check with the login-sicherheit skill before the first invitation: docs/sicherheit/login-2026-11-06.md (no open findings above low). Entrance goes public now that the own sign-in exists; markt.yml creates the Lunch entry in aimighty-market and proves it with wrangler. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HUc2nv7rJVU2gp3Bgtha3q
29 lines
1.4 KiB
Bash
Executable File
29 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Beweist einen Markt-Eintrag lokal mit wrangler, bevor er in Marcs Repo geht
|
|
# (Muster aimighty/rocket docs/MARKT.md):
|
|
# - /api/v1/appstore/hash antwortet,
|
|
# - /api/v1/applications/lunch/chart liefert das Chart byte-gleich,
|
|
# - /api/v2/applications/lunch nennt Version und chartName.
|
|
#
|
|
# bash scripts/markt-beweis.sh <markt-klon> <version> <sha256 des Charts>
|
|
set -euo pipefail
|
|
MARKT="$1"; V="$2"; SHA="$3"; PORT="${PORT:-8788}"
|
|
cd "$MARKT"
|
|
[ -d node_modules ] || npm ci --silent
|
|
# Eigene Prozessgruppe: wrangler startet workerd als Kind, das sonst bleibt.
|
|
setsid npx wrangler pages dev functions --port "$PORT" > wrangler.log 2>&1 &
|
|
WR=$!
|
|
trap 'kill -- -$WR 2>/dev/null || true' EXIT
|
|
for _ in $(seq 1 90); do curl -sf "localhost:$PORT/api/v1/appstore/hash" >/dev/null && break; sleep 1; done
|
|
curl -sf "localhost:$PORT/api/v1/appstore/hash" | grep -q '"hash"' || { tail -30 wrangler.log; echo "hash antwortet nicht"; exit 1; }
|
|
IST=$(curl -sf "localhost:$PORT/api/v1/applications/lunch/chart" | sha256sum | cut -d' ' -f1)
|
|
[ "$IST" = "$SHA" ] || { echo "Chart weicht ab: $IST statt $SHA"; exit 1; }
|
|
curl -sf "localhost:$PORT/api/v2/applications/lunch" | python3 -c "
|
|
import json, sys
|
|
s = json.dumps(json.load(sys.stdin))
|
|
for soll in ('\"chartName\": \"lunch-$V.tgz\"', '\"version\": \"$V\"'):
|
|
assert soll in s, 'fehlt: ' + soll
|
|
"
|
|
rm -f wrangler.log
|
|
echo "bewiesen: lunch $V, Chart sha256 $SHA"
|