Commit Graph
14 Commits
Author SHA1 Message Date
admin 4b46e9d3ba fix(ci): begränsa gitleaks i security-workflowen (bara införda commits på PR/push, fullhistorik nattligt)
CI (SIAX Cloud) / security (push) Successful in 34s
CI (SIAX Cloud) / integration (push) Successful in 1m16s
CI (SIAX Cloud) / Component conformance (blocking) (push) Successful in 12s
masterplan-lock / check (push) Successful in 7s
CI (SIAX Cloud) / sonar (push) Successful in 1m22s
security / scan (push) Failing after 52s
Release chain (G17, ADR-W16-003) / Build, push, G17 (SBOM/scan/attest/verify/evidence) (push) Successful in 1m17s
Deploy to Coolify / deploy (push) Successful in 4m29s
CI (SIAX Cloud) / quality (push) Successful in 11m5s
2026-11-11 16:21:32 +00:00
Claude Code 1e89328fee fix(ci): begränsa gitleaks i security-workflowen
CI (SIAX Cloud) / sonar (pull_request) Skipped
masterplan-lock / check (pull_request) Successful in 5s
CI (SIAX Cloud) / Component conformance (blocking) (pull_request) Successful in 7s
security / scan (pull_request) Failing after 22s
CI (SIAX Cloud) / security (pull_request) Successful in 30s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m29s
CI (SIAX Cloud) / integration (pull_request) Successful in 1m30s
Samma riktade ändring som den kanoniska mallen (admin/siax-templates#205):
fullhistorikskanningen (`git log -p --full-history --all`) körde på varje PR
och push utan tidsgräns och kunde äta en delad runner-värd i timmar.

- PR/push: blockerande "gitleaks commit range" över bara de införda
  commitarna (git-läge, --log-opts base..head, max 500 med varning).
- Fullhistorik bara på schedule/workflow_dispatch med 40 min budget.
- timeout-minutes på scan-jobbet, CPU/minne-tak och --redact på
  gitleaks-containrarna, kvarlämnade containrar dödas.

Workflow-namn, job-id, runs-on och övriga steg är oförändrade, så krävda
kontexter påverkas inte. Ändringen är maskinellt kontrollerad (YAML,
bash -n per steg, invarianter för jobb, runs-on och stegordning).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 12:41:26 +01:00
adminandClaude Opus 5.5 d6a30f3b2b fix(ci): OSV-vakten och config-kollen körs i scanvolymen
CI (SIAX Cloud) / sonar (pull_request) Skipped
masterplan-lock / check (pull_request) Successful in 8s
CI (SIAX Cloud) / Component conformance (blocking) (pull_request) Successful in 12s
CI (SIAX Cloud) / security (pull_request) Successful in 19s
security / scan (pull_request) Failing after 24s
CI (SIAX Cloud) / integration (pull_request) Successful in 10m14s
CI (SIAX Cloud) / quality (pull_request) Successful in 10m53s
Samma ändring som admin/siax-standard#608; bara OSV-steget byts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 10:56:12 +00:00
Claude CodeandClaude Opus 5.5 cfa1b66cc1 ci: N6-komplett concurrency (röd tråd, jobbstorm §4–5)
CI (SIAX Cloud) / sonar (pull_request) Skipped
masterplan-lock / check (pull_request) Successful in 6s
CI (SIAX Cloud) / Component conformance (blocking) (pull_request) Successful in 10s
security / scan (pull_request) Failing after 21s
CI (SIAX Cloud) / security (pull_request) Successful in 36s
CI (SIAX Cloud) / integration (pull_request) Successful in 1m0s
CI (SIAX Cloud) / quality (pull_request) Successful in 2m35s
Fullföljer #555 enligt server-config ci/jobbstorm-2026-11-10 §4–5:
- cd.yml, release.yml: fast grupp ${{ gitea.workflow }}, cancel-in-progress: false.
- ci.yml, security.yml: kanonisk grupp ${{ gitea.workflow }}-${{ gitea.ref }}, true.
- nightly.yml, prod-smoke.yml (bara schedule/workflow_dispatch): fast grupp och
  cancel-in-progress: false (tidigare true – en schemalagd körning ska köas, inte
  avbrytas).
- health-check.yml, vehiq-oltp-ingest.yml: concurrency saknades; fast grupp,
  cancel-in-progress: false (inga överlappande ingest-körningar var 15:e minut).

Bara concurrency ändras (workflow-diff-guard.py ok=true).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 00:27:54 +01:00
admin 1afcfdd703 fix(ci): gitleaks blockerar pa arbetstradet, misconfig och historik informativt
CI (SIAX Cloud) / security (push) Successful in 29s
CI (SIAX Cloud) / Component conformance (blocking) (push) Successful in 23s
security / scan (push) Failing after 42s
CI (SIAX Cloud) / sonar (push) Successful in 1m59s
CI (SIAX Cloud) / integration (push) Successful in 2m13s
Release chain (G17, ADR-W16-003) / Build, push, G17 (SBOM/scan/attest/verify/evidence) (push) Successful in 3m20s
Deploy to Coolify / deploy (push) Successful in 4m20s
CI (SIAX Cloud) / quality (push) Successful in 12m10s
CI (SIAX Cloud) / quality (pull_request) Canceled after 0s
CI (SIAX Cloud) / integration (pull_request) Canceled after 0s
CI (SIAX Cloud) / security (pull_request) Canceled after 0s
CI (SIAX Cloud) / sonar (pull_request) Canceled after 0s
CI (SIAX Cloud) / Component conformance (blocking) (pull_request) Canceled after 0s
security / scan (pull_request) Canceled after 0s
masterplan-lock / check (push) Successful in 4s
masterplan-lock / check (pull_request) Successful in 4s
2026-11-10 20:41:25 +01:00
admin 0cb603fc62 fix(ci): härdat security-workflow - pinnade scannrar, volym och bara fynd blockerar
CI (SIAX Cloud) / sonar (pull_request) Skipped
masterplan-lock / check (push) Successful in 11s
masterplan-lock / check (pull_request) Successful in 11s
CI (SIAX Cloud) / Component conformance (blocking) (pull_request) Successful in 17s
CI (SIAX Cloud) / security (pull_request) Successful in 43s
security / scan (pull_request) Failing after 1m12s
CI (SIAX Cloud) / integration (pull_request) Successful in 10m3s
CI (SIAX Cloud) / quality (pull_request) Successful in 12m32s
2026-11-10 17:18:54 +01:00
admin 3d2fc6f913 fix(recovery): restore source removed by production documentation merge 2026-11-10 03:42:10 +01:00
admin a4189333af docs(production): standardiserad produktionsberedskap och gap-analys
Lägger docs/production-readiness.md och siax/production-gaps.json enligt SIAX Master Definition of Done. Underlag: git-, kod- och live-evidens 2026-11-11. Nivån är evidensbaserad, inte ett leveransgodkännande.
2026-11-10 03:07:36 +01:00
admin c01deca048 ci: optimize delivery pipelines and add a production smoke gate
CI (SIAX Cloud) / sonar (pull_request) Skipped
masterplan-lock / check (push) Successful in 5s
masterplan-lock / check (pull_request) Successful in 10s
CI (SIAX Cloud) / security (pull_request) Successful in 19s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 21s
CI (SIAX Cloud) / integration (pull_request) Successful in 40s
CI (SIAX Cloud) / quality (pull_request) Successful in 2m13s
- One run per ref (concurrency) for CI, security, nightly and release; branch
  pushes no longer duplicate pull_request runs (push is main-only).
- Deploys keep their own concurrency group so two runs never race Coolify.
- pnpm store cache on every Node job.
- New /api/version returns the deployed commit (no secrets).
- New scheduled prod-smoke workflow: readiness, db/stripe health, running
  commit == main, and the document/credit routes exist (401/405, never 5xx).
2026-11-02 18:24:45 +01:00
admin a5f0041bc8 ci(security): exkludera redan byggda image-SBOM:er från källscanning
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / integration (push) Skipped
CI (SIAX Cloud) / sonar (push) Skipped
masterplan-lock / check (push) Successful in 3s
masterplan-lock / check (pull_request) Successful in 6s
CI (SIAX Cloud) / security (push) Failing after 18s
CI (SIAX Cloud) / security (pull_request) Failing after 19s
Security Scan (SIAX Cloud) / security (push) Failing after 19s
Security Scan (SIAX Cloud) / security (pull_request) Failing after 33s
CI (SIAX Cloud) / quality (pull_request) Failing after 45s
CI (SIAX Cloud) / quality (push) Failing after 52s
CI (SIAX Cloud) / integration (pull_request) Successful in 1m23s
2026-11-01 09:46:55 +01:00
Claude CodeandClaude Sonnet 5 4c47e151f3 chore(ci): add missing timeout-minutes guards to hot-path jobs
CI (SIAX Cloud) / integration (push) Skipped
masterplan-lock / check (push) Successful in 6s
masterplan-lock / check (pull_request) Successful in 6s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 24s
Security Scan (SIAX Cloud) / security (push) Successful in 49s
CI (SIAX Cloud) / security (push) Successful in 53s
CI (SIAX Cloud) / quality (push) Successful in 1m20s
CI (SIAX Cloud) / security (pull_request) Successful in 20s
CI (SIAX Cloud) / quality (pull_request) Successful in 53s
CI (SIAX Cloud) / integration (pull_request) Successful in 1m0s
Fleet-wide CI-speed pass: none of 0pt's push/pull_request-triggered
workflow jobs capped their own runtime, so a hang (network stall,
runaway process, stuck polling loop) burns a runner slot until Gitea's
own default kicks in. Added job-level timeout-minutes sized to what
each job actually does:

  cd.yml            deploy      20  (bounded ~10min signed-artifact poll + setup)
  ci.yml            quality     30  (typecheck/test/build)
  ci.yml            integration 45  (multi-service: live OpenSearch + ClickHouse)
  ci.yml            security    15  (single trivy fs scan)
  security.yml      security    15  (single trivy fs scan)
  masterplan-lock.yml check     10  (single dependency-free shell check)
  release.yml       release     45  (docker build/push + full G17 SBOM/scan/attest/verify chain)

Deliberately NOT included in this PR: a concurrency: block for
ci.yml/security.yml/masterplan-lock.yml's push+pull_request double-
trigger. ci.yml's own `integration` job comment already documents,
measured live (runs 28904/28906), that "Gitea currently ignores
workflow concurrency" on this fleet, and the repo's real fix for the
resulting double-run-on-shared-service-containers problem is the
self-identifying-container pattern already in that job, not a
concurrency group. Adding an inert concurrency: block here would give
false confidence that the duplicate-run problem is handled when it
measurably is not. Left for a follow-up decision once that fleet-wide
finding is resolved.

Part of a fleet-wide CI-speed pass (timeout-minutes audit).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-09-27 03:46:12 +02:00
Simon AxelssonandClaude Opus 5 1322d26fac fix(ci): make the required security gate capable of failing
Security Scan (SIAX Cloud) / security (push) Successful in 17s
CI (SIAX Cloud) / security (push) Successful in 25s
CI (SIAX Cloud) / integration (push) Failing after 31s
CI (SIAX Cloud) / quality (push) Successful in 34s
Branch protection on `main` requires exactly two status contexts:

    CI (SIAX Cloud) / security (push)
    CI (SIAX Cloud) / quality (push)

The `security` half could not fail. All three Trivy invocations in this
repo ran with `--exit-code 0`, so the scanner reported findings to stdout
and then exited 0 regardless.

Measured on main @4514d97, 2026-09-08, same scanner (Trivy 0.73.0), same
target, only the flag differing:

  A  --exit-code 0, clean tree                        -> exit 0
  B  --exit-code 0, planted AWS secret access key     -> exit 0  (DETECTED
     as CRITICAL in the report, gate still green)
  C  --exit-code 1, same planted secret               -> exit 1
  D  --exit-code 1, probe removed                     -> exit 0

B is the defect: the required context reported success while the scanner
had a CRITICAL secret in hand. D is why this is safe to land now -- the
tree is clean today, so flipping the flag does not open the gate red.
(PR #19 measured 19 HIGH findings on 2026-08-11; those dependencies have
since been updated on main, 142 commits later.)

The other required context, `quality`, was verified real and left alone:
a planted type error fails `pnpm run typecheck` (exit 2) and a planted
failing assertion fails `pnpm run test` (exit 1, 945 passed baseline).

nightly.yml carried the same flag. A nightly scan exists to catch CVEs
published against code that did not change; with `--exit-code 0` it could
never raise that alarm.

Not fixed here, needs an owner decision: services/scrapers/requirements.txt
uses `>=` ranges only. Trivy's pip scanner cannot resolve unpinned
specifiers, so it omits the file from the scan entirely -- it never appears
as a target. Pinning those same floors with `==` surfaces 3 HIGH findings
(aiohttp CVE-2025-69223, aiohttp CVE-2026-69244, lxml CVE-2026-41066).
Deliberately NOT suppressed with `--skip-dirs`, which would turn a
measurable blind spot into declared policy.

Job names are unchanged, so both required context strings are preserved.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-09-08 01:16:08 +02:00
adminandClaude Sonnet 5 2393f52768 docs(compliance): finish attributing the evasion-stack keep decision
CI (SIAX Cloud) / security (push) Successful in 20s
Security Scan (SIAX Cloud) / security (push) Successful in 20s
CI (SIAX Cloud) / quality (push) Successful in 41s
CI (SIAX Cloud) / security (pull_request) Successful in 20s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 20s
CI (SIAX Cloud) / quality (pull_request) Successful in 41s
PR #15 already fixed AGENTS.md/SECURITY.md with a dated, attributed
statement of the account owner's 2026-08-11 decision (Simon Axelsson, via
an interactive decision prompt, responding to this repo's own removal
proposal PR #7 which was verified clean/128 tests and closed unmerged --
no rationale beyond "keep it" was given or is invented). This PR finds and
fixes every other place in the repo that still carried the earlier
unattributed "medvetet anvandarbeslut" / "deliberate user decision" claim
a compliance audit flagged as unverifiable:

- docs/compliance/GOLDEN-STANDARD-REPORT.md: control C6 row + the
  "Bypass-undantag" formal section (the two places this doc was explicitly
  named to need checking) -- header gains a dated update note, C6 row and
  the section body get the same attributed statement as AGENTS.md/SECURITY.md.
- docs/compliance/SLUTRAPPORT.md, docs/compliance/INVENTORY.md: historical
  session doc keeps its original text and gains a dated correction
  addendum; the INVENTORY.md evidence bullet is corrected in place.
- docs/slo.md, CONTRIBUTING.md, prompts/002-compliance-audit.md,
  renovate.json, .gitea/workflows/security.yml: direct/living references
  to the exemption get the same attributed, dated pointer instead of the
  unattributed phrase.

CLAUDE.md's general §1 anti-evasion policy text is untouched, per instruction
-- this is a scoped exception note, not a change to the normative rule. No
code changes.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-08-11 13:34:13 +02:00
admin 48d31d0081 ci(workflows): split CD/security/nightly under .gitea/workflows + gitignore hygiene (protected-path PR)
Security Scan (SIAX Cloud) / security (push) Successful in 17s
CI (SIAX Cloud) / quality (push) Successful in 40s
2026-08-10 04:10:47 +02:00