5 Commits
Author SHA1 Message Date
arnaud.dartois 9fd9c75f94 [Security] Update container bases to .NET 10.0.15
Heimdall Gitea / Build and tests (push) Successful in 19m55s
Heimdall Gitea / Detect CI scope (push) Successful in 1m1s
Heimdall Gitea / Build and scan server image (push) Successful in 9m7s
Heimdall Gitea / Build and scan agent image (push) Successful in 12m27s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 19m7s
Heimdall Gitea / Publish versioned installer release (push) Successful in 5m47s
Heimdall Gitea / CI policy (push) Successful in 6s
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-12 00:57:51 +01:00
arnaud.dartois fcc719d627 fix(install): charger le secret d’auth coturn avec la version 4.6 (#324)
Heimdall Gitea / Detect CI scope (push) Successful in 6s
Heimdall Gitea / Build and tests (push) Successful in 20m56s
Heimdall Gitea / Build and scan agent image (push) Failing after 9m22s
Heimdall Gitea / Build and scan server image (push) Failing after 9m43s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Failing after 14m18s
Heimdall Gitea / Publish versioned installer release (push) Skipped
Heimdall Gitea / CI policy (push) Failing after 2s
fix(install): load coturn auth secret with 4.6

Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-11 09:42:51 +01:00
arnaud.dartois bc7ddccfe3 docs: document Infisical secret workflows (#322)
Heimdall Gitea / Detect CI scope (push) Successful in 5s
Heimdall Gitea / Build and tests (push) Skipped
Heimdall Gitea / Build and scan server image (push) Skipped
Heimdall Gitea / Build and scan agent image (push) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Skipped
Heimdall Gitea / Publish versioned installer release (push) Skipped
Heimdall Gitea / CI policy (push) Successful in 2s
Closes #321
Closes #323

## Résumé
- Ajoute un skill projet pour utiliser le MCP Infisical sans divulguer les valeurs et relie les workflows concernés.
- Définit une évaluation automatique des releases et du SemVer, sans demander à l’utilisateur si une release est souhaitée ou quel numéro choisir.
- Les docs/skills seules ne déclenchent pas de release.

## Évaluation de release
Aucune release pour cette PR : elle ne contient que de la documentation et des skills. La version stable reste `1.0.0`; aucun tag ne sera créé.

## Validation
- `git diff origin/main...HEAD --check` : réussi.
- Inventaire Infisical limité aux noms de clés; aucune valeur secrète dans le diff.
- Les checks Gitea de la première révision passaient; les nouveaux checks sont en cours après la mise à jour.
- Tests applicatifs non exécutés : changement documentaire uniquement.

Reviewed-on: #322
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-10 16:29:15 +01:00
arnaud.dartois 6e7f593cb3 fix(install): repair optional RustFS and coturn services (#320)
Heimdall Gitea / Detect CI scope (push) Successful in 5s
Heimdall Gitea / Build and tests (push) Successful in 21m1s
Heimdall Gitea / Build and scan server image (push) Skipped
Heimdall Gitea / Build and scan agent image (push) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Skipped
Heimdall Gitea / Publish versioned installer release (push) Skipped
Heimdall Gitea / CI policy (push) Successful in 3s
## Problème et résultat

Refs #319

Les Compose optionnels utilisent maintenant les secrets sous `optional/secrets/`, comme les créent les deux installateurs serveur. Coturn lance explicitement `turnserver`, publie TCP/UDP 3478 et la plage UDP relay configurable 49160–49200 par défaut. La documentation explique les ports et le secret partagé.

## Vérification

- `git diff --check` : réussi.
- Recette Compose jetable `heimdall-accept-319-1c3c2bc3` : config des fichiers, démarrage RustFS et coturn, RustFS `/health` réussi, ports coturn publiés; teardown vérifié, conteneurs/volume/réseau absents. Aucun tag d’image local construit ou supprimé; images amont conservées.
- Limites : création/accès S3 signé et allocation TURN authentifiée non validés. L’accès TURN externe derrière NAT et les parcours d’installateurs sur hôtes Linux/Windows restent hors de cette preuve.
- Aucun run CI ni déploiement réel revendiqué.

## Livraison

- Revue des changements Compose et du contrat des secrets faite.
- Issue #319 reste ouverte pour la validation TURN authentifiée/S3 et les validations terrain déjà suivies par #153.
- Aucune release n’est demandée pour cette PR.

Reviewed-on: #320
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-10 16:29:10 +01:00
arnaud.dartois 622abb4454 docs(release): ask and tag on PR merge (#318)
Heimdall Gitea / Detect CI scope (push) Successful in 5s
Heimdall Gitea / Build and tests (push) Skipped
Heimdall Gitea / Build and scan server image (push) Skipped
Heimdall Gitea / Build and scan agent image (push) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Skipped
Heimdall Gitea / Publish versioned installer release (push) Skipped
Heimdall Gitea / CI policy (push) Successful in 7s
docs(release): ask and tag on PR merge

Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-10 14:40:35 +01:00
19 changed files with 148 additions and 26 deletions

No files matched your search

+5 -5
View File
@@ -75,7 +75,7 @@ jobs:
needs: [changes]
runs-on: [ubuntu-latest, build-agent]
container:
image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b
image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb
services:
postgres:
image: postgres:17-alpine@sha256:b0f9560a2de083e2cc7382e75f808c7381a32852a7ec49117deedb300e552b24
@@ -163,7 +163,7 @@ jobs:
needs: [changes, verify]
runs-on: [ubuntu-latest, build-agent]
container:
image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b
image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb
steps:
- name: Prepare action runtime before checkout
run: |
@@ -208,7 +208,7 @@ jobs:
needs: [changes, verify]
runs-on: [ubuntu-latest, build-agent]
container:
image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b
image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb
steps:
- name: Prepare action runtime before checkout
run: |
@@ -253,7 +253,7 @@ jobs:
needs: [changes, verify]
runs-on: [ubuntu-latest, build-agent]
container:
image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b
image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb
steps:
- name: Prepare action runtime before checkout
run: |
@@ -298,7 +298,7 @@ jobs:
needs: [changes, verify, server_image, agent_image, agent_gpu_image]
runs-on: [ubuntu-latest, build-agent]
container:
image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b
image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb
permissions:
contents: write
pull-requests: read
+2 -2
View File
@@ -1,5 +1,5 @@
# Server/PWA: restore the complete project graph from locked dependencies.
FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b AS build
FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb AS build
WORKDIR /src
ARG VERSION=0.0.0-local
COPY global.json Directory.Build.props Directory.Build.targets ./
@@ -8,7 +8,7 @@ COPY install/ ./install/
RUN dotnet restore src/Heimdall.Web/Heimdall.Web.csproj --locked-mode
RUN dotnet publish src/Heimdall.Web/Heimdall.Web.csproj -c Release --no-restore -o /out -p:Version=$VERSION -p:ContinuousIntegrationBuild=true
FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:de0ee358cdd672f7017a003bed21e9ac9ed48a27c922a59b18175b6e82fa7fee
FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:bfd912c83295ce66d4b706ebb8541b9f14259b0e76fbb88b2751f58ce2399d2e
WORKDIR /app
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --only-upgrade apt libapt-pkg6.0t64 \
+2 -2
View File
@@ -1,6 +1,6 @@
# CPU agent: use glibc for ONNX native dependencies. GPU variants need a
# separately validated .NET/native-library runtime and are not published here.
FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b AS build
FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb AS build
WORKDIR /src
ARG VERSION=0.0.0-local
ARG TARGET_RUNTIME=cpu
@@ -10,7 +10,7 @@ COPY src/ ./src/
RUN dotnet restore src/Heimdall.Agent/Heimdall.Agent.csproj --locked-mode
RUN dotnet publish src/Heimdall.Agent/Heimdall.Agent.csproj -c Release --no-restore -o /out -p:Version=$VERSION -p:ContinuousIntegrationBuild=true
FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:de0ee358cdd672f7017a003bed21e9ac9ed48a27c922a59b18175b6e82fa7fee
FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:bfd912c83295ce66d4b706ebb8541b9f14259b0e76fbb88b2751f58ce2399d2e
WORKDIR /app
ARG DOCKER_CLI_VERSION=29.9.3
ARG DOCKER_CLI_SHA256=3fb5d1f13014c18cc54945bc177c58a9056a482dada031e17d12cf2e6922c973
+2 -2
View File
@@ -1,6 +1,6 @@
# Optional NVIDIA Agent image. ONNX Runtime 1.22 GPU uses CUDA 12.8 and cuDNN 9.
# NVIDIA amd64 runtime image digest is pinned; it includes CUDA 12.8.1/cuDNN 9.8.0.87.
FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b AS build
FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb AS build
WORKDIR /src
ARG VERSION=0.0.0-local
COPY global.json Directory.Build.props Directory.Build.targets ./
@@ -9,7 +9,7 @@ RUN dotnet restore src/Heimdall.Agent/Heimdall.Agent.csproj -p:HeimdallOnnxRunti
RUN dotnet publish src/Heimdall.Agent/Heimdall.Agent.csproj -c Release --no-restore -o /out \
-p:HeimdallOnnxRuntime=GPU -p:Version=$VERSION -p:ContinuousIntegrationBuild=true
FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:de0ee358cdd672f7017a003bed21e9ac9ed48a27c922a59b18175b6e82fa7fee AS dotnet-runtime
FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:bfd912c83295ce66d4b706ebb8541b9f14259b0e76fbb88b2751f58ce2399d2e AS dotnet-runtime
FROM nvidia/cuda:12.8.1-cudnn-runtime-ubuntu24.04@sha256:9175fa92f96de35a8cfb9493f0dfcf9435c7a597e9d95ad41d2cae382a95e3f9 AS runtime
WORKDIR /app
+15 -7
View File
@@ -3,16 +3,24 @@ services:
coturn:
image: coturn/coturn:4.6
pull_policy: always
command: >
-n --use-auth-secret
--static-auth-secret-file=/run/secrets/coturn_secret
--realm=${COTURN_REALM:-heimdall.local}
--fingerprint --no-tlsv1 --no-tlsv1_1 --log-file=stdout
network_mode: host
ports:
- "${COTURN_PORT:-3478}:3478/tcp"
- "${COTURN_PORT:-3478}:3478/udp"
- "${COTURN_RELAY_PORT_MIN:-49160}-${COTURN_RELAY_PORT_MAX:-49200}:${COTURN_RELAY_PORT_MIN:-49160}-${COTURN_RELAY_PORT_MAX:-49200}/udp"
entrypoint: ["/bin/sh", "-c"]
command:
- >-
exec turnserver -n --use-auth-secret
--static-auth-secret="$$(cat /run/secrets/coturn_secret)"
--realm=${COTURN_REALM:-heimdall.local}
--fingerprint --no-tlsv1 --no-tlsv1_1 --log-file=stdout
--no-cli --listening-port=3478
--min-port=${COTURN_RELAY_PORT_MIN:-49160}
--max-port=${COTURN_RELAY_PORT_MAX:-49200}
secrets:
- coturn_secret
restart: unless-stopped
secrets:
coturn_secret:
file: ./secrets/coturn_secret
file: ./optional/secrets/coturn_secret
+2 -2
View File
@@ -30,9 +30,9 @@ volumes:
secrets:
rustfs_access_key:
file: ./secrets/rustfs_access_key
file: ./optional/secrets/rustfs_access_key
rustfs_secret_key:
file: ./secrets/rustfs_secret_key
file: ./optional/secrets/rustfs_secret_key
networks:
heimdall-net:
+8 -3
View File
@@ -201,9 +201,14 @@ RTSPS/WHEP TCP ports and WebRTC ICE UDP port in the firewall. Add STUN URLs unde
`LiveMedia:IceServers`; for TURN REST credentials set
`LiveMedia:Turn:Urls` and `LiveMedia:Turn:SharedSecret`. Central returns
five-minute HMAC credentials to the browser; the shared secret is never sent.
When using `docker-compose.coturn.yml`, configure the Central secret from the same
protected secret source as `docker/secrets/coturn_secret`; protect the Central
`.env` with owner-only permissions.
When using `docker-compose.coturn.yml`, the installer stores its shared secret
at `optional/secrets/coturn_secret`. Configure the matching TURN shared secret
in Central from that protected file and protect Central's `.env` with owner-only
permissions. Coturn publishes TCP/UDP 3478 and UDP relay ports 49160–49200 by
default; forward those ports through the host firewall/NAT. Set
`COTURN_RELAY_PORT_MIN` and `COTURN_RELAY_PORT_MAX` together if you need a
different relay range, and `COTURN_EXTERNAL_IP` when coturn must advertise an
address other than the container's detected address. Use Docker's default bridge network; coturn must not use `network_mode: host` when relying on published ports.
Start the core project first so its external `heimdall-net` network exists, then
start MediaMTX with a separate project name:
+2
View File
@@ -5,6 +5,8 @@ description: Validate Heimdall PostgreSQL and protected-volume backups using iso
# Heimdall backup and restore
For an explicitly authorized real backup/restore operation, follow [Infisical secrets](../infisical-secrets/SKILL.md) and retrieve only the selected environment's required key. Use generated credentials and disposable volumes for acceptance.
Use this workflow when changing `docker/scripts/backup*.sh`, `docker/scripts/restore*.sh`, the backup Compose, or the disaster-recovery runbook.
## Project-specific behavior
+2
View File
@@ -5,6 +5,8 @@ description: Maintain Central server installation, Compose refresh, and Docker i
# Central installation and image updates
For credentials needed by an explicitly requested real deployment, follow [Infisical secrets](../infisical-secrets/SKILL.md). Disposable Compose acceptance continues to use generated credentials and isolated resources.
Use this skill when changing the Linux or Windows Central installer, its generated Compose, or Central container update behavior.
For installer, Compose, image, and documentation work that can proceed independently, use [parallel development with Orca](../parallel-development/SKILL.md). Keep shared deployment contracts and the final isolated acceptance run coordinated and integrated before recording evidence.
@@ -5,6 +5,8 @@ description: Build and acceptance-test Heimdall changes in a disposable Docker C
# Disposable Compose acceptance
Follow [Infisical secrets](../infisical-secrets/SKILL.md) when the surrounding task also needs real credentials. Acceptance projects must always use generated synthetic values and must never retrieve deployment secrets from Infisical.
Use this skill for every Heimdall behavior, deployment, or operational change. Read the relevant project skill too; for first administrator setup, use `first-admin-bootstrap`.
When implementation or acceptance preparation has independent branches, use [parallel development with Orca](../parallel-development/SKILL.md) to assign bounded work. Keep the final Compose run, cleanup verification, and acceptance evidence under one coordinator so the combined change is validated as a whole.
+2
View File
@@ -11,4 +11,6 @@ Heimdall server, CPU Agent, and NVIDIA Agent images use Ubuntu 24.04 runtime lay
For acceptance, build Central, CPU Agent, and NVIDIA Agent from the changed checkout under unique Compose image tags with synthetic credentials, loopback ports, project-scoped volumes/network, and an EXIT cleanup trap. Verify Central health and the native Agent installer and supervisor URLs; build the NVIDIA image without claiming GPU runtime validation. Scan all three built images with the same pinned Trivy version, vulnerability DB repositories, and HIGH/CRITICAL exit policy used by `scripts/ci/security.sh`. A passing acceptance requires zero HIGH/CRITICAL findings, successful teardown, no project containers/volumes/networks, and removal plus absence checks for every exact local tag. Retain upstream base and scanner images.
When Trivy reports fixed .NET runtime advisories, update the pinned SDK and ASP.NET runtime manifest-list digests together across all three Dockerfiles and every SDK container in `.gitea/workflows/build.yml`. CI must use the SDK matching the updated lockfile, or locked restore fails against stale SDK reference assets. Confirm the new tags and digests against Microsoft's .NET release notes and `docker buildx imagetools inspect`; keep the SDK major/minor aligned with `global.json`. For the November 2026 ASP.NET Core 10.0.15 security update, the `10.0-noble` tags must resolve to images containing runtime 10.0.15, which fixes CVE-2026-114146, CVE-2026-114147, and CVE-2026-114149. Do not suppress these findings or change the CI severity threshold.
The CI image scan is a merge gate. Do not publish or merge around a failed scan; inspect the report and correct the affected package, then rerun the complete workflow. Keep Gitea issue evidence split between disposable local acceptance and the actual CI publication run.
+2
View File
@@ -5,6 +5,8 @@ description: Implement or diagnose Heimdall's mandatory first administrator setu
# First administrator setup
For deployment bootstrap credentials, follow [Infisical secrets](../infisical-secrets/SKILL.md) and retrieve only the explicitly selected environment's required keys. Disposable acceptance must use generated accounts and passwords, never vault credentials.
Use this skill when changing account bootstrap, signup, login routing, user creation, or initial deployment guidance.
- The first account is created through a dedicated setup assistant that is reachable only while the database has no users. Do not seed a production password or print credentials to logs.
+4
View File
@@ -5,6 +5,10 @@ description: Create, maintain, link, and close Heimdall project tickets in Gitea
# Gitea ticket workflow
For credentials used while investigating or validating tickets, follow [Infisical secrets](../infisical-secrets/SKILL.md). Never put secret values in issue descriptions or comments; use metadata-only existence checks when documenting prerequisites.
When a change is delivered through a PR, include its automatic release assessment using [pull request release assessment](../pr-release-versioning/SKILL.md); do not ask the user to choose whether or which version to release.
Gitea issues are the source of truth for planned work, acceptance evidence, operational follow-up, and completion. Do not use a repository markdown checklist as a parallel backlog.
For implementation work that has independent tasks, use [parallel development with Orca](../parallel-development/SKILL.md). Keep Gitea as the work-status source: create linked issues for independently deliverable outcomes, while Orca Runs/Tasks coordinate the execution and dependencies.
+30
View File
@@ -0,0 +1,30 @@
---
name: infisical-secrets
description: Retrieve and maintain Heimdall project credentials in the connected Infisical instance while keeping secret values out of repository files, transcripts, and logs.
---
# Heimdall secrets in Infisical
Use this workflow whenever a Heimdall skill needs a real credential, and link this skill from any skill that adds or changes a credential workflow. The connected MCP server is the supported interface to Infisical.
## Vault and scope
- Select project **Orca** (`orca-cc2-m`) explicitly; its project ID is `96fb3628-2ee3-45b5-b6a8-66a0212a5b46`. Use `dev`, `staging`, or `prod` only when the task names that environment. Never silently fall back from one environment to another.
- Use the MCP tools `list-projects`, `list-secrets`, `get-secret`, and `create-secret`. They are allowlisted in the local MCP configuration. Never use `create-secret` as an implicit overwrite operation: check the key first and explain/ask before replacing an existing value.
- `list-secrets` returns secret values as well as names. Treat its full response as sensitive even when only checking availability. Do not print, quote, summarize, or copy values into tool output, chat, shell history, command arguments, files in the repository, issue/PR text, or logs.
- Prefer retrieving only the needed key with `get-secret`. Pass the value directly to the one process that needs it using a protected stdin/temporary file outside the repository with mode `0600`, then remove that exact file. Never interpolate it into a command string or a checked-in Compose file.
- Use metadata-only checks to report which keys exist. Never test access by dumping a value. If a diagnostic accidentally emits a value, stop, do not repeat it, and tell the user that the credential should be rotated. Do not rotate it unless the user explicitly asks.
## Using secrets in skill workflows
- Distinguish real deployment credentials from disposable acceptance credentials. Compose acceptance recipes must generate unique synthetic credentials and must not fetch production or staging values from Infisical.
- For local manual integration work, fetch only the named development key needed by that skill. For a deployment task, use the explicitly requested environment and target. Never place fetched values in `.env.example`, tracked configuration, source, fixtures, or documentation.
- CI secrets remain in the CI secret store unless a task explicitly migrates the CI workflow. Infisical presence alone does not configure Gitea Actions or prove a runner can access the vault.
- When a workflow needs a credential not present in the selected environment, report its exact key name and purpose; do not substitute a similarly named credential or a different environment.
- When asked to persist a newly provided credential, use `create-secret` in the selected project/environment/path. First verify the key is absent, then create it, then verify presence by listing metadata only. Do not echo the supplied value.
## Current inventory verified 2026-11-10
The `dev` root currently contains `GITEA_ORCA_TOKEN`, `HEIMDALL_LOGIN`, `HEIMDALL_PASSWORD`, `HEIMDALL_PRIVATE_KEY_B64`, `HEIMDALL_URL`, `PENPOT_LOGIN`, `PENPOT_PASSWORD`, and `PENPOT_URL`. The `staging` and `prod` roots were empty at verification time. Treat this inventory as a dated snapshot; check metadata again before relying on it.
The development inventory does not include Heimdall deployment/database/JWT, RustFS, Agent site-token, Coturn, Redis, Sentry, Docker Hub, or release-signing credentials. Some are generated for disposable acceptance, some are optional, and CI publication credentials belong in Gitea Actions. Do not add real values simply to make the inventory look complete; report only keys required by the active task.
+27
View File
@@ -0,0 +1,27 @@
---
name: optional-server-services
description: Keep installer-managed RustFS and coturn Compose services aligned with the server installer's paths and networking.
---
# Installer-managed optional services
The Linux and Windows server installers run optional Compose files with the installation root as the current directory. They save service secrets in `optional/secrets/` and pass the root `.env` for interpolation. Therefore, Compose secret `file:` entries must use `./optional/secrets/<name>`, not `./secrets/<name>` or paths relative to `optional/`.
## RustFS
- Keep `rustfs_access_key` and `rustfs_secret_key` file paths aligned with the generated files from both installers.
- Verify Compose config from the install-root working directory and ensure Docker secrets are sourced from those files.
- Keep the named data volume and shared `heimdall-net` behavior intact.
## coturn
- Keep `coturn_secret` sourced from `./optional/secrets/coturn_secret`.
- coturn 4.6 does not support `--static-auth-secret-file`; read the mounted Docker secret in a shell entrypoint and pass it to `--static-auth-secret`. Do not print the value.
- Use a shell entrypoint that executes `turnserver`, bridge networking, and explicit TCP/UDP listener and UDP relay port publications; the upstream image has a `turnadmin` entrypoint, and host networking cannot be combined with useful Compose port mappings.
- Keep the published relay range identical to coturn's `--min-port`/`--max-port` options. Make listener and relay settings configurable with documented defaults.
- Set `COTURN_EXTERNAL_IP` only when NAT requires coturn to advertise an explicit public address. The operator must forward the listener and relay range through firewalls/NAT.
- Do not claim public TURN reachability from a local container startup. It requires an external ICE/TURN client on a real network.
## Acceptance
Run both services in one uniquely named disposable Compose project using generated secrets and unique loopback listener ports. Use `docker compose --project-directory <install-root> --env-file <generated-env> -f <source-compose> -p <project> config` to prove the installer root resolves `optional/secrets/` correctly. Start RustFS and coturn; verify RustFS `/health` and S3 authentication and coturn startup plus a TURN REST authenticated allocation from a test client if available. State separately whether the real TURN allocation succeeded. Tear down only that project, verify its containers/volumes/networks are absent, and keep upstream images. No local images should be built by this recipe.
+32
View File
@@ -0,0 +1,32 @@
---
name: pr-release-versioning
description: Assess whether a Heimdall pull request needs a published release and select its SemVer increment from the change impact without asking the user.
---
# Pull request release assessment
Apply this assessment while preparing every Heimdall PR. Do not ask the user whether to release or which version to use. Record the decision, rationale, and proposed version in the PR description; update it if the diff changes.
## Decide whether a release is needed
- **No release** for documentation, skills, tests, CI-only changes, refactors with no externally observable change, or internal tooling changes. State `Release: no` and keep the current version unchanged.
- **Release required** when the PR changes behavior shipped to Heimdall users or operators, published images/installers/Agent assets, compatibility contracts, or security fixes that users need to receive.
- Do not create a release tag for a PR. A release tag points to a commit on `main`; assess the merged change after required checks pass and then follow the tag workflow in `release-automation`.
## Select the version automatically
Use the latest stable SemVer tag reachable from the integration branch (`MAJOR.MINOR.PATCH`); ignore prerelease tags when selecting the stable base. For multiple merged, unreleased changes, assess all changes since that tag together and use the highest required increment.
- **MAJOR** for a breaking API, configuration, data, or install/upgrade compatibility change.
- **MINOR** for a backward-compatible user-facing capability or operator feature.
- **PATCH** for backward-compatible bug fixes, security fixes, performance fixes, and shipped compatibility corrections.
- No release-worthy changes means no tag and no version increment.
Increment only the selected component and reset lower components to zero. For example, from `1.4.7`: breaking becomes `2.0.0`, a compatible feature becomes `1.5.0`, and a fix becomes `1.4.8`. If no stable tag exists, use `1.0.0` as the base only when the repository's first-release policy confirms that baseline; otherwise report the missing baseline instead of inventing one.
## PR and post-merge steps
- Put a short `Release assessment` section in every PR: `no release (reason)` or `release required; proposed version X.Y.Z (reason)`.
- For no-release PRs, do not create or push a tag. Keep the version unchanged.
- For a release-required PR, determine the exact next version from the current `main` tags after merge, verify it is unused, and create an annotated tag on the merged `main` commit only after required CI succeeds. If another merge changes the base before tagging, recalculate from the latest stable tag and all unreleased changes.
- Never overwrite or move an existing tag. If the change is prerelease-only or an emergency exception, explain the project-specific suffix/tag choice in the PR without asking the user to choose it.
+5
View File
@@ -5,6 +5,10 @@ description: Build and validate changed Heimdall images on pushes, then publish
# Heimdall build and release workflow
For every PR, follow [pull request release assessment](../pr-release-versioning/SKILL.md). Determine and record whether a release is needed and the proposed SemVer from the change impact; do not ask the user to decide. Documentation and skills-only changes do not create a release or change the version. Only tag a release after the merged commit is on `main` and required checks pass.
For any local release investigation that needs credentials, follow [Infisical secrets](../infisical-secrets/SKILL.md). Keep publication credentials in Gitea Actions as specified below; do not assume that a key in Infisical is available to CI.
Use this skill for changes to `.gitea/workflows/build.yml`, `scripts/ci/change_scope.py`, image build/push scripts, installer packages, release signing, or the Gitea release job.
## Delivery contract
@@ -14,6 +18,7 @@ Use this skill for changes to `.gitea/workflows/build.yml`, `scripts/ci/change_s
- A push to `main` validates the changed source and builds/scans/pushes only affected images. The affected image gets immutable `sha-<full-sha>` and mutable `latest` tags on Docker Hub. Main pushes do not create Gitea releases.
- Runs for the same ref are serialized so a slower older `main` run cannot overwrite a newer `latest` image.
- A `MAJOR.MINOR.PATCH` tag (optional prerelease suffix allowed) is a version release. It validates the complete source and builds/scans server, Agent CPU, and Agent GPU images once each. The verified images are pushed to Docker Hub as `sha-<full-sha>` and the application version.
- After merge of a release-worthy PR, use the current stable tag and all unreleased changes to calculate the SemVer increment according to `pr-release-versioning`. Fetch `main`, verify the merged commit is reachable from it, verify the selected tag is unused, create an annotated tag at the merged commit, and push it to trigger this workflow. Never ask the user to choose a version or release, infer a version from the PR title alone, or force-update an existing tag. Documentation and skills-only changes do not get a tag.
- The tag release job does not build or scan Docker images. It pulls the already scanned immutable image refs to verify their source revision, then resolves canonical digests from Docker Hub Registry v2 using the immutable commit tags. It creates a signed Gitea release containing `heimdall-installers-<version>.zip`, framework-dependent Agent archives, the public key, signed update manifest, and CPU/GPU image digest manifests. Local Docker `RepoDigests` can contain multiple values and must not be used as a uniqueness check. Build provenance, image-digest bookkeeping, and checksums stay in CI package output and are not uploaded as end-user release assets. It never uploads Docker image archives to Gitea.
- The package script uses fast gzip compression for the framework-dependent release archives to reduce release-job CPU time; keep the archive names and layout stable for Linux and Windows installers.
- The installer ZIP preserves the `install/` and `docker/` layout consumed by the Linux and Windows server installers. A raw-branch `.sh` or `.ps1` bootstrap resolves Gitea's latest stable version (or an explicit `HEIMDALL_INSTALLER_VERSION`), verifies the Gitea SHA-256 asset digest, downloads that version's ZIP, and runs its version-pinned script. Versioned bundle scripts pin their source assets and server image to the same tag and do not resolve a moving release. Direct Agent install scripts served by Central continue to download Agent payloads through Central's configured Gitea release API.
+1
View File
@@ -13,6 +13,7 @@ Keep the site Agent installer in `src/Heimdall.Web/Components/SiteInstallPanel.r
- Keep generated command content in the existing builders and `Commands` projection. Platform selection controls the builders; do not duplicate generated commands in markup.
- Native install commands require a latest signed release with update key, signed manifest, signature, and Agent archive assets. Docker commands additionally require a digest-pinned image reference and update key. Preserve these gates so the panel never offers a nonfunctional installer.
- Treat site tokens and generated configuration as secrets: show them only in the authenticated site's installer view and copy only after a deliberate click. Do not log generated content.
- For live installer verification, use the authenticated Orca browser session. Check for the dedicated Heimdall login only in the user secret store at `~/.config/heimdall/credentials.json`; never put account passwords in this skill, repository config, shell arguments, or Orca `fill` commands. The file fallback is owner-only (`0700` directory, `0600` file) and base64-encoded, not encrypted. If it is absent, provide the user-run masked helper `~/.local/bin/store-heimdall-credentials`; do not report the credentials as persisted until that helper succeeds. If Orca has no safe autofill path, ask the user to enter the password in the visible browser.
- Keep all visible strings in `SharedResources.resx`, `SharedResources.en.resx`, and `SharedResources.fr.resx`.
- Match Pangolin's control hierarchy and compact copy affordance while using Heimdall's MudBlazor theme and supported installation choices. Keep selection and copy feedback accessible with selected styling, tooltips/aria labels, and a check icon after copying.
+3 -3
View File
@@ -44,9 +44,9 @@
},
"Microsoft.AspNetCore.App.Internal.Assets": {
"type": "Direct",
"requested": "[10.0.14, )",
"resolved": "10.0.14",
"contentHash": "T1IOYbID1msKjQEh684HebnN+Xnq/pocMXDukOMZtzzPTf9c4/30+/JndM/1txrqwuSYqWvLiAQWzu4U93cshw=="
"requested": "[10.0.15, )",
"resolved": "10.0.15",
"contentHash": "cineG7aU2cpo+CC5rDORY4bFRya0mlaULDpzQ+ncfG0tMyZlWATyVAo2P29i0hH40EElK5O204pjT4XEYALb6g=="
},
"Microsoft.AspNetCore.OpenApi": {
"type": "Direct",