فهرست منبع

Merge branch 'next' into trad_fr

James Read 21 ساعت پیش
والد
کامیت
8857dade0f
100فایلهای تغییر یافته به همراه3605 افزوده شده و 683 حذف شده
  1. 75 0
      .github/SECURITY_ADVISORY_DUPLICATES.md
  2. 6 0
      .github/workflows/build-and-release.yml
  3. 5 0
      .github/workflows/generated.yml
  4. 77 0
      .github/workflows/release-upgrade-notes.yml
  5. 14 0
      .goreleaser.yml
  6. 2 1
      .pre-commit-config.yaml
  7. 9 1
      .releaserc.yaml
  8. 27 0
      AGENTS.md
  9. 1 1
      README.md
  10. 69 4
      SECURITY.md
  11. 72 12
      config.yaml
  12. 31 0
      docs/modules/ROOT/examples/solutions/single-button-toggle/config.yaml
  13. 2 0
      docs/modules/ROOT/examples/solutions/single-button-toggle/water_valve.yaml
  14. 3 0
      docs/modules/ROOT/images/solutions/single-button-toggle/.gitignore
  15. 23 0
      docs/modules/ROOT/images/solutions/single-button-toggle/Makefile
  16. 38 0
      docs/modules/ROOT/images/solutions/single-button-toggle/config.yaml
  17. BIN
      docs/modules/ROOT/images/solutions/single-button-toggle/dashboard-closed.png
  18. BIN
      docs/modules/ROOT/images/solutions/single-button-toggle/dashboard-open.png
  19. BIN
      docs/modules/ROOT/images/solutions/single-button-toggle/icons/closed.png
  20. BIN
      docs/modules/ROOT/images/solutions/single-button-toggle/icons/open.png
  21. 16 0
      docs/modules/ROOT/images/solutions/single-button-toggle/screenshots.ini
  22. 29 0
      docs/modules/ROOT/images/solutions/single-button-toggle/setup_closed.py
  23. 37 0
      docs/modules/ROOT/images/solutions/single-button-toggle/setup_open.py
  24. 1 0
      docs/modules/ROOT/nav.adoc
  25. 63 15
      docs/modules/ROOT/pages/action_execution/onwebhook.adoc
  26. 1 1
      docs/modules/ROOT/pages/action_execution/shellvsexec.adoc
  27. 8 0
      docs/modules/ROOT/pages/advanced_configuration/logs.adoc
  28. 21 0
      docs/modules/ROOT/pages/advanced_configuration/webui.adoc
  29. 3 1
      docs/modules/ROOT/pages/api/login.adoc
  30. 2 0
      docs/modules/ROOT/pages/api/method_StartActionByGet.adoc
  31. 2 0
      docs/modules/ROOT/pages/api/method_StartActionByGetAndWait.adoc
  32. 5 0
      docs/modules/ROOT/pages/args/input_confirmation.adoc
  33. 4 3
      docs/modules/ROOT/pages/config.adoc
  34. 1 0
      docs/modules/ROOT/pages/entities/intro.adoc
  35. 1 1
      docs/modules/ROOT/pages/install/container.adoc
  36. 2 0
      docs/modules/ROOT/pages/logs/calendar.adoc
  37. 15 0
      docs/modules/ROOT/pages/logs/saving.adoc
  38. 19 0
      docs/modules/ROOT/pages/security/acl.adoc
  39. 5 2
      docs/modules/ROOT/pages/security/example_login_required.adoc
  40. 2 0
      docs/modules/ROOT/pages/security/example_some_admin_actions.adoc
  41. 7 0
      docs/modules/ROOT/pages/security/jwt_keys.adoc
  42. 2 0
      docs/modules/ROOT/pages/security/oauth2.adoc
  43. 2 0
      docs/modules/ROOT/pages/security/trusted_header.adoc
  44. 1 1
      docs/modules/ROOT/pages/solutions/k8s-control-panel-hosted/index.adoc
  45. 1 0
      docs/modules/ROOT/pages/solutions/latching-toggle/index.adoc
  46. 74 0
      docs/modules/ROOT/pages/solutions/single-button-toggle/index.adoc
  47. 2 0
      docs/modules/ROOT/pages/troubleshooting/log-debug-options.adoc
  48. 2 0
      docs/modules/ROOT/pages/troubleshooting/service-logs.adoc
  49. 25 5
      docs/modules/ROOT/pages/upgrade/2k3k.adoc
  50. 7 5
      docs/modules/ROOT/pages/upgrade/github_latest.adoc
  51. 82 2
      docs/modules/ROOT/pages/upgrade/upgrade_notes.adoc
  52. 1 0
      docs/modules/dev/nav.adoc
  53. 37 0
      docs/modules/dev/pages/sbom.adoc
  54. 285 236
      frontend/package-lock.json
  55. 8 8
      frontend/package.json
  56. 2 2
      frontend/resources/scripts/gen/olivetin/api/v1/olivetin_pb.d.ts
  57. 0 0
      frontend/resources/scripts/gen/olivetin/api/v1/olivetin_pb.js
  58. 6 2
      frontend/resources/vue/App.vue
  59. 1 0
      frontend/resources/vue/router.js
  60. 26 0
      frontend/resources/vue/utils/calendarMonthQuery.js
  61. 26 0
      frontend/resources/vue/utils/calendarMonthQuery.test.mjs
  62. 18 7
      frontend/resources/vue/views/LogsCalendarView.vue
  63. 59 18
      integration-tests/package-lock.json
  64. 2 2
      integration-tests/package.json
  65. 52 0
      integration-tests/tests/calendarMonthHistory/calendarMonthHistory.mjs
  66. 12 0
      integration-tests/tests/calendarMonthHistory/config.yaml
  67. 3 2
      integration-tests/tests/onlyDashboards/onlyDashboards.mjs
  68. 80 39
      lang/main.go
  69. 95 0
      lang/main_test.go
  70. 7 1
      proto/olivetin/api/v1/olivetin.proto
  71. 137 0
      scripts/ghsa_status.py
  72. 149 0
      scripts/release_upgrade_notes.py
  73. 13 13
      service/gen/olivetin/api/v1/olivetin.pb.go
  74. 28 30
      service/go.mod
  75. 74 65
      service/go.sum
  76. 4 0
      service/internal/acl/acl.go
  77. 79 0
      service/internal/acl/acl_login_required_test.go
  78. 65 98
      service/internal/api/api.go
  79. 77 0
      service/internal/api/api_justification_test.go
  80. 3 3
      service/internal/api/api_log_arguments.go
  81. 72 0
      service/internal/api/api_login_gate.go
  82. 168 0
      service/internal/api/api_login_gate_test.go
  83. 0 4
      service/internal/api/api_queue.go
  84. 58 0
      service/internal/api/api_test.go
  85. 35 8
      service/internal/api/local_user_login.go
  86. 102 0
      service/internal/api/local_user_login_enumeration_test.go
  87. 218 0
      service/internal/api/restart_action_current_binding_test.go
  88. 78 0
      service/internal/api/whoami_session_test.go
  89. 9 10
      service/internal/auth/authcheck.go
  90. 44 9
      service/internal/auth/authpublic/authenticateduser.go
  91. 39 0
      service/internal/auth/authpublic/session_fingerprint_test.go
  92. 51 54
      service/internal/auth/otjwt/jwt.go
  93. 172 0
      service/internal/auth/otjwt/jwt_local_key_rotation_test.go
  94. 2 3
      service/internal/auth/trusted-headers.go
  95. 28 0
      service/internal/auth/trusted-headers_test.go
  96. 39 1
      service/internal/config/config.go
  97. 64 13
      service/internal/config/sanitize.go
  98. 50 0
      service/internal/config/sanitize_test.go
  99. 61 0
      service/internal/configcheck/dashboard_types.go
  100. 70 0
      service/internal/configcheck/dashboard_types_test.go

+ 75 - 0
.github/SECURITY_ADVISORY_DUPLICATES.md

@@ -12,6 +12,28 @@ This document lists known duplicate security advisory clusters for [OliveTin/Oli
 4. If unique: accept, patch on a private branch, reassess CVSS with OliveTin context (see SECURITY.md — OliveTin is intentional RCE by design).
 4. If unique: accept, patch on a private branch, reassess CVSS with OliveTin context (see SECURITY.md — OliveTin is intentional RCE by design).
 5. Merge fix to `next`, publish advisory, credit reporters in advisory body (not commit message).
 5. Merge fix to `next`, publish advisory, credit reporters in advisory body (not commit message).
 
 
+Keep each advisory's status tag up to date throughout (see below).
+
+---
+
+## Status tags
+
+Every advisory in triage or draft has one `[status:...]` tag at the end of its summary, so maintainers and reporters can see where it is. Set it with `scripts/ghsa_status.py <GHSA-ID> <status>`, and check all advisories with `scripts/ghsa_status.py --list` (it exits non-zero if any tag is missing, unknown, or left on a published or closed advisory).
+
+| Status | Advisory state | Set when |
+|--------|----------------|----------|
+| `pending-review` | triage | A new report arrives and has not been decided yet. |
+| `awaiting-reporter` | triage or draft | Questions have been asked and the reporter's reply is needed. |
+| `accepted` | draft | The report is accepted and a fix is not yet ready for review. |
+| `feedback-on-fix` | draft | The fix PR is open in the private advisory fork, waiting for review or merge. |
+| `pending-release` | draft | The fix is merged to `next` and is waiting for a release before publishing. |
+
+Remove the tag with `scripts/ghsa_status.py <GHSA-ID> clear`:
+
+- before publishing an advisory;
+- before closing an advisory;
+- before requesting a CVE, so the tag does not end up in the CVE record.
+
 ---
 ---
 
 
 ## shellAfterCompleted command injection
 ## shellAfterCompleted command injection
@@ -125,6 +147,59 @@ Unauthenticated `PasswordHash` performs Argon2id hashing. Fixed in CVE-2026-2834
 
 
 ---
 ---
 
 
+## DoS triage
+
+Public criteria are in [SECURITY.md](../SECURITY.md) under "Denial of service (DoS) reports". In short: accept **crash or hang**, **amplification**, and **unbounded growth**; reject load that is proportional to traffic, bounded, fails gracefully and recovers by itself. Fix with bounds (semaphores, caps, TTL or eviction, limits on evaluation cost), not in-service rate limiting.
+
+Previous decisions, for reference:
+
+| GHSA | Outcome | Rule |
+|------|---------|------|
+| GHSA-45m3-398w-m2m9 | published | Crash: concurrent map writes in OAuth2 state handling |
+| GHSA-fwhj-785h-43hh | published | Crash: nil pointer from invalid bindings or log references |
+| GHSA-pc8g-78pf-4xrp | published | Amplification: about 64 MB of Argon2id memory per `PasswordHash` request; fixed with a 10-slot semaphore |
+| GHSA-xpxj-f2fm-rqch | published | Unbounded growth: OAuth2 state map; fixed with TTL and cap |
+| GHSA-j746-2pj2-p94h, GHSA-p7jx-32j2-jq49, GHSA-r2h8-8h64-fxx8, GHSA-8656-625g-3h52 | closed | Proportional and bounded: `PasswordHash` floods are capped by the semaphore and fail fast with `ResourceExhausted` |
+| GHSA-gc8x-fjw2-wghv | closed | Proportional and bounded: `ValidateArgumentType` regex uses Go's linear-time RE2 engine, so cost grows only with request size; hardened anyway |
+
+**CVSS note:** push back on `A:H` when an attack needs a very large number of requests before it has an effect; operators will notice network and CPU load first.
+
+---
+
+## RestartAction reuses stale bindings after a config reload
+
+**Canonical:** [GHSA-mgr4-8mh8-frw7](https://github.com/OliveTin/OliveTin/security/advisories/GHSA-mgr4-8mh8-frw7) — reporter **0xRrudy** (2026-10-29)
+
+`RestartAction` ran the binding saved in the old log entry, so after a hot reload it could restart a removed action, or run the old command and ACLs of an action whose ACLs were tightened.
+
+| GHSA | Reporter | Status | Notes |
+|------|----------|--------|-------|
+| GHSA-mgr4-8mh8-frw7 | 0xRrudy | canonical | Removed action and tightened ACL cases |
+| GHSA-w8ph-8qcm-h74w | ITALICOder | duplicate | Same issue, removed action case |
+
+**Fix:** look up the log entry's binding ID in the current action map, return NotFound if it is gone, and run the current binding.
+
+**Not a duplicate:** GHSA-p443-p7w5-2f7f (RestartAction lost the caller's identity), and reports about hot reload keeping auth state such as API keys.
+
+---
+
+## Required justification skipped
+
+**Canonical:** [GHSA-5jwv-37px-7hmc](https://github.com/OliveTin/OliveTin/security/advisories/GHSA-5jwv-37px-7hmc) — reporter **Khattak761** (2026-09-04)
+
+Ways to run an action that requires a justification without giving one. Not accepted as a vulnerability: the justification is a note in the logs, not an access control. The user already has `exec` on the action, and is still logged under their own username.
+
+| GHSA | Reporter | Status | Notes |
+|------|----------|--------|-------|
+| GHSA-5jwv-37px-7hmc | Khattak761 | closed (canonical) | `StartActionByGet` / `StartActionByGetAndWait` skip the check |
+| GHSA-cwqr-6xvr-ch27 | joostgrunwald | closed | Same endpoints, plus a client-supplied `provider: system` header with trusted-header auth |
+
+**Fix (public, as a bug):** the `StartActionByGet*` methods check the justification like `StartAction`, and trusted-header auth no longer reads a `provider` header.
+
+**Why not accepted:** no change to who can run what; ACLs still match the real username and usergroup. Close new reports here unless they show a justification bypass that also grants a permission the user did not have.
+
+---
+
 ## Easy to confuse (not duplicates)
 ## Easy to confuse (not duplicates)
 
 
 | Topic | Advisories | Distinction |
 | Topic | Advisories | Distinction |

+ 6 - 0
.github/workflows/build-and-release.yml

@@ -22,6 +22,7 @@ on:
       - 'var/entities/**'
       - 'var/entities/**'
       - 'var/helper-actions/**'
       - 'var/helper-actions/**'
       - 'var/macos/**'
       - 'var/macos/**'
+      - 'var/sbom/**'
       - 'var/windows/**'
       - 'var/windows/**'
   workflow_dispatch:
   workflow_dispatch:
   push:
   push:
@@ -50,6 +51,7 @@ on:
       - 'var/entities/**'
       - 'var/entities/**'
       - 'var/helper-actions/**'
       - 'var/helper-actions/**'
       - 'var/macos/**'
       - 'var/macos/**'
+      - 'var/sbom/**'
       - 'var/windows/**'
       - 'var/windows/**'
 
 
 permissions:
 permissions:
@@ -159,6 +161,10 @@ jobs:
         with:
         with:
           install-only: true
           install-only: true
 
 
+      - name: Install syft (release SBOM, var/sbom/generate.sh)
+        if: env.WILL_PUBLISH == 'true'
+        uses: anchore/sbom-action/download-syft@v0
+
       - name: Set up Docker Buildx
       - name: Set up Docker Buildx
         if: env.WILL_PUBLISH == 'true'
         if: env.WILL_PUBLISH == 'true'
         uses: docker/setup-buildx-action@v4
         uses: docker/setup-buildx-action@v4

+ 5 - 0
.github/workflows/generated.yml

@@ -18,6 +18,7 @@ on:
       - 'service/Makefile'
       - 'service/Makefile'
       - 'service/tools.go'
       - 'service/tools.go'
   pull_request:
   pull_request:
+    types: [opened, synchronize, reopened, edited]
     branches:
     branches:
       - next
       - next
     paths:
     paths:
@@ -54,5 +55,9 @@ jobs:
             service/go.sum
             service/go.sum
             lang/go.sum
             lang/go.sum
 
 
+      - name: Test language tool
+        run: go test ./...
+        working-directory: lang
+
       - name: Check generated sources
       - name: Check generated sources
         run: make generated-check
         run: make generated-check

+ 77 - 0
.github/workflows/release-upgrade-notes.yml

@@ -0,0 +1,77 @@
+---
+name: Release upgrade notes
+
+# Upgrade notes for merged but unreleased changes live under
+# "Next release (unreleased)" in upgrade_notes.adoc. When a 3k release is
+# tagged, move the notes that shipped in it under a heading for that version
+# on the next branch, which is where docs.olivetin.app is built from.
+
+on:
+  push:
+    tags:
+      - '3*.*.*'
+      - '!3*.*.*-*'
+  workflow_dispatch:
+    inputs:
+      tag:
+        description: 'Release tag to label upgrade notes with (eg 3000.23.0)'
+        required: true
+
+permissions:
+  contents: read
+
+# A run that is waiting must not be replaced by a later one, or the notes for
+# the earlier tag would be moved under the later version instead.
+concurrency:
+  group: release-upgrade-notes
+  cancel-in-progress: false
+  queue: max
+
+jobs:
+  label-upgrade-notes:
+    runs-on: ubuntu-latest
+    env:
+      NOTES_PATH: docs/modules/ROOT/pages/upgrade/upgrade_notes.adoc
+      RELEASE_TAG: ${{ inputs.tag || github.ref_name }}
+    steps:
+      - name: Checkout next
+        uses: actions/checkout@v6
+        with:
+          ref: next
+          fetch-depth: 0
+          token: ${{ secrets.CONTAINER_TOKEN }}
+
+      # Runs are queued in the order they start waiting, not in tag order, so
+      # this run may start before the run for an earlier release. Every
+      # release up to this one is processed oldest first, so a note always
+      # moves under the first release that shipped it. Releases that already
+      # have a section are skipped by the script.
+      - name: Move released upgrade notes
+        run: |
+          released_notes="${RUNNER_TEMP}/upgrade_notes_released.adoc"
+          if ! git rev-parse -q --verify "refs/tags/${RELEASE_TAG}" > /dev/null; then
+            echo "Tag ${RELEASE_TAG} does not exist."
+            exit 1
+          fi
+          git tag -l '3*.*.*' | grep -v -e '-' | sort -V | while read -r tag; do
+            if ! git show "refs/tags/${tag}:${NOTES_PATH}" > "${released_notes}" 2>/dev/null; then
+              echo "Tag ${tag} has no ${NOTES_PATH}; skipping."
+            else
+              python3 -I scripts/release_upgrade_notes.py "${tag}" "${released_notes}" "${NOTES_PATH}"
+            fi
+            if [ "${tag}" = "${RELEASE_TAG}" ]; then
+              break
+            fi
+          done
+
+      - name: Commit and push
+        run: |
+          if git diff --quiet -- "${NOTES_PATH}"; then
+            echo "No changes to commit."
+            exit 0
+          fi
+          git config user.name "github-actions[bot]"
+          git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
+          git add "${NOTES_PATH}"
+          git commit -m "docs: label upgrade notes released up to ${RELEASE_TAG}"
+          git push origin HEAD:next

+ 14 - 0
.goreleaser.yml

@@ -58,6 +58,19 @@ checksum:
     - default
     - default
     - openrc
     - openrc
 
 
+# One SBOM per release covers every archive, package and MSI (same Go binary + webui).
+# See var/sbom/generate.sh. Container images get BuildKit SBOM attestations (dockers_v2 sbom: true).
+sboms:
+  # id must be in release.ids and checksum.ids, otherwise those filters drop the SBOM files.
+  - id: default
+    artifacts: any
+    cmd: ../var/sbom/generate.sh
+    args:
+      - "{{ .Version }}"
+    documents:
+      - "{{ .ProjectName }}-{{ .Version }}-sbom.cdx.json"
+      - "{{ .ProjectName }}-{{ .Version }}-sbom.spdx.json"
+
 snapshot:
 snapshot:
   version_template: "{{ .Branch }}-{{ .ShortCommit }}"
   version_template: "{{ .Branch }}-{{ .ShortCommit }}"
 changelog:
 changelog:
@@ -83,6 +96,7 @@ changelog:
       - '^release:'
       - '^release:'
       - '^refactor:'
       - '^refactor:'
       - '^Merge branch'
       - '^Merge branch'
+      - '^Merge commit from fork'
 
 
 archives:
 archives:
   - id: default
   - id: default

+ 2 - 1
.pre-commit-config.yaml

@@ -29,7 +29,8 @@ repos:
     hooks:
     hooks:
       - id: conventional-pre-commit
       - id: conventional-pre-commit
         stages: [commit-msg]
         stages: [commit-msg]
-        args: [] # optional: list of Conventional Commits types to allow e.g. [feat, fix, ci, chore, test]
+        # The hook's default types, plus security for security advisory fixes (see SECURITY.md).
+        args: [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test, security]
 
 
   - repo: local
   - repo: local
     hooks:
     hooks:

+ 9 - 1
.releaserc.yaml

@@ -5,13 +5,21 @@ branches:
   - name: main
   - name: main
 
 
 plugins:
 plugins:
-  - '@semantic-release/commit-analyzer'
+  # security: commits are not in the default rules, so without this a release
+  # containing only security fixes would not be published.
+  - - '@semantic-release/commit-analyzer'
+    - releaseRules:
+        - type: security
+          release: patch
   # Only a draft is created here; GoReleaser adopts it (release.use_existing_draft),
   # Only a draft is created here; GoReleaser adopts it (release.use_existing_draft),
   # replaces the notes and publishes it. This plugin's job is the success comments on
   # replaces the notes and publishes it. This plugin's job is the success comments on
   # resolved issues/PRs, and opening an issue when a release fails.
   # resolved issues/PRs, and opening an issue when a release fails.
   - - '@semantic-release/github'
   - - '@semantic-release/github'
     - draftRelease: true
     - draftRelease: true
       releaseBodyTemplate: 'Release notes are generated by GoReleaser.'
       releaseBodyTemplate: 'Release notes are generated by GoReleaser.'
+      # Replaces the default 'released' label; the OliveTin label webhook reacts to it.
+      releasedLabels:
+        - 'progress: need-feedback-after-release'
       successComment: >-
       successComment: >-
         This is included in OliveTin
         This is included in OliveTin
         [<%= nextRelease.version %>](https://github.com/OliveTin/OliveTin/releases/tag/<%= nextRelease.version %>) :tada:
         [<%= nextRelease.version %>](https://github.com/OliveTin/OliveTin/releases/tag/<%= nextRelease.version %>) :tada:

+ 27 - 0
AGENTS.md

@@ -74,6 +74,33 @@ If you are looking for OliveTin's AI policy, you can find it in `AI.md`.
 - Review the AI guidance in `AI.md`.
 - Review the AI guidance in `AI.md`.
 - Review the pull request template at `.github/PULL_REQUEST_TEMPLATE.md`.
 - Review the pull request template at `.github/PULL_REQUEST_TEMPLATE.md`.
 - When changing behaviour covered by a spec in `specs/`, ensure implementation and tests match the spec.
 - When changing behaviour covered by a spec in `specs/`, ensure implementation and tests match the spec.
+- If operators need to act when upgrading, add an upgrade note (see "Upgrade Notes" below).
+
+### Upgrade Notes (changes that need operator action)
+When a change means operators may need to do something when they upgrade (a breaking behaviour change, a config change, or a security fix that stops a previously working setup), add an upgrade note in the same PR as the change.
+
+- Add the note to `docs/modules/ROOT/pages/upgrade/upgrade_notes.adoc`, under the `== Next release (unreleased)` heading. If that heading does not exist, create it directly after the page's introduction paragraph, above the newest version section.
+- Each note is an anchor line plus a level-3 heading, then what changed, who is affected, and what to do:
+  ```asciidoc
+  [#short-kebab-case-anchor]
+  === Short description of the change
+
+  What changed, and who is affected. What operators need to change.
+  ```
+- Link to the note from related docs pages with `xref:upgrade/upgrade_notes.adoc#short-kebab-case-anchor[Upgrade Notes]`. The anchor stays the same when the note moves under a version heading, so links keep working.
+- Do **not** write a version number and do **not** rename the unreleased heading by hand. When a 3k release is tagged, `.github/workflows/release-upgrade-notes.yml` runs `scripts/release_upgrade_notes.py`, which moves every note that was in the unreleased section at the tagged commit under a new `== <version>` heading on `next`. Notes merged after the release was cut stay unreleased. If the workflow fails, rerun it with `workflow_dispatch` and the release tag.
+- Do **not** mark the change with a `BREAKING CHANGE:` footer or a `!` in the commit type. semantic-release treats either as a major version bump.
+- docs.olivetin.app is built from `next`, so a note is public as soon as it merges. For security fixes the note goes in the private advisory fork PR, and should describe the behaviour change without exploit details.
+
+### Security Fixes
+Security advisory fixes follow the process in `SECURITY.md`:
+
+- Work in the advisory's private temporary fork (`OliveTin/OliveTin-ghsa-xxxx-xxxx-xxxx`), on a branch from its `next`, and open the PR against the fork's `next`. Never push fixes for unpublished advisories to the public repository, and never describe unfixed advisories in public files.
+- Commit subjects use `security: GHSA-xxxx-xxxx-xxxx (SEV) short description`, where `SEV` is `LOW`, `MED`, `HIGH` or `CRIT`. Do not name the reporter in commits; credit goes in the advisory.
+- Supporting commits in the same PR (for example docs or an upgrade note) use their normal type, and may mention the advisory ID.
+- `security:` commits trigger a patch release and are listed under **Security** in the release notes. Do not use `fix:` for advisory fixes, or they will be listed as bug fixes.
+- When an advisory is closed as not a vulnerability but still worth fixing, the fix is an ordinary public `fix:` commit against `next`, without the advisory ID.
+- Every triage or draft advisory carries a `[status:...]` tag at the end of its summary. Update it with `scripts/ghsa_status.py <GHSA-ID> <status>` whenever you change an advisory's state, ask the reporter a question, open a fork PR, or merge a fix; clear it with `clear` before publishing, closing, or requesting a CVE. The statuses and when to use them are listed in `.github/SECURITY_ADVISORY_DUPLICATES.md` under "Status tags". Run `scripts/ghsa_status.py --list` to check them.
 
 
 ### Branch Naming
 ### Branch Naming
 Use conventional-commit-style branch names with a type prefix, optional issue reference, and a short kebab-case description:
 Use conventional-commit-style branch names with a type prefix, optional issue reference, and a short kebab-case description:

+ 1 - 1
README.md

@@ -12,7 +12,7 @@
 [![Go Report Card](https://goreportcard.com/badge/github.com/Olivetin/OliveTin)](https://goreportcard.com/report/github.com/OliveTin/OliveTin)
 [![Go Report Card](https://goreportcard.com/badge/github.com/Olivetin/OliveTin)](https://goreportcard.com/report/github.com/OliveTin/OliveTin)
 [![AI Autonomy Level](https://img.shields.io/badge/AI%20Autonomy-Level%202%20of%205%20(pair--programmer)-blue)](https://blog.jread.com/posts/ai-levels-of-autonomy-in-software-engineering/)
 [![AI Autonomy Level](https://img.shields.io/badge/AI%20Autonomy-Level%202%20of%205%20(pair--programmer)-blue)](https://blog.jread.com/posts/ai-levels-of-autonomy-in-software-engineering/)
 
 
-[OliveTin 2k to 3k upgrade guide](https://docs.olivetin.app/upgrade/2k3k.html)
+OliveTin 2k is end of life - see the [OliveTin 2k to 3k upgrade guide](https://docs.olivetin.app/upgrade/2k3k.html)
 </div>
 </div>
 
 
 <img alt = "OliveTin action buttons" src = "var/marketing/screenshots/dashboard.png" />
 <img alt = "OliveTin action buttons" src = "var/marketing/screenshots/dashboard.png" />

+ 69 - 4
SECURITY.md

@@ -7,10 +7,27 @@ The following branches are currently being supported with security updates:
 | Version | Supported          |
 | Version | Supported          |
 | ------- | ------------------ |
 | ------- | ------------------ |
 | `main` (3k release branch)  | :white_check_mark: - advisories will be published when patched in this branch |
 | `main` (3k release branch)  | :white_check_mark: - advisories will be published when patched in this branch |
-| `release/2k` (2k release branch) | :white_check_mark: - receives security updates, but much slower |
+| `release/2k` (2k release branch) | :x: - end of life, no security fixes or bug fixes (see below) |
 
 
 To understand more about 2k vs 3k, see the following docs; https://docs.olivetin.app/upgrade/2k3k.html
 To understand more about 2k vs 3k, see the following docs; https://docs.olivetin.app/upgrade/2k3k.html
 
 
+### Policy change (25th November 2026): end of support for OliveTin 2k
+
+Until 25th November 2026, this policy said OliveTin 2k would receive bug fixes and security updates until at least 31st December 2028. That has changed: **as of 25th November 2026, OliveTin 2k is end of life, and no longer receives any updates - neither security fixes nor bug fixes.** We're sorry. The original commitment was made in good faith, and we know some of you planned around it.
+
+There are four reasons for the change:
+
+* **There isn't enough maintainer time to patch 2k.** In practice, 2k has received almost no patches since 3k was released. All the available time has gone into 3k, and it is more honest to say so than to keep a promise on paper that isn't being kept.
+* **Very few people are asking for 2k.** Interest in staying on 2k has been very low compared to the number of users who have simply upgraded to 3k.
+* **Many fixes can't be made safely in 2k's architecture.** Recent fixes in 3k rely on typed entities, the Connect RPC API, and a configuration system that can be reloaded cleanly. 2k has none of these, so a lot of fixes would mean rewriting large parts of 2k, which would effectively rebuild 3k inside 2k.
+* **Reports are arriving much faster than 2k could be patched.** AI-assisted security research now finds issues faster than ever. That is good for OliveTin users overall, but it means 2k fixes would ship late, incomplete, or not at all, and a branch that still claims security support without getting it is worse than an honest end-of-support notice.
+
+What this means for you:
+
+* `release/2k` no longer receives security fixes or bug fixes, and new advisories are only assessed against 3k.
+* Existing 2k releases and container images (`latest-2k`) remain available, and nothing will stop working.
+* If you are on 2k, please plan your move to 3k. See the upgrade guide: https://docs.olivetin.app/upgrade/2k3k.html. If something blocks your upgrade, please open an issue. Fixing upgrade blockers is now the best way we can keep 2k users safe.
+
 ## OliveTin *is* a remote code execution (RCE) "tool"
 ## OliveTin *is* a remote code execution (RCE) "tool"
 
 
 The very purpose of OliveTin is to allow users to execute commands remotely on a machine.
 The very purpose of OliveTin is to allow users to execute commands remotely on a machine.
@@ -35,7 +52,21 @@ The following notes might be helpful when reporting a vulnerability:
 
 
 * OliveTin does not offer a bug bounty program.
 * OliveTin does not offer a bug bounty program.
 * GitHub usernames are how we you will be credited for discoveries reported via GitHub, if using emails we'll ask for your preferred name/handle to credit you with.
 * GitHub usernames are how we you will be credited for discoveries reported via GitHub, if using emails we'll ask for your preferred name/handle to credit you with.
-* CVEs will be requested via GitHub Security Advisories when appropriate, but we do not guarantee that all vulnerabilities will receive CVEs, as this is determined on a case-by-case basis.
+* CVEs will be requested via GitHub Security Advisories when appropriate, but we do not guarantee that all vulnerabilities will receive CVEs, as this is determined on a case-by-case basis. See "When CVEs are requested" below.
+* Please state the exact version or commit you reproduced the issue on.
+
+## When CVEs are requested
+
+A CVE is only requested when the vulnerability can be reproduced on at least one of:
+
+* the latest published OliveTin 3k release, or
+* the current `next` branch.
+
+Reports that only reproduce on older releases, and are already fixed in the latest 3k release or on `next`, are closed without a CVE. If a published advisory already covers the fix, the report is closed as a duplicate of that advisory, and the reporter is still credited.
+
+Reports that only affect OliveTin 2k are not eligible for a CVE (see "End of support for OliveTin 2k" above).
+
+Reports that cannot be reproduced on the latest 3k release or `next` may be closed until they can.
 
 
 ## Feature flags (alpha / experimental)
 ## Feature flags (alpha / experimental)
 
 
@@ -58,20 +89,54 @@ If you are reporting via GitHub Security Advisories, search existing [repository
 
 
 Maintainers: see [.github/SECURITY_ADVISORY_DUPLICATES.md](.github/SECURITY_ADVISORY_DUPLICATES.md) for known duplicate pairs, triage steps, and OAuth2 issues that are easy to confuse with each other.
 Maintainers: see [.github/SECURITY_ADVISORY_DUPLICATES.md](.github/SECURITY_ADVISORY_DUPLICATES.md) for known duplicate pairs, triage steps, and OAuth2 issues that are easy to confuse with each other.
 
 
+## Denial of service (DoS) reports
+
+Any web service can be overwhelmed by enough traffic, so not every way of making OliveTin slow or busy is a vulnerability. Rate limiting request floods is the job of a reverse proxy, load balancer or firewall in front of OliveTin, not of OliveTin itself.
+
+A DoS report **is** considered a vulnerability when at least one of these is true:
+
+* **Crash or hang**: one request, or a small number of requests, crashes or hangs the OliveTin process. For example a panic, a nil pointer dereference, a fatal Go runtime error such as concurrent map writes, or a deadlock.
+* **Amplification**: a small or cheap request makes OliveTin do disproportionately large work. For example a single request that allocates a large amount of memory, or a short input that causes a large amount of CPU work.
+* **Unbounded growth**: requests cause memory or other state to grow without limit, and it is not reclaimed after the requests stop. For example a map, slice or cache that has no cap, expiry or eviction.
+
+A DoS report is **not** considered a vulnerability when none of the above is true, and:
+
+* the load is proportional to the number and size of requests sent, and the work done for each request is bounded;
+* OliveTin fails gracefully while busy, for example by returning HTTP 429 or `ResourceExhausted`, rather than crashing;
+* OliveTin recovers by itself once the requests stop;
+* the only possible fix would be rate limiting inside OliveTin.
+
+When a DoS report is accepted, the preferred fix is to put a bound on the resource (a concurrency limit, a size cap, an expiry or eviction, or a limit on the cost of evaluating input), not to add rate limiting. Severity is assessed on how practical the attack is: an issue that needs a very large volume of requests before it has an effect will usually be scored lower than the reporter's estimate.
+
 ## Known behaviour that is not considered a vulnerability
 ## Known behaviour that is not considered a vulnerability
 
 
 The following have been reported several times and reviewed. Please only report them if you have found something beyond what is described here.
 The following have been reported several times and reviewed. Please only report them if you have found something beyond what is described here.
 
 
 * **`PasswordHash` is unauthenticated and can make local login busy.** The `PasswordHash` API is a documented utility for generating Argon2id hashes, and is needed before any user exists. Unbounded resource use was fixed in CVE-2026-28342 by limiting all Argon2id work, including `LocalUserLogin`, to 10 concurrent operations. Flooding `PasswordHash` can make logins return `ResourceExhausted` while the flood continues; this fail-fast behaviour is intentional, keeps memory bounded, and has no lasting effect. Rate limit request floods at your reverse proxy.
 * **`PasswordHash` is unauthenticated and can make local login busy.** The `PasswordHash` API is a documented utility for generating Argon2id hashes, and is needed before any user exists. Unbounded resource use was fixed in CVE-2026-28342 by limiting all Argon2id work, including `LocalUserLogin`, to 10 concurrent operations. Flooding `PasswordHash` can make logins return `ResourceExhausted` while the flood continues; this fail-fast behaviour is intentional, keeps memory bounded, and has no lasting effect. Rate limit request floods at your reverse proxy.
+* **`DEBUG` and `TRACE` logs contain sensitive information.** The `DEBUG` and `TRACE` log levels, `-startuptrace`, and `logDebugOptions` exist to show OliveTin's internal workings while troubleshooting. They are expected to log sensitive information, such as configuration values including secrets, API keys, password hashes, OAuth2 client secrets, webhook secrets, and request headers. This is by design and is not considered a vulnerability. Treat logs produced with these options as being as sensitive as `config.yaml` itself, and only enable them while troubleshooting. Reports about sensitive information in logs are only in scope at the default `INFO` level, or at `WARN` and `ERROR`.
+* **Usernames can be discovered.** Usernames are not secret in OliveTin, and knowing one does not give access: an attacker still needs that user's password, and every guess at it costs a full Argon2id comparison, with at most 10 at a time. OliveTin tries to make logins for unknown and known usernames look the same, and fixes differences it finds as hardening, but reports that only reveal whether a username exists, for example through response times, are not considered a vulnerability.
+* **Attacks that need JavaScript already running in OliveTin's origin.** If an attacker can already run JavaScript in the OliveTin page, for example through custom JavaScript, a malicious browser extension or a cross-site scripting bug, that script can already do anything the signed-in user can do. Reports whose only precondition is such a script, for example reading values that the page can already reach, are treated as hardening, not as a vulnerability. A bug that lets an attacker get JavaScript into the OliveTin origin in the first place is in scope.
+* **Content that operators choose to install, such as themes.** OliveTin does not inspect or vet the contents of themes, Git repositories or other files that operators install, for example with the `olivetin-get-theme` helper. Only install content you trust; trusted themes are listed at https://www.olivetin.app/themes/. Reports that rely on an operator installing malicious content are not considered a vulnerability. Reports are still in scope if someone the operator has not trusted can make OliveTin install or serve content.
 
 
 ## Process
 ## Process
 
 
 Once a vulnerability is reported, the process is;
 Once a vulnerability is reported, the process is;
 
 
+While a report is open, a `[status:...]` tag at the end of the advisory's title shows where it is: `pending-review`, `awaiting-reporter`, `accepted`, `feedback-on-fix` (a fix is ready for review), or `pending-release` (the fix is merged and will be published with the next release). The tag is removed when the advisory is published or closed.
+
+
 * Check [.github/SECURITY_ADVISORY_DUPLICATES.md](.github/SECURITY_ADVISORY_DUPLICATES.md) and open advisories for duplicates before accepting.
 * Check [.github/SECURITY_ADVISORY_DUPLICATES.md](.github/SECURITY_ADVISORY_DUPLICATES.md) and open advisories for duplicates before accepting.
+* Confirm the report reproduces on the latest published 3k release or the `next` branch before accepting it or requesting a CVE.
 * Accept or reject the report, and communicate with the reporter about next steps.
 * Accept or reject the report, and communicate with the reporter about next steps.
 * If accepted, patch using a temporary branch, and code review will be requested from the original reporter if they are interested.
 * If accepted, patch using a temporary branch, and code review will be requested from the original reporter if they are interested.
 * The severity of the vulnerability will be assessed using CVSS, and the patch will be prioritised accordingly.
 * The severity of the vulnerability will be assessed using CVSS, and the patch will be prioritised accordingly.
-* Once the patch is ready, it will be queued for a release onto the `next` branch (3k) or `release/2k` branch (2k)
+* Once the patch is ready, it will be queued for a release onto the `next` branch (3k).
 * The reporter will be credited in the advisory and the release notes, but not the commit message.
 * The reporter will be credited in the advisory and the release notes, but not the commit message.
-* The commit message will contain a reference to the CVSS score (eg: MED) and the advisory ID.
+* Commits that fix the vulnerability use this format, with the severity (`LOW`, `MED`, `HIGH` or `CRIT`) and the advisory ID:
+
+  ```
+  security: GHSA-xxxx-xxxx-xxxx (MED) short description of the fix
+  ```
+
+  `security:` commits trigger a patch release, and are listed under **Security** in the release notes.
+* Merging the private advisory fork into `next` creates a merge commit titled "Merge commit from fork". This is GitHub's fixed message and is expected; the `security:` commits inside the merge are what appear in the release notes.

+ 72 - 12
config.yaml

@@ -25,9 +25,15 @@ actions:
   # Lots of people also use OliveTin to monitor their servers, like checking
   # Lots of people also use OliveTin to monitor their servers, like checking
   # disk space, or checking logs. `onclick: execution-dialog` shows output.
   # disk space, or checking logs. `onclick: execution-dialog` shows output.
   - title: Check disk space
   - title: Check disk space
+    acls: [guest_actions]
     icon: disk
     icon: disk
-    shell: df -h /
+    exec: ["df", "-h", "/"]
     onclick: execution-dialog
     onclick: execution-dialog
+    # Second webhook example: POST /webhooks?demo=disk-space
+    execOnWebhook:
+      - authType: none
+        matchQuery:
+          demo: disk-space
 
 
   # This uses `onclick: execution-dialog` to show a dialog with more
   # This uses `onclick: execution-dialog` to show a dialog with more
   # information about the command that was run.
   # information about the command that was run.
@@ -46,6 +52,7 @@ actions:
   # If you are running OliveTin in a container remember to pass through the
   # If you are running OliveTin in a container remember to pass through the
   # docker socket! https://docs.olivetin.app/solutions/container-control-panel/index.html
   # docker socket! https://docs.olivetin.app/solutions/container-control-panel/index.html
   - title: Ping the Internet
   - title: Ping the Internet
+    acls: [guest_actions]
     shell: ping -c 3 1.1.1.1
     shell: ping -c 3 1.1.1.1
     icon: ping
     icon: ping
     onclick: execution-dialog
     onclick: execution-dialog
@@ -54,6 +61,7 @@ actions:
 
 
   # You can also rate-limit actions too.
   # You can also rate-limit actions too.
   - title: Sync Disks
   - title: Sync Disks
+    acls: [guest_actions]
     shell: sync
     shell: sync
     id: syncdisks
     id: syncdisks
     icon: disk
     icon: disk
@@ -77,6 +85,7 @@ actions:
     # execOnCalendarFile: examples/demo-olivetin-calendar.yaml
     # execOnCalendarFile: examples/demo-olivetin-calendar.yaml
 
 
   - title: Verify backup archive
   - title: Verify backup archive
+    acls: [guest_actions]
     shell: sleep 3 && echo "Backup archive verified"
     shell: sleep 3 && echo "Backup archive verified"
     groups: [ backup-jobs ]
     groups: [ backup-jobs ]
     timeout: 30
     timeout: 30
@@ -88,16 +97,12 @@ actions:
   #
   #
   # Docs: https://docs.olivetin.app/action_examples/ping.html
   # Docs: https://docs.olivetin.app/action_examples/ping.html
   - title: Ping host
   - title: Ping host
+    acls: [guest_actions]
     id: ping_host
     id: ping_host
     shell: ping {{ host }} -c {{ count }}
     shell: ping {{ host }} -c {{ count }}
     icon: ping
     icon: ping
     timeout: 100
     timeout: 100
     onclick: history
     onclick: history
-    # https://docs.olivetin.app/action_execution/onwebhook.html — POST to /webhooks
-    # with header X-OliveTin-Demo: ping-host (path and payload rules are documented).
-    execOnWebhook:
-      - matchHeaders:
-          X-OliveTin-Demo: ping-host
     arguments:
     arguments:
       - name: host
       - name: host
         title: Host
         title: Host
@@ -111,6 +116,27 @@ actions:
         default: 3
         default: 3
         description: How many times to do you want to ping?
         description: How many times to do you want to ping?
 
 
+  # Actions can be started by a webhook, as well as from the web UI. Webhook
+  # actions must use `exec:`, not `shell:`. This one takes no arguments, so a
+  # webhook request can only start it, not change what it runs. Replace the
+  # command with your own script.
+  #
+  # Every webhook needs an `authType`. These demo webhooks use `authType: none`,
+  # so anyone who can reach /webhooks can start them. For your own scripts, use
+  # `authType: bearer` (or hmac-sha256) with a `secret`.
+  #
+  # Docs: https://docs.olivetin.app/action_execution/onwebhook.html
+  # POST to /webhooks with the header X-OliveTin-Demo: run-script
+  - title: Run script on webhook
+    id: run_script_on_webhook
+    icon: '&#128279;'
+    exec: ["echo", "Webhook received. Replace this with your own script."]
+    onclick: execution-dialog
+    execOnWebhook:
+      - authType: none
+        matchHeaders:
+          X-OliveTin-Demo: run-script
+
   # OliveTin can control containers - docker is just a command line app.
   # OliveTin can control containers - docker is just a command line app.
   #
   #
   # However, if you are running in a container you will need to do some setup,
   # However, if you are running in a container you will need to do some setup,
@@ -150,6 +176,7 @@ actions:
   #
   #
   # Docs: https://docs.olivetin.app/args/input_checklist.html
   # Docs: https://docs.olivetin.app/args/input_checklist.html
   - title: Backup selected directories
   - title: Backup selected directories
+    acls: [guest_actions]
     icon: backup
     icon: backup
     shell: 'echo "Backing up: {{ directories }}"'
     shell: 'echo "Backing up: {{ directories }}"'
     arguments:
     arguments:
@@ -198,10 +225,6 @@ actions:
     icon: ssh
     icon: ssh
     shell: olivetin-setup-easy-ssh
     shell: olivetin-setup-easy-ssh
     onclick: execution-dialog
     onclick: execution-dialog
-    # Second webhook example: POST /webhooks?demo=setup-ssh
-    execOnWebhook:
-      - matchQuery:
-          demo: setup-ssh
 
 
   # Here's how to use SSH with the "easy" config, to restart a service on
   # Here's how to use SSH with the "easy" config, to restart a service on
   # another server.
   # another server.
@@ -233,32 +256,40 @@ actions:
   # you have these referenced in a dashboard, they will not show up in the
   # you have these referenced in a dashboard, they will not show up in the
   # `actions` view.
   # `actions` view.
   - title: Ping hypervisor1
   - title: Ping hypervisor1
+    acls: [guest_actions]
     shell: echo "hypervisor1 online"
     shell: echo "hypervisor1 online"
 
 
   - title: Ping hypervisor2
   - title: Ping hypervisor2
+    acls: [guest_actions]
     shell: echo "hypervisor2 online"
     shell: echo "hypervisor2 online"
 
 
   - title: Ping hypervisor3
   - title: Ping hypervisor3
+    acls: [guest_actions]
     shell: echo "hypervisor3 online"
     shell: echo "hypervisor3 online"
 
 
   - title: Ping hypervisor4
   - title: Ping hypervisor4
+    acls: [guest_actions]
     shell: echo "hypervisor4 online"
     shell: echo "hypervisor4 online"
 
 
   - title: "{{ server.name }} Wake on Lan"
   - title: "{{ server.name }} Wake on Lan"
+    acls: [guest_actions]
     shell: echo "Sending Wake on LAN to {{ server.hostname }}"
     shell: echo "Sending Wake on LAN to {{ server.hostname }}"
     icon: <iconify-icon icon="carbon:awake"></iconify-icon>
     icon: <iconify-icon icon="carbon:awake"></iconify-icon>
     entity: server
     entity: server
 
 
   - title: "{{ server.name }} Power Off"
   - title: "{{ server.name }} Power Off"
+    acls: [guest_actions]
     shell: "echo 'Power Off Server: {{ server.hostname }}'"
     shell: "echo 'Power Off Server: {{ server.hostname }}'"
     icon: <iconify-icon icon="carbon:flash-off"></iconify-icon>
     icon: <iconify-icon icon="carbon:flash-off"></iconify-icon>
     entity: server
     entity: server
 
 
   - title: "{{ server.name }} Print server name"
   - title: "{{ server.name }} Print server name"
+    acls: [guest_actions]
     shell: 'echo "Server name: {{ server.name }}"'
     shell: 'echo "Server name: {{ server.name }}"'
     entity: server
     entity: server
 
 
   - title: Ping All Servers
   - title: Ping All Servers
+    acls: [guest_actions]
     shell: "echo 'Ping all servers'"
     shell: "echo 'Ping all servers'"
     icon: ping
     icon: ping
     # https://docs.olivetin.app/action_execution/onfilecreated.html
     # https://docs.olivetin.app/action_execution/onfilecreated.html
@@ -279,6 +310,7 @@ actions:
     triggers: ["Update container entity file"]
     triggers: ["Update container entity file"]
 
 
   - title: Long running action
   - title: Long running action
+    acls: [guest_actions]
     shell: sleep 300
     shell: sleep 300
     timeout: 300
     timeout: 300
     icon: logs
     icon: logs
@@ -449,23 +481,51 @@ defaultPolicy:
   showLogList: true
   showLogList: true
 
 
 # Permissions affect actions (eg: ability to view a specific log).
 # Permissions affect actions (eg: ability to view a specific log).
+#
+# Guests can see every action, but can only run the harmless demo actions that
+# carry `acls: [guest_actions]`. Everything else needs a user in the "admins"
+# usergroup. Only give guests actions that you are happy for anyone who can
+# reach OliveTin to run.
 # Docs: https://docs.olivetin.app/security/acl.html
 # Docs: https://docs.olivetin.app/security/acl.html
 defaultPermissions:
 defaultPermissions:
   view: true
   view: true
-  exec: true
-  logs: true
+  exec: false
+  logs: false
+  kill: false
 
 
 # OliveTin uses access control lists to match up policy and permissions to users.
 # OliveTin uses access control lists to match up policy and permissions to users.
 # Docs: https://docs.olivetin.app/security/acl.html
 # Docs: https://docs.olivetin.app/security/acl.html
 accessControlLists:
 accessControlLists:
+  # Admins can do everything with every action.
   - name: admin_acl
   - name: admin_acl
     matchUsergroups: ["admins"]
     matchUsergroups: ["admins"]
+    addToEveryAction: true
     policy:
     policy:
       showDiagnostics: true
       showDiagnostics: true
     permissions:
     permissions:
       view: true
       view: true
       exec: true
       exec: true
       logs: true
       logs: true
+      kill: true
+
+  # Guests can run the demo actions that list this ACL. Add your own
+  # usergroups here to let logged in users run them too.
+  - name: guest_actions
+    matchUsergroups: ["guest"]
+    permissions:
+      view: true
+      exec: true
+      logs: true
+      kill: true
+
+  # Actions started by execOnStartup, execOnCron, execOnWebhook and the other
+  # triggers run as the "system" usergroup. Triggers only start the actions
+  # you configured them on.
+  - name: system_triggers
+    matchUsergroups: ["system"]
+    addToEveryAction: true
+    permissions:
+      exec: true
 
 
 # OliveTin contains many more configuration options not in this default config.
 # OliveTin contains many more configuration options not in this default config.
 # Check out docs.olivetin.app for a setting if you feel like you're missing something.
 # Check out docs.olivetin.app for a setting if you feel like you're missing something.

+ 31 - 0
docs/modules/ROOT/examples/solutions/single-button-toggle/config.yaml

@@ -0,0 +1,31 @@
+entities:
+  - file: /etc/OliveTin/entities/water_valve.yaml
+    name: water_valve
+
+actions:
+  - title: Toggle valve
+    icon: '<img src="/custom-webui/icons/{{ .CurrentEntity.state }}.png" width="48px" />'
+    entity: water_valve
+    shell: |
+      set -e
+      entity_file=/etc/OliveTin/entities/water_valve.yaml
+      if grep -Eq "^  state: +[\"']?open[\"']?( +#.*)? *$" "$entity_file"; then
+        next_state=closed
+      else
+        next_state=open
+      fi
+      echo "Setting {{ .CurrentEntity.title }} to $next_state"
+      sed -i "s/^  state: .*/  state: $next_state/" "$entity_file"
+
+dashboards:
+  - title: Water Valve
+    contents:
+      - title: "{{ water_valve.title }}"
+        type: fieldset
+        entity: water_valve
+        contents:
+          - type: display
+            title: |
+              State: <strong>{{ water_valve.state }}</strong>
+
+          - title: Toggle valve

+ 2 - 0
docs/modules/ROOT/examples/solutions/single-button-toggle/water_valve.yaml

@@ -0,0 +1,2 @@
+- title: Garden water valve
+  state: closed

+ 3 - 0
docs/modules/ROOT/images/solutions/single-button-toggle/.gitignore

@@ -0,0 +1,3 @@
+custom-webui/
+__pycache__/
+water_valve.yaml

+ 23 - 0
docs/modules/ROOT/images/solutions/single-button-toggle/Makefile

@@ -0,0 +1,23 @@
+CONFIGDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
+ENTITY_SEED := $(CONFIGDIR)../../../examples/solutions/single-button-toggle/water_valve.yaml
+
+# The screenshot config reads and writes this fixture, so captures never touch
+# a real /etc/OliveTin install.
+export WATER_VALVE_ENTITY_FILE := $(CONFIGDIR)water_valve.yaml
+
+include ../../screenshots.mk
+
+start: seed-entity seed-icons
+
+.DEFAULT_GOAL := screenshots
+.PHONY: screenshots seed-entity seed-icons
+
+seed-entity:
+	cp "$(ENTITY_SEED)" "$(WATER_VALVE_ENTITY_FILE)"
+
+screenshots: update-screenshots
+
+# OliveTin serves the action icons from custom-webui/ next to config.yaml.
+seed-icons:
+	mkdir -p "$(CONFIGDIR)custom-webui/icons"
+	cp "$(CONFIGDIR)icons/"*.png "$(CONFIGDIR)custom-webui/icons/"

+ 38 - 0
docs/modules/ROOT/images/solutions/single-button-toggle/config.yaml

@@ -0,0 +1,38 @@
+---
+listenAddressSingleHTTPFrontend: 127.0.0.1:11337
+
+logLevel: "WARN"
+checkForUpdates: false
+showFooter: false
+
+entities:
+  - file: ${{ WATER_VALVE_ENTITY_FILE }}
+    name: water_valve
+
+actions:
+  - title: Toggle valve
+    icon: '<img src="/custom-webui/icons/{{ .CurrentEntity.state }}.png" width="48px" />'
+    entity: water_valve
+    shell: |
+      set -e
+      entity_file="${{ WATER_VALVE_ENTITY_FILE }}"
+      if grep -Eq "^  state: +[\"']?open[\"']?( +#.*)? *$" "$entity_file"; then
+        next_state=closed
+      else
+        next_state=open
+      fi
+      echo "Setting {{ .CurrentEntity.title }} to $next_state"
+      sed -i "s/^  state: .*/  state: $next_state/" "$entity_file"
+
+dashboards:
+  - title: Water Valve
+    contents:
+      - title: "{{ water_valve.title }}"
+        type: fieldset
+        entity: water_valve
+        contents:
+          - type: display
+            title: |
+              State: <strong>{{ water_valve.state }}</strong>
+
+          - title: Toggle valve

BIN
docs/modules/ROOT/images/solutions/single-button-toggle/dashboard-closed.png


BIN
docs/modules/ROOT/images/solutions/single-button-toggle/dashboard-open.png


BIN
docs/modules/ROOT/images/solutions/single-button-toggle/icons/closed.png


BIN
docs/modules/ROOT/images/solutions/single-button-toggle/icons/open.png


+ 16 - 0
docs/modules/ROOT/images/solutions/single-button-toggle/screenshots.ini

@@ -0,0 +1,16 @@
+[DEFAULT]
+base_url = http://localhost:11337/
+dir = .
+width = 900
+height = 260
+post_script_sleep = 0.5
+
+[closed]
+url = /dashboards/Water%20Valve
+name = dashboard-closed
+script = setup_closed.py
+
+[open]
+url = /dashboards/Water%20Valve
+name = dashboard-open
+script = setup_open.py

+ 29 - 0
docs/modules/ROOT/images/solutions/single-button-toggle/setup_closed.py

@@ -0,0 +1,29 @@
+#!/usr/bin/env python3
+"""Open the Water Valve dashboard with the valve closed."""
+
+import time
+
+from selenium.webdriver.common.by import By
+from selenium.webdriver.support.ui import WebDriverWait
+
+
+def wait_for_dashboard(driver, timeout=30):
+    WebDriverWait(driver, timeout).until(
+        lambda d: bool(d.find_element(By.TAG_NAME, "body").get_attribute("loaded-dashboard"))
+    )
+
+
+def wait_for_state(driver, state, timeout=30):
+    def ready(d):
+        try:
+            return f"State: {state}" in d.find_element(By.TAG_NAME, "main").text
+        except Exception:
+            return False
+
+    WebDriverWait(driver, timeout).until(ready)
+
+
+def run(driver):
+    wait_for_dashboard(driver)
+    wait_for_state(driver, "closed")
+    time.sleep(0.2)

+ 37 - 0
docs/modules/ROOT/images/solutions/single-button-toggle/setup_open.py

@@ -0,0 +1,37 @@
+#!/usr/bin/env python3
+"""Click Toggle valve and wait for the state and icon to show the valve open."""
+
+import time
+
+from selenium.webdriver.common.by import By
+from selenium.webdriver.support.ui import WebDriverWait
+
+
+def wait_for_dashboard(driver, timeout=30):
+    WebDriverWait(driver, timeout).until(
+        lambda d: bool(d.find_element(By.TAG_NAME, "body").get_attribute("loaded-dashboard"))
+    )
+
+
+def wait_for_state(driver, state, timeout=30):
+    def ready(d):
+        try:
+            return f"State: {state}" in d.find_element(By.TAG_NAME, "main").text
+        except Exception:
+            return False
+
+    WebDriverWait(driver, timeout).until(ready)
+
+
+def run(driver):
+    wait_for_dashboard(driver)
+    wait_for_state(driver, "closed")
+    driver.find_element(By.CSS_SELECTOR, 'button[title="Toggle valve"]').click()
+    wait_for_state(driver, "open")
+    WebDriverWait(driver, 10).until(
+        lambda d: d.find_elements(By.CSS_SELECTOR, 'button[title="Toggle valve"] img[src$="/open.png"]')
+    )
+    WebDriverWait(driver, 15).until(
+        lambda d: "Toggle valve" in d.find_element(By.CSS_SELECTOR, 'button[title="Toggle valve"]').text
+    )
+    time.sleep(0.5)

+ 1 - 0
docs/modules/ROOT/nav.adoc

@@ -139,6 +139,7 @@
 ** xref:solutions/heating-control-panel/index.adoc[Heating Control Panel]
 ** xref:solutions/heating-control-panel/index.adoc[Heating Control Panel]
 ** xref:solutions/human-in-the-control-loop/index.adoc[Human in the Control Loop]
 ** xref:solutions/human-in-the-control-loop/index.adoc[Human in the Control Loop]
 ** xref:solutions/latching-toggle/index.adoc[Latching Toggle]
 ** xref:solutions/latching-toggle/index.adoc[Latching Toggle]
+** xref:solutions/single-button-toggle/index.adoc[Single Button Toggle]
 ** xref:solutions/k8s-control-panel-hosted/index.adoc[Kubernetes Control Panel (hosted)]
 ** xref:solutions/k8s-control-panel-hosted/index.adoc[Kubernetes Control Panel (hosted)]
 ** xref:solutions/primitive-password/index.adoc[Primitive Password Protection]
 ** xref:solutions/primitive-password/index.adoc[Primitive Password Protection]
 ** xref:solutions/wol/index.adoc[Wake on LAN]
 ** xref:solutions/wol/index.adoc[Wake on LAN]

+ 63 - 15
docs/modules/ROOT/pages/action_execution/onwebhook.adoc

@@ -7,7 +7,7 @@ OliveTin provides a dedicated webhook endpoint at `/webhooks` that can receive w
 
 
 == Basic Configuration
 == Basic Configuration
 
 
-To configure an action to run on a webhook, add the `execOnWebhook` property to your action. Webhook-triggered actions **must** use `exec:` (not `shell:` or `shellAfterCompleted`).
+To configure an action to run on a webhook, add the `execOnWebhook` property to your action. Webhook-triggered actions **must** use `exec:` (not `shell:` or `shellAfterCompleted`). This also applies to any action started through `triggers` from a webhook-triggered action, at any depth of the trigger chain (see xref:upgrade/upgrade_notes.adoc#webhook-trigger-chains-exec-only[Upgrade Notes]).
 
 
 [source,yaml]
 [source,yaml]
 .`config.yaml`
 .`config.yaml`
@@ -18,11 +18,13 @@ actions:
     exec:
     exec:
       - /opt/scripts/deploy.sh
       - /opt/scripts/deploy.sh
     execOnWebhook:
     execOnWebhook:
-      - matchHeaders:
+      - authType: bearer
+        secret: "${{ WEBHOOK_TOKEN }}"
+        matchHeaders:
           X-Event-Type: deploy
           X-Event-Type: deploy
 ----
 ----
 
 
-This action will be triggered when a POST request is sent to `/webhooks` with the header `X-Event-Type: deploy`.
+This action will be triggered when a POST request is sent to `/webhooks` with the header `X-Event-Type: deploy` and the header `Authorization: Bearer <token>`, where the token is the value of the `WEBHOOK_TOKEN` environment variable. Every webhook needs an `authType`; see <<every-webhook-needs-an-authtype,Webhook Authentication>>.
 
 
 == Webhook Endpoint
 == Webhook Endpoint
 
 
@@ -56,7 +58,9 @@ actions:
       - echo
       - echo
       - "Processing event"
       - "Processing event"
     execOnWebhook:
     execOnWebhook:
-      - matchHeaders:
+      - authType: bearer
+        secret: "${{ WEBHOOK_TOKEN }}"
+        matchHeaders:
           X-Event-Type: my-event
           X-Event-Type: my-event
           X-Source: my-service
           X-Source: my-service
 ----
 ----
@@ -78,7 +82,9 @@ actions:
       - name: service
       - name: service
         type: ascii
         type: ascii
     execOnWebhook:
     execOnWebhook:
-      - matchQuery:
+      - authType: bearer
+        secret: "${{ WEBHOOK_TOKEN }}"
+        matchQuery:
           action: deploy
           action: deploy
           env: production
           env: production
         extract:
         extract:
@@ -102,7 +108,9 @@ actions:
       - name: branch
       - name: branch
         type: ascii
         type: ascii
     execOnWebhook:
     execOnWebhook:
-      - matchPath: "$.event_type=push"
+      - authType: bearer
+        secret: "${{ WEBHOOK_TOKEN }}"
+        matchPath: "$.event_type=push"
         extract:
         extract:
           branch: "$.branch"
           branch: "$.branch"
 ----
 ----
@@ -112,7 +120,9 @@ The `matchPath` format is `jsonpath=value`. You can also just specify a JSONPath
 [source,yaml]
 [source,yaml]
 ----
 ----
 execOnWebhook:
 execOnWebhook:
-  - matchPath: "$.repository.name"  # Matches if this path exists in the JSON
+  - authType: bearer
+    secret: "${{ WEBHOOK_TOKEN }}"
+    matchPath: "$.repository.name"  # Matches if this path exists in the JSON
 ----
 ----
 
 
 === Using Regex for Matching
 === Using Regex for Matching
@@ -127,7 +137,9 @@ actions:
       - echo
       - echo
       - "Handling event"
       - "Handling event"
     execOnWebhook:
     execOnWebhook:
-      - matchHeaders:
+      - authType: bearer
+        secret: "${{ WEBHOOK_TOKEN }}"
+        matchHeaders:
           X-Event-Type: "regex:^(push|pull_request|release)$"
           X-Event-Type: "regex:^(push|pull_request|release)$"
 ----
 ----
 
 
@@ -143,7 +155,9 @@ actions:
       - /opt/scripts/deploy.sh
       - /opt/scripts/deploy.sh
       - production
       - production
     execOnWebhook:
     execOnWebhook:
-      - matchHeaders:
+      - authType: bearer
+        secret: "${{ WEBHOOK_TOKEN }}"
+        matchHeaders:
           X-Event-Type: deploy
           X-Event-Type: deploy
         matchQuery:
         matchQuery:
           environment: production
           environment: production
@@ -168,7 +182,9 @@ actions:
       - name: environment
       - name: environment
         type: ascii
         type: ascii
     execOnWebhook:
     execOnWebhook:
-      - matchHeaders:
+      - authType: bearer
+        secret: "${{ WEBHOOK_TOKEN }}"
+        matchHeaders:
           X-Event-Type: deploy
           X-Event-Type: deploy
         extract:
         extract:
           version: "$.release.tag_name"
           version: "$.release.tag_name"
@@ -199,19 +215,30 @@ actions:
       - name: webhook_header_x-request-id
       - name: webhook_header_x-request-id
         type: ascii
         type: ascii
     execOnWebhook:
     execOnWebhook:
-      - matchHeaders:
+      - authType: bearer
+        secret: "${{ WEBHOOK_TOKEN }}"
+        matchHeaders:
           X-Event-Type: log
           X-Event-Type: log
 ----
 ----
 
 
 Header names that contain hyphens become argument keys with the same hyphens (for example `webhook_header_x-request-id`). Use the `index` map-lookup form shown above, because Go templates treat hyphens in bare identifiers as subtraction.
 Header names that contain hyphens become argument keys with the same hyphens (for example `webhook_header_x-request-id`). Use the `index` map-lookup form shown above, because Go templates treat hyphens in bare identifiers as subtraction.
 
 
+These metadata arguments come from the request's path, query string and headers, which HMAC signatures do not cover. Do not rely on them for values an action needs to trust; see <<what-hmac-signatures-cover,What HMAC signatures cover>>.
+
 == Webhook Authentication
 == Webhook Authentication
 
 
 OliveTin supports several authentication methods to verify webhook requests:
 OliveTin supports several authentication methods to verify webhook requests:
 
 
+[#every-webhook-needs-an-authtype]
+=== Every webhook needs an `authType`
+
+Every webhook must set an `authType`. A webhook without one is rejected, and the xref:advanced_configuration/diagnostics.adoc[Diagnostics] page shows an error for it (code `webhook_auth_type_unset`). Webhooks that use one of the xref:action_execution/onwebhook_github.adoc[GitHub templates] choose their own `authType`. A `template` name that OliveTin does not know is ignored, and Diagnostics shows an error for it (code `webhook_template_unknown`). See xref:upgrade/upgrade_notes.adoc#webhook-auth-type-required[Upgrade Notes].
+
+`matchHeaders`, `matchQuery` and `matchPath` only decide which action a request is for. They are not secrets, so use one of the authentication methods below unless anyone who can reach `/webhooks` may run the action. Webhook-triggered actions run as the `system` usergroup, not as the caller (see xref:security/acl.adoc#acls-for-triggers[ACLs for triggers]).
+
 === No Authentication
 === No Authentication
 
 
-By default, webhooks have no authentication. Any request matching the criteria will trigger the action:
+To accept webhook requests without any authentication, set `authType: none` explicitly. Any request that matches will then trigger the action, so only do this for actions that are safe for anyone to run:
 
 
 [source,yaml]
 [source,yaml]
 ----
 ----
@@ -251,6 +278,22 @@ execOnWebhook:
       X-Event-Type: push
       X-Event-Type: push
 ----
 ----
 
 
+[#what-hmac-signatures-cover]
+=== What HMAC signatures cover
+
+HMAC signatures, including the ones checked for the GitHub `template` webhooks, are worked out by the sender over the request body only. This is how GitHub, GitLab and similar services sign webhooks, so OliveTin cannot check anything more than the sender signed:
+
+* The request path, query string and headers are not signed. Anyone who has seen one signed request can send it again with a different path, query string or headers, and it will still pass the signature check.
+* There is no timestamp or nonce, so a signed request can be sent again, and it will run the action again.
+
+To keep webhooks safe:
+
+* Send webhooks to OliveTin over HTTPS, so that signed requests cannot be read or changed on the way.
+* Take any value that an action needs to trust from the request body, with `extract`. Do not use the `webhook_path`, `webhook_query` or `webhook_header_*` arguments for those values with HMAC webhooks. The xref:advanced_configuration/diagnostics.adoc[Diagnostics] page shows a warning (code `webhook_unsigned_argument`) for an action that does.
+* Make webhook-triggered actions safe to run more than once.
+
+`bearer` and `basic` authentication do not sign anything: they check that the request carries the secret. Anyone who has the secret can send any request.
+
 === Bearer Token
 === Bearer Token
 
 
 Verify webhooks using a Bearer token in the Authorization header:
 Verify webhooks using a Bearer token in the Authorization header:
@@ -301,9 +344,13 @@ actions:
     exec:
     exec:
       - /opt/scripts/deploy.sh
       - /opt/scripts/deploy.sh
     execOnWebhook:
     execOnWebhook:
-      - matchHeaders:
+      - authType: bearer
+        secret: "${{ WEBHOOK_TOKEN }}"
+        matchHeaders:
           X-Event-Type: deploy-manual
           X-Event-Type: deploy-manual
-      - matchHeaders:
+      - authType: bearer
+        secret: "${{ WEBHOOK_TOKEN }}"
+        matchHeaders:
           X-Event-Type: deploy-auto
           X-Event-Type: deploy-auto
         matchPath: "$.status=success"
         matchPath: "$.status=success"
 ----
 ----
@@ -314,9 +361,10 @@ You can test your webhook configuration using `curl`:
 
 
 [source,bash]
 [source,bash]
 ----
 ----
-# Simple webhook with headers
+# Simple webhook with headers and a bearer token
 curl -X POST \
 curl -X POST \
   -H "Content-Type: application/json" \
   -H "Content-Type: application/json" \
+  -H "Authorization: Bearer $WEBHOOK_TOKEN" \
   -H "X-Event-Type: deploy" \
   -H "X-Event-Type: deploy" \
   -d '{"version": "1.2.3"}' \
   -d '{"version": "1.2.3"}' \
   http://localhost:1337/webhooks
   http://localhost:1337/webhooks

+ 1 - 1
docs/modules/ROOT/pages/action_execution/shellvsexec.adoc

@@ -19,7 +19,7 @@ User-supplied **argument** values are type-checked (and some types are blocked w
 
 
 Those values are substituted into `shell` / `shellAfterCompleted` as-is. OliveTin assumes they are **server-controlled** (entity files and the OliveTin process environment under the operator's control). The author of the config is responsible for ensuring that data is trustworthy, or for using `exec` and careful quoting when it might not be.
 Those values are substituted into `shell` / `shellAfterCompleted` as-is. OliveTin assumes they are **server-controlled** (entity files and the OliveTin process environment under the operator's control). The author of the config is responsible for ensuring that data is trustworthy, or for using `exec` and careful quoting when it might not be.
 
 
-Webhooks cannot use `shell:` or `shellAfterCompleted`; webhook-triggered actions must use `exec:` only. See xref:action_execution/onwebhook.adoc[Execute on webhook].
+Webhooks cannot use `shell:` or `shellAfterCompleted`; webhook-triggered actions, and any actions they start through `triggers`, must use `exec:` only. See xref:action_execution/onwebhook.adoc[Execute on webhook].
 
 
 The way that you specify these two types of execution is different - `shell` expects a single string, while `exec` expects a list of strings (the first being the command, the rest being the arguments).
 The way that you specify these two types of execution is different - `shell` expects a single string, while `exec` expects a list of strings (the first being the command, the rest being the arguments).
 
 

+ 8 - 0
docs/modules/ROOT/pages/advanced_configuration/logs.adoc

@@ -33,6 +33,14 @@ The supported log levels are;
 * `WARN` - Very few messages, only warnings are shown.
 * `WARN` - Very few messages, only warnings are shown.
 * `INFO` - The defualt log level.
 * `INFO` - The defualt log level.
 
 
+[#debug-logs-sensitive]
+[WARNING]
+====
+`DEBUG` and `TRACE` logs (including `-startuptrace` and xref:troubleshooting/log-debug-options.adoc[Debug Log Options]) are meant to show OliveTin's internal workings, so they **will contain sensitive information**: configuration values including secrets, API keys, password hashes, OAuth2 client secrets, webhook secrets, and request headers. This is expected, and is not considered a security vulnerability.
+
+Only use these log levels while troubleshooting, switch back to `INFO` afterwards, treat the logs as being as sensitive as your `config.yaml`, and remove secrets before sharing them with anyone.
+====
+
 You can change the `logLevel` while OliveTin is running, and it should update as soon as you save your config.yaml. You will always get a log message like this;
 You can change the `logLevel` while OliveTin is running, and it should update as soon as you save your config.yaml. You will always get a log message like this;
 
 
 [source,bash]
 [source,bash]

+ 21 - 0
docs/modules/ROOT/pages/advanced_configuration/webui.adoc

@@ -160,6 +160,27 @@ When enabled, the header shows a search control that can jump to actions, dashbo
 
 
 Other `features.*` flags follow the same pattern: typed booleans under `features`, default false, exposed on Init for the web UI, and treated as alpha until graduated.
 Other `features.*` flags follow the same pattern: typed booleans under `features`, default false, exposed on Init for the web UI, and treated as alpha until graduated.
 
 
+[#replace-webui]
+== Replace the web UI (`webUIDir`)
+
+Themes and custom JavaScript change the default web UI. If you want a completely different interface, you can point OliveTin at another directory of static files with `webUIDir`. OliveTin serves `index.html` and everything next to it from that directory, while the API stays on the same origin, so authentication and ACLs apply unchanged.
+
+.`config.yaml`
+[source,yaml]
+----
+webUIDir: /etc/OliveTin/my-webui/
+----
+
+Restart OliveTin after changing `webUIDir`. To go back to the default web UI, remove the option.
+
+Some paths are handled by OliveTin itself and never reach `webUIDir`, so don't use them for your own files: `/api/`, `/oauth/`, `/readyz`, `/webhooks`, `/theme.css`, `/custom-webui/` and, when Prometheus is enabled, `/metrics`. Requests for paths without a file extension (for example `/logs`) are answered with `index.html`, so a single-page app can use client-side routing.
+
+A replacement web UI only talks to the OliveTin API, so it needs to be kept compatible with the version of OliveTin you run.
+
+=== Community web UIs
+
+* https://github.com/DabuSoft-pl/olivetin-lamp[Lamp] - a phone-friendly web UI, with "hold to run" confirmations, live output and an optional status screen built from entities.
+
 == Custom CSS (with a custom theme)
 == Custom CSS (with a custom theme)
 
 
 You can customize OliveTin with themes, but it's also possible to write your on very simple theme that contains just a few CSS rules to change the look and feel of OliveTin. This is very useful if you just want to change the colours of OliveTin, or hide a few elements.
 You can customize OliveTin with themes, but it's also possible to write your on very simple theme that contains just a few CSS rules to change the look and feel of OliveTin. This is very useful if you just want to change the colours of OliveTin, or hide a few elements.

+ 3 - 1
docs/modules/ROOT/pages/api/login.adoc

@@ -24,5 +24,7 @@ You can check your current login status by using the `/WhoAmI` API call. Like al
 
 
 ```bash
 ```bash
 user@host: curl http://localhost:1337/api/WhoAmI --json '{}' -b "olivetin-sid-local=cd33aa9c-c613-473e-8581-2b742716ab8e"
 user@host: curl http://localhost:1337/api/WhoAmI --json '{}' -b "olivetin-sid-local=cd33aa9c-c613-473e-8581-2b742716ab8e"
-{"authenticatedUser":"admin", "usergroup":"", "provider":"local", "acls":[], "sid":""}
+{"authenticatedUser":"admin", "usergroup":"", "provider":"local", "acls":[], "sessionFingerprint":"9c1f5e2a7b3d4c60"}
 ```
 ```
+
+`WhoAmI` never returns your session ID, because the session ID is the credential in your session cookie. `sessionFingerprint` is a short value derived from the session ID. Use it to tell sessions apart, for example to check that two requests used the same session. It cannot be used to log in. If an API client needs the session cookie, take it from the `Set-Cookie` header of the login response. See xref:upgrade/upgrade_notes.adoc#whoami-session-fingerprint[Upgrade Notes].

+ 2 - 0
docs/modules/ROOT/pages/api/method_StartActionByGet.adoc

@@ -7,6 +7,8 @@
 Despite its name, this method no longer supports `GET` requests. The OliveTin 2k style of putting the action ID in the URL (eg: `GET /api/StartActionByGet/pingGithub`) returns `404` in OliveTin 3k, and is not coming back.
 Despite its name, this method no longer supports `GET` requests. The OliveTin 2k style of putting the action ID in the URL (eg: `GET /api/StartActionByGet/pingGithub`) returns `404` in OliveTin 3k, and is not coming back.
 ====
 ====
 
 
+This method cannot send a justification. If the action requires one, the call is refused with `invalid_argument`, unless the action's justification template fills it in. Use `StartAction` with a `justification` instead. See xref:upgrade/upgrade_notes.adoc#start-action-by-get-justification[Upgrade Notes].
+
 == Migrating to `StartAction`
 == Migrating to `StartAction`
 
 
 `StartActionByGet` takes only an `actionId`, and returns an Execution Tracking ID. `StartAction` does the same with `bindingId` - for a normal action, the binding ID is the same as the action `id` from your `config.yaml` (see xref:api/start_action.adoc#api-ids[Action IDs vs Binding IDs]).
 `StartActionByGet` takes only an `actionId`, and returns an Execution Tracking ID. `StartAction` does the same with `bindingId` - for a normal action, the binding ID is the same as the action `id` from your `config.yaml` (see xref:api/start_action.adoc#api-ids[Action IDs vs Binding IDs]).

+ 2 - 0
docs/modules/ROOT/pages/api/method_StartActionByGetAndWait.adoc

@@ -7,6 +7,8 @@
 Despite its name, this method no longer supports `GET` requests. The OliveTin 2k style of putting the action ID in the URL (eg: `GET /api/StartActionByGetAndWait/pingGithub`) returns `404` in OliveTin 3k, and is not coming back.
 Despite its name, this method no longer supports `GET` requests. The OliveTin 2k style of putting the action ID in the URL (eg: `GET /api/StartActionByGetAndWait/pingGithub`) returns `404` in OliveTin 3k, and is not coming back.
 ====
 ====
 
 
+This method cannot send a justification. If the action requires one, the call is refused with `invalid_argument`, unless the action's justification template fills it in. Use `StartActionAndWait` with a `justification` instead. See xref:upgrade/upgrade_notes.adoc#start-action-by-get-justification[Upgrade Notes].
+
 == Migrating to `StartActionAndWait`
 == Migrating to `StartActionAndWait`
 
 
 `StartActionAndWait` takes the same `actionId` field, and returns the same Log Entry, so you only need to change the method name. It also accepts `arguments` and a `justification`.
 `StartActionAndWait` takes the same `actionId` field, and returns the same Log Entry, so you only need to change the method name. It also accepts `arguments` and a `justification`.

+ 5 - 0
docs/modules/ROOT/pages/args/input_confirmation.adoc

@@ -5,6 +5,11 @@ The `confirmation` type argument is a special argument type, which simply disabl
 
 
 Confirmation arguments are usually left unnamed, so nothing is substituted into the command. If you do give the argument a `name`, the only allowed values are `0` (unchecked) and `1` (checked), so confirmation is safe to use with `shell:` actions.
 Confirmation arguments are usually left unnamed, so nothing is substituted into the command. If you do give the argument a `name`, the only allowed values are `0` (unchecked) and `1` (checked), so confirmation is safe to use with `shell:` actions.
 
 
+[NOTE]
+====
+The checkbox guards against accidental clicks in the web UI; it is not an access control. An unnamed confirmation is not checked by the API, so calling xref:api/method_StartAction.adoc[StartAction] (or a custom web UI, or a script) starts the action without it. A named confirmation must be sent by API callers, but both `0` and `1` are accepted. To limit who can start an action, use xref:security/acl.adoc[access control lists].
+====
+
 [source,yaml]
 [source,yaml]
 ----
 ----
 actions:
 actions:

+ 4 - 3
docs/modules/ROOT/pages/config.adoc

@@ -89,12 +89,12 @@ All configuration options are covered in the solution sections
 | `authJwtClaimUsername` | The claim to use for the username. | `sub` | Requires restart | xref:security/jwt_hmac.adoc[JWT with HMAC], xref:security/jwt_keys.adoc[JWT with Keys]
 | `authJwtClaimUsername` | The claim to use for the username. | `sub` | Requires restart | xref:security/jwt_hmac.adoc[JWT with HMAC], xref:security/jwt_keys.adoc[JWT with Keys]
 | `authJwtClaimUserGroup` | The claim to use for the usergroup. | `sub` | Requires restart | xref:security/jwt_hmac.adoc[JWT with HMAC], xref:security/jwt_keys.adoc[JWT with Keys]
 | `authJwtClaimUserGroup` | The claim to use for the usergroup. | `sub` | Requires restart | xref:security/jwt_hmac.adoc[JWT with HMAC], xref:security/jwt_keys.adoc[JWT with Keys]
 | `authJwtHeader` | The HTTP header to use for JWT authentication. | `` | Requires restart | xref:security/jwt_keys.adoc[JWT with Keys]
 | `authJwtHeader` | The HTTP header to use for JWT authentication. | `` | Requires restart | xref:security/jwt_keys.adoc[JWT with Keys]
-| `authJwtPubKeyPath` | The path to the public key to use for JWT authentication. | `` | Requires restart | xref:security/jwt_keys.adoc[JWT with Keys]
+| `authJwtPubKeyPath` | The path to the public key to use for JWT authentication. | `` | Live reloadable. The key file is read on every request, so replacing it takes effect without a restart. | xref:security/jwt_keys.adoc#rotating-public-keys-on-disk[JWT with Keys]
 | `authHttpHeaderUsername` | The HTTP header to use for the username. | `` | Requires restart | xref:security/trusted_header.adoc[Trusted Headers]
 | `authHttpHeaderUsername` | The HTTP header to use for the username. | `` | Requires restart | xref:security/trusted_header.adoc[Trusted Headers]
 | `authHttpHeaderUserGroup` | The HTTP header to use for the usergroup. | `` | Requires restart | xref:security/trusted_header.adoc[Trusted Headers]
 | `authHttpHeaderUserGroup` | The HTTP header to use for the usergroup. | `` | Requires restart | xref:security/trusted_header.adoc[Trusted Headers]
 | `authLocalUsers` | The list of local users. | `[]` | Requires restart | xref:security/local.adoc[Local Users]
 | `authLocalUsers` | The list of local users. | `[]` | Requires restart | xref:security/local.adoc[Local Users]
 | `authLoginUrl` | The URL to redirect to for login. | `` | Requires restart | xref:security/local.adoc[Login URL]
 | `authLoginUrl` | The URL to redirect to for login. | `` | Requires restart | xref:security/local.adoc[Login URL]
-| `authRequireGuestsToLogin` | Basically disables all functionality for guests. It sets all default permissions to false. | `false` | Requires restart | xref:security/acl.adoc[Access Control Lists]
+| `authRequireGuestsToLogin` | Makes guests log in before they can do anything. Guests can only call the API to log in, and get no permissions: all default permissions are set to false, and ACLs never apply to guests. See xref:security/example_login_required.adoc[Login required]. | `false` | Requires restart | xref:security/acl.adoc[Access Control Lists]
 | `defaultPermissions` | The default permissions to use. | `[]` | Requires restart | xref:security/acl.adoc[Access Control Lists]
 | `defaultPermissions` | The default permissions to use. | `[]` | Requires restart | xref:security/acl.adoc[Access Control Lists]
 | `accessControlLists` | The list of access control lists. | `[]` | Requires restart | xref:security/acl.adoc[Access Control Lists]
 | `accessControlLists` | The list of access control lists. | `[]` | Requires restart | xref:security/acl.adoc[Access Control Lists]
 | `security.headerContentSecurityPolicy` | Whether to send a `Content-Security-Policy` header from the single HTTP frontend. | `true` | Live reloadable | xref:security/content_security_policy.adoc[Content Security Policy headers]
 | `security.headerContentSecurityPolicy` | Whether to send a `Content-Security-Policy` header from the single HTTP frontend. | `true` | Live reloadable | xref:security/content_security_policy.adoc[Content Security Policy headers]
@@ -122,6 +122,7 @@ All configuration options are covered in the solution sections
 | Option | Description | Default | Live Reloadable | Documentation
 | Option | Description | Default | Live Reloadable | Documentation
 
 
 | `logLevel` | The log level to use. `INFO`, `DEBUG`, `WARN`, `TRACE` | `INFO` | Requires Restart | xref:advanced_configuration/logs.adoc[Logging]
 | `logLevel` | The log level to use. `INFO`, `DEBUG`, `WARN`, `TRACE` | `INFO` | Requires Restart | xref:advanced_configuration/logs.adoc[Logging]
+| `logHistoryLimit` | The maximum number of execution logs kept in memory. The oldest finished logs are removed first. Minimum `100`. | `2000` | Requires Restart | xref:logs/saving.adoc#log-history-limit[Saving logs]
 | `logDebugOptions` | Enable various debug logs. | `-` | Requires Restart | xref:troubleshooting/advanced.adoc[Advanced Troubleshooting]
 | `logDebugOptions` | Enable various debug logs. | `-` | Requires Restart | xref:troubleshooting/advanced.adoc[Advanced Troubleshooting]
 | `Insecure*` | Various options to disable security features. | `false` | Restart recommended | xref:troubleshooting/advanced.adoc[Advanced Troubleshooting]
 | `Insecure*` | Various options to disable security features. | `false` | Restart recommended | xref:troubleshooting/advanced.adoc[Advanced Troubleshooting]
 |===
 |===
@@ -131,7 +132,7 @@ All configuration options are covered in the solution sections
 |===
 |===
 | Option | Description | Default | Live Reloadable | Documentation
 | Option | Description | Default | Live Reloadable | Documentation
 
 
-| `webUIDir` | The directory to serve the web UI from. | Calculated at runtime. | Requires Restart | -
+| `webUIDir` | The directory to serve the web UI from. | Calculated at runtime. | Requires Restart | xref:advanced_configuration/webui.adoc#replace-webui[Replace the web UI]
 | `cronSupportForSeconds` | Whether or not to support seconds in cron expressions. | `false` | Requires Restart | xref:action_execution/oncron.adoc[Cron]
 | `cronSupportForSeconds` | Whether or not to support seconds in cron expressions. | `false` | Requires Restart | xref:action_execution/oncron.adoc[Cron]
 | `saveLogs` | Whether or not to save logs to disk. | `[]` | Requires Restart | xref:logs/saving.adoc[Save Logs]
 | `saveLogs` | Whether or not to save logs to disk. | `[]` | Requires Restart | xref:logs/saving.adoc[Save Logs]
 | `serviceLogs` | Windows process log directory (`serviceLogs.directory`). | `%ProgramData%\OliveTin\logs\` on Windows | Requires Restart | xref:install/windows_service.adoc#windows-service-logs[Windows service logs]
 | `serviceLogs` | Windows process log directory (`serviceLogs.directory`). | `%ProgramData%\OliveTin\logs\` on Windows | Requires Restart | xref:install/windows_service.adoc#windows-service-logs[Windows service logs]

+ 1 - 0
docs/modules/ROOT/pages/entities/intro.adoc

@@ -24,6 +24,7 @@ The chosen field is shown as the instance name in lists and dashboards. On the e
 === Live reload
 === Live reload
 
 
 * **Entity file content** — when a watched data file is updated on disk, OliveTin reloads instances and notifies the web UI. No restart is required.
 * **Entity file content** — when a watched data file is updated on disk, OliveTin reloads instances and notifies the web UI. No restart is required.
+* **Replaced or mounted files** — files that are replaced rather than written in place are reloaded too. This includes files saved by editors that write a new copy, files moved into place with `mv`, symlinks that are pointed somewhere else, and files mounted from a Kubernetes ConfigMap.
 * **New entity types in `config.yaml`** — when you add a new entry under `entities:` and reload config, OliveTin starts watching that file without a full restart.
 * **New entity types in `config.yaml`** — when you add a new entry under `entities:` and reload config, OliveTin starts watching that file without a full restart.
 * **Entity file path changes** — when you change an entity's file path in config and reload, OliveTin switches to the new file without a restart.
 * **Entity file path changes** — when you change an entity's file path in config and reload, OliveTin switches to the new file without a restart.
 * **Removing or renaming entity types** — restart OliveTin if you remove an entity definition or rename its type; otherwise stale entity data may remain in memory until restart.
 * **Removing or renaming entity types** — restart OliveTin if you remove an entity definition or rename its type; otherwise stale entity data may remain in memory until restart.

+ 1 - 1
docs/modules/ROOT/pages/install/container.adoc

@@ -13,7 +13,7 @@ The main OliveTin image is available at;
 
 
 == Tags
 == Tags
 
 
-* `latest-2k` - This tag will always point to the latest OliveTin 2k version (eg 2025.11.11)
+* `latest-2k` - This tag points to the final OliveTin 2k version. OliveTin 2k is end of life and no longer receives any updates - see xref:upgrade/2k3k.adoc#end-of-2k-support[End of support for OliveTin 2k].
 * `latest-3k` - This tag will always point to the latest OliveTin 3k version (eg 3000.2.0)
 * `latest-3k` - This tag will always point to the latest OliveTin 3k version (eg 3000.2.0)
 * `latest` - This tag will always point to the latest OliveTin version (currently 3k)
 * `latest` - This tag will always point to the latest OliveTin version (currently 3k)
 
 

+ 2 - 0
docs/modules/ROOT/pages/logs/calendar.adoc

@@ -26,6 +26,8 @@ This gives you a quick visual overview of when actions were executed throughout
 
 
 Use the navigation controls at the top of the calendar to move between months. The calendar will display all logged executions for the visible month.
 Use the navigation controls at the top of the calendar to move between months. The calendar will display all logged executions for the visible month.
 
 
+The month you are viewing is kept in the page address (for example `/logs/calendar?month=2026-08`). This means that after opening an execution, your browser's back button returns you to the same month, and you can bookmark or share a link to a particular month.
+
 === Click on an Event
 === Click on an Event
 
 
 Click on any event (execution) on the calendar to view the full execution details, including:
 Click on any event (execution) on the calendar to view the full execution details, including:

+ 15 - 0
docs/modules/ROOT/pages/logs/saving.adoc

@@ -3,6 +3,21 @@
 
 
 By default, OliveTin only keeps logs in memory, meaning that if you restart OliveTin your logs will be lost. For some use cases this is acceptable, but you can configure OliveTin to save logs for you.
 By default, OliveTin only keeps logs in memory, meaning that if you restart OliveTin your logs will be lost. For some use cases this is acceptable, but you can configure OliveTin to save logs for you.
 
 
+[#log-history-limit]
+== How many logs are kept in memory
+
+OliveTin keeps up to 2000 execution logs in memory, which is what the Logs pages show. When there are more, the oldest finished logs are removed. Logs for executions that are still running or queued are never removed, and neither are logs that still count towards an action's xref:action_customization/ratelimiting.adoc[rate limit].
+
+You can change the limit with `logHistoryLimit` (minimum `100`):
+
+[source,yaml]
+.`config.yaml`
+----
+logHistoryLimit: 5000
+----
+
+Logs saved to disk with `saveLogs` are not removed. When OliveTin starts, it loads the newest saved logs up to the limit.
+
 When `saveLogs` is enabled, OliveTin writes a file for each configured directory when an execution finishes — a results YAML when `resultsDirectory` is set, and an output log when `outputDirectory` is set. If only one directory is configured, only that file type is written. This includes blocked runs (for example when concurrency or rate limits prevent the action from starting).
 When `saveLogs` is enabled, OliveTin writes a file for each configured directory when an execution finishes — a results YAML when `resultsDirectory` is set, and an output log when `outputDirectory` is set. If only one directory is configured, only that file type is written. This includes blocked runs (for example when concurrency or rate limits prevent the action from starting).
 
 
 You can configure the global setting for saving logs, or override it on a per-action basis;
 You can configure the global setting for saving logs, or override it on a per-action basis;

+ 19 - 0
docs/modules/ROOT/pages/security/acl.adoc

@@ -116,6 +116,25 @@ accessControlLists:
     addToEveryAction: true
     addToEveryAction: true
 ```
 ```
 
 
+[#acls-for-triggers]
+=== ACLs for triggers (startup, cron, webhooks)
+
+Actions started by a trigger, such as `execOnStartup`, `execOnCron`, `execOnCalendarFile`, `execOnFileCreatedInDir` or `execOnWebhook`, run as a user in the `system` usergroup, and the same ACL checks apply. If you set `defaultPermissions.exec` to `false`, give the `system` usergroup `exec`, or your triggered actions will be blocked:
+
+[source,yaml]
+.`config.yaml`
+```yaml
+accessControlLists:
+  - name: system_triggers
+    matchUsergroups:
+      - system
+    permissions:
+      exec: true
+    addToEveryAction: true
+```
+
+Triggers only start the actions that you configured them on, so adding this ACL to every action does not let anyone else run those actions.
+
 == ACLs and Dashboards
 == ACLs and Dashboards
 
 
 Root dashboards can also list `acls`. This controls whether the **whole dashboard page** is visible (including `display` widgets and entity fieldsets), not just action buttons.
 Root dashboards can also list `acls`. This controls whether the **whole dashboard page** is visible (including `display` widgets and entity fieldsets), not just action buttons.

+ 5 - 2
docs/modules/ROOT/pages/security/example_login_required.adoc

@@ -42,9 +42,12 @@ Note, to use this configuration, you will need to replace `-- your password hash
 
 
 == Important configuration option: `authRequireGuestsToLogin`
 == Important configuration option: `authRequireGuestsToLogin`
 
 
-The `authRequireGuestsToLogin` option is a helpful shortcut that sets all `defaultPermissions` to false, and makes it so that all guests are prompted to login before they can do anything with OliveTin.
+The `authRequireGuestsToLogin` option makes all guests log in before they can do anything with OliveTin. When it is enabled:
 
 
-Technically, you could achieve the same effect by setting `defaultPermissions` to `false` and setting up an ACL that allows access to the login page, but `authRequireGuestsToLogin` is a more convenient way to achieve the same effect.
+* Guests (visitors who are not logged in) can only use the API to log in, log out, check that OliveTin is ready, and generate a password hash. Every other API call is refused, including starting, restarting and killing actions, and the diagnostic API calls enabled by the `insecureAllow*` options.
+* Guests get no permissions at all. All `defaultPermissions` are set to `false`, and ACLs never apply to guests, even an ACL that matches the `guest` username or usergroup. Such an ACL still applies to logged-in users who are in the `guest` usergroup, for example OAuth2 users given that group by `addToUsergroup`.
+
+This is stronger than setting `defaultPermissions` to `false` yourself, because with that alone an ACL that matches guests would still give them access. See the xref:upgrade/upgrade_notes.adoc#require-guests-to-login-all-api-calls[Upgrade Notes].
 
 
 == Per-action ACLs, vs `addToEveryAction`
 == Per-action ACLs, vs `addToEveryAction`
 
 

+ 2 - 0
docs/modules/ROOT/pages/security/example_some_admin_actions.adoc

@@ -8,6 +8,8 @@ OliveTin ACLs are *allow lists*, not deny lists. Each action starts with `defaul
 
 
 The default `defaultPermissions` allow guests to view and execute every action. To restrict some actions to logged-in admins while leaving others open to guests, set `defaultPermissions` to deny access by default, then use ACLs to explicitly grant access on each action.
 The default `defaultPermissions` allow guests to view and execute every action. To restrict some actions to logged-in admins while leaving others open to guests, set `defaultPermissions` to deny access by default, then use ACLs to explicitly grant access on each action.
 
 
+If any actions use triggers such as `execOnStartup`, `execOnCron` or `execOnWebhook`, also grant `exec` to the `system` usergroup. See xref:security/acl.adoc#acls-for-triggers[ACLs for triggers].
+
 See xref:security/acl.adoc[Access Control Lists] for the full ACL reference.
 See xref:security/acl.adoc[Access Control Lists] for the full ACL reference.
 
 
 == Full example configuration
 == Full example configuration

+ 7 - 0
docs/modules/ROOT/pages/security/jwt_keys.adoc

@@ -46,6 +46,13 @@ authJwtClaimUsername: email
 authJwtCookieName: "CF_Authorization"
 authJwtCookieName: "CF_Authorization"
 ----
 ----
 
 
+[#rotating-public-keys-on-disk]
+=== Rotating public keys on disk
+
+OliveTin reads the key file on every request, so you can rotate the key by replacing the file at the same path, for example by updating a Kubernetes or Docker secret, without restarting OliveTin. As soon as the file changes, tokens signed by the old key are rejected and tokens signed by the new key are accepted.
+
+If the key file is missing or cannot be parsed, OliveTin rejects every JWT until the file is fixed. When you replace the file, write the new key to a temporary file and rename it over the old one, so that OliveTin never reads a half-written key.
+
 == See Also
 == See Also
 
 
 * xref:solutions/cloudflare_access_tunnel/index.adoc[Cloudflare Access & Tunnels Solution]
 * xref:solutions/cloudflare_access_tunnel/index.adoc[Cloudflare Access & Tunnels Solution]

+ 2 - 0
docs/modules/ROOT/pages/security/oauth2.adoc

@@ -58,6 +58,8 @@ authOAuth2Providers:
 
 
 Then ensure an ACL matches that group, for example `matchUsergroups: ["guest"]`, so those users get the intended access.
 Then ensure an ACL matches that group, for example `matchUsergroups: ["guest"]`, so those users get the intended access.
 
 
+NOTE: Visitors who are not logged in are also called `guest`. If `authRequireGuestsToLogin` is `true`, an ACL that matches the `guest` usergroup applies only to logged-in users, never to visitors who are not logged in. If it is `false`, the ACL applies to both, so consider using a different group name, such as `oauth-users`.
+
 === All users from a provider in one group
 === All users from a provider in one group
 
 
 Give every user who logs in via GitHub the group `github` so you can target them in ACLs:
 Give every user who logs in via GitHub the group `github` so you can target them in ACLs:

+ 2 - 0
docs/modules/ROOT/pages/security/trusted_header.adoc

@@ -24,6 +24,8 @@ The value of `X-Username` and `X-Usergroup` can be whatever you like, as long as
 
 
 NOTE: You *must* set `authHttpHeaderUsername` to some value, even if you only intend to use `authHttpHeaderUserGroup`, otherwise usergroups will be ignored.
 NOTE: You *must* set `authHttpHeaderUsername` to some value, even if you only intend to use `authHttpHeaderUserGroup`, otherwise usergroups will be ignored.
 
 
+Users logged in this way always have the provider `trusted-header`. OliveTin does not read the provider from a request header. See xref:upgrade/upgrade_notes.adoc#trusted-header-provider[Upgrade Notes].
+
 == Multiple usergroups
 == Multiple usergroups
 
 
 OliveTin will automatically detect multiple usergroups in the `authHttpHeaderUserGroup` header if they are separated by a space. You can also set a configuration option to use a different separator string with `authHttpHeaderUserGroupSep`. For example, if you set `authHttpHeaderUserGroupSep` to `,`, then the header `X-Usergroup: group1,group2` will be interpreted as two usergroups: `group1` and `group2`.
 OliveTin will automatically detect multiple usergroups in the `authHttpHeaderUserGroup` header if they are separated by a space. You can also set a configuration option to use a different separator string with `authHttpHeaderUserGroupSep`. For example, if you set `authHttpHeaderUserGroupSep` to `,`, then the header `X-Usergroup: group1,group2` will be interpreted as two usergroups: `group1` and `group2`.

+ 1 - 1
docs/modules/ROOT/pages/solutions/k8s-control-panel-hosted/index.adoc

@@ -82,7 +82,7 @@ Add `kubectl` job to OliveTin config with `kubectl edit cm/olivetin-config -n ol
 apiVersion: v1
 apiVersion: v1
 data:
 data:
   config.yaml: |
   config.yaml: |
-    defaultOnClick: execution-dialog-output-only
+    defaultOnClick: execution-dialog
 
 
     actions:
     actions:
       - title: get pods
       - title: get pods

+ 1 - 0
docs/modules/ROOT/pages/solutions/latching-toggle/index.adoc

@@ -56,3 +56,4 @@ include::example$solutions/latching-toggle/config.yaml[]
 * xref:action_customization/enabledExpression.adoc[Enabled expressions]
 * xref:action_customization/enabledExpression.adoc[Enabled expressions]
 * xref:solutions/heating-control-panel/index.adoc[Heating Control Panel]
 * xref:solutions/heating-control-panel/index.adoc[Heating Control Panel]
 * xref:solutions/human-in-the-control-loop/index.adoc[Human in the Control Loop]
 * xref:solutions/human-in-the-control-loop/index.adoc[Human in the Control Loop]
+* xref:solutions/single-button-toggle/index.adoc[Single Button Toggle]

+ 74 - 0
docs/modules/ROOT/pages/solutions/single-button-toggle/index.adoc

@@ -0,0 +1,74 @@
+[#single-button-toggle]
+= Single Button Toggle
+
+A single button toggle controls something that has two states, using just one action. Each press flips the state, and the button's icon changes to show the current state - a "closed" icon when the state is `closed`, and an "open" icon when the state is `open`.
+
+Unlike the xref:solutions/latching-toggle/index.adoc[Latching Toggle], which uses two interlocked actions, the button here is never disabled. It can always be pressed, and it always does the opposite of the current state.
+
+In OliveTin, the state is stored in an xref:entities/intro.adoc[entity file], which the action updates itself, and the icon is chosen with an xref:action_customization/icons.adoc[image icon] whose file name comes from the entity's state.
+
+The example on this page controls a garden water valve.
+
+[cols="1,1"]
+|===
+| Valve closed | Valve open
+
+a| image::solutions/single-button-toggle/dashboard-closed.png[]
+a| image::solutions/single-button-toggle/dashboard-open.png[]
+|===
+
+== How it works
+
+* The entity file `/etc/OliveTin/entities/water_valve.yaml` holds the state of the valve (`open` or `closed`). It is the single source of truth for the dashboard.
+* The **Toggle valve** action's icon is an `<img>` tag that uses `{{ .CurrentEntity.state }}` as the file name, so state `closed` shows `closed.png` and state `open` shows `open.png`.
+* The action has no `enabledExpression`, so it is never disabled.
+* When it runs, the action reads the current state from the entity file, works out the opposite state, and changes the `state:` line in the file. OliveTin watches entity files, so the dashboard and the icon update as soon as the file changes.
+* Each execution reads the state from the file, not from the dashboard, so a press that runs straight after another still flips the valve, even before OliveTin has reloaded the entity. The state may be written as `open` or `"open"`, and may be followed by a YAML comment.
+* OliveTin runs one execution of an action at a time by default (`maxConcurrent: 1`). A press while the action is still running is blocked, not queued, so it does not flip the valve. Press again once the first execution has finished.
+
+== Icons
+
+Save the two icons into the `custom-webui/icons/` directory next to your `config.yaml`, so that OliveTin serves them at `/custom-webui/icons/closed.png` and `/custom-webui/icons/open.png`. See xref:action_customization/icons.adoc[Icons] for more about serving your own icons.
+
+[cols="1,1"]
+|===
+| `closed.png` | `open.png`
+
+a| image::solutions/single-button-toggle/icons/closed.png[closed.png,48]
+a| image::solutions/single-button-toggle/icons/open.png[open.png,48]
+|===
+
+You can use any images you like, as long as each one is named after the state it represents.
+
+== Entity file
+
+[source,yaml]
+.`/etc/OliveTin/entities/water_valve.yaml`
+----
+include::example$solutions/single-button-toggle/water_valve.yaml[]
+----
+
+== Configuration
+
+[source,yaml]
+.`config.yaml`
+----
+include::example$solutions/single-button-toggle/config.yaml[]
+----
+
+== Customising this pattern
+
+* The same pattern works for anything with two states, such as lights, relays, services, or a maintenance mode. Add more icons if your entity has more than two states, and change the action to cycle through them.
+* Replace the `echo` command with your real hardware control, for example a GPIO command, an MQTT publish, or a call to a smart plug API.
+* Only write the new state to the entity file once the hardware command has succeeded. If the command fails, the shell exits before the state changes and the dashboard keeps showing the real state.
+* If something else can change the device (a physical switch, a schedule), have a script update the entity file too. The icon will then follow it.
+* The icon path starts with `/`, so it works from any dashboard. If OliveTin is served under a sub-path behind a reverse proxy, include that sub-path in the icon's `src`.
+* This action changes every `state:` line in the entity file, so to control several valves, give each one its own entity file, or update the right entity with a YAML-aware tool such as `yq`.
+* Add ACLs if only certain users should be able to operate the valve.
+
+== See also
+
+* xref:entities/intro.adoc[Entities]
+* xref:action_customization/icons.adoc[Icons]
+* xref:solutions/latching-toggle/index.adoc[Latching Toggle]
+* xref:solutions/human-in-the-control-loop/index.adoc[Human in the Control Loop]

+ 2 - 0
docs/modules/ROOT/pages/troubleshooting/log-debug-options.adoc

@@ -1,6 +1,8 @@
 [#log-debug-options]
 [#log-debug-options]
 = Debug Log Options
 = Debug Log Options
 
 
+WARNING: Debug log options log internal details, including request headers, and **will contain sensitive information**. This is expected. Only enable them while troubleshooting, and remove secrets before sharing the logs. See xref:advanced_configuration/logs.adoc#debug-logs-sensitive[DEBUG and TRACE logs contain sensitive information].
+
 [source,yaml]
 [source,yaml]
 ----
 ----
 logDebugOptions:
 logDebugOptions:

+ 2 - 0
docs/modules/ROOT/pages/troubleshooting/service-logs.adoc

@@ -131,6 +131,8 @@ journalctl -eu OliveTin --since "30 minutes ago"
 
 
 For deeper server-side detail, you can temporarily enable xref:troubleshooting/log-debug-options.adoc[LogDebugOptions]—then capture logs again with those settings in mind.
 For deeper server-side detail, you can temporarily enable xref:troubleshooting/log-debug-options.adoc[LogDebugOptions]—then capture logs again with those settings in mind.
 
 
+WARNING: Logs captured at `DEBUG` or `TRACE` level, with `-startuptrace`, or with `logDebugOptions` enabled **will contain sensitive information**, such as secrets, API keys, password hashes and request headers. Remove these before sharing logs. See xref:advanced_configuration/logs.adoc#debug-logs-sensitive[DEBUG and TRACE logs contain sensitive information].
+
 [#share-the-logs]
 [#share-the-logs]
 == Share the logs
 == Share the logs
 
 

+ 25 - 5
docs/modules/ROOT/pages/upgrade/2k3k.adoc

@@ -1,6 +1,6 @@
 = Understanding OliveTin 2k vs 3k
 = Understanding OliveTin 2k vs 3k
 
 
-NOTE: OliveTin 3k is basically "rebuilding OliveTin for the future" - and aims to have high compatibility with OliveTin 2k while people migrate. However, as we all know, stuff will break when 3k is new - so please be patient, and report issues as you find them! OliveTin 2k isn't going anywhere anytime soon!
+NOTE: OliveTin 3k was a rebuilding of OliveTin 2k from the ground up - and has high compatibility with OliveTin 2k while people migrate. OliveTin 2k is now end of life and no longer receives any updates, so please upgrade to 3k, and report anything that blocks your upgrade!
 
 
 == Quick summary of key points
 == Quick summary of key points
 
 
@@ -13,7 +13,7 @@ eg: 2022.11.11
 
 
 eg: 2023.04.15
 eg: 2023.04.15
 | Calendar Versioning (calver)
 | Calendar Versioning (calver)
-| At least 31st December 2028 (bug fixes and security updates only)
+| End of life on 25th November 2026 (policy change) - no security fixes or bug fixes - see <<end-of-2k-support>>
 
 
 | **OliveTin 3k**
 | **OliveTin 3k**
 
 
@@ -62,18 +62,38 @@ However, starting with version "2.0.0" after versions like "2022.11.11" would br
 
 
 To avoid this confusion, it was decided to jump straight to version "3000.0.0" - which is clearly above "2022.11.11" and any other 2k version. This way, users can easily see that 3000.x.x is newer than any 2k version, and it avoids any confusion with version ordering.
 To avoid this confusion, it was decided to jump straight to version "3000.0.0" - which is clearly above "2022.11.11" and any other 2k version. This way, users can easily see that 3000.x.x is newer than any 2k version, and it avoids any confusion with version ordering.
 
 
-- OliveTin versions like 2022.11.11 and 2023.04.15 are part of "**OliveTin 2k**" (2000 series) and use a **calendar versioning** (calver) scheme. These versions are stable and will continue to receive updates and support but will not receive new features.
-  - There is no plan to stop supporting OliveTin 2k versions until **at least 31st December 2028** (and I'll probably keep extending that date, but it's good to have a cutoff somewhere).
+- OliveTin versions like 2022.11.11 and 2023.04.15 are part of "**OliveTin 2k**" (2000 series) and use a **calendar versioning** (calver) scheme. These versions are end of life, and no longer receive any updates.
+  - OliveTin 2k was originally promised support until at least 31st December 2028. This changed on 25th November 2026, when 2k reached end of life - see <<end-of-2k-support>>.
 - OliveTin versions starting from 3000.0.0 and onwards are part of "**OliveTin 3k**" (3000 series) and also use a **semantic versioning scheme**. These versions will receive new features, improvements, and updates.
 - OliveTin versions starting from 3000.0.0 and onwards are part of "**OliveTin 3k**" (3000 series) and also use a **semantic versioning scheme**. These versions will receive new features, improvements, and updates.
 
 
 == Should I automatically update to OliveTin 3k?
 == Should I automatically update to OliveTin 3k?
 
 
-Users are encouraged to try OliveTin 3k, but understand that it represents several major technology changes, so subtle things might change or break in the first few releases. Please remember that OliveTin 2k will continue to be supported and receive updates until at least 31st December 2028, so there is no rush to upgrade.
+Yes, please plan to upgrade. OliveTin 2k is end of life and no longer receives security fixes or bug fixes, so staying on 2k means staying on known, unpatched vulnerabilities.
+
+OliveTin 3k represents several major technology changes, so test your configuration after upgrading, and please report anything that breaks.
+
+[#end-of-2k-support]
+=== Policy change (25th November 2026): end of support for OliveTin 2k
+
+Until 25th November 2026, this page said OliveTin 2k would receive bug fixes and security updates until at least 31st December 2028. That has changed: **as of 25th November 2026, OliveTin 2k is end of life, and no longer receives any updates - neither security fixes nor bug fixes.** We're sorry. The original commitment was made in good faith, and we know some of you planned around it.
+
+There are four reasons for the change:
+
+- **There isn't enough maintainer time to patch 2k.** In practice, 2k has received almost no patches since 3k was released. All the available time has gone into 3k, and it is more honest to say so than to keep a promise on paper that isn't being kept.
+- **Very few people are asking for 2k.** Interest in staying on 2k has been very low compared to the number of users who have simply upgraded to 3k.
+- **Many fixes can't be made safely in 2k's architecture.** Recent fixes in 3k rely on typed entities, the Connect RPC API, and a configuration system that can be reloaded cleanly. 2k has none of these, so a lot of fixes would mean rewriting large parts of 2k, which would effectively rebuild 3k inside 2k.
+- **Reports are arriving much faster than 2k could be patched.** AI-assisted security research now finds issues faster than ever. That is good for OliveTin users overall, but it means 2k fixes would ship late, incomplete, or not at all, and a branch that still claims security support without getting it is worse than an honest end-of-support notice.
+
+Existing 2k releases and the `latest-2k` container images remain available, and nothing will stop working. If something blocks your upgrade to 3k, please open an issue - fixing upgrade blockers is now the best way we can keep 2k users safe.
+
+See the link:https://github.com/OliveTin/OliveTin/blob/main/SECURITY.md[security policy] for details.
 
 
 The developers of this project have quite a lot of test infrastructure around OliveTin 3k (more than was possible with 2k), and would like to **strongly urge problems with updates to be reported, so that they can be fixed when possible**. 
 The developers of this project have quite a lot of test infrastructure around OliveTin 3k (more than was possible with 2k), and would like to **strongly urge problems with updates to be reported, so that they can be fixed when possible**. 
 
 
 === How do I stop my OliveTin 2k containers from upgrading to OliveTin 3k automatically?
 === How do I stop my OliveTin 2k containers from upgrading to OliveTin 3k automatically?
 
 
+WARNING: OliveTin 2k is end of life and no longer receives any updates. Only pin to 2k while you prepare to upgrade.
+
 Change your `latest` tag to `latest-2k` in your container definitions. 
 Change your `latest` tag to `latest-2k` in your container definitions. 
 
 
 3 tags now exist for container images and container registries;
 3 tags now exist for container images and container registries;

+ 7 - 5
docs/modules/ROOT/pages/upgrade/github_latest.adoc

@@ -1,8 +1,10 @@
 = Warning - GitHub Latest
 = Warning - GitHub Latest
 
 
-GitHub has a handy feature where releases can be marked as "latest". However, it does not understand that some projects, like OliveTin, have **two** active release streams, xref::upgrade/2k3k.adoc[2k and 3k]. Both of those individual streams can have a "latest" - the latest 2k version and the latest 3k version. Unfortunately, GitHub does not provide a way to mark a release at "latest-2k" or "latest-3k" - it only has "latest".
+NOTE: OliveTin 2k reached end of life on 25th November 2026, and no longer receives any updates, so no new 2k releases will be published. See xref:upgrade/2k3k.adoc#end-of-2k-support[End of support for OliveTin 2k].
 
 
-It often happens that a 2k release will come out AFTER a 3k release, and if we left GitHub to do what it does by default, the "latest" URL would be the 2k version - and then when a 3k release goes out, the "latest" URL would be point to a 3k version. This is probably not what you want - "latest" flipping between the "last release that went out". You want it to point to the latest 3k version.
+GitHub has a handy feature where releases can be marked as "latest". However, it does not understand that some projects, like OliveTin, had **two** active release streams, xref::upgrade/2k3k.adoc[2k and 3k]. Both of those individual streams could have a "latest" - the latest 2k version and the latest 3k version. Unfortunately, GitHub does not provide a way to mark a release at "latest-2k" or "latest-3k" - it only has "latest".
+
+While both streams were active, a 2k release would often come out AFTER a 3k release, and if we left GitHub to do what it does by default, the "latest" URL would be the 2k version - and then when a 3k release goes out, the "latest" URL would be point to a 3k version. This is probably not what you want - "latest" flipping between the "last release that went out". You want it to point to the latest 3k version.
 
 
 Therefore, the OliveTin project has disabled "latest" releases for all the 2k versions, so that the GitHub "latest" URL will always be the latest 3k version.
 Therefore, the OliveTin project has disabled "latest" releases for all the 2k versions, so that the GitHub "latest" URL will always be the latest 3k version.
 
 
@@ -13,16 +15,16 @@ If you have been using a script to download the latest version of OliveTin, **yo
 
 
 == Container Tags are unaffected
 == Container Tags are unaffected
 
 
-Container registries allow any number of arbitary tags, so containers DO have a "latest-2k" and "latest-3k" tags. The breaking change described above is only for GitHub release URLs. So, you can still pull the latest 2k or 3k version of the container if you want to. Learn more about available tags in the xref::install/container.adoc[Container Installation Guide].
+Container registries allow any number of arbitary tags, so containers DO have a "latest-2k" and "latest-3k" tags. The breaking change described above is only for GitHub release URLs. So, you can still pull the final 2k version or the latest 3k version of the container if you want to. Learn more about available tags in the xref::install/container.adoc[Container Installation Guide].
 
 
 == What if I want to use the "latest 2k" download URL in my scripts?
 == What if I want to use the "latest 2k" download URL in my scripts?
 
 
-It is understood that some users will want to hard-code a "wget URL" for the latest 2k version into their scripts. Unfortunately the GitHub "latest" URL is now no longer a reliable way to do this. However, the OliveTin project has provided you with a workaround. 
+OliveTin 2k is end of life, so please plan to move to 3k rather than relying on 2k in your scripts. Until then, it is understood that some users will want to hard-code a "wget URL" for the final 2k version into their scripts. Unfortunately the GitHub "latest" URL is now no longer a reliable way to do this. However, the OliveTin project has provided you with a workaround. 
 
 
 In the repository OliveTin/update-check.olivetin.app, there is a Python script that will return the latest 2k version number. You can use this to construct a URL for the latest 2k version. The file `versions.json` also contains the latest 3k versions, and provides download URLs and checksums for each package.
 In the repository OliveTin/update-check.olivetin.app, there is a Python script that will return the latest 2k version number. You can use this to construct a URL for the latest 2k version. The file `versions.json` also contains the latest 3k versions, and provides download URLs and checksums for each package.
 
 
 * link:https://raw.githubusercontent.com/OliveTin/update-check.olivetin.app/refs/heads/main/versions.json[versions.json in the update-check.olivetin.app repository]
 * link:https://raw.githubusercontent.com/OliveTin/update-check.olivetin.app/refs/heads/main/versions.json[versions.json in the update-check.olivetin.app repository]
 
 
-This repository is updated automatically whenever a new 2k or 3k version is released, so you can be sure that the URL you use will always point to the latest version. Please check this repository README for details on how to use this file in your scripts to get the relevant download URLs;
+This repository is updated automatically whenever a new 3k version is released. As no more 2k versions will be released, the 2k entry will always point to the final 2k version. Please check this repository README for details on how to use this file in your scripts to get the relevant download URLs;
 
 
 * link:https://github.com/OliveTin/update-check.olivetin.app/tree/main[update-check.olivetin.app README]
 * link:https://github.com/OliveTin/update-check.olivetin.app/tree/main[update-check.olivetin.app README]

+ 82 - 2
docs/modules/ROOT/pages/upgrade/upgrade_notes.adoc

@@ -3,6 +3,87 @@
 
 
 OliveTin releases are published to GitHub, and the release notes are contained there. This page includes a summary of "Upgrade Notes" for breaking changes between releases.
 OliveTin releases are published to GitHub, and the release notes are contained there. This page includes a summary of "Upgrade Notes" for breaking changes between releases.
 
 
+== Next release (unreleased)
+
+[#require-guests-to-login-all-api-calls]
+=== `authRequireGuestsToLogin` now applies to every API call and ACL
+
+When `authRequireGuestsToLogin` is `true`, guests (visitors who are not logged in) can now only call the API to log in, log out, check that OliveTin is ready, and generate a password hash. Previously some API calls, including the ones that start, restart and kill actions, did not check this option, so guests could still use them if an ACL gave them permission. ACLs also no longer apply to guests when this option is enabled, even an ACL that matches the `guest` username or usergroup.
+
+This affects you if `authRequireGuestsToLogin` is `true` and a script or integration calls the OliveTin API without logging in, for example with `curl` and no API key or session. Those calls now fail with "permission denied". Give the integration an API key or a user account, and an ACL that matches that user. ACLs for logged-in users, including OAuth2 users in the `guest` usergroup, are not affected. See xref:security/example_login_required.adoc[Login required].
+
+[#webhook-auth-type-required]
+=== Webhooks need an `authType`, and `authType: none` must be set for open webhooks
+
+A webhook in `execOnWebhook` without an `authType` used to accept every request that matched. It is now rejected, and the Diagnostics page shows an error for it (code `webhook_auth_type_unset`). Webhooks that use a GitHub `template` are not affected, because the template sets its own `authType`.
+
+If you have webhooks without an `authType`, add one. Use `authType: bearer`, `hmac-sha256`, `hmac-sha1` or `basic` with a `secret`, or set `authType: none` if the webhook should accept requests from anyone who can reach `/webhooks`. See xref:action_execution/onwebhook.adoc#every-webhook-needs-an-authtype[Webhook Authentication].
+
+[#jwt-local-key-reloaded]
+=== JWT public keys on disk are read on every request
+
+When `authJwtPubKeyPath` is set, OliveTin used to load the key file once and keep using that key until it restarted, even if the file was replaced, deleted or broken. It now reads the file on every request. Replacing the file takes effect straight away, so tokens signed by the old key stop working without a restart.
+
+If the key file is missing or cannot be parsed, every JWT is now rejected, instead of the previously loaded key staying in use. If you remove or move the key file while OliveTin is running, make sure the file at `authJwtPubKeyPath` is always present and valid. See xref:security/jwt_keys.adoc#rotating-public-keys-on-disk[Rotating public keys on disk].
+
+[#whoami-session-fingerprint]
+=== `WhoAmI` no longer returns the session ID
+
+The `WhoAmI` API used to return the caller's session ID in a `sid` field. That value is the credential held in the `HttpOnly` session cookie, so it should not be readable from a response. `sid` has been removed, and `WhoAmI` now returns `sessionFingerprint` instead: a short value derived from the session ID that tells sessions apart but cannot be used to log in.
+
+This only affects API clients or scripts that read `sid` from `WhoAmI`. If you used it to get the session cookie, take the cookie from the `Set-Cookie` header of the login response instead. If you used it to identify a session, use `sessionFingerprint`. See xref:api/login.adoc[Login].
+
+[#example-config-guest-actions]
+=== The example config only lets guests run harmless demo actions
+
+The example `config.yaml` shipped with OliveTin (including the container image and the macOS example) used to let guests run, see logs for, and kill every example action. It now sets `defaultPermissions` to only let guests view actions. A `guest_actions` ACL lets guests run the harmless demo actions, `admin_acl` gives users in the `admins` usergroup access to every action, and a `system_triggers` ACL lets startup, cron and webhook triggers keep working. The "Setup easy SSH" and "Ping host" actions no longer have webhook triggers. The webhook examples are now "Check disk space" and a new "Run script on webhook" action, which both use `exec:` and take no arguments.
+
+Upgrading does not change your existing `config.yaml`. If your config started from the example and still has its example actions, review which of them guests can run. This is particularly important for actions that change the system, run scripts, or take a URL or other input from the user, such as "Get OliveTin Theme", "Setup easy SSH", "Delete old backups" and "Restart Docker Container". Either remove the actions you do not use, or set up permissions like the new example config. See xref:security/example_some_admin_actions.adoc[Some actions require admin] and xref:security/acl.adoc#acls-for-triggers[ACLs for triggers].
+
+[#webhook-trigger-chains-exec-only]
+=== Actions triggered from webhooks can no longer use `shell:`
+
+Webhook-triggered actions were already required to use `exec:`. This rule now also applies to every action started through `triggers` from a webhook-triggered action, at any depth, including `shellAfterCompleted`. Previously these triggered actions could still run `shell:` commands.
+
+If a webhook action in your config triggers an action that uses `shell:` or `shellAfterCompleted`, that action will now fail with "webhooks cannot use Shell execution". Change it to use `exec:` instead. See xref:action_execution/shellvsexec.adoc[Shell vs Exec].
+
+[#log-history-limit]
+=== The number of execution logs kept in memory is now limited
+
+OliveTin now keeps up to 2000 execution logs in memory, and removes the oldest finished logs when there are more. Previously every execution since OliveTin started was kept in memory, so long-running instances showed their full history on the Logs pages.
+
+If you want a longer history in the web interface, raise `logHistoryLimit` in your config. Logs saved to disk with `saveLogs` are not affected. See xref:logs/saving.adoc#log-history-limit[How many logs are kept in memory].
+
+[#restart-action-current-config]
+=== `RestartAction` uses the action as it is configured now
+
+Restarting an execution, with the Restart button or the `RestartAction` API method, now runs the action as it is in the current config, with the arguments and justification stored with the original run. Previously it ran the action as it was configured when the original run started.
+
+After a config change, restarting an old execution can therefore run the changed command.
+
+If the action has been removed, the restart fails with "is no longer in the configuration", and `StartAction` cannot start it either. To run it again, add the action back to your config, or use the action that replaced it.
+
+If the action still exists but now requires an argument or a justification that the original run did not have, the restart fails and asks you to use `StartAction` instead. Start the action again with `StartAction`, or from the dashboard, with the inputs it now needs.
+
+[#web-ui-cache-control]
+=== Web UI files are no longer cached by browsers without checking
+
+OliveTin now sends `Cache-Control: no-cache` with web UI files, so browsers check for a newer version every time, and get the new web interface straight after an upgrade.
+
+Browsers that loaded the web interface from an earlier version may still have those files cached without this header. If the web interface looks out of date or broken after you upgrade, force a reload (Ctrl+Shift+R, or Cmd+Shift+R on macOS), or clear the browser cache for your OliveTin site. You only need to do this once.
+
+[#start-action-by-get-justification]
+=== `StartActionByGet` and `StartActionByGetAndWait` now check required justifications
+
+The deprecated `StartActionByGet` and `StartActionByGetAndWait` API methods used to run actions that require a justification without one. They now refuse them with "justification is required for this action", in the same way as `StartAction` and `StartActionAndWait`, unless the action's justification template fills one in. These methods cannot send a justification, so if a script calls them for such an action, change it to call `StartAction` or `StartActionAndWait` with a `justification`. See xref:api/method_StartActionByGetAndWait.adoc[StartActionByGetAndWait].
+
+[#trusted-header-provider]
+=== Trusted header users always have the provider `trusted-header`
+
+Users logged in with trusted header authentication (`authHttpHeaderUsername`) now always have the provider `trusted-header`. OliveTin used to copy a `provider` request header into the user's provider, which let a client claim to be a `system` user and skip a required justification.
+
+This affects you if something reads the provider from the `WhoAmI` or `Init` API for these users. Change it to expect `trusted-header`. It also affects you if a client sends a `provider: system` header to call `StartAction` or `StartActionAndWait` for an action that requires a justification, without sending one. Those calls now fail with "justification is required for this action", unless the action's justification template fills one in. Send a `justification` with these calls. `RestartAction` is not affected, because it always reuses the justification stored with the original run.
+
 == 2024.08.14
 == 2024.08.14
 
 
 === Navigation change - Subpaths no longer supported
 === Navigation change - Subpaths no longer supported
@@ -25,7 +106,7 @@ This was a bit cumbersome, because OliveTin treats the content of the "webui" di
 
 
 Now themes are stored in the "configdir" (wherever OliveTin finds it's config file, eg `/config` in containers), under the subdirectory `custom-webui/themes`. OliveTin will try to create the `custom-webui` folder in your configdir if it doesn't find it.
 Now themes are stored in the "configdir" (wherever OliveTin finds it's config file, eg `/config` in containers), under the subdirectory `custom-webui/themes`. OliveTin will try to create the `custom-webui` folder in your configdir if it doesn't find it.
 
 
-The advantage of this change is that themes are stored with your config, as part of your data. 
+The advantage of this change is that themes are stored with your config, as part of your data.
 
 
 To upgrade, simply move any themes you might have into your configdir, under `custom-webui/themes/`. eg:
 To upgrade, simply move any themes you might have into your configdir, under `custom-webui/themes/`. eg:
 
 
@@ -64,4 +145,3 @@ The new behavior is that OliveTin will always try to load `http://yourServer:133
 Internally, OliveTin maps `http://yourServer:1337/theme.css` to the `theme.css` of whatever the theme is set to with `themeName`, for example, it could map to `themes/myTheme/theme.css`.
 Internally, OliveTin maps `http://yourServer:1337/theme.css` to the `theme.css` of whatever the theme is set to with `themeName`, for example, it could map to `themes/myTheme/theme.css`.
 
 
 As a theme developer, normally you would reference a background image, or similar using `./background.png`, but OliveTin is loading the theme.css as the directory root, and the themes' assets from the custom-webui theme directory. Therefore you need to update paths to be like; `background-image: "/custom-webui/themes/myTheme/background.png`.
 As a theme developer, normally you would reference a background image, or similar using `./background.png`, but OliveTin is loading the theme.css as the directory root, and the themes' assets from the custom-webui theme directory. Therefore you need to update paths to be like; `background-image: "/custom-webui/themes/myTheme/background.png`.
-

+ 1 - 0
docs/modules/dev/nav.adoc

@@ -1,2 +1,3 @@
 * xref:index.adoc[Index]
 * xref:index.adoc[Index]
 * xref:signing.adoc[Signing]
 * xref:signing.adoc[Signing]
+* xref:sbom.adoc[SBOMs]

+ 37 - 0
docs/modules/dev/pages/sbom.adoc

@@ -0,0 +1,37 @@
+= Software Bills of Materials (SBOMs)
+
+Every OliveTin release publishes SBOMs so you can see exactly which third-party components ship in it.
+
+== Release SBOM
+
+Each GitHub release has two release assets, both describing the same contents:
+
+* `OliveTin-<version>-sbom.cdx.json` - CycloneDX JSON
+* `OliveTin-<version>-sbom.spdx.json` - SPDX JSON
+
+One SBOM covers every archive, `.deb`, `.rpm`, `.apk` and MSI in the release, because they all contain the same two things:
+
+* *The OliveTin service binary.* Go modules are read from the built binary's build info, so the list only includes modules that are actually compiled in. Build tools such as golangci-lint are left out.
+* *The web UI.* The npm runtime dependencies come from `frontend/package-lock.json`. Development dependencies such as Vite and ESLint are left out.
+
+The SBOM is generated by `var/sbom/generate.sh`, which GoReleaser runs during the release.
+
+== Container image SBOMs
+
+Container images get their SBOM as a BuildKit attestation, one for each platform (`linux/amd64`, `linux/arm64`). It covers the Fedora base image packages as well as the OliveTin binary. To view it:
+
+[source,shell]
+----
+docker buildx imagetools inspect ghcr.io/olivetin/olivetin:<version> --format '{{ json .SBOM }}'
+----
+
+NOTE: The image attestation does not list the web UI's npm dependencies, because the image only contains the minified bundle. Use the release SBOM for those.
+
+== Scanning for vulnerabilities
+
+Any SBOM-aware scanner can read these files, for example:
+
+[source,shell]
+----
+grype sbom:OliveTin-<version>-sbom.cdx.json
+----

+ 285 - 236
frontend/package-lock.json

@@ -17,18 +17,18 @@
 				"@xterm/addon-web-links": "^0.12.0",
 				"@xterm/addon-web-links": "^0.12.0",
 				"@xterm/xterm": "^6.0.0",
 				"@xterm/xterm": "^6.0.0",
 				"iconify-icon": "^3.0.5",
 				"iconify-icon": "^3.0.5",
-				"picocrank": "^1.41.0",
-				"vue": "^3.5.45",
-				"vue-i18n": "^11.4.18",
-				"vue-router": "^5.5.0"
+				"picocrank": "^1.42.0",
+				"vue": "^3.5.46",
+				"vue-i18n": "^11.4.23",
+				"vue-router": "^5.5.1"
 			},
 			},
 			"devDependencies": {
 			"devDependencies": {
-				"@vitejs/plugin-vue": "^6.0.10",
-				"eslint": "^10.14.0",
+				"@vitejs/plugin-vue": "^6.0.11",
+				"eslint": "^10.15.0",
 				"eslint-plugin-vue": "^10.12.1",
 				"eslint-plugin-vue": "^10.12.1",
 				"neostandard": "^0.14.1",
 				"neostandard": "^0.14.1",
-				"stylelint": "^18.0.0",
-				"stylelint-config-standard": "^41.0.0",
+				"stylelint": "^18.1.0",
+				"stylelint-config-standard": "^41.1.0",
 				"vite": "^8.3.8"
 				"vite": "^8.3.8"
 			},
 			},
 			"engines": {
 			"engines": {
@@ -179,9 +179,9 @@
 			}
 			}
 		},
 		},
 		"node_modules/@csstools/css-syntax-patches-for-csstree": {
 		"node_modules/@csstools/css-syntax-patches-for-csstree": {
-			"version": "1.1.15",
-			"resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.15.tgz",
-			"integrity": "sha512-J0u7HkVl2nzSlhsiTOp4AmwcUQ3D+mGEEKfBy/7To5/y7F2OHwyLrXfrhR0SMgr4p5Lo+eaMVSeai24zUcBIxA==",
+			"version": "1.1.17",
+			"resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.17.tgz",
+			"integrity": "sha512-IPx9W33+t0Yt5TVb+Y7oICrThOIry0TY6GuXfSHOatxA0uiHqbzi98Gai905lpBAX1m/LH7iI96e9jcI7Dkvxw==",
 			"dev": true,
 			"dev": true,
 			"funding": [
 			"funding": [
 				{
 				{
@@ -367,15 +367,15 @@
 			}
 			}
 		},
 		},
 		"node_modules/@eslint/config-array": {
 		"node_modules/@eslint/config-array": {
-			"version": "0.23.5",
-			"resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz",
-			"integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==",
+			"version": "0.23.6",
+			"resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.6.tgz",
+			"integrity": "sha512-WrTH7nioI9QPY4NZGnsywmecswJdgeq4BCM76qok9VgjTO29ZgUzUvcuJLVPYVQM4uDbaPBU0M33R9DIxI8X3w==",
 			"dev": true,
 			"dev": true,
 			"license": "Apache-2.0",
 			"license": "Apache-2.0",
 			"dependencies": {
 			"dependencies": {
 				"@eslint/object-schema": "^3.0.5",
 				"@eslint/object-schema": "^3.0.5",
 				"debug": "^4.3.1",
 				"debug": "^4.3.1",
-				"minimatch": "^10.2.4"
+				"minimatch": "^11.0.5"
 			},
 			},
 			"engines": {
 			"engines": {
 				"node": "^20.19.0 || ^22.13.0 || >=24"
 				"node": "^20.19.0 || ^22.13.0 || >=24"
@@ -530,14 +530,14 @@
 			"license": "MIT"
 			"license": "MIT"
 		},
 		},
 		"node_modules/@intlify/core-base": {
 		"node_modules/@intlify/core-base": {
-			"version": "11.4.18",
-			"resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-11.4.18.tgz",
-			"integrity": "sha512-uryU7clROKIJsCLM8I8J6GA4pw9EVI5BCptnFQslpUXGPj/dCrlrixOaV/6gL1jLXZe3Hl8YY3yNi24bgfhvBw==",
+			"version": "11.4.23",
+			"resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-11.4.23.tgz",
+			"integrity": "sha512-V8a3BQ7iTVPDetJ/LJfGn3lDx4Ir35OjjO4BLgVrFuL+0egWzwUyfdLIPAEYWlMGdo14eC5p6uk3tSlTYY0YmQ==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@intlify/devtools-types": "11.4.18",
-				"@intlify/message-compiler": "11.4.18",
-				"@intlify/shared": "11.4.18"
+				"@intlify/devtools-types": "11.4.23",
+				"@intlify/message-compiler": "11.4.23",
+				"@intlify/shared": "11.4.23"
 			},
 			},
 			"engines": {
 			"engines": {
 				"node": ">= 22"
 				"node": ">= 22"
@@ -547,13 +547,13 @@
 			}
 			}
 		},
 		},
 		"node_modules/@intlify/devtools-types": {
 		"node_modules/@intlify/devtools-types": {
-			"version": "11.4.18",
-			"resolved": "https://registry.npmjs.org/@intlify/devtools-types/-/devtools-types-11.4.18.tgz",
-			"integrity": "sha512-J7/PW4wSSijVzR8j578q2+/HICPbA09RhCIMZsLHEL8PlRkdXXVadhunrxLOre8cBe8dDK54922frpa0Z1UimA==",
+			"version": "11.4.23",
+			"resolved": "https://registry.npmjs.org/@intlify/devtools-types/-/devtools-types-11.4.23.tgz",
+			"integrity": "sha512-zuWkolaeK8ej5z7L9Ss7FLIBHgE8ZF+XcwV1o/vQ7IKagiDg/IosA7fOa2HUFVMW5yT2ugph9rshevHGzcowBQ==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@intlify/core-base": "11.4.18",
-				"@intlify/shared": "11.4.18"
+				"@intlify/core-base": "11.4.23",
+				"@intlify/shared": "11.4.23"
 			},
 			},
 			"engines": {
 			"engines": {
 				"node": ">= 22"
 				"node": ">= 22"
@@ -563,12 +563,12 @@
 			}
 			}
 		},
 		},
 		"node_modules/@intlify/message-compiler": {
 		"node_modules/@intlify/message-compiler": {
-			"version": "11.4.18",
-			"resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-11.4.18.tgz",
-			"integrity": "sha512-9v2s0+mIuJaFOyWBfZBHrV/g9VLFH/4osx/zaQ52BgT6FQkjvTWHWyNriCMRqWs3PEuBKysmwTUwmNpg9iPjJw==",
+			"version": "11.4.23",
+			"resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-11.4.23.tgz",
+			"integrity": "sha512-HgmnQV/lBBX8KgxoNwngzzq8DLw/jECJgz9eBfQGdkEYte7Bw1RSqhIskcWp0DEWrSg2wijUi6dJjpq1WUD+zg==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@intlify/shared": "11.4.18",
+				"@intlify/shared": "11.4.23",
 				"source-map-js": "^1.0.2"
 				"source-map-js": "^1.0.2"
 			},
 			},
 			"engines": {
 			"engines": {
@@ -579,9 +579,9 @@
 			}
 			}
 		},
 		},
 		"node_modules/@intlify/shared": {
 		"node_modules/@intlify/shared": {
-			"version": "11.4.18",
-			"resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-11.4.18.tgz",
-			"integrity": "sha512-8q7UR/eAFP0xOZndaClKYeh/lWkcIPOZkWsU85CMR9BYLjTeaENpAFWfFBvuUI8fFz0BDtZvR/fgbwiiQaqcDg==",
+			"version": "11.4.23",
+			"resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-11.4.23.tgz",
+			"integrity": "sha512-1iqGalDCOlHZ8y7LOC3yisSm52K5AmkTmaNO23XGFYWU6Z1oIX8VeAGRq9rn2KrDFb8nMtQaxNyMa1n8EeDm5g==",
 			"license": "MIT",
 			"license": "MIT",
 			"engines": {
 			"engines": {
 				"node": ">= 22"
 				"node": ">= 22"
@@ -590,6 +590,13 @@
 				"url": "https://github.com/sponsors/kazupon"
 				"url": "https://github.com/sponsors/kazupon"
 			}
 			}
 		},
 		},
+		"node_modules/@isaacs/nonrecursive-glob-match": {
+			"version": "1.1.0",
+			"resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz",
+			"integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==",
+			"dev": true,
+			"license": "BlueOak-1.0.0"
+		},
 		"node_modules/@jridgewell/gen-mapping": {
 		"node_modules/@jridgewell/gen-mapping": {
 			"version": "0.3.13",
 			"version": "0.3.13",
 			"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
 			"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
@@ -1036,17 +1043,17 @@
 			"license": "MIT"
 			"license": "MIT"
 		},
 		},
 		"node_modules/@typescript-eslint/eslint-plugin": {
 		"node_modules/@typescript-eslint/eslint-plugin": {
-			"version": "8.72.2",
-			"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.72.2.tgz",
-			"integrity": "sha512-222PKFXKihmFpi/pS5njoBgdAqsPhj2/GBmFbrNw8Tq8gEG9Sv+kSlKFy4u2q+mJv9ZzJgM2Gkv/bUzRZwZw5g==",
+			"version": "8.74.0",
+			"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.74.0.tgz",
+			"integrity": "sha512-z3KXk1+Vm+d82ZRplOoC89ho4Rf1da5ju6sx8//92GnN532U62DGPjECXkkVqtYzIv0zoJlpO39SX2Z9tk6LVw==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
 				"@eslint-community/regexpp": "^4.12.2",
 				"@eslint-community/regexpp": "^4.12.2",
-				"@typescript-eslint/scope-manager": "8.72.2",
-				"@typescript-eslint/type-utils": "8.72.2",
-				"@typescript-eslint/utils": "8.72.2",
-				"@typescript-eslint/visitor-keys": "8.72.2",
+				"@typescript-eslint/scope-manager": "8.74.0",
+				"@typescript-eslint/type-utils": "8.74.0",
+				"@typescript-eslint/utils": "8.74.0",
+				"@typescript-eslint/visitor-keys": "8.74.0",
 				"ignore": "^7.0.5",
 				"ignore": "^7.0.5",
 				"natural-compare": "^1.4.0",
 				"natural-compare": "^1.4.0",
 				"ts-api-utils": "^2.5.0"
 				"ts-api-utils": "^2.5.0"
@@ -1059,15 +1066,15 @@
 				"url": "https://opencollective.com/typescript-eslint"
 				"url": "https://opencollective.com/typescript-eslint"
 			},
 			},
 			"peerDependencies": {
 			"peerDependencies": {
-				"@typescript-eslint/parser": "^8.72.2",
+				"@typescript-eslint/parser": "^8.74.0",
 				"eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
 				"eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
 				"typescript": ">=4.8.4 <6.1.0"
 				"typescript": ">=4.8.4 <6.1.0"
 			}
 			}
 		},
 		},
 		"node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
 		"node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
-			"version": "7.0.14",
-			"resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.14.tgz",
-			"integrity": "sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==",
+			"version": "7.0.17",
+			"resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.17.tgz",
+			"integrity": "sha512-0c3zcBRlWmcKhcIQWckzkYncJRv5HHB8O32wO/FcWL8DDXWDJgiEF6SX9ThbTv5h/eZ+xJK+VvDjjQ+cQJhp3Q==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"engines": {
 			"engines": {
@@ -1075,16 +1082,16 @@
 			}
 			}
 		},
 		},
 		"node_modules/@typescript-eslint/parser": {
 		"node_modules/@typescript-eslint/parser": {
-			"version": "8.72.2",
-			"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.72.2.tgz",
-			"integrity": "sha512-llP+T1YuJOLlxEciP6OyQGtz5SMxyn+9LA2BvZw5RmToGVa1y4beEDVQL6Gje7T5WFYh19WREjDCN9Ev4gm5AA==",
+			"version": "8.74.0",
+			"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.74.0.tgz",
+			"integrity": "sha512-ecr8AYdig7avVkxaHdQvxHnIJ/mOyliO4Gv/uWF8q69vBew/z3sexqBwHUZX5Vql+Ns0w4sH6gBLkICGbOvJkA==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@typescript-eslint/scope-manager": "8.72.2",
-				"@typescript-eslint/types": "8.72.2",
-				"@typescript-eslint/typescript-estree": "8.72.2",
-				"@typescript-eslint/visitor-keys": "8.72.2",
+				"@typescript-eslint/scope-manager": "8.74.0",
+				"@typescript-eslint/types": "8.74.0",
+				"@typescript-eslint/typescript-estree": "8.74.0",
+				"@typescript-eslint/visitor-keys": "8.74.0",
 				"debug": "^4.4.3"
 				"debug": "^4.4.3"
 			},
 			},
 			"engines": {
 			"engines": {
@@ -1100,14 +1107,14 @@
 			}
 			}
 		},
 		},
 		"node_modules/@typescript-eslint/project-service": {
 		"node_modules/@typescript-eslint/project-service": {
-			"version": "8.72.2",
-			"resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.72.2.tgz",
-			"integrity": "sha512-6y5dLTZdHhI8Eh3yIQ/bfQhRKwn5e+TpJj64o18Cngc0iW/BCrVvrr6zGYqXPnYH31u6YXAYiFh0+qxX5mybJw==",
+			"version": "8.74.0",
+			"resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.74.0.tgz",
+			"integrity": "sha512-z/mymuE+JlEeSFIv3Mo70EvgG1Zz74Hl0IDfExfXutARAP834bt+MppTD7mVAwmZO0GdxdOAi0jbTam749eH6g==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@typescript-eslint/tsconfig-utils": "^8.72.2",
-				"@typescript-eslint/types": "^8.72.2",
+				"@typescript-eslint/tsconfig-utils": "^8.74.0",
+				"@typescript-eslint/types": "^8.74.0",
 				"debug": "^4.4.3"
 				"debug": "^4.4.3"
 			},
 			},
 			"engines": {
 			"engines": {
@@ -1122,14 +1129,14 @@
 			}
 			}
 		},
 		},
 		"node_modules/@typescript-eslint/scope-manager": {
 		"node_modules/@typescript-eslint/scope-manager": {
-			"version": "8.72.2",
-			"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.72.2.tgz",
-			"integrity": "sha512-iIoMJ6/8c1/QpFNyFjU0d1YzPco4MsZjQw0k3V+vfzNWAFmUmvhlyMoYEoYYDQZXc+J6Gi1X5XcxlzW2taIIGQ==",
+			"version": "8.74.0",
+			"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.74.0.tgz",
+			"integrity": "sha512-kpOdpu4CpWN5U38ox3f727DwWRBtUAVhyUJtqTBYe5gf2wYoxac7PgKP14txrxN7ICVtcjlLdzjqfRgpSnDKvQ==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@typescript-eslint/types": "8.72.2",
-				"@typescript-eslint/visitor-keys": "8.72.2"
+				"@typescript-eslint/types": "8.74.0",
+				"@typescript-eslint/visitor-keys": "8.74.0"
 			},
 			},
 			"engines": {
 			"engines": {
 				"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
 				"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@@ -1140,9 +1147,9 @@
 			}
 			}
 		},
 		},
 		"node_modules/@typescript-eslint/tsconfig-utils": {
 		"node_modules/@typescript-eslint/tsconfig-utils": {
-			"version": "8.72.2",
-			"resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.72.2.tgz",
-			"integrity": "sha512-+h3iCgZXuTNtoLXcnnjP12ZUHLMqoUcIHPfQrFEXTUqvb9dF8QK9b5nv5VtSo5fLkdHuks8ehbTzZj3rImAm9w==",
+			"version": "8.74.0",
+			"resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.74.0.tgz",
+			"integrity": "sha512-p07wAuaS6BjCYgOSXKJi4YhvTnAf7fiG37e9THcpnYaQEt2QiTTYZWKwUFNgeRiywiMudazhzgddAirZ0GgHtQ==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"engines": {
 			"engines": {
@@ -1157,15 +1164,15 @@
 			}
 			}
 		},
 		},
 		"node_modules/@typescript-eslint/type-utils": {
 		"node_modules/@typescript-eslint/type-utils": {
-			"version": "8.72.2",
-			"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.72.2.tgz",
-			"integrity": "sha512-STfkR38qIdhfkLpgtXnUjAzsNy4xouqiBO0lrVc/Wpk9Kem5/aHXUx1J8dGC16zpdYN1+yc2ILQ28er1kXX7ag==",
+			"version": "8.74.0",
+			"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.74.0.tgz",
+			"integrity": "sha512-CV3Y3la8l3F9ANfxcfpgSSiQgJTe4IeLEoZV4O/gcW86Ugp8X6SKiQ0vm+QegXaRIbbDMokZZSF3A1CgiU/kPw==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@typescript-eslint/types": "8.72.2",
-				"@typescript-eslint/typescript-estree": "8.72.2",
-				"@typescript-eslint/utils": "8.72.2",
+				"@typescript-eslint/types": "8.74.0",
+				"@typescript-eslint/typescript-estree": "8.74.0",
+				"@typescript-eslint/utils": "8.74.0",
 				"debug": "^4.4.3",
 				"debug": "^4.4.3",
 				"ts-api-utils": "^2.5.0"
 				"ts-api-utils": "^2.5.0"
 			},
 			},
@@ -1182,9 +1189,9 @@
 			}
 			}
 		},
 		},
 		"node_modules/@typescript-eslint/types": {
 		"node_modules/@typescript-eslint/types": {
-			"version": "8.72.2",
-			"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.72.2.tgz",
-			"integrity": "sha512-Xfn37OLZx03+PCU7qWx9DTv2FCRh1E6fk2+wONeNY15HXIwtcwuveaSwVpGAUptkNmPQegRxW5JyRel9T7wrog==",
+			"version": "8.74.0",
+			"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.74.0.tgz",
+			"integrity": "sha512-MpnMrJCVNpP1iVL8NiHkQZgQqIMBH5ewDGUPBh1pqQXwFtMFjsl1M03QcYPXmv6stCKEiF0PN7CGbU1ZbXFzEA==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"engines": {
 			"engines": {
@@ -1196,18 +1203,18 @@
 			}
 			}
 		},
 		},
 		"node_modules/@typescript-eslint/typescript-estree": {
 		"node_modules/@typescript-eslint/typescript-estree": {
-			"version": "8.72.2",
-			"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.72.2.tgz",
-			"integrity": "sha512-pQEGqIK/cqEvKivVWaFLYpe7XYejFxfuAOi4mu1oAWFvIo36aRHI9esRFTUxcIy/z8N482RJyH+LpZB0ZIU7Ow==",
+			"version": "8.74.0",
+			"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.74.0.tgz",
+			"integrity": "sha512-wL348k6l92DNG+kPP5rVpKwNBoz7a3xRZy3TPKc1uymQttd7u7gcMv3eENmcuh4CjC4mO3FTM0DYstFXMyDLuw==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@typescript-eslint/project-service": "8.72.2",
-				"@typescript-eslint/tsconfig-utils": "8.72.2",
-				"@typescript-eslint/types": "8.72.2",
-				"@typescript-eslint/visitor-keys": "8.72.2",
+				"@typescript-eslint/project-service": "8.74.0",
+				"@typescript-eslint/tsconfig-utils": "8.74.0",
+				"@typescript-eslint/types": "8.74.0",
+				"@typescript-eslint/visitor-keys": "8.74.0",
 				"debug": "^4.4.3",
 				"debug": "^4.4.3",
-				"minimatch": "^10.2.2",
+				"minimatch": "^11.0.1",
 				"semver": "^7.7.3",
 				"semver": "^7.7.3",
 				"tinyglobby": "^0.2.15",
 				"tinyglobby": "^0.2.15",
 				"ts-api-utils": "^2.5.0"
 				"ts-api-utils": "^2.5.0"
@@ -1220,20 +1227,26 @@
 				"url": "https://opencollective.com/typescript-eslint"
 				"url": "https://opencollective.com/typescript-eslint"
 			},
 			},
 			"peerDependencies": {
 			"peerDependencies": {
+				"@typescript/native": "npm:typescript@>=7.1.0-dev.20261009.1 || >=7.1.0-beta <7.1.0-dev",
 				"typescript": ">=4.8.4 <6.1.0"
 				"typescript": ">=4.8.4 <6.1.0"
+			},
+			"peerDependenciesMeta": {
+				"@typescript/native": {
+					"optional": true
+				}
 			}
 			}
 		},
 		},
 		"node_modules/@typescript-eslint/utils": {
 		"node_modules/@typescript-eslint/utils": {
-			"version": "8.72.2",
-			"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.72.2.tgz",
-			"integrity": "sha512-hv3eRYbpPbbpezuax1EfGrzpa3C4ySgNZkPUkLOWOAjU8HsOKowEDAr8C7nsNl1C+SBSKDpvno6VKHnlhvp9iA==",
+			"version": "8.74.0",
+			"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.74.0.tgz",
+			"integrity": "sha512-IpWXPxXXomzxyTcvjhZJexgdvtTR1TooLAPpuxzaGqQ8BHll1lf4Ysp/BTE/l0U5TJ+x1j7B4bEM8pLRrvY+XA==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
 				"@eslint-community/eslint-utils": "^4.9.1",
 				"@eslint-community/eslint-utils": "^4.9.1",
-				"@typescript-eslint/scope-manager": "8.72.2",
-				"@typescript-eslint/types": "8.72.2",
-				"@typescript-eslint/typescript-estree": "8.72.2"
+				"@typescript-eslint/scope-manager": "8.74.0",
+				"@typescript-eslint/types": "8.74.0",
+				"@typescript-eslint/typescript-estree": "8.74.0"
 			},
 			},
 			"engines": {
 			"engines": {
 				"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
 				"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@@ -1248,13 +1261,13 @@
 			}
 			}
 		},
 		},
 		"node_modules/@typescript-eslint/visitor-keys": {
 		"node_modules/@typescript-eslint/visitor-keys": {
-			"version": "8.72.2",
-			"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.72.2.tgz",
-			"integrity": "sha512-NAGrjn0Pitjqzq/GkgMC4kBYm233PQ8GffyQ9+kTA3AlNQYEzOf25EIM02BAHZv5FRJSpHpJk+OGUxVkOB93GQ==",
+			"version": "8.74.0",
+			"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.74.0.tgz",
+			"integrity": "sha512-XSZmOtMUbWCBIM+2BK134FyMFxmll1mW2mPLk/PSwYQYzGIPMgJAqL929U4qXVizLv7Xq5b7r41/o7Ombuwk0g==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@typescript-eslint/types": "8.72.2",
+				"@typescript-eslint/types": "8.74.0",
 				"eslint-visitor-keys": "^5.0.0"
 				"eslint-visitor-keys": "^5.0.0"
 			},
 			},
 			"engines": {
 			"engines": {
@@ -1266,9 +1279,9 @@
 			}
 			}
 		},
 		},
 		"node_modules/@vitejs/plugin-vue": {
 		"node_modules/@vitejs/plugin-vue": {
-			"version": "6.0.10",
-			"resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.10.tgz",
-			"integrity": "sha512-b80aUQh3n+qEzzZm5oQp3rT2QImeCx58K6eFl/RkJ3d65KW0kTuv5lNsLRVAjbW9YRUpo/wzmvzMgV34bTAItA==",
+			"version": "6.0.11",
+			"resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.11.tgz",
+			"integrity": "sha512-m48lskIUJGlB6qUiYhDMI8nd2ngeidz2U4nKTjqI13cFMu5rH8JeEILPkDtK9Fk/TjBA2pkj8AlbenqDaKu+ww==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
 				"@rolldown/pluginutils": "^1.0.1"
 				"@rolldown/pluginutils": "^1.0.1"
@@ -1278,7 +1291,7 @@
 			},
 			},
 			"peerDependencies": {
 			"peerDependencies": {
 				"vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",
 				"vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",
-				"vue": "^3.2.25 || ^3.6.0-rc.10"
+				"vue": "^3.2.25 || ^3.6.0-rc.15"
 			}
 			}
 		},
 		},
 		"node_modules/@vue-macros/common": {
 		"node_modules/@vue-macros/common": {
@@ -1309,53 +1322,53 @@
 			}
 			}
 		},
 		},
 		"node_modules/@vue/compiler-core": {
 		"node_modules/@vue/compiler-core": {
-			"version": "3.5.45",
-			"resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.45.tgz",
-			"integrity": "sha512-XGHJrM6ufZARAc/w+tyOswStw9tdKiqCKBScI4gGaNxD+aaGu/HQWgKJ+JItjRLPqenQ7iE7G8AJC7T5ew1p+g==",
+			"version": "3.5.46",
+			"resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.46.tgz",
+			"integrity": "sha512-yb+N8/mgBcoeqCJPVyJI/D3OphLrSMXnB3ZQUNmRLU/1fsMW4bFfdJWNi9oIj7+EA3ULKKkP7b/VCpcYQYeiuQ==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
 				"@babel/parser": "^7.29.12",
 				"@babel/parser": "^7.29.12",
-				"@vue/shared": "3.5.45",
+				"@vue/shared": "3.5.46",
 				"entities": "^7.0.1",
 				"entities": "^7.0.1",
 				"estree-walker": "^2.0.2",
 				"estree-walker": "^2.0.2",
-				"source-map-js": "^1.2.2"
+				"source-map-js": "^1.2.3"
 			}
 			}
 		},
 		},
 		"node_modules/@vue/compiler-dom": {
 		"node_modules/@vue/compiler-dom": {
-			"version": "3.5.45",
-			"resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.45.tgz",
-			"integrity": "sha512-LbP2d19GSOYGPmvMBBCVJVlv7TKtjM1Cfeyu3cYia720pknZP+1cLX7H5MVatvruT6MuJhiPuNbQBW/MDn/EwA==",
+			"version": "3.5.46",
+			"resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.46.tgz",
+			"integrity": "sha512-Bj3lCSw3DQnDRDxw115XqdLDd0+18Nftlgd8OXSGG+ud74hxJIE17eYrM+VWgQrTMsvJbLh9Hzf2MkwAzru36Q==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@vue/compiler-core": "3.5.45",
-				"@vue/shared": "3.5.45"
+				"@vue/compiler-core": "3.5.46",
+				"@vue/shared": "3.5.46"
 			}
 			}
 		},
 		},
 		"node_modules/@vue/compiler-sfc": {
 		"node_modules/@vue/compiler-sfc": {
-			"version": "3.5.45",
-			"resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.45.tgz",
-			"integrity": "sha512-MKFjb2UX0M/l/jhfzqMLrI8VM4pfvFKG3pqFZkSZFHRLtNld/O4RtUPZFWSwhro/14qP88UQEkWzHxAZAQ0tsw==",
+			"version": "3.5.46",
+			"resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.46.tgz",
+			"integrity": "sha512-hjUvMxGh+QIgegwksfp6BRBYleE/a8veZHvTR6sa+o+bM4HU+WnrUZlhN0X+pDcsl8Lhwmbu72xPvLMk3XUwog==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
 				"@babel/parser": "^7.29.12",
 				"@babel/parser": "^7.29.12",
-				"@vue/compiler-core": "3.5.45",
-				"@vue/compiler-dom": "3.5.45",
-				"@vue/compiler-ssr": "3.5.45",
-				"@vue/shared": "3.5.45",
+				"@vue/compiler-core": "3.5.46",
+				"@vue/compiler-dom": "3.5.46",
+				"@vue/compiler-ssr": "3.5.46",
+				"@vue/shared": "3.5.46",
 				"estree-walker": "^2.0.2",
 				"estree-walker": "^2.0.2",
 				"magic-string": "^0.30.21",
 				"magic-string": "^0.30.21",
 				"postcss": "^8.5.32",
 				"postcss": "^8.5.32",
-				"source-map-js": "^1.2.2"
+				"source-map-js": "^1.2.3"
 			}
 			}
 		},
 		},
 		"node_modules/@vue/compiler-ssr": {
 		"node_modules/@vue/compiler-ssr": {
-			"version": "3.5.45",
-			"resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.45.tgz",
-			"integrity": "sha512-RF5sbZOfYz5AK00tOJUn2PwFXR2fS1u2HVzI8D9VF9rGAFxuGBqg2bB1kJ3ZHMprqSltXnT9MZE1IsqjSM8oew==",
+			"version": "3.5.46",
+			"resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.46.tgz",
+			"integrity": "sha512-qebChL3aP0m1k+TlSf+fZWvOwAf3flBCi5o+n01ykR3DX4mTIWheFltmoiQ12+z66/4cGeXqbB2P7sPWkGhQNQ==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@vue/compiler-dom": "3.5.45",
-				"@vue/shared": "3.5.45"
+				"@vue/compiler-dom": "3.5.46",
+				"@vue/shared": "3.5.46"
 			}
 			}
 		},
 		},
 		"node_modules/@vue/devtools-api": {
 		"node_modules/@vue/devtools-api": {
@@ -1383,51 +1396,51 @@
 			"license": "MIT"
 			"license": "MIT"
 		},
 		},
 		"node_modules/@vue/reactivity": {
 		"node_modules/@vue/reactivity": {
-			"version": "3.5.45",
-			"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.45.tgz",
-			"integrity": "sha512-WqkyubNWpI4OYBOipSrjIssMdJO8K1i9Zts/Wm8Er10/0msOEwCyWWWvZnAI7WW3kQsTong6DJp8Cbb+vd4cPA==",
+			"version": "3.5.46",
+			"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.46.tgz",
+			"integrity": "sha512-+FHtYTvGxgFoX3oRs7soz6JHizGv50Q26WJN6PWtXuTLXRfkfUpDUTRuoTA/kiZVVt8NMeMpsPQLh9h++ReUjQ==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@vue/shared": "3.5.45"
+				"@vue/shared": "3.5.46"
 			}
 			}
 		},
 		},
 		"node_modules/@vue/runtime-core": {
 		"node_modules/@vue/runtime-core": {
-			"version": "3.5.45",
-			"resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.45.tgz",
-			"integrity": "sha512-bzIO3+FABjpj85uIKSc+Qnj36/sxDNI3tcH9i6w6xKA1k6e0ejv0G0jMCfeJBvK3yGL5XbJ3DMZj+ClqyCHFYw==",
+			"version": "3.5.46",
+			"resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.46.tgz",
+			"integrity": "sha512-eJUzKAUaHAmtnys/l9qduPzUnBrYMkmsCU7TN+vbSOSpm8kcETT7nacKxIO4MBej/XiOraVzq+lSeZv7o1//jQ==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@vue/reactivity": "3.5.45",
-				"@vue/shared": "3.5.45"
+				"@vue/reactivity": "3.5.46",
+				"@vue/shared": "3.5.46"
 			}
 			}
 		},
 		},
 		"node_modules/@vue/runtime-dom": {
 		"node_modules/@vue/runtime-dom": {
-			"version": "3.5.45",
-			"resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.45.tgz",
-			"integrity": "sha512-ZvRTFMDgfqTDYWvJfoVpQTJx1RN5M6l7Pyd6wfdY2NaXzbPQVh9ezeQYFbNPP6bIcRVn2SqSSR25N/jSW69BFw==",
+			"version": "3.5.46",
+			"resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.46.tgz",
+			"integrity": "sha512-6L7lbBvXTYBFFjIt25a0pgdpmn3Ns8RqUnNVibRzF4bgyiWJvqOhKEV5MXYWKlCttZE3aGeJN8mveo+6IrIKXA==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@vue/reactivity": "3.5.45",
-				"@vue/runtime-core": "3.5.45",
-				"@vue/shared": "3.5.45",
-				"csstype": "^3.2.3"
+				"@vue/reactivity": "3.5.46",
+				"@vue/runtime-core": "3.5.46",
+				"@vue/shared": "3.5.46",
+				"csstype": "^3.2.4"
 			}
 			}
 		},
 		},
 		"node_modules/@vue/server-renderer": {
 		"node_modules/@vue/server-renderer": {
-			"version": "3.5.45",
-			"resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.45.tgz",
-			"integrity": "sha512-1fNXUHhhsWf4EVL4XixbGBU5mKdiIXJAB82feHRTyPPo6ZUEYWIJuEeUl3mVV6QDBp50HJOX4obLhxYXlrjrzA==",
+			"version": "3.5.46",
+			"resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.46.tgz",
+			"integrity": "sha512-4mc0YWREc6OZ5pDCigvKPDzIUV+aciiH92yvyTS6xaHHxW/80rMceQQn11pYe7OEEBt2YQgYWR9zF8QF30GJUQ==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@vue/compiler-ssr": "3.5.45",
-				"@vue/runtime-dom": "3.5.45",
-				"@vue/shared": "3.5.45"
+				"@vue/compiler-ssr": "3.5.46",
+				"@vue/runtime-dom": "3.5.46",
+				"@vue/shared": "3.5.46"
 			}
 			}
 		},
 		},
 		"node_modules/@vue/shared": {
 		"node_modules/@vue/shared": {
-			"version": "3.5.45",
-			"resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.45.tgz",
-			"integrity": "sha512-ue9fgHmVNPlP7iW3+cxoBX/Cnlw53dHlVSw0JKGY6z1lObg8pHoj928M2nzG4/yVsMZ3NaRZ2s2z61uC16NDwQ==",
+			"version": "3.5.46",
+			"resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.46.tgz",
+			"integrity": "sha512-P1WePbdzHrcIciWtmY2Im9EFhdakd3rZxYqvalOa3SfoxtF35Q8Uhmj1tKn6bWP4utcOpN8ao6BoJUItq0Uf+g==",
 			"license": "MIT"
 			"license": "MIT"
 		},
 		},
 		"node_modules/@xterm/addon-fit": {
 		"node_modules/@xterm/addon-fit": {
@@ -1681,16 +1694,16 @@
 			}
 			}
 		},
 		},
 		"node_modules/colord": {
 		"node_modules/colord": {
-			"version": "2.10.0",
-			"resolved": "https://registry.npmjs.org/colord/-/colord-2.10.0.tgz",
-			"integrity": "sha512-AidJptpBJmjTclAp9BkLwJi0T93fo5epJnbaZslpg6QVzpHjAiveF55mE9AcUJiGMqRHgMDY8soMsQtuNYMHfw==",
+			"version": "2.14.1",
+			"resolved": "https://registry.npmjs.org/colord/-/colord-2.14.1.tgz",
+			"integrity": "sha512-oAnRdUZtIoONz9y5JZEM/Ogg4m/eYIvpCvzFZIFOPfraLqVYTmevf61yeIhcLq/9EXztGOwF4O36pCu143BqGw==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT"
 			"license": "MIT"
 		},
 		},
 		"node_modules/confbox": {
 		"node_modules/confbox": {
-			"version": "0.3.1",
-			"resolved": "https://registry.npmjs.org/confbox/-/confbox-0.3.1.tgz",
-			"integrity": "sha512-cKUSoKa8YxFZZSmraVi7onONx3amu77ngK3kGpsYHDH7drPwCRkQE1RYMPlLRrMtnciRj274XNRxcHxnKmDSnA==",
+			"version": "0.3.2",
+			"resolved": "https://registry.npmjs.org/confbox/-/confbox-0.3.2.tgz",
+			"integrity": "sha512-ZUAKhKlkCOrIGKc8cj7zek9s9z1mveHif/25nUshI2BzCRzF7KH7KHa+Lnh2ubq+e1tIlaFuP763mzW4qVoehg==",
 			"license": "MIT"
 			"license": "MIT"
 		},
 		},
 		"node_modules/cosmiconfig": {
 		"node_modules/cosmiconfig": {
@@ -1739,23 +1752,10 @@
 				"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
 				"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
 			}
 			}
 		},
 		},
-		"node_modules/cssesc": {
-			"version": "3.0.0",
-			"resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
-			"integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
-			"dev": true,
-			"license": "MIT",
-			"bin": {
-				"cssesc": "bin/cssesc"
-			},
-			"engines": {
-				"node": ">=4"
-			}
-		},
 		"node_modules/csstype": {
 		"node_modules/csstype": {
-			"version": "3.2.3",
-			"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
-			"integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
+			"version": "3.2.4",
+			"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.4.tgz",
+			"integrity": "sha512-PoKaoPzQapnEoqUSnHx1u6W6ku8CVEgKsnpmmzU3m1nwkidpPBQ8V/Zq2+bWNrsOKoKLwTGdbx6xF7BXP1zLVQ==",
 			"license": "MIT"
 			"license": "MIT"
 		},
 		},
 		"node_modules/debug": {
 		"node_modules/debug": {
@@ -1842,9 +1842,9 @@
 			}
 			}
 		},
 		},
 		"node_modules/eslint": {
 		"node_modules/eslint": {
-			"version": "10.14.0",
-			"resolved": "https://registry.npmjs.org/eslint/-/eslint-10.14.0.tgz",
-			"integrity": "sha512-T0pNsxkb9IKmtQjhpK3d7nWOpFv+YHuMbTJnSVMoQblF0onvXfErrtp4V1jHtsQPan7dKaGVD0q1WCXnzMF31A==",
+			"version": "10.15.0",
+			"resolved": "https://registry.npmjs.org/eslint/-/eslint-10.15.0.tgz",
+			"integrity": "sha512-+5Wg4p+ze3sG1WErYgUO/3H1IQIfFBymVUA0Fo/XTeBOLS6UQIUekpSJ8sdRkn7O7wjh84b55w/roqavH2aScg==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"workspaces": [
 			"workspaces": [
@@ -1853,7 +1853,7 @@
 			"dependencies": {
 			"dependencies": {
 				"@eslint-community/eslint-utils": "^4.8.0",
 				"@eslint-community/eslint-utils": "^4.8.0",
 				"@eslint-community/regexpp": "^4.12.2",
 				"@eslint-community/regexpp": "^4.12.2",
-				"@eslint/config-array": "^0.23.5",
+				"@eslint/config-array": "^0.23.6",
 				"@eslint/config-helpers": "^0.7.0",
 				"@eslint/config-helpers": "^0.7.0",
 				"@eslint/core": "^1.2.1",
 				"@eslint/core": "^1.2.1",
 				"@eslint/plugin-kit": "^0.7.3",
 				"@eslint/plugin-kit": "^0.7.3",
@@ -1878,7 +1878,7 @@
 				"imurmurhash": "^0.1.4",
 				"imurmurhash": "^0.1.4",
 				"is-glob": "^4.0.0",
 				"is-glob": "^4.0.0",
 				"json-stable-stringify-without-jsonify": "^1.0.1",
 				"json-stable-stringify-without-jsonify": "^1.0.1",
-				"minimatch": "^10.2.6",
+				"minimatch": "^11.0.5",
 				"natural-compare": "^1.4.0",
 				"natural-compare": "^1.4.0",
 				"optionator": "^0.9.3"
 				"optionator": "^0.9.3"
 			},
 			},
@@ -2778,16 +2778,17 @@
 			"license": "CC0-1.0"
 			"license": "CC0-1.0"
 		},
 		},
 		"node_modules/minimatch": {
 		"node_modules/minimatch": {
-			"version": "10.2.6",
-			"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
-			"integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
+			"version": "11.0.9",
+			"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz",
+			"integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==",
 			"dev": true,
 			"dev": true,
 			"license": "BlueOak-1.0.0",
 			"license": "BlueOak-1.0.0",
 			"dependencies": {
 			"dependencies": {
-				"brace-expansion": "^5.0.8"
+				"@isaacs/nonrecursive-glob-match": "^1.1.0",
+				"brace-expansion": "^5.0.12"
 			},
 			},
 			"engines": {
 			"engines": {
-				"node": "18 || 20 || >=22"
+				"node": "20 || >=22"
 			},
 			},
 			"funding": {
 			"funding": {
 				"url": "https://github.com/sponsors/isaacs"
 				"url": "https://github.com/sponsors/isaacs"
@@ -3109,9 +3110,9 @@
 			"license": "ISC"
 			"license": "ISC"
 		},
 		},
 		"node_modules/picocrank": {
 		"node_modules/picocrank": {
-			"version": "1.41.0",
-			"resolved": "https://registry.npmjs.org/picocrank/-/picocrank-1.41.0.tgz",
-			"integrity": "sha512-x+wg10nqyF1PdVgKiWN/42Q7J2VZeoC+LxKtC4bh+oTlIWCU9E8t163yiMIwMp0HMpyGWyopkx4f2YeCLwdWIA==",
+			"version": "1.42.0",
+			"resolved": "https://registry.npmjs.org/picocrank/-/picocrank-1.42.0.tgz",
+			"integrity": "sha512-JSAXRaa0mBuOkh4mGfBDmkvU9uZPHPhsg799rPySJZ689rbMmpCdBYaLgHadmDKbS2XW2vG2F9n5uIs5Sv30Eg==",
 			"license": "ISC",
 			"license": "ISC",
 			"dependencies": {
 			"dependencies": {
 				"@hugeicons/core-free-icons": "^4.4.0",
 				"@hugeicons/core-free-icons": "^4.4.0",
@@ -3148,9 +3149,9 @@
 			}
 			}
 		},
 		},
 		"node_modules/postcss": {
 		"node_modules/postcss": {
-			"version": "8.5.32",
-			"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz",
-			"integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==",
+			"version": "8.5.33",
+			"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.33.tgz",
+			"integrity": "sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==",
 			"funding": [
 			"funding": [
 				{
 				{
 					"type": "opencollective",
 					"type": "opencollective",
@@ -3203,13 +3204,12 @@
 			}
 			}
 		},
 		},
 		"node_modules/postcss-selector-parser": {
 		"node_modules/postcss-selector-parser": {
-			"version": "7.1.7",
-			"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.7.tgz",
-			"integrity": "sha512-wWBro/7hJ40ye6TPiXkUQoXKCw23xSsjriUvqd7Uls9Sso3oLiON1flc18cCdnjgCRXw4fBVqUJJeOdDTh3P3g==",
+			"version": "7.2.1",
+			"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.2.1.tgz",
+			"integrity": "sha512-GwxlMgTTXwIom+ebC7an3k6RaJDwklRQQnfiXsLPGicu8FYV/k/+1/9YY2OU2+r938H2t4X0TDxoif+HP2rjzQ==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"cssesc": "^3.0.0",
 				"util-deprecate": "^1.0.2"
 				"util-deprecate": "^1.0.2"
 			},
 			},
 			"engines": {
 			"engines": {
@@ -3392,18 +3392,18 @@
 			}
 			}
 		},
 		},
 		"node_modules/source-map-js": {
 		"node_modules/source-map-js": {
-			"version": "1.2.2",
-			"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz",
-			"integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==",
+			"version": "1.2.4",
+			"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.4.tgz",
+			"integrity": "sha512-J7ZjMvHd9O1fcT/5V09QWaaSl2BbWx3F6O08spde82Namf9UB0GxRVIPiNbVsdKkoizHiSpTodo3vp2bAy91MA==",
 			"license": "BSD-3-Clause",
 			"license": "BSD-3-Clause",
 			"engines": {
 			"engines": {
-				"node": ">=0.10.0"
+				"node": ">=6.0.0"
 			}
 			}
 		},
 		},
 		"node_modules/stylelint": {
 		"node_modules/stylelint": {
-			"version": "18.0.0",
-			"resolved": "https://registry.npmjs.org/stylelint/-/stylelint-18.0.0.tgz",
-			"integrity": "sha512-kI10GsHXQvsH/AcklVZdQgwDuxtHi+A+h1Ujzd7h9LDf3e5jQiLQkWFlPtpynX3E6oVWHG1wo9v6dL0Mr+nnSA==",
+			"version": "18.1.0",
+			"resolved": "https://registry.npmjs.org/stylelint/-/stylelint-18.1.0.tgz",
+			"integrity": "sha512-QbF/IY7KY6lZRhYU/vmPU1KYxc71wgkXdgeptqzTh3lbnZps6WHaskfPjpL6Fh4JaCzwkKKitVcMrpfQTSwwPA==",
 			"dev": true,
 			"dev": true,
 			"funding": [
 			"funding": [
 				{
 				{
@@ -3419,20 +3419,20 @@
 			"dependencies": {
 			"dependencies": {
 				"@csstools/css-calc": "^3.4.3",
 				"@csstools/css-calc": "^3.4.3",
 				"@csstools/css-parser-algorithms": "^4.0.2",
 				"@csstools/css-parser-algorithms": "^4.0.2",
-				"@csstools/css-syntax-patches-for-csstree": "^1.1.15",
+				"@csstools/css-syntax-patches-for-csstree": "^1.1.16",
 				"@csstools/css-tokenizer": "^4.0.2",
 				"@csstools/css-tokenizer": "^4.0.2",
 				"@csstools/media-query-list-parser": "^5.0.2",
 				"@csstools/media-query-list-parser": "^5.0.2",
 				"@csstools/selector-resolve-nested": "^4.0.2",
 				"@csstools/selector-resolve-nested": "^4.0.2",
 				"@csstools/selector-specificity": "^6.0.1",
 				"@csstools/selector-specificity": "^6.0.1",
-				"colord": "^2.10.0",
+				"colord": "^2.13.0",
 				"cosmiconfig": "^10.0.1",
 				"cosmiconfig": "^10.0.1",
 				"css-tree": "^3.2.1",
 				"css-tree": "^3.2.1",
 				"ignore": "^7.0.14",
 				"ignore": "^7.0.14",
 				"import-meta-resolve": "^4.2.0",
 				"import-meta-resolve": "^4.2.0",
 				"picomatch": "^4.0.7",
 				"picomatch": "^4.0.7",
-				"postcss": "^8.5.31",
+				"postcss": "^8.5.33",
 				"postcss-safe-parser": "^7.1.0",
 				"postcss-safe-parser": "^7.1.0",
-				"postcss-selector-parser": "^7.1.7",
+				"postcss-selector-parser": "^7.2.1",
 				"postcss-value-parser": "^4.2.0",
 				"postcss-value-parser": "^4.2.0",
 				"tinyglobby": "^0.2.17",
 				"tinyglobby": "^0.2.17",
 				"write-file-atomic": "^8.0.0"
 				"write-file-atomic": "^8.0.0"
@@ -3468,9 +3468,9 @@
 			}
 			}
 		},
 		},
 		"node_modules/stylelint-config-standard": {
 		"node_modules/stylelint-config-standard": {
-			"version": "41.0.0",
-			"resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-41.0.0.tgz",
-			"integrity": "sha512-EJIvMOMARieBOLhw2yzN7BaVFiIY2Ex8CkbXahxP6tQZK41+N8OVUo57Uvx9iTr862h+thqDoDH7vQbeth1ryg==",
+			"version": "41.1.0",
+			"resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-41.1.0.tgz",
+			"integrity": "sha512-Z7PiQpBffnqu7U5h/FeBWCYZsRsZXa1J8MjkpgcciphLJULysDcu2jKXuSrPgnQGow9x0T+pOfblqRA5cSE6aw==",
 			"dev": true,
 			"dev": true,
 			"funding": [
 			"funding": [
 				{
 				{
@@ -3582,16 +3582,16 @@
 			}
 			}
 		},
 		},
 		"node_modules/typescript-eslint": {
 		"node_modules/typescript-eslint": {
-			"version": "8.72.2",
-			"resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.72.2.tgz",
-			"integrity": "sha512-c/+AKMW1KB81r28Sp0AAdcyXj5dzNmAsZFcsrxKbZTKmcBK2xIwBR31dcSYSDu3bKmzXe8GKrSxO+eDQ401Uzg==",
+			"version": "8.74.0",
+			"resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.74.0.tgz",
+			"integrity": "sha512-OsWQlsedt1ZpZXfZZMNK3m4SoQONFFcy4h/uRznsCeRfVuEic3gh4KGUs2pJJ5o0Jj0Jr7keUHQGN1Ns9aDw7Q==",
 			"dev": true,
 			"dev": true,
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@typescript-eslint/eslint-plugin": "8.72.2",
-				"@typescript-eslint/parser": "8.72.2",
-				"@typescript-eslint/typescript-estree": "8.72.2",
-				"@typescript-eslint/utils": "8.72.2"
+				"@typescript-eslint/eslint-plugin": "8.74.0",
+				"@typescript-eslint/parser": "8.74.0",
+				"@typescript-eslint/typescript-estree": "8.74.0",
+				"@typescript-eslint/utils": "8.74.0"
 			},
 			},
 			"engines": {
 			"engines": {
 				"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
 				"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@@ -3612,12 +3612,13 @@
 			"license": "MIT"
 			"license": "MIT"
 		},
 		},
 		"node_modules/unplugin": {
 		"node_modules/unplugin": {
-			"version": "3.4.0",
-			"resolved": "https://registry.npmjs.org/unplugin/-/unplugin-3.4.0.tgz",
-			"integrity": "sha512-9skdIFlCsPdFV7wUfZxNsFInlW+7nJmGu2gkTu0OUhF56aXGsHab9x52/QhdJ4lC7ZDPWTxbiC4ANqVlsuaW3w==",
+			"version": "3.7.0",
+			"resolved": "https://registry.npmjs.org/unplugin/-/unplugin-3.7.0.tgz",
+			"integrity": "sha512-GrM2uq3DQo3hvLU2FjeYhooJ8BY9N6j1Fbzgx7Pta3VVJevsD3VP4dPjZkZOS0mLvN8w9zzr9OlP+31bSMyuLw==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
 				"@jridgewell/remapping": "^2.3.5",
 				"@jridgewell/remapping": "^2.3.5",
+				"@rolldown/pluginutils": "^1.0.1",
 				"picomatch": "^4.0.7",
 				"picomatch": "^4.0.7",
 				"webpack-virtual-modules": "^0.6.2"
 				"webpack-virtual-modules": "^0.6.2"
 			},
 			},
@@ -3812,16 +3813,16 @@
 			}
 			}
 		},
 		},
 		"node_modules/vue": {
 		"node_modules/vue": {
-			"version": "3.5.45",
-			"resolved": "https://registry.npmjs.org/vue/-/vue-3.5.45.tgz",
-			"integrity": "sha512-3cvsib8m9c0vB24+MDKsgcW4+Da4xaBl9Z/5Tbm2pmSIsRPxcil4cdXjXlVsmJ2g64XJo5h+IRd7rsdGT9pZaw==",
+			"version": "3.5.46",
+			"resolved": "https://registry.npmjs.org/vue/-/vue-3.5.46.tgz",
+			"integrity": "sha512-0kW5CgfjMPBqmH158049SaE1muufp+K/ZyrwvSEwrwYky6QB7zL2y8kXfruneKb9O12eh0xAJL6CVSpzb9o0Kg==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@vue/compiler-dom": "3.5.45",
-				"@vue/compiler-sfc": "3.5.45",
-				"@vue/runtime-dom": "3.5.45",
-				"@vue/server-renderer": "3.5.45",
-				"@vue/shared": "3.5.45"
+				"@vue/compiler-dom": "3.5.46",
+				"@vue/compiler-sfc": "3.5.46",
+				"@vue/runtime-dom": "3.5.46",
+				"@vue/server-renderer": "3.5.46",
+				"@vue/shared": "3.5.46"
 			},
 			},
 			"peerDependencies": {
 			"peerDependencies": {
 				"typescript": "*"
 				"typescript": "*"
@@ -3858,14 +3859,14 @@
 			}
 			}
 		},
 		},
 		"node_modules/vue-i18n": {
 		"node_modules/vue-i18n": {
-			"version": "11.4.18",
-			"resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-11.4.18.tgz",
-			"integrity": "sha512-NMPOTrqSUVPJxSuiYi0uJ2q0bZovoGuQb13hY9lR+ywb/FOtJRoXqxPRcO/64CDed4tkk9lZ6hRPG7HBP1nxvg==",
+			"version": "11.4.23",
+			"resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-11.4.23.tgz",
+			"integrity": "sha512-O+H2L/LF9xzklv2PZEqYAaG0rrbQokm6aX6/gPDxdtokBSDhKm+lvEPVbC3hXdvKpN5ICSBWigIkJ06AzCs3Lw==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@intlify/core-base": "11.4.18",
-				"@intlify/devtools-types": "11.4.18",
-				"@intlify/shared": "11.4.18",
+				"@intlify/core-base": "11.4.23",
+				"@intlify/devtools-types": "11.4.23",
+				"@intlify/shared": "11.4.23",
 				"@vue/devtools-api": "^6.5.0"
 				"@vue/devtools-api": "^6.5.0"
 			},
 			},
 			"engines": {
 			"engines": {
@@ -3879,18 +3880,18 @@
 			}
 			}
 		},
 		},
 		"node_modules/vue-router": {
 		"node_modules/vue-router": {
-			"version": "5.5.0",
-			"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-5.5.0.tgz",
-			"integrity": "sha512-nYhG+YzLcrO5Z7KbH1H/xvBeBzhCWhQG0z5DYNLuaJULhavZBmEgoQ5xVHGxwe65c5hnJQHZpBxWdQhnOBzHmw==",
+			"version": "5.5.1",
+			"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-5.5.1.tgz",
+			"integrity": "sha512-lUENd/QIhKd2HWACnXID3us0GWBnuOi3BwkTUzce2+4nfM/b3seV5saNURM9+wt48/qUxviotpcm7yFxC0U4qA==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
-				"@vue-macros/common": "^3.1.3",
-				"@vue/devtools-api": "^8.1.5",
+				"@vue-macros/common": "^3.1.4",
+				"@vue/devtools-api": "^8.2.1",
 				"ast-walker-scope": "^0.10.0",
 				"ast-walker-scope": "^0.10.0",
-				"chokidar": "^5.0.0",
-				"confbox": "^0.3.1",
-				"local-pkg": "^1.2.1",
-				"magic-string": "^1.4.3",
+				"chokidar": "^6.0.0",
+				"confbox": "^0.3.2",
+				"local-pkg": "^2.0.0",
+				"magic-string": "^1.4.5",
 				"mlly": "^1.8.2",
 				"mlly": "^1.8.2",
 				"muggle-string": "^0.4.1",
 				"muggle-string": "^0.4.1",
 				"nostics": "^1.3.0",
 				"nostics": "^1.3.0",
@@ -3898,7 +3899,7 @@
 				"picomatch": "^4.0.7",
 				"picomatch": "^4.0.7",
 				"scule": "^1.3.0",
 				"scule": "^1.3.0",
 				"tinyglobby": "^0.2.17",
 				"tinyglobby": "^0.2.17",
-				"unplugin": "^3.4.0",
+				"unplugin": "^3.7.0",
 				"unplugin-utils": "^0.3.2"
 				"unplugin-utils": "^0.3.2"
 			},
 			},
 			"funding": {
 			"funding": {
@@ -3935,15 +3936,63 @@
 				"@vue/devtools-kit": "^8.2.1"
 				"@vue/devtools-kit": "^8.2.1"
 			}
 			}
 		},
 		},
+		"node_modules/vue-router/node_modules/chokidar": {
+			"version": "6.0.0",
+			"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-6.0.0.tgz",
+			"integrity": "sha512-Ec2Z7wpcKBiMpR7DxteoqS/sq5G5d2A4fpxzPv6+fD7xNNdrTghn7L11YwV5EN1B3i72Erc3XVT5FkWIDx90+A==",
+			"license": "MIT",
+			"dependencies": {
+				"readdirp": "^5.1.1"
+			},
+			"engines": {
+				"node": ">= 22.22"
+			},
+			"funding": {
+				"url": "https://paulmillr.com/funding/"
+			}
+		},
+		"node_modules/vue-router/node_modules/local-pkg": {
+			"version": "2.0.0",
+			"resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-2.0.0.tgz",
+			"integrity": "sha512-xvTNwM27EpU+fkLSpo33Pq/nm8m5zNf0aU/hF4W4ZM9RHQjVZa5KTmmXIzEzVsdI09NOUqj0djHhTv96sUowSQ==",
+			"license": "MIT",
+			"dependencies": {
+				"mlly": "^1.8.2",
+				"pkg-types": "^2.3.1",
+				"quansync": "^1.0.0"
+			},
+			"engines": {
+				"node": ">=20.19.0"
+			},
+			"funding": {
+				"url": "https://github.com/sponsors/antfu"
+			}
+		},
 		"node_modules/vue-router/node_modules/magic-string": {
 		"node_modules/vue-router/node_modules/magic-string": {
-			"version": "1.4.3",
-			"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.3.tgz",
-			"integrity": "sha512-z12OxmaPGE0F4xlpGdjuAUckipLpQlTAuAmyGhNoD7ODpYUzvDfvtxUbjM/jwznyP178oju/KDdyi220wNJ0RQ==",
+			"version": "1.4.5",
+			"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.5.tgz",
+			"integrity": "sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==",
 			"license": "MIT",
 			"license": "MIT",
 			"dependencies": {
 			"dependencies": {
 				"@jridgewell/sourcemap-codec": "^1.6.0"
 				"@jridgewell/sourcemap-codec": "^1.6.0"
 			}
 			}
 		},
 		},
+		"node_modules/vue-router/node_modules/quansync": {
+			"version": "1.0.0",
+			"resolved": "https://registry.npmjs.org/quansync/-/quansync-1.0.0.tgz",
+			"integrity": "sha512-5xZacEEufv3HSTPQuchrvV6soaiACMFnq1H8wkVioctoH3TRha9Sz66lOxRwPK/qZj7HPiSveih9yAyh98gvqA==",
+			"funding": [
+				{
+					"type": "individual",
+					"url": "https://github.com/sponsors/antfu"
+				},
+				{
+					"type": "individual",
+					"url": "https://github.com/sponsors/sxzz"
+				}
+			],
+			"license": "MIT"
+		},
 		"node_modules/webpack-virtual-modules": {
 		"node_modules/webpack-virtual-modules": {
 			"version": "0.6.2",
 			"version": "0.6.2",
 			"resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz",
 			"resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz",

+ 8 - 8
frontend/package.json

@@ -5,12 +5,12 @@
 	"repository": "https://github.com/OliveTin/OliveTin",
 	"repository": "https://github.com/OliveTin/OliveTin",
 	"type": "module",
 	"type": "module",
 	"devDependencies": {
 	"devDependencies": {
-		"@vitejs/plugin-vue": "^6.0.10",
-		"eslint": "^10.14.0",
+		"@vitejs/plugin-vue": "^6.0.11",
+		"eslint": "^10.15.0",
 		"eslint-plugin-vue": "^10.12.1",
 		"eslint-plugin-vue": "^10.12.1",
 		"neostandard": "^0.14.1",
 		"neostandard": "^0.14.1",
-		"stylelint": "^18.0.0",
-		"stylelint-config-standard": "^41.0.0",
+		"stylelint": "^18.1.0",
+		"stylelint-config-standard": "^41.1.0",
 		"vite": "^8.3.8"
 		"vite": "^8.3.8"
 	},
 	},
 	"scripts": {
 	"scripts": {
@@ -31,10 +31,10 @@
 		"@xterm/addon-web-links": "^0.12.0",
 		"@xterm/addon-web-links": "^0.12.0",
 		"@xterm/xterm": "^6.0.0",
 		"@xterm/xterm": "^6.0.0",
 		"iconify-icon": "^3.0.5",
 		"iconify-icon": "^3.0.5",
-		"picocrank": "^1.41.0",
-		"vue": "^3.5.45",
-		"vue-i18n": "^11.4.18",
-		"vue-router": "^5.5.0"
+		"picocrank": "^1.42.0",
+		"vue": "^3.5.46",
+		"vue-i18n": "^11.4.23",
+		"vue-router": "^5.5.1"
 	},
 	},
 	"engines": {
 	"engines": {
 		"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
 		"node": "^22.22.2 || ^24.15.0 || >=26.0.0"

+ 2 - 2
frontend/resources/scripts/gen/olivetin/api/v1/olivetin_pb.d.ts

@@ -1297,9 +1297,9 @@ export declare type WhoAmIResponse = Message<"olivetin.api.v1.WhoAmIResponse"> &
   acls: string[];
   acls: string[];
 
 
   /**
   /**
-   * @generated from field: string sid = 5;
+   * @generated from field: string session_fingerprint = 6;
    */
    */
-  sid: string;
+  sessionFingerprint: string;
 };
 };
 
 
 /**
 /**

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
frontend/resources/scripts/gen/olivetin/api/v1/olivetin_pb.js


+ 6 - 2
frontend/resources/vue/App.vue

@@ -49,7 +49,7 @@
       <ConnectionBanner />
       <ConnectionBanner />
     </template>
     </template>
 
 
-    <router-view :key="$route.fullPath" />
+    <router-view :key="routerViewKey" />
 
 
     <template
     <template
       v-if="showFooter"
       v-if="showFooter"
@@ -178,7 +178,7 @@
 
 
 <script setup>
 <script setup>
 import { ref, onMounted, computed } from 'vue'
 import { ref, onMounted, computed } from 'vue'
-import { useRouter } from 'vue-router'
+import { useRoute, useRouter } from 'vue-router'
 import Sidebar from 'picocrank/vue/components/Sidebar.vue'
 import Sidebar from 'picocrank/vue/components/Sidebar.vue'
 import Navigation from 'picocrank/vue/components/Navigation.vue'
 import Navigation from 'picocrank/vue/components/Navigation.vue'
 import Header from 'picocrank/vue/components/Header.vue'
 import Header from 'picocrank/vue/components/Header.vue'
@@ -196,6 +196,10 @@ import { applyThemeStyles } from './utils/themeLoader.js'
 const { t } = useI18n()
 const { t } = useI18n()
 
 
 const router = useRouter()
 const router = useRouter()
+const route = useRoute()
+
+// Views that keep their own state in the query (e.g. the calendar month) opt out of remounting when only the query changes.
+const routerViewKey = computed(() => route.meta.keepOnQueryChange ? route.path : route.fullPath)
 
 
 const sidebar = ref(null)
 const sidebar = ref(null)
 const navigation = ref(null)
 const navigation = ref(null)

+ 1 - 0
frontend/resources/vue/router.js

@@ -40,6 +40,7 @@ const routes = [
     component: () => import('./views/LogsCalendarView.vue'),
     component: () => import('./views/LogsCalendarView.vue'),
     meta: {
     meta: {
       title: 'Logs Calendar',
       title: 'Logs Calendar',
+      keepOnQueryChange: true,
       breadcrumbs: () => [
       breadcrumbs: () => [
         { name: 'Logs', to: { name: 'Logs' } },
         { name: 'Logs', to: { name: 'Logs' } },
         { name: 'Calendar' }
         { name: 'Calendar' }

+ 26 - 0
frontend/resources/vue/utils/calendarMonthQuery.js

@@ -0,0 +1,26 @@
+const MONTH_QUERY_PATTERN = /^(\d{4})-(\d{2})$/
+
+export function formatCalendarMonthQuery (monthIndex, year) {
+  return `${String(year).padStart(4, '0')}-${String(monthIndex + 1).padStart(2, '0')}`
+}
+
+// Falls back to the month of `today` so that a missing or hand-edited bad value still shows a calendar.
+export function parseCalendarMonthQuery (value, today = new Date()) {
+  const fallback = { monthIndex: today.getMonth(), year: today.getFullYear() }
+
+  if (typeof value !== 'string') {
+    return fallback
+  }
+
+  const match = MONTH_QUERY_PATTERN.exec(value)
+  if (!match) {
+    return fallback
+  }
+
+  const monthIndex = Number(match[2]) - 1
+  if (monthIndex < 0 || monthIndex > 11) {
+    return fallback
+  }
+
+  return { monthIndex, year: Number(match[1]) }
+}

+ 26 - 0
frontend/resources/vue/utils/calendarMonthQuery.test.mjs

@@ -0,0 +1,26 @@
+import assert from 'node:assert/strict'
+import test from 'node:test'
+
+import { formatCalendarMonthQuery, parseCalendarMonthQuery } from './calendarMonthQuery.js'
+
+const today = new Date(2026, 10, 13)
+
+test('formatCalendarMonthQuery pads the month and uses a 1-based month', () => {
+  assert.equal(formatCalendarMonthQuery(0, 2026), '2026-01')
+  assert.equal(formatCalendarMonthQuery(11, 2025), '2025-12')
+})
+
+test('parseCalendarMonthQuery reads a valid month', () => {
+  assert.deepEqual(parseCalendarMonthQuery('2026-08', today), { monthIndex: 7, year: 2026 })
+})
+
+test('parseCalendarMonthQuery round-trips with formatCalendarMonthQuery', () => {
+  const { monthIndex, year } = parseCalendarMonthQuery(formatCalendarMonthQuery(2, 2024), today)
+  assert.deepEqual({ monthIndex, year }, { monthIndex: 2, year: 2024 })
+})
+
+for (const value of [undefined, null, '', ['2026-08'], '2026-8', '2026-13', '2026-00', 'august', '2026-08-01']) {
+  test(`parseCalendarMonthQuery falls back to the current month for ${JSON.stringify(value)}`, () => {
+    assert.deepEqual(parseCalendarMonthQuery(value, today), { monthIndex: 10, year: 2026 })
+  })
+}

+ 18 - 7
frontend/resources/vue/views/LogsCalendarView.vue

@@ -41,20 +41,24 @@
 
 
 <script setup>
 <script setup>
 import { ref, computed, onMounted } from 'vue'
 import { ref, computed, onMounted } from 'vue'
-import { useRouter } from 'vue-router'
+import { useRoute, useRouter } from 'vue-router'
 import { useI18n } from 'vue-i18n'
 import { useI18n } from 'vue-i18n'
 import { Calendar01Icon } from '@hugeicons/core-free-icons'
 import { Calendar01Icon } from '@hugeicons/core-free-icons'
 import Calendar from 'picocrank/vue/components/Calendar.vue'
 import Calendar from 'picocrank/vue/components/Calendar.vue'
 import Section from 'picocrank/vue/components/Section.vue'
 import Section from 'picocrank/vue/components/Section.vue'
 import { loadStoredLogsFilter } from '../utils/logsFilterStorage.js'
 import { loadStoredLogsFilter } from '../utils/logsFilterStorage.js'
+import { formatCalendarMonthQuery, parseCalendarMonthQuery } from '../utils/calendarMonthQuery.js'
 const router = useRouter()
 const router = useRouter()
+const route = useRoute()
 const { t } = useI18n()
 const { t } = useI18n()
 
 
 const logs = ref([])
 const logs = ref([])
 const loading = ref(false)
 const loading = ref(false)
 const error = ref(null)
 const error = ref(null)
-const currentMonthIndex = ref(new Date().getMonth())
-const currentYear = ref(new Date().getFullYear())
+// The month lives in the URL so that browser Back from an execution returns to the month being browsed.
+const displayedMonth = computed(() => parseCalendarMonthQuery(route.query.month))
+const currentMonthIndex = computed(() => displayedMonth.value.monthIndex)
+const currentYear = computed(() => displayedMonth.value.year)
 
 
 const logsListLocation = computed(() => {
 const logsListLocation = computed(() => {
   const filter = loadStoredLogsFilter()
   const filter = loadStoredLogsFilter()
@@ -164,13 +168,20 @@ function handleDayClick (date) {
 }
 }
 
 
 function handleMonthChange (month, year) {
 function handleMonthChange (month, year) {
-  currentMonthIndex.value = month
-  currentYear.value = year
-  // Optionally fetch logs for the new month if needed
-  // For now, we'll keep all logs loaded
+  router.replace({ query: { ...route.query, month: formatCalendarMonthQuery(month, year) } })
+}
+
+// A missing or invalid month is written into the URL, so that bookmarking the
+// page keeps the month it showed.
+function writeDisplayedMonthToAddress () {
+  const month = formatCalendarMonthQuery(currentMonthIndex.value, currentYear.value)
+  if (route.query.month !== month) {
+    router.replace({ query: { ...route.query, month } })
+  }
 }
 }
 
 
 onMounted(() => {
 onMounted(() => {
+  writeDisplayedMonthToAddress()
   fetchLogs()
   fetchLogs()
 })
 })
 </script>
 </script>

+ 59 - 18
integration-tests/package-lock.json

@@ -14,10 +14,10 @@
       "devDependencies": {
       "devDependencies": {
         "@eslint/js": "^10.0.1",
         "@eslint/js": "^10.0.1",
         "chai": "^6.3.0",
         "chai": "^6.3.0",
-        "eslint": "^10.14.0",
+        "eslint": "^10.15.0",
         "globals": "^17.14.0",
         "globals": "^17.14.0",
         "mocha": "^12.0.3",
         "mocha": "^12.0.3",
-        "selenium-webdriver": "^4.52.0"
+        "selenium-webdriver": "^4.54.0"
       }
       }
     },
     },
     "node_modules/@bazel/runfiles": {
     "node_modules/@bazel/runfiles": {
@@ -94,20 +94,37 @@
       }
       }
     },
     },
     "node_modules/@eslint/config-array": {
     "node_modules/@eslint/config-array": {
-      "version": "0.23.5",
-      "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz",
-      "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==",
+      "version": "0.23.6",
+      "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.6.tgz",
+      "integrity": "sha512-WrTH7nioI9QPY4NZGnsywmecswJdgeq4BCM76qok9VgjTO29ZgUzUvcuJLVPYVQM4uDbaPBU0M33R9DIxI8X3w==",
       "dev": true,
       "dev": true,
       "license": "Apache-2.0",
       "license": "Apache-2.0",
       "dependencies": {
       "dependencies": {
         "@eslint/object-schema": "^3.0.5",
         "@eslint/object-schema": "^3.0.5",
         "debug": "^4.3.1",
         "debug": "^4.3.1",
-        "minimatch": "^10.2.4"
+        "minimatch": "^11.0.5"
       },
       },
       "engines": {
       "engines": {
         "node": "^20.19.0 || ^22.13.0 || >=24"
         "node": "^20.19.0 || ^22.13.0 || >=24"
       }
       }
     },
     },
+    "node_modules/@eslint/config-array/node_modules/minimatch": {
+      "version": "11.0.9",
+      "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz",
+      "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==",
+      "dev": true,
+      "license": "BlueOak-1.0.0",
+      "dependencies": {
+        "@isaacs/nonrecursive-glob-match": "^1.1.0",
+        "brace-expansion": "^5.0.12"
+      },
+      "engines": {
+        "node": "20 || >=22"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/isaacs"
+      }
+    },
     "node_modules/@eslint/config-helpers": {
     "node_modules/@eslint/config-helpers": {
       "version": "0.7.0",
       "version": "0.7.0",
       "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz",
       "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz",
@@ -293,6 +310,13 @@
         "url": "https://github.com/sponsors/nzakas"
         "url": "https://github.com/sponsors/nzakas"
       }
       }
     },
     },
+    "node_modules/@isaacs/nonrecursive-glob-match": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz",
+      "integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==",
+      "dev": true,
+      "license": "BlueOak-1.0.0"
+    },
     "node_modules/@keyv/bigmap": {
     "node_modules/@keyv/bigmap": {
       "version": "1.3.1",
       "version": "1.3.1",
       "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz",
       "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz",
@@ -664,9 +688,9 @@
       }
       }
     },
     },
     "node_modules/eslint": {
     "node_modules/eslint": {
-      "version": "10.14.0",
-      "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.14.0.tgz",
-      "integrity": "sha512-T0pNsxkb9IKmtQjhpK3d7nWOpFv+YHuMbTJnSVMoQblF0onvXfErrtp4V1jHtsQPan7dKaGVD0q1WCXnzMF31A==",
+      "version": "10.15.0",
+      "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.15.0.tgz",
+      "integrity": "sha512-+5Wg4p+ze3sG1WErYgUO/3H1IQIfFBymVUA0Fo/XTeBOLS6UQIUekpSJ8sdRkn7O7wjh84b55w/roqavH2aScg==",
       "dev": true,
       "dev": true,
       "license": "MIT",
       "license": "MIT",
       "workspaces": [
       "workspaces": [
@@ -675,7 +699,7 @@
       "dependencies": {
       "dependencies": {
         "@eslint-community/eslint-utils": "^4.8.0",
         "@eslint-community/eslint-utils": "^4.8.0",
         "@eslint-community/regexpp": "^4.12.2",
         "@eslint-community/regexpp": "^4.12.2",
-        "@eslint/config-array": "^0.23.5",
+        "@eslint/config-array": "^0.23.6",
         "@eslint/config-helpers": "^0.7.0",
         "@eslint/config-helpers": "^0.7.0",
         "@eslint/core": "^1.2.1",
         "@eslint/core": "^1.2.1",
         "@eslint/plugin-kit": "^0.7.3",
         "@eslint/plugin-kit": "^0.7.3",
@@ -700,7 +724,7 @@
         "imurmurhash": "^0.1.4",
         "imurmurhash": "^0.1.4",
         "is-glob": "^4.0.0",
         "is-glob": "^4.0.0",
         "json-stable-stringify-without-jsonify": "^1.0.1",
         "json-stable-stringify-without-jsonify": "^1.0.1",
-        "minimatch": "^10.2.6",
+        "minimatch": "^11.0.5",
         "natural-compare": "^1.4.0",
         "natural-compare": "^1.4.0",
         "optionator": "^0.9.3"
         "optionator": "^0.9.3"
       },
       },
@@ -754,6 +778,23 @@
         "url": "https://opencollective.com/eslint"
         "url": "https://opencollective.com/eslint"
       }
       }
     },
     },
+    "node_modules/eslint/node_modules/minimatch": {
+      "version": "11.0.9",
+      "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz",
+      "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==",
+      "dev": true,
+      "license": "BlueOak-1.0.0",
+      "dependencies": {
+        "@isaacs/nonrecursive-glob-match": "^1.1.0",
+        "brace-expansion": "^5.0.12"
+      },
+      "engines": {
+        "node": "20 || >=22"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/isaacs"
+      }
+    },
     "node_modules/espree": {
     "node_modules/espree": {
       "version": "11.2.0",
       "version": "11.2.0",
       "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",
       "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",
@@ -1653,9 +1694,9 @@
       "license": "MIT"
       "license": "MIT"
     },
     },
     "node_modules/selenium-webdriver": {
     "node_modules/selenium-webdriver": {
-      "version": "4.52.0",
-      "resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.52.0.tgz",
-      "integrity": "sha512-+7AJZ85CUiSK4J8HDEKFAcZ+fIPB2krOWncOq0Stg/Ywc7phb85FkhWRdX/WXZtqOCSzvrF/Q34rWX6zFEnGOw==",
+      "version": "4.54.0",
+      "resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.54.0.tgz",
+      "integrity": "sha512-3bj6apWpjpdc6rpovyJ3Tj5CHYAAyt3XE/us3FS0Ea0mUqPV8c2JCZLUfcAjESxJUbtxdKu7IxpG5TrioNsHww==",
       "dev": true,
       "dev": true,
       "funding": [
       "funding": [
         {
         {
@@ -1672,7 +1713,7 @@
         "@bazel/runfiles": "^6.5.0",
         "@bazel/runfiles": "^6.5.0",
         "jszip": "^3.10.2",
         "jszip": "^3.10.2",
         "tmp": "^0.2.7",
         "tmp": "^0.2.7",
-        "ws": "^8.22.0"
+        "ws": "^8.23.0"
       },
       },
       "engines": {
       "engines": {
         "node": "^22.23.4 || ^24.22.1 || >= 26.12.1"
         "node": "^22.23.4 || ^24.22.1 || >= 26.12.1"
@@ -1855,9 +1896,9 @@
       "license": "Apache-2.0"
       "license": "Apache-2.0"
     },
     },
     "node_modules/ws": {
     "node_modules/ws": {
-      "version": "8.22.0",
-      "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.0.tgz",
-      "integrity": "sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==",
+      "version": "8.23.0",
+      "resolved": "https://registry.npmjs.org/ws/-/ws-8.23.0.tgz",
+      "integrity": "sha512-wCkmX8QMOrKjgO8HW2WyDbTSGeqkocxgDzS9iR79rEAexty6/2qzilx3Ag8Tqf9ykop3irLKle0MtVn5qjVnoQ==",
       "dev": true,
       "dev": true,
       "license": "MIT",
       "license": "MIT",
       "engines": {
       "engines": {

+ 2 - 2
integration-tests/package.json

@@ -15,10 +15,10 @@
   "devDependencies": {
   "devDependencies": {
     "@eslint/js": "^10.0.1",
     "@eslint/js": "^10.0.1",
     "chai": "^6.3.0",
     "chai": "^6.3.0",
-    "eslint": "^10.14.0",
+    "eslint": "^10.15.0",
     "globals": "^17.14.0",
     "globals": "^17.14.0",
     "mocha": "^12.0.3",
     "mocha": "^12.0.3",
-    "selenium-webdriver": "^4.52.0"
+    "selenium-webdriver": "^4.54.0"
   },
   },
   "dependencies": {
   "dependencies": {
     "wait-on": "^9.5.1"
     "wait-on": "^9.5.1"

+ 52 - 0
integration-tests/tests/calendarMonthHistory/calendarMonthHistory.mjs

@@ -0,0 +1,52 @@
+import { By, until } from 'selenium-webdriver'
+import { expect } from 'chai'
+import {
+  getRootAndWait,
+  takeScreenshotOnFailure,
+  waitForCurrentUrl,
+} from '../../lib/elements.js'
+
+async function getCalendarTitle () {
+  const title = await webdriver.wait(until.elementLocated(By.css('.calendar-title')), 5000)
+  return title.getText()
+}
+
+describe('logs calendar: month is kept in the URL', function () {
+  before(async function () {
+    await runner.start('calendarMonthHistory')
+  })
+
+  after(async () => {
+    await runner.stop()
+  })
+
+  afterEach(function () {
+    takeScreenshotOnFailure(this.currentTest, webdriver)
+  })
+
+  it('returns to the browsed month when going back', async () => {
+    await getRootAndWait()
+    await webdriver.get(new URL('logs/calendar', runner.baseUrl()).toString())
+
+    const currentMonthTitle = await getCalendarTitle()
+
+    const previousButton = await webdriver.findElement(By.xpath("//div[contains(@class, 'calendar-nav-buttons')]//button[normalize-space()='‹']"))
+    await previousButton.click()
+    await waitForCurrentUrl(url => url.includes('month='))
+
+    const previousMonthTitle = await getCalendarTitle()
+    expect(previousMonthTitle).to.not.equal(currentMonthTitle)
+
+    const monthUrl = await webdriver.getCurrentUrl()
+
+    const backToListLink = await webdriver.findElement(By.css('a.button.inline-icon[href$="/logs"]'))
+    await backToListLink.click()
+    await waitForCurrentUrl(url => !url.includes('calendar'))
+
+    await webdriver.navigate().back()
+    await waitForCurrentUrl(url => url === monthUrl)
+
+    await webdriver.wait(async () => (await getCalendarTitle()) === previousMonthTitle, 5000)
+    expect(await getCalendarTitle()).to.equal(previousMonthTitle)
+  })
+})

+ 12 - 0
integration-tests/tests/calendarMonthHistory/config.yaml

@@ -0,0 +1,12 @@
+#
+# Integration Test Config: Calendar month history
+#
+
+listenAddressSingleHTTPFrontend: 0.0.0.0:1337
+
+checkForUpdates: false
+
+actions:
+  - title: Ping example.com
+    shell: ping example.com -c 1
+    icon: ping

+ 3 - 2
integration-tests/tests/onlyDashboards/onlyDashboards.mjs

@@ -1,6 +1,6 @@
 import { describe, it, before, after } from 'mocha'
 import { describe, it, before, after } from 'mocha'
 import { assert, expect } from 'chai'
 import { assert, expect } from 'chai'
-import { By } from 'selenium-webdriver'
+import { By, until } from 'selenium-webdriver'
 import {
 import {
   getRootAndWait,
   getRootAndWait,
   getActionButtons,
   getActionButtons,
@@ -41,7 +41,8 @@ describe('config: onlyDashboards', function () {
 
 
     const firstDashboardLink = await webdriver.findElement(By.css('li[title="My Dashboard"]'), 'The first dashboard link should be present')
     const firstDashboardLink = await webdriver.findElement(By.css('li[title="My Dashboard"]'), 'The first dashboard link should be present')
     assert.isNotNull(firstDashboardLink, 'First dashboard link should not be null')
     assert.isNotNull(firstDashboardLink, 'First dashboard link should not be null')
-    assert.isTrue(await firstDashboardLink.isDisplayed(), 'First dashboard link should be displayed')
+    // The sidebar is marked as shown when it starts opening, so wait for the link to become visible.
+    await webdriver.wait(until.elementIsVisible(firstDashboardLink), 5000, 'First dashboard link should be displayed')
 
 
     const actionButtonsOnDashboard = await getActionButtons()
     const actionButtonsOnDashboard = await getActionButtons()
     assert.isArray(actionButtonsOnDashboard, 'Action buttons on dashboard should be an array')
     assert.isArray(actionButtonsOnDashboard, 'Action buttons on dashboard should be an array')

+ 80 - 39
lang/main.go

@@ -2,6 +2,8 @@ package main
 
 
 import (
 import (
 	"encoding/json"
 	"encoding/json"
+	"errors"
+	"fmt"
 	"os"
 	"os"
 	"path/filepath"
 	"path/filepath"
 	"sort"
 	"sort"
@@ -14,8 +16,8 @@ import (
 )
 )
 
 
 type LanguageFilev1 struct {
 type LanguageFilev1 struct {
-	SchemaVersion int               `json:"schemaVersion"`
-	Translations  map[string]string `json:"translations"`
+	SchemaVersion yaml.Node         `json:"schemaVersion" yaml:"schemaVersion"`
+	Translations  map[string]string `json:"translations" yaml:"translations"`
 }
 }
 
 
 type CombinedTranslationsOutput struct {
 type CombinedTranslationsOutput struct {
@@ -24,10 +26,14 @@ type CombinedTranslationsOutput struct {
 }
 }
 
 
 func main() {
 func main() {
-	combinedContent := getCombinedLanguageContent()
+	combinedContent, err := getCombinedLanguageContent()
+	if err != nil {
+		log.Fatalf("Error loading language files: %v", err)
+	}
+
 	sortedContent := sortTranslations(combinedContent)
 	sortedContent := sortTranslations(combinedContent)
 
 
-	err := writeTranslationFiles(sortedContent.Messages)
+	err = writeTranslationFiles(sortedContent.Messages)
 	if err != nil {
 	if err != nil {
 		log.Fatalf("Error writing language content: %v", err)
 		log.Fatalf("Error writing language content: %v", err)
 	}
 	}
@@ -115,7 +121,7 @@ func getLanguageDir() string {
 	return dir
 	return dir
 }
 }
 
 
-func getCombinedLanguageContent() *CombinedTranslationsOutput {
+func getCombinedLanguageContent() (*CombinedTranslationsOutput, error) {
 	output := &CombinedTranslationsOutput{
 	output := &CombinedTranslationsOutput{
 		Comment:  "This file is generated. Please re-generate this file using 'make' when you update a translation.",
 		Comment:  "This file is generated. Please re-generate this file using 'make' when you update a translation.",
 		Messages: make(map[string]map[string]string),
 		Messages: make(map[string]map[string]string),
@@ -124,40 +130,59 @@ func getCombinedLanguageContent() *CombinedTranslationsOutput {
 	languageDir := getLanguageDir()
 	languageDir := getLanguageDir()
 
 
 	files, err := os.ReadDir(languageDir)
 	files, err := os.ReadDir(languageDir)
-
 	if err != nil {
 	if err != nil {
-		log.Errorf("Error reading language directory %s: %v", languageDir, err)
-		return output
+		return nil, fmt.Errorf("reading language directory %s: %w", languageDir, err)
 	}
 	}
 
 
 	for _, file := range filterLanguageFiles(files) {
 	for _, file := range filterLanguageFiles(files) {
-		languageName := strings.Replace(file.Name(), ".yaml", "", 1)
-
-		fullPath := filepath.Join(languageDir, file.Name())
-		log.Infof("Loading language file: %s", fullPath)
-
-		content, err := os.ReadFile(fullPath)
+		languageName := strings.TrimSuffix(file.Name(), ".yaml")
 
 
+		translations, err := loadLanguageFile(filepath.Join(languageDir, file.Name()))
 		if err != nil {
 		if err != nil {
-			log.Errorf("Error reading language file %s: %v", fullPath, err)
-			continue
+			return nil, err
 		}
 		}
 
 
-		var yamlData LanguageFilev1
+		output.Messages[languageName] = translations
+	}
 
 
-		err = yaml.Unmarshal(content, &yamlData)
+	return output, validateTranslations(output)
+}
 
 
-		if err != nil {
-			log.Errorf("Error reading language file %s: %v", fullPath, err)
-			continue
-		}
+func loadLanguageFile(fullPath string) (map[string]string, error) {
+	log.Infof("Loading language file: %s", fullPath)
+
+	content, err := os.ReadFile(fullPath)
+	if err != nil {
+		return nil, fmt.Errorf("reading language file %s: %w", fullPath, err)
+	}
+
+	var yamlData LanguageFilev1
+
+	err = yaml.Unmarshal(content, &yamlData)
+	if err != nil {
+		return nil, fmt.Errorf("parsing language file %s: %w", fullPath, err)
+	}
 
 
-		output.Messages[languageName] = yamlData.Translations
+	err = validateSchemaVersion(&yamlData.SchemaVersion)
+	if err != nil {
+		return nil, fmt.Errorf("language file %s: %w", fullPath, err)
+	}
+
+	if len(yamlData.Translations) == 0 {
+		return nil, fmt.Errorf("language file %s has no translations", fullPath)
 	}
 	}
 
 
-	validateTranslations(output)
+	return yamlData.Translations, nil
+}
+
+// validateSchemaVersion checks the raw YAML scalar, because decoding straight
+// into an int silently truncates values such as 1.5 to 1.
+func validateSchemaVersion(node *yaml.Node) error {
+	if node.Kind != yaml.ScalarNode || node.ShortTag() != "!!int" || node.Value != "1" {
+		return fmt.Errorf("schemaVersion is %q, expected 1", node.Value)
+	}
 
 
-	return output
+	return nil
 }
 }
 
 
 // getReferenceKeys returns the keys from the "en" translation as the reference set.
 // getReferenceKeys returns the keys from the "en" translation as the reference set.
@@ -196,29 +221,45 @@ func findExtraKeys(referenceKeys map[string]bool, translations map[string]string
 	return extra
 	return extra
 }
 }
 
 
-// validateTranslations checks all translations against the "en" reference and prints warnings for missing and extra keys.
-func validateTranslations(output *CombinedTranslationsOutput) {
+// validateTranslations checks all translations against the "en" reference.
+// Missing keys are only warnings, so that new English strings can be merged
+// before every language has been translated. Extra keys are errors, as they
+// are usually typos and are never displayed.
+func validateTranslations(output *CombinedTranslationsOutput) error {
 	referenceKeys := getReferenceKeys(output.Messages)
 	referenceKeys := getReferenceKeys(output.Messages)
 	if referenceKeys == nil {
 	if referenceKeys == nil {
-		log.Warnf("No 'en' translation found, skipping validation")
-		return
+		return errors.New("no 'en' translation found to validate against")
 	}
 	}
 
 
+	invalidLanguages := make([]string, 0)
+
 	for langName, translations := range output.Messages {
 	for langName, translations := range output.Messages {
-		if langName == "en" {
-			continue
+		if !checkLanguageKeys(langName, referenceKeys, translations) {
+			invalidLanguages = append(invalidLanguages, langName)
 		}
 		}
+	}
 
 
-		missing := findMissingKeys(referenceKeys, translations)
-		if len(missing) > 0 {
-			log.Warnf("Translation '%s' is missing %d key(s): %v", langName, len(missing), missing)
-		}
+	if len(invalidLanguages) > 0 {
+		sort.Strings(invalidLanguages)
+		return fmt.Errorf("translations with keys that are not in 'en': %v", invalidLanguages)
+	}
 
 
-		extra := findExtraKeys(referenceKeys, translations)
-		if len(extra) > 0 {
-			log.Warnf("Translation '%s' has %d extra key(s) not in 'en': %v", langName, len(extra), extra)
-		}
+	return nil
+}
+
+func checkLanguageKeys(langName string, referenceKeys map[string]bool, translations map[string]string) bool {
+	missing := findMissingKeys(referenceKeys, translations)
+	if len(missing) > 0 {
+		log.Warnf("Translation '%s' is missing %d key(s): %v", langName, len(missing), missing)
+	}
+
+	extra := findExtraKeys(referenceKeys, translations)
+	if len(extra) > 0 {
+		log.Errorf("Translation '%s' has %d extra key(s) not in 'en': %v", langName, len(extra), extra)
+		return false
 	}
 	}
+
+	return true
 }
 }
 
 
 func filterLanguageFiles(files []os.DirEntry) []os.DirEntry {
 func filterLanguageFiles(files []os.DirEntry) []os.DirEntry {

+ 95 - 0
lang/main_test.go

@@ -0,0 +1,95 @@
+package main
+
+import (
+	"os"
+	"path/filepath"
+	"testing"
+)
+
+func writeLanguageFile(t *testing.T, content string) string {
+	t.Helper()
+
+	path := filepath.Join(t.TempDir(), "xx-XX.yaml")
+	if err := os.WriteFile(path, []byte(content), 0o600); err != nil {
+		t.Fatal(err)
+	}
+
+	return path
+}
+
+func TestLoadLanguageFileRejectsEmptyFile(t *testing.T) {
+	if _, err := loadLanguageFile(writeLanguageFile(t, "")); err == nil {
+		t.Error("expected an error for an empty language file")
+	}
+}
+
+func TestLoadLanguageFileRejectsWrongSchemaVersion(t *testing.T) {
+	if _, err := loadLanguageFile(writeLanguageFile(t, "schemaVersion: 2\ntranslations:\n  welcome: Hi\n")); err == nil {
+		t.Error("expected an error for an unsupported schemaVersion")
+	}
+}
+
+func TestLoadLanguageFileRejectsNonIntegerSchemaVersion(t *testing.T) {
+	for _, schemaVersion := range []string{"1.5", "1.0", "\"1\"", "0x1", "[1]"} {
+		content := "schemaVersion: " + schemaVersion + "\ntranslations:\n  welcome: Hi\n"
+
+		if _, err := loadLanguageFile(writeLanguageFile(t, content)); err == nil {
+			t.Errorf("expected an error for schemaVersion %s", schemaVersion)
+		}
+	}
+}
+
+func TestLoadLanguageFileRejectsMissingSchemaVersion(t *testing.T) {
+	if _, err := loadLanguageFile(writeLanguageFile(t, "translations:\n  welcome: Hi\n")); err == nil {
+		t.Error("expected an error for a missing schemaVersion")
+	}
+}
+
+func TestLoadLanguageFileRejectsInvalidYaml(t *testing.T) {
+	if _, err := loadLanguageFile(writeLanguageFile(t, "schemaVersion: 1\ntranslations: [\n")); err == nil {
+		t.Error("expected an error for invalid YAML")
+	}
+}
+
+func TestLoadLanguageFileAcceptsValidFile(t *testing.T) {
+	translations, err := loadLanguageFile(writeLanguageFile(t, "schemaVersion: 1\ntranslations:\n  welcome: Hi\n"))
+	if err != nil {
+		t.Fatal(err)
+	}
+
+	if translations["welcome"] != "Hi" {
+		t.Errorf("unexpected translations: %v", translations)
+	}
+}
+
+func TestValidateTranslationsAllowsMissingKeys(t *testing.T) {
+	output := &CombinedTranslationsOutput{Messages: map[string]map[string]string{
+		"en":    {"welcome": "Hi", "docs": "Docs"},
+		"xx-XX": {"welcome": "Salut"},
+	}}
+
+	if err := validateTranslations(output); err != nil {
+		t.Errorf("missing keys should only warn, got %v", err)
+	}
+}
+
+func TestValidateTranslationsRejectsExtraKeys(t *testing.T) {
+	output := &CombinedTranslationsOutput{Messages: map[string]map[string]string{
+		"en":    {"welcome": "Hi"},
+		"xx-XX": {"welcome": "Salut", "welcom": "Typo"},
+	}}
+
+	if err := validateTranslations(output); err == nil {
+		t.Error("expected an error for keys not in 'en'")
+	}
+}
+
+func TestValidateTranslationsRequiresEnglish(t *testing.T) {
+	output := &CombinedTranslationsOutput{Messages: map[string]map[string]string{
+		"xx-XX": {"welcome": "Salut"},
+	}}
+
+	if err := validateTranslations(output); err == nil {
+		t.Error("expected an error when 'en' is missing")
+	}
+}

+ 7 - 1
proto/olivetin/api/v1/olivetin.proto

@@ -303,7 +303,13 @@ message WhoAmIResponse {
 
 
     repeated string acls = 4;
     repeated string acls = 4;
 
 
-    string sid = 5;
+    // The session ID was returned here until it was replaced by
+    // session_fingerprint, because the session ID is the session's
+    // credential.
+    reserved 5;
+    reserved "sid";
+
+    string session_fingerprint = 6;
 }
 }
 
 
 message ServerDiagnosticsRequest {}
 message ServerDiagnosticsRequest {}

+ 137 - 0
scripts/ghsa_status.py

@@ -0,0 +1,137 @@
+#!/usr/bin/env python3
+"""Set or list the [status:...] tag on OliveTin's repository security advisories.
+
+Advisories in triage or draft carry a status tag at the end of their summary,
+so maintainers and reporters can see where each one is. The tag is removed
+when an advisory is published or closed, and before a CVE is requested.
+
+Usage:
+    ghsa_status.py --list
+    ghsa_status.py <GHSA-ID> <status>
+    ghsa_status.py <GHSA-ID> clear
+
+Statuses: pending-review, awaiting-reporter, accepted, feedback-on-fix,
+pending-release. Requires the GitHub CLI (gh), authenticated with access to
+the repository's security advisories.
+"""
+
+from __future__ import annotations
+
+import json
+import re
+import subprocess
+import sys
+
+REPO = "OliveTin/OliveTin"
+
+STATUSES = (
+    "pending-review",
+    "awaiting-reporter",
+    "accepted",
+    "feedback-on-fix",
+    "pending-release",
+)
+
+OPEN_STATES = ("triage", "draft")
+
+TRAILING_TAGS_PATTERN = re.compile(r"(?:\s*\[status:[^\]]*\])+\s*$")
+TAG_PATTERN = re.compile(r"\[status:([^\]]*)\]")
+GHSA_PATTERN = re.compile(r"^GHSA(-[23456789cfghjmpqrvwx]{4}){3}$")
+
+
+def gh_api(path: str, method: str = "GET", body: dict | None = None, paginate: bool = False) -> object:
+    command = ["gh", "api", "-X", method, path]
+    if paginate:
+        command += ["--paginate", "--slurp"]
+    if body is not None:
+        command += ["--input", "-"]
+    result = subprocess.run(
+        command,
+        input=json.dumps(body) if body is not None else None,
+        capture_output=True,
+        text=True,
+        check=False,
+    )
+    if result.returncode != 0:
+        raise SystemExit(f"gh api {method} {path} failed: {result.stderr.strip() or result.stdout.strip()}")
+    return json.loads(result.stdout)
+
+
+def strip_status(summary: str) -> str:
+    return TRAILING_TAGS_PATTERN.sub("", summary).rstrip()
+
+
+def status_tags(summary: str) -> list[str]:
+    match = TRAILING_TAGS_PATTERN.search(summary)
+    if not match:
+        return []
+    return TAG_PATTERN.findall(match.group(0))
+
+
+def has_valid_status(tags: list[str]) -> bool:
+    return len(tags) == 1 and tags[0] in STATUSES
+
+
+def with_status(summary: str, status: str) -> str:
+    base = strip_status(summary)
+    if status == "clear":
+        return base
+    return f"{base} [status:{status}]"
+
+
+def list_advisories() -> int:
+    pages = gh_api(f"/repos/{REPO}/security-advisories?per_page=100", paginate=True)
+    advisories = [advisory for page in pages for advisory in page]
+    problems = 0
+
+    for advisory in advisories:
+        tags = status_tags(advisory["summary"])
+        is_open = advisory["state"] in OPEN_STATES
+
+        note = ""
+        if is_open and not has_valid_status(tags):
+            note = "  <- missing, unknown or multiple statuses"
+            problems += 1
+        elif not is_open and tags:
+            note = "  <- should not have a status"
+            problems += 1
+
+        if is_open or tags:
+            shown = ",".join(tag or "(empty)" for tag in tags) or "-"
+            print(f"{advisory['ghsa_id']}  {advisory['state']:<9} {shown:<18} {strip_status(advisory['summary'])}{note}")
+
+    return 1 if problems else 0
+
+
+def set_status(ghsa_id: str, status: str) -> int:
+    if not GHSA_PATTERN.match(ghsa_id):
+        raise SystemExit(f"Not a GHSA ID: {ghsa_id}")
+    if status != "clear" and status not in STATUSES:
+        raise SystemExit(f"Unknown status '{status}'. Use one of: {', '.join(STATUSES)}, or clear")
+
+    advisory = gh_api(f"/repos/{REPO}/security-advisories/{ghsa_id}")
+    if status != "clear" and advisory["state"] not in OPEN_STATES:
+        raise SystemExit(f"{ghsa_id} is {advisory['state']}; only triage and draft advisories carry a status")
+
+    summary = with_status(advisory["summary"], status)
+    if summary == advisory["summary"]:
+        print(f"{ghsa_id} already has that status.")
+        return 0
+
+    updated = gh_api(f"/repos/{REPO}/security-advisories/{ghsa_id}", method="PATCH", body={"summary": summary})
+    print(f"{ghsa_id}: {updated['summary']}")
+    return 0
+
+
+def main(argv: list[str]) -> int:
+    if argv[1:] == ["--list"]:
+        return list_advisories()
+    if len(argv) == 3:
+        return set_status(argv[1], argv[2])
+
+    print(__doc__, file=sys.stderr)
+    return 2
+
+
+if __name__ == "__main__":
+    sys.exit(main(sys.argv))

+ 149 - 0
scripts/release_upgrade_notes.py

@@ -0,0 +1,149 @@
+#!/usr/bin/env python3
+"""Move upgrade notes that shipped in a release under that release's heading.
+
+Upgrade notes for changes that are merged but not yet released live under the
+"Next release (unreleased)" section of upgrade_notes.adoc. When a release is
+tagged, every note that was in the unreleased section *at the tagged commit*
+moves into a new "== <version>" section. Notes added to the unreleased section
+after the release was cut stay where they are.
+
+Usage:
+    release_upgrade_notes.py <version> <released-file> <target-file>
+
+<released-file> is upgrade_notes.adoc as it was at the release tag, and
+<target-file> is the copy to update in place (normally on the next branch).
+"""
+
+from __future__ import annotations
+
+import sys
+from pathlib import Path
+
+UNRELEASED_HEADING = "== Next release (unreleased)"
+
+
+def split_sections(lines: list[str], prefix: str) -> tuple[list[str], list[list[str]]]:
+    """Split lines into a preamble and blocks that each start at a heading.
+
+    An anchor line such as [#some-id] directly above a heading belongs to that
+    heading's block, so that anchors move with their notes.
+    """
+    preamble: list[str] = []
+    blocks: list[list[str]] = []
+
+    for line in lines:
+        if line.startswith(prefix) and not line.startswith(prefix + "="):
+            anchor = _take_anchor(preamble if not blocks else blocks[-1])
+            blocks.append(anchor + [line])
+        elif blocks:
+            blocks[-1].append(line)
+        else:
+            preamble.append(line)
+
+    return preamble, blocks
+
+
+def _take_anchor(block: list[str]) -> list[str]:
+    if block and block[-1].startswith("[#"):
+        return [block.pop()]
+    return []
+
+
+def note_key(note: list[str]) -> str:
+    """Identify a note by its anchor, falling back to its heading."""
+    for line in note:
+        if line.startswith("[#") or line.startswith("=== "):
+            return line.strip()
+    return ""
+
+
+def section_heading(section: list[str]) -> str:
+    for line in section:
+        if not line.startswith("[#"):
+            return line.rstrip()
+    return ""
+
+
+def unreleased_notes(lines: list[str]) -> tuple[list[str], list[list[str]]] | None:
+    _, sections = split_sections(lines, "== ")
+    for section in sections:
+        if section_heading(section) == UNRELEASED_HEADING:
+            return split_sections(section, "=== ")
+    return None
+
+
+def released_keys(released_lines: list[str]) -> set[str]:
+    found = unreleased_notes(released_lines)
+    if found is None:
+        return set()
+    return {note_key(note) for note in found[1]}
+
+
+def build_version_section(version: str, notes: list[list[str]]) -> list[str]:
+    section = [f"== {version}\n", "\n"]
+    for note in notes:
+        section.extend(note)
+    return section
+
+
+def build_unreleased_section(heading: list[str], notes: list[list[str]]) -> list[str]:
+    if not notes:
+        return []
+    section = list(heading)
+    for note in notes:
+        section.extend(note)
+    return section
+
+
+def move_released_notes(version: str, released_lines: list[str], target_lines: list[str]) -> list[str] | None:
+    """Return the updated target lines, or None when there is nothing to move."""
+    keys = released_keys(released_lines)
+    if not keys:
+        return None
+
+    preamble, sections = split_sections(target_lines, "== ")
+    if any(section_heading(section) == f"== {version}" for section in sections):
+        return None
+
+    result = list(preamble)
+    moved = False
+    for section in sections:
+        if section_heading(section) != UNRELEASED_HEADING:
+            result.extend(section)
+            continue
+
+        heading, notes = split_sections(section, "=== ")
+        shipped = [note for note in notes if note_key(note) in keys]
+        if not shipped:
+            result.extend(section)
+            continue
+
+        remaining = [note for note in notes if note_key(note) not in keys]
+        result.extend(build_unreleased_section(heading, remaining))
+        result.extend(build_version_section(version, shipped))
+        moved = True
+
+    return result if moved else None
+
+
+def main(argv: list[str]) -> int:
+    if len(argv) != 4:
+        print(__doc__, file=sys.stderr)
+        return 2
+
+    version, released_path, target_path = argv[1], Path(argv[2]), Path(argv[3])
+    released_lines = released_path.read_text().splitlines(keepends=True)
+    target_lines = target_path.read_text().splitlines(keepends=True)
+
+    updated = move_released_notes(version, released_lines, target_lines)
+    if updated is None:
+        print(f"Nothing to move for {version}: no unreleased upgrade notes shipped, or the section already exists.")
+        return 0
+
+    target_path.write_text("".join(updated))
+    print(f"Moved released upgrade notes under '== {version}' in {target_path}.")
+    return 0
+
+
+if __name__ == "__main__":
+    sys.exit(main(sys.argv))

+ 13 - 13
service/gen/olivetin/api/v1/olivetin.pb.go

@@ -2786,14 +2786,14 @@ func (*WhoAmIRequest) Descriptor() ([]byte, []int) {
 }
 }
 
 
 type WhoAmIResponse struct {
 type WhoAmIResponse struct {
-	state             protoimpl.MessageState `protogen:"open.v1"`
-	AuthenticatedUser string                 `protobuf:"bytes,1,opt,name=authenticated_user,json=authenticatedUser,proto3" json:"authenticated_user,omitempty"`
-	Usergroup         string                 `protobuf:"bytes,2,opt,name=usergroup,proto3" json:"usergroup,omitempty"`
-	Provider          string                 `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
-	Acls              []string               `protobuf:"bytes,4,rep,name=acls,proto3" json:"acls,omitempty"`
-	Sid               string                 `protobuf:"bytes,5,opt,name=sid,proto3" json:"sid,omitempty"`
-	unknownFields     protoimpl.UnknownFields
-	sizeCache         protoimpl.SizeCache
+	state              protoimpl.MessageState `protogen:"open.v1"`
+	AuthenticatedUser  string                 `protobuf:"bytes,1,opt,name=authenticated_user,json=authenticatedUser,proto3" json:"authenticated_user,omitempty"`
+	Usergroup          string                 `protobuf:"bytes,2,opt,name=usergroup,proto3" json:"usergroup,omitempty"`
+	Provider           string                 `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
+	Acls               []string               `protobuf:"bytes,4,rep,name=acls,proto3" json:"acls,omitempty"`
+	SessionFingerprint string                 `protobuf:"bytes,6,opt,name=session_fingerprint,json=sessionFingerprint,proto3" json:"session_fingerprint,omitempty"`
+	unknownFields      protoimpl.UnknownFields
+	sizeCache          protoimpl.SizeCache
 }
 }
 
 
 func (x *WhoAmIResponse) Reset() {
 func (x *WhoAmIResponse) Reset() {
@@ -2854,9 +2854,9 @@ func (x *WhoAmIResponse) GetAcls() []string {
 	return nil
 	return nil
 }
 }
 
 
-func (x *WhoAmIResponse) GetSid() string {
+func (x *WhoAmIResponse) GetSessionFingerprint() string {
 	if x != nil {
 	if x != nil {
-		return x.Sid
+		return x.SessionFingerprint
 	}
 	}
 	return ""
 	return ""
 }
 }
@@ -5399,13 +5399,13 @@ const file_olivetin_api_v1_olivetin_proto_rawDesc = "" +
 	"\x17ExecutionStatusResponse\x126\n" +
 	"\x17ExecutionStatusResponse\x126\n" +
 	"\tlog_entry\x18\x01 \x01(\v2\x19.olivetin.api.v1.LogEntryR\blogEntry\x12X\n" +
 	"\tlog_entry\x18\x01 \x01(\v2\x19.olivetin.api.v1.LogEntryR\blogEntry\x12X\n" +
 	"\x12back_to_dashboards\x18\x02 \x03(\v2*.olivetin.api.v1.DashboardNavigationTargetR\x10backToDashboards\"\x0f\n" +
 	"\x12back_to_dashboards\x18\x02 \x03(\v2*.olivetin.api.v1.DashboardNavigationTargetR\x10backToDashboards\"\x0f\n" +
-	"\rWhoAmIRequest\"\x9f\x01\n" +
+	"\rWhoAmIRequest\"\xc9\x01\n" +
 	"\x0eWhoAmIResponse\x12-\n" +
 	"\x0eWhoAmIResponse\x12-\n" +
 	"\x12authenticated_user\x18\x01 \x01(\tR\x11authenticatedUser\x12\x1c\n" +
 	"\x12authenticated_user\x18\x01 \x01(\tR\x11authenticatedUser\x12\x1c\n" +
 	"\tusergroup\x18\x02 \x01(\tR\tusergroup\x12\x1a\n" +
 	"\tusergroup\x18\x02 \x01(\tR\tusergroup\x12\x1a\n" +
 	"\bprovider\x18\x03 \x01(\tR\bprovider\x12\x12\n" +
 	"\bprovider\x18\x03 \x01(\tR\bprovider\x12\x12\n" +
-	"\x04acls\x18\x04 \x03(\tR\x04acls\x12\x10\n" +
-	"\x03sid\x18\x05 \x01(\tR\x03sid\"\x1a\n" +
+	"\x04acls\x18\x04 \x03(\tR\x04acls\x12/\n" +
+	"\x13session_fingerprint\x18\x06 \x01(\tR\x12sessionFingerprintJ\x04\b\x05\x10\x06R\x03sid\"\x1a\n" +
 	"\x18ServerDiagnosticsRequest\"1\n" +
 	"\x18ServerDiagnosticsRequest\"1\n" +
 	"\x19ServerDiagnosticsResponse\x12\x14\n" +
 	"\x19ServerDiagnosticsResponse\x12\x14\n" +
 	"\x05alert\x18\x01 \x01(\tR\x05alert\"\x11\n" +
 	"\x05alert\x18\x01 \x01(\tR\x05alert\"\x11\n" +

+ 28 - 30
service/go.mod

@@ -9,17 +9,17 @@ exclude github.com/alecthomas/go-check-sumtype v0.5.0
 
 
 require (
 require (
 	connectrpc.com/connect v1.21.1
 	connectrpc.com/connect v1.21.1
-	github.com/Masterminds/semver v1.5.0
-	github.com/MicahParks/keyfunc/v3 v3.9.1
-	github.com/PaesslerAG/jsonpath v0.1.1
+	github.com/MicahParks/jwkset v0.12.0
+	github.com/MicahParks/keyfunc/v3 v3.9.2
 	github.com/alexedwards/argon2id v1.0.0
 	github.com/alexedwards/argon2id v1.0.0
 	github.com/bufbuild/buf v1.75.0
 	github.com/bufbuild/buf v1.75.0
-	github.com/expr-lang/expr v1.17.8
+	github.com/expr-lang/expr v1.18.1
 	github.com/fsnotify/fsnotify v1.10.1
 	github.com/fsnotify/fsnotify v1.10.1
 	github.com/go-viper/mapstructure/v2 v2.5.0
 	github.com/go-viper/mapstructure/v2 v2.5.0
 	github.com/golang-jwt/jwt/v5 v5.3.1
 	github.com/golang-jwt/jwt/v5 v5.3.1
 	github.com/golangci/golangci-lint/v2 v2.15.0
 	github.com/golangci/golangci-lint/v2 v2.15.0
 	github.com/google/uuid v1.6.0
 	github.com/google/uuid v1.6.0
+	github.com/jamesread/armature-health/v2 v2.0.2
 	github.com/jamesread/golure v0.0.0-20261111213547-dc225fc15a30
 	github.com/jamesread/golure v0.0.0-20261111213547-dc225fc15a30
 	github.com/knadh/koanf/parsers/yaml v1.1.1
 	github.com/knadh/koanf/parsers/yaml v1.1.1
 	github.com/knadh/koanf/providers/env v1.1.0
 	github.com/knadh/koanf/providers/env v1.1.0
@@ -30,7 +30,9 @@ require (
 	github.com/robfig/cron/v3 v3.0.1
 	github.com/robfig/cron/v3 v3.0.1
 	github.com/sirupsen/logrus v1.10.2
 	github.com/sirupsen/logrus v1.10.2
 	github.com/stretchr/testify v1.12.1
 	github.com/stretchr/testify v1.12.1
+	github.com/theory/jsonpath v0.12.3
 	go.akshayshah.org/connectproto v0.6.0
 	go.akshayshah.org/connectproto v0.6.0
+	golang.org/x/mod v0.43.0
 	golang.org/x/oauth2 v0.38.0
 	golang.org/x/oauth2 v0.38.0
 	golang.org/x/sys v0.50.0
 	golang.org/x/sys v0.50.0
 	google.golang.org/protobuf v1.37.0-rc.1
 	google.golang.org/protobuf v1.37.0-rc.1
@@ -50,13 +52,13 @@ require (
 	buf.build/go/bufplugin v0.11.1 // indirect
 	buf.build/go/bufplugin v0.11.1 // indirect
 	buf.build/go/bufprivateusage v0.1.0 // indirect
 	buf.build/go/bufprivateusage v0.1.0 // indirect
 	buf.build/go/interrupt v1.1.0 // indirect
 	buf.build/go/interrupt v1.1.0 // indirect
-	buf.build/go/protovalidate v1.4.0 // indirect
+	buf.build/go/protovalidate v1.4.1 // indirect
 	buf.build/go/protoyaml v0.8.0 // indirect
 	buf.build/go/protoyaml v0.8.0 // indirect
 	buf.build/go/spdx v0.3.0 // indirect
 	buf.build/go/spdx v0.3.0 // indirect
 	buf.build/go/standard v0.1.1-0.20260325175353-2b287e071df5 // indirect
 	buf.build/go/standard v0.1.1-0.20260325175353-2b287e071df5 // indirect
-	cel.dev/cel-go v0.33.2 // indirect
+	cel.dev/cel-go v0.33.4 // indirect
 	cel.dev/expr v0.26.0 // indirect
 	cel.dev/expr v0.26.0 // indirect
-	charm.land/lipgloss/v2 v2.1.0 // indirect
+	charm.land/lipgloss/v2 v2.1.1 // indirect
 	codeberg.org/chavacava/garif v0.2.1 // indirect
 	codeberg.org/chavacava/garif v0.2.1 // indirect
 	codeberg.org/polyfloyd/go-errorlint v1.9.1 // indirect
 	codeberg.org/polyfloyd/go-errorlint v1.9.1 // indirect
 	connectrpc.com/connect/v2 v2.0.2 // indirect
 	connectrpc.com/connect/v2 v2.0.2 // indirect
@@ -75,11 +77,9 @@ require (
 	github.com/ClickHouse/clickhouse-go-linter v1.2.1 // indirect
 	github.com/ClickHouse/clickhouse-go-linter v1.2.1 // indirect
 	github.com/Djarvur/go-err113 v0.1.1 // indirect
 	github.com/Djarvur/go-err113 v0.1.1 // indirect
 	github.com/Masterminds/semver/v3 v3.5.0 // indirect
 	github.com/Masterminds/semver/v3 v3.5.0 // indirect
-	github.com/MicahParks/jwkset v0.11.4 // indirect
 	github.com/Microsoft/go-winio v0.6.4 // indirect
 	github.com/Microsoft/go-winio v0.6.4 // indirect
 	github.com/MirrexOne/unqueryvet v1.5.4 // indirect
 	github.com/MirrexOne/unqueryvet v1.5.4 // indirect
 	github.com/OpenPeeDeeP/depguard/v2 v2.3.0 // indirect
 	github.com/OpenPeeDeeP/depguard/v2 v2.3.0 // indirect
-	github.com/PaesslerAG/gval v1.2.4 // indirect
 	github.com/alecthomas/chroma/v2 v2.27.0 // indirect
 	github.com/alecthomas/chroma/v2 v2.27.0 // indirect
 	github.com/alecthomas/go-check-sumtype v0.5.1-0.20260828200218-ae6904d28606 // indirect
 	github.com/alecthomas/go-check-sumtype v0.5.1-0.20260828200218-ae6904d28606 // indirect
 	github.com/alexkohler/nakedret/v2 v2.0.6 // indirect
 	github.com/alexkohler/nakedret/v2 v2.0.6 // indirect
@@ -98,7 +98,7 @@ require (
 	github.com/breml/bidichk v0.3.4 // indirect
 	github.com/breml/bidichk v0.3.4 // indirect
 	github.com/breml/errchkjson v0.4.2 // indirect
 	github.com/breml/errchkjson v0.4.2 // indirect
 	github.com/bufbuild/protocompile v0.14.2-0.20261020145055-56248e843b50 // indirect
 	github.com/bufbuild/protocompile v0.14.2-0.20261020145055-56248e843b50 // indirect
-	github.com/bufbuild/protoplugin v0.0.0-20260414125817-25d1d281b46b // indirect
+	github.com/bufbuild/protoplugin v0.0.0-20261123142728-952b4b12a941 // indirect
 	github.com/butuzov/ireturn v0.4.1 // indirect
 	github.com/butuzov/ireturn v0.4.1 // indirect
 	github.com/butuzov/mirror v1.3.3 // indirect
 	github.com/butuzov/mirror v1.3.3 // indirect
 	github.com/catenacyber/perfsprint v0.10.1 // indirect
 	github.com/catenacyber/perfsprint v0.10.1 // indirect
@@ -106,8 +106,8 @@ require (
 	github.com/cespare/xxhash/v2 v2.3.0 // indirect
 	github.com/cespare/xxhash/v2 v2.3.0 // indirect
 	github.com/charithe/durationcheck v0.0.11 // indirect
 	github.com/charithe/durationcheck v0.0.11 // indirect
 	github.com/charmbracelet/colorprofile v0.4.3 // indirect
 	github.com/charmbracelet/colorprofile v0.4.3 // indirect
-	github.com/charmbracelet/ultraviolet v0.0.0-20261023060817-a45b7c86333f // indirect
-	github.com/charmbracelet/x/ansi v0.11.9 // indirect
+	github.com/charmbracelet/ultraviolet v0.0.0-20261125122737-8ed499892fb4 // indirect
+	github.com/charmbracelet/x/ansi v0.11.10 // indirect
 	github.com/charmbracelet/x/term v0.2.2 // indirect
 	github.com/charmbracelet/x/term v0.2.2 // indirect
 	github.com/charmbracelet/x/termios v0.1.1 // indirect
 	github.com/charmbracelet/x/termios v0.1.1 // indirect
 	github.com/charmbracelet/x/windows v0.2.2 // indirect
 	github.com/charmbracelet/x/windows v0.2.2 // indirect
@@ -123,8 +123,8 @@ require (
 	github.com/dave/dst v0.28.0 // indirect
 	github.com/dave/dst v0.28.0 // indirect
 	github.com/denis-tingaikin/go-header v1.0.0 // indirect
 	github.com/denis-tingaikin/go-header v1.0.0 // indirect
 	github.com/distribution/reference v0.6.0 // indirect
 	github.com/distribution/reference v0.6.0 // indirect
-	github.com/dlclark/regexp2/v2 v2.13.0 // indirect
-	github.com/docker/cli v29.9.3+incompatible // indirect
+	github.com/dlclark/regexp2/v2 v2.13.2 // indirect
+	github.com/docker/cli v29.10.1+incompatible // indirect
 	github.com/docker/docker-credential-helpers v0.9.13 // indirect
 	github.com/docker/docker-credential-helpers v0.9.13 // indirect
 	github.com/docker/go-connections v0.8.2 // indirect
 	github.com/docker/go-connections v0.8.2 // indirect
 	github.com/docker/go-units v0.5.0 // indirect
 	github.com/docker/go-units v0.5.0 // indirect
@@ -181,7 +181,7 @@ require (
 	github.com/karamaru-alpha/copyloopvar v1.2.2 // indirect
 	github.com/karamaru-alpha/copyloopvar v1.2.2 // indirect
 	github.com/kisielk/errcheck v1.30.0 // indirect
 	github.com/kisielk/errcheck v1.30.0 // indirect
 	github.com/kkHAIKE/contextcheck v1.1.6 // indirect
 	github.com/kkHAIKE/contextcheck v1.1.6 // indirect
-	github.com/klauspost/compress v1.20.4 // indirect
+	github.com/klauspost/compress v1.20.5 // indirect
 	github.com/klauspost/pgzip v1.3.0 // indirect
 	github.com/klauspost/pgzip v1.3.0 // indirect
 	github.com/knadh/koanf/maps v0.1.3 // indirect
 	github.com/knadh/koanf/maps v0.1.3 // indirect
 	github.com/kulti/thelper v0.7.1 // indirect
 	github.com/kulti/thelper v0.7.1 // indirect
@@ -208,8 +208,8 @@ require (
 	github.com/mitchellh/go-homedir v1.1.0 // indirect
 	github.com/mitchellh/go-homedir v1.1.0 // indirect
 	github.com/mitchellh/reflectwalk v1.0.2 // indirect
 	github.com/mitchellh/reflectwalk v1.0.2 // indirect
 	github.com/moby/docker-image-spec v1.3.1 // indirect
 	github.com/moby/docker-image-spec v1.3.1 // indirect
-	github.com/moby/moby/api v1.56.1 // indirect
-	github.com/moby/moby/client v0.6.2 // indirect
+	github.com/moby/moby/api v1.57.0 // indirect
+	github.com/moby/moby/client v0.6.3 // indirect
 	github.com/moricho/tparallel v0.3.2 // indirect
 	github.com/moricho/tparallel v0.3.2 // indirect
 	github.com/muesli/cancelreader v0.2.2 // indirect
 	github.com/muesli/cancelreader v0.2.2 // indirect
 	github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
 	github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
@@ -221,10 +221,10 @@ require (
 	github.com/opencontainers/image-spec v1.1.1 // indirect
 	github.com/opencontainers/image-spec v1.1.1 // indirect
 	github.com/pandatix/go-abnf v0.5.5 // indirect
 	github.com/pandatix/go-abnf v0.5.5 // indirect
 	github.com/pelletier/go-toml/v2 v2.4.3 // indirect
 	github.com/pelletier/go-toml/v2 v2.4.3 // indirect
-	github.com/petermattis/goid v0.0.0-20261109124353-7cfa343ad0ab // indirect
+	github.com/petermattis/goid v0.0.0-20261125140513-578663ba5663 // indirect
 	github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
 	github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
 	github.com/prometheus/client_model v0.6.3 // indirect
 	github.com/prometheus/client_model v0.6.3 // indirect
-	github.com/prometheus/common v0.73.1 // indirect
+	github.com/prometheus/common v0.74.0 // indirect
 	github.com/prometheus/procfs v0.23.0 // indirect
 	github.com/prometheus/procfs v0.23.0 // indirect
 	github.com/quasilyte/go-ruleguard v0.4.5 // indirect
 	github.com/quasilyte/go-ruleguard v0.4.5 // indirect
 	github.com/quasilyte/go-ruleguard/dsl v0.3.23 // indirect
 	github.com/quasilyte/go-ruleguard/dsl v0.3.23 // indirect
@@ -232,7 +232,7 @@ require (
 	github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect
 	github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect
 	github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect
 	github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect
 	github.com/quic-go/qpack v0.6.0 // indirect
 	github.com/quic-go/qpack v0.6.0 // indirect
-	github.com/quic-go/quic-go v0.65.0 // indirect
+	github.com/quic-go/quic-go v0.66.0 // indirect
 	github.com/raeperd/recvcheck v0.3.2 // indirect
 	github.com/raeperd/recvcheck v0.3.2 // indirect
 	github.com/rivo/uniseg v0.4.7 // indirect
 	github.com/rivo/uniseg v0.4.7 // indirect
 	github.com/rogpeppe/go-internal v1.16.0 // indirect
 	github.com/rogpeppe/go-internal v1.16.0 // indirect
@@ -247,10 +247,9 @@ require (
 	github.com/sashamelentyev/interfacebloat v1.1.0 // indirect
 	github.com/sashamelentyev/interfacebloat v1.1.0 // indirect
 	github.com/sashamelentyev/usestdlibvars v1.29.0 // indirect
 	github.com/sashamelentyev/usestdlibvars v1.29.0 // indirect
 	github.com/securego/gosec/v2 v2.30.0 // indirect
 	github.com/securego/gosec/v2 v2.30.0 // indirect
-	github.com/shopspring/decimal v1.6.0 // indirect
 	github.com/sivchari/containedctx v1.0.3 // indirect
 	github.com/sivchari/containedctx v1.0.3 // indirect
 	github.com/sonatard/noctx v0.5.1 // indirect
 	github.com/sonatard/noctx v0.5.1 // indirect
-	github.com/sourcegraph/go-diff v0.9.0 // indirect
+	github.com/sourcegraph/go-diff v0.10.0 // indirect
 	github.com/spf13/afero v1.15.0 // indirect
 	github.com/spf13/afero v1.15.0 // indirect
 	github.com/spf13/cast v1.10.0 // indirect
 	github.com/spf13/cast v1.10.0 // indirect
 	github.com/spf13/cobra v1.10.2 // indirect
 	github.com/spf13/cobra v1.10.2 // indirect
@@ -284,7 +283,7 @@ require (
 	go.lsp.dev/jsonrpc2 v1.0.1 // indirect
 	go.lsp.dev/jsonrpc2 v1.0.1 // indirect
 	go.lsp.dev/protocol v1.0.1 // indirect
 	go.lsp.dev/protocol v1.0.1 // indirect
 	go.lsp.dev/uri v1.0.1 // indirect
 	go.lsp.dev/uri v1.0.1 // indirect
-	go.opentelemetry.io/auto/sdk v1.2.1 // indirect
+	go.opentelemetry.io/auto/sdk v1.2.2 // indirect
 	go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0 // indirect
 	go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0 // indirect
 	go.opentelemetry.io/otel v1.47.0 // indirect
 	go.opentelemetry.io/otel v1.47.0 // indirect
 	go.opentelemetry.io/otel/log v1.47.0 // indirect
 	go.opentelemetry.io/otel/log v1.47.0 // indirect
@@ -295,17 +294,16 @@ require (
 	go.uber.org/zap v1.28.0 // indirect
 	go.uber.org/zap v1.28.0 // indirect
 	go.yaml.in/yaml/v3 v3.0.6 // indirect
 	go.yaml.in/yaml/v3 v3.0.6 // indirect
 	golang.org/x/crypto v0.59.0 // indirect
 	golang.org/x/crypto v0.59.0 // indirect
-	golang.org/x/exp v0.0.0-20261109185158-a52e3aef5920 // indirect
-	golang.org/x/exp/typeparams v0.0.0-20261109185158-a52e3aef5920 // indirect
-	golang.org/x/mod v0.43.0 // indirect
-	golang.org/x/net v0.62.0 // indirect
+	golang.org/x/exp v0.0.0-20261124000051-d6646c509b6d // indirect
+	golang.org/x/exp/typeparams v0.0.0-20261124000051-d6646c509b6d // indirect
+	golang.org/x/net v0.63.0 // indirect
 	golang.org/x/sync v0.25.0 // indirect
 	golang.org/x/sync v0.25.0 // indirect
 	golang.org/x/term v0.48.0 // indirect
 	golang.org/x/term v0.48.0 // indirect
 	golang.org/x/text v0.44.0 // indirect
 	golang.org/x/text v0.44.0 // indirect
 	golang.org/x/time v0.16.0 // indirect
 	golang.org/x/time v0.16.0 // indirect
-	golang.org/x/tools v0.52.1-0.20261106145633-d407941a339a // indirect
-	google.golang.org/genproto/googleapis/api v0.0.0-20261110000943-09e21b237f2c // indirect
-	google.golang.org/genproto/googleapis/rpc v0.0.0-20261110000943-09e21b237f2c // indirect
+	golang.org/x/tools v0.53.0 // indirect
+	google.golang.org/genproto/googleapis/api v0.0.0-20261123191846-1e707ab9fbc2 // indirect
+	google.golang.org/genproto/googleapis/rpc v0.0.0-20261123191846-1e707ab9fbc2 // indirect
 	honnef.co/go/tools v0.8.2 // indirect
 	honnef.co/go/tools v0.8.2 // indirect
 	mvdan.cc/gofumpt v0.12.0 // indirect
 	mvdan.cc/gofumpt v0.12.0 // indirect
 	mvdan.cc/unparam v0.0.0-20261102141913-394cd0a56cd5 // indirect
 	mvdan.cc/unparam v0.0.0-20261102141913-394cd0a56cd5 // indirect

+ 74 - 65
service/go.sum

@@ -22,20 +22,20 @@ buf.build/go/bufprivateusage v0.1.0 h1:SzCoCcmzS3zyXHEXHeSQhGI7OTkgtljoknLzsUz9G
 buf.build/go/bufprivateusage v0.1.0/go.mod h1:GlCCJ3VVF7EqqU0CoRmo1FzAwwaKymEWSr+ty69xU5w=
 buf.build/go/bufprivateusage v0.1.0/go.mod h1:GlCCJ3VVF7EqqU0CoRmo1FzAwwaKymEWSr+ty69xU5w=
 buf.build/go/interrupt v1.1.0 h1:olBuhgv9Sav4/9pkSLoxgiOsZDgM5VhRhvRpn3DL0lE=
 buf.build/go/interrupt v1.1.0 h1:olBuhgv9Sav4/9pkSLoxgiOsZDgM5VhRhvRpn3DL0lE=
 buf.build/go/interrupt v1.1.0/go.mod h1:ql56nXPG1oHlvZa6efNC7SKAQ/tUjS6z0mhJl0gyeRM=
 buf.build/go/interrupt v1.1.0/go.mod h1:ql56nXPG1oHlvZa6efNC7SKAQ/tUjS6z0mhJl0gyeRM=
-buf.build/go/protovalidate v1.4.0 h1:UjLrYbt5VX7+TMOs2+pG5FhZhIG1mSfK4EIopbb4LcM=
-buf.build/go/protovalidate v1.4.0/go.mod h1:8vJfzNT6NIG2qm3uFsJDXMlRmG+bQJzbcIn1Aa0vPGs=
+buf.build/go/protovalidate v1.4.1 h1:G/AHf1EKrY9E0gXXxkPavEppwZe/7oAVq4rBbSWu0hQ=
+buf.build/go/protovalidate v1.4.1/go.mod h1:rwfPjgeCqK+DsDsBtLUNT1l5uoXl/0KFA632z3wlyCQ=
 buf.build/go/protoyaml v0.8.0 h1:n6q7ygZTZo4kLzKXsymkiLharUgHfd507Ymi4t5xhY8=
 buf.build/go/protoyaml v0.8.0 h1:n6q7ygZTZo4kLzKXsymkiLharUgHfd507Ymi4t5xhY8=
 buf.build/go/protoyaml v0.8.0/go.mod h1:3XRN/7BQCQNlhIgwzE46QTHLuUScH2d76lAFLCQEFWo=
 buf.build/go/protoyaml v0.8.0/go.mod h1:3XRN/7BQCQNlhIgwzE46QTHLuUScH2d76lAFLCQEFWo=
 buf.build/go/spdx v0.3.0 h1:vVxy1W0x1n3sqhZmJ7VZ/UtzNwK3xm0QowGGtwric4Y=
 buf.build/go/spdx v0.3.0 h1:vVxy1W0x1n3sqhZmJ7VZ/UtzNwK3xm0QowGGtwric4Y=
 buf.build/go/spdx v0.3.0/go.mod h1:bXdwQFem9Si3nsbNy8aJKGPoaPi5DKwdeEp5/ArZ6w8=
 buf.build/go/spdx v0.3.0/go.mod h1:bXdwQFem9Si3nsbNy8aJKGPoaPi5DKwdeEp5/ArZ6w8=
 buf.build/go/standard v0.1.1-0.20260325175353-2b287e071df5 h1:njYKSWoLiq2i5O7y2bPPU2Yzp7iAU0Wk9KJ2OoAhNiU=
 buf.build/go/standard v0.1.1-0.20260325175353-2b287e071df5 h1:njYKSWoLiq2i5O7y2bPPU2Yzp7iAU0Wk9KJ2OoAhNiU=
 buf.build/go/standard v0.1.1-0.20260325175353-2b287e071df5/go.mod h1:DQmodNT9EHX94WzUaWiZK+/4EaFa/xZTc1gzfCxZVXU=
 buf.build/go/standard v0.1.1-0.20260325175353-2b287e071df5/go.mod h1:DQmodNT9EHX94WzUaWiZK+/4EaFa/xZTc1gzfCxZVXU=
-cel.dev/cel-go v0.33.2 h1:eAcEdBguc6AFrGbPOyE0g168Uey4kKFW9J6qsBLSeMU=
-cel.dev/cel-go v0.33.2/go.mod h1:DnVip7tpJSsgZymwfT+m1tnEVy3ivAjSMXPx12YrMkU=
+cel.dev/cel-go v0.33.4 h1:9hd5BRPQZwj81qOddEXh0WhE1N3shkG3ad89pSqk+iU=
+cel.dev/cel-go v0.33.4/go.mod h1:DnVip7tpJSsgZymwfT+m1tnEVy3ivAjSMXPx12YrMkU=
 cel.dev/expr v0.26.0 h1:oLXvOF0jiYA5A/tmzU91pLEWZkKynhLJlC9Gw7PrKvs=
 cel.dev/expr v0.26.0 h1:oLXvOF0jiYA5A/tmzU91pLEWZkKynhLJlC9Gw7PrKvs=
 cel.dev/expr v0.26.0/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4=
 cel.dev/expr v0.26.0/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4=
-charm.land/lipgloss/v2 v2.1.0 h1:RLCNLhSQST+NPOmvUSbRWZ3UFOXsf3ZXFmJ5E/2tHEU=
-charm.land/lipgloss/v2 v2.1.0/go.mod h1:wwfOgrNqUA9yjL8nmG6BIO0qQnmkEgJ8ISptbme83gI=
+charm.land/lipgloss/v2 v2.1.1 h1:F+vKWis9Kz3MFRsbICSDFtT1ZwVL+8f+36Dtg+OpKwc=
+charm.land/lipgloss/v2 v2.1.1/go.mod h1:k79y/56yThpkJvbwyrcHr8MyZF42e84Q5fW9Ibu6LFc=
 codeberg.org/chavacava/garif v0.2.1 h1:K9oYxSlvlXrHXyW26Z4q61bTpJDo1wbvXcYKar/F/LM=
 codeberg.org/chavacava/garif v0.2.1 h1:K9oYxSlvlXrHXyW26Z4q61bTpJDo1wbvXcYKar/F/LM=
 codeberg.org/chavacava/garif v0.2.1/go.mod h1:oHnDSmc0f9K1MeE+MQD/yjkiIB5Xsn5y3S9Dg96Xk84=
 codeberg.org/chavacava/garif v0.2.1/go.mod h1:oHnDSmc0f9K1MeE+MQD/yjkiIB5Xsn5y3S9Dg96Xk84=
 codeberg.org/polyfloyd/go-errorlint v1.9.1 h1:4/UVu3tmmRFvO0biLkgU/YanLVLTfOgRRBq3zziOj2o=
 codeberg.org/polyfloyd/go-errorlint v1.9.1 h1:4/UVu3tmmRFvO0biLkgU/YanLVLTfOgRRBq3zziOj2o=
@@ -54,6 +54,8 @@ dev.gaijin.team/go/exhaustruct/v5 v5.2.0 h1:HZB49Fshn8qHJCi9VzYtrcnR1jbLteRHXfnQ
 dev.gaijin.team/go/exhaustruct/v5 v5.2.0/go.mod h1:5IshpqhgGdKIrF8lBmi3M6YKmI7T3hMzAL9nrflko88=
 dev.gaijin.team/go/exhaustruct/v5 v5.2.0/go.mod h1:5IshpqhgGdKIrF8lBmi3M6YKmI7T3hMzAL9nrflko88=
 dev.gaijin.team/go/golib v0.9.0 h1:6cA78yIjdgimPQgaf0W9oHhaFDHxeOyhf2wmdRoDJTc=
 dev.gaijin.team/go/golib v0.9.0 h1:6cA78yIjdgimPQgaf0W9oHhaFDHxeOyhf2wmdRoDJTc=
 dev.gaijin.team/go/golib v0.9.0/go.mod h1:J6xujTcJ4o8QcgApNjGTxpz2tg9uNjrwFJQczoM0VYE=
 dev.gaijin.team/go/golib v0.9.0/go.mod h1:J6xujTcJ4o8QcgApNjGTxpz2tg9uNjrwFJQczoM0VYE=
+filippo.io/edwards25519 v1.1.1 h1:YpjwWWlNmGIDyXOn8zLzqiD+9TyIlPhGFG96P39uBpw=
+filippo.io/edwards25519 v1.1.1/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
 github.com/4meepo/tagalign v1.4.4 h1:052JDGj2pBORc6NkD30dDXpsUpoYszDeUwr9/5YZuVA=
 github.com/4meepo/tagalign v1.4.4 h1:052JDGj2pBORc6NkD30dDXpsUpoYszDeUwr9/5YZuVA=
 github.com/4meepo/tagalign v1.4.4/go.mod h1:00WwRjiuSbrRJnSVeGWPLp2epS5Q/l4UEy0apLLS37c=
 github.com/4meepo/tagalign v1.4.4/go.mod h1:00WwRjiuSbrRJnSVeGWPLp2epS5Q/l4UEy0apLLS37c=
 github.com/Abirdcfly/dupword v0.1.8 h1:SrhcUuGsROBuChFxHALRYzyyPODWn9zwghmzPvD9Cd8=
 github.com/Abirdcfly/dupword v0.1.8 h1:SrhcUuGsROBuChFxHALRYzyyPODWn9zwghmzPvD9Cd8=
@@ -74,26 +76,18 @@ github.com/ClickHouse/clickhouse-go-linter v1.2.1 h1:zGEKIyd5YL08ieWG/LOUmlau2Dx
 github.com/ClickHouse/clickhouse-go-linter v1.2.1/go.mod h1:pLorS7ffPTfuUV9M0SJgfHA/h/WQPQUk2FWG9x74cQ4=
 github.com/ClickHouse/clickhouse-go-linter v1.2.1/go.mod h1:pLorS7ffPTfuUV9M0SJgfHA/h/WQPQUk2FWG9x74cQ4=
 github.com/Djarvur/go-err113 v0.1.1 h1:eHfopDqXRwAi+YmCUas75ZE0+hoBHJ2GQNLYRSxao4g=
 github.com/Djarvur/go-err113 v0.1.1 h1:eHfopDqXRwAi+YmCUas75ZE0+hoBHJ2GQNLYRSxao4g=
 github.com/Djarvur/go-err113 v0.1.1/go.mod h1:IaWJdYFLg76t2ihfflPZnM1LIQszWOsFDh2hhhAVF6k=
 github.com/Djarvur/go-err113 v0.1.1/go.mod h1:IaWJdYFLg76t2ihfflPZnM1LIQszWOsFDh2hhhAVF6k=
-github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww=
-github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
 github.com/Masterminds/semver/v3 v3.5.0 h1:kQceYJfbupGfZOKZQg0kou0DgAKhzDg2NZPAwZ/2OOE=
 github.com/Masterminds/semver/v3 v3.5.0 h1:kQceYJfbupGfZOKZQg0kou0DgAKhzDg2NZPAwZ/2OOE=
 github.com/Masterminds/semver/v3 v3.5.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
 github.com/Masterminds/semver/v3 v3.5.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
-github.com/MicahParks/jwkset v0.11.4 h1:sm6pqlEpa1YDu82Hoxho/O+Y291lPcksNImVIsV74gg=
-github.com/MicahParks/jwkset v0.11.4/go.mod h1:U2oRhRaLgDCLjtpGL2GseNKGmZtLs/3O7p+OZaL5vo0=
-github.com/MicahParks/keyfunc/v3 v3.9.1 h1:10dlh2kS3kRtfj5x2bokCxLhTpmIpf3WtsvBdJ2TfOo=
-github.com/MicahParks/keyfunc/v3 v3.9.1/go.mod h1:h8DMhdulFa3yjG1q74FqaehNDekB18HrVCXPl9Raa4I=
+github.com/MicahParks/jwkset v0.12.0 h1:d/S70TKDneLrBhn9XvyKaKDp/UnDkU1kacVLHytECA4=
+github.com/MicahParks/jwkset v0.12.0/go.mod h1:U2oRhRaLgDCLjtpGL2GseNKGmZtLs/3O7p+OZaL5vo0=
+github.com/MicahParks/keyfunc/v3 v3.9.2 h1:yWvqmCIWMnyp8tJFR3VmNQRBGmNRJ3cMvN9bcG9Bfbc=
+github.com/MicahParks/keyfunc/v3 v3.9.2/go.mod h1:h8DMhdulFa3yjG1q74FqaehNDekB18HrVCXPl9Raa4I=
 github.com/Microsoft/go-winio v0.6.4 h1:kJF2pamtYCWXf0xAT8sAkwKC0pMl2HYBrRPHAqyUc+g=
 github.com/Microsoft/go-winio v0.6.4 h1:kJF2pamtYCWXf0xAT8sAkwKC0pMl2HYBrRPHAqyUc+g=
 github.com/Microsoft/go-winio v0.6.4/go.mod h1:1xl5JXG4ze/m74GH6Dc4Mwxfc3VL5siRVQjIAlHH07U=
 github.com/Microsoft/go-winio v0.6.4/go.mod h1:1xl5JXG4ze/m74GH6Dc4Mwxfc3VL5siRVQjIAlHH07U=
 github.com/MirrexOne/unqueryvet v1.5.4 h1:38QOxShO7JmMWT+eCdDMbcUgGCOeJphVkzzRgyLJgsQ=
 github.com/MirrexOne/unqueryvet v1.5.4 h1:38QOxShO7JmMWT+eCdDMbcUgGCOeJphVkzzRgyLJgsQ=
 github.com/MirrexOne/unqueryvet v1.5.4/go.mod h1:fs9Zq6eh1LRIhsDIsxf9PONVUjYdFHdtkHIgZdJnyPU=
 github.com/MirrexOne/unqueryvet v1.5.4/go.mod h1:fs9Zq6eh1LRIhsDIsxf9PONVUjYdFHdtkHIgZdJnyPU=
 github.com/OpenPeeDeeP/depguard/v2 v2.3.0 h1:AzcyrJSVScO5DztG8NB5XSKNeuxqgFsLQf+sTXEbF8w=
 github.com/OpenPeeDeeP/depguard/v2 v2.3.0 h1:AzcyrJSVScO5DztG8NB5XSKNeuxqgFsLQf+sTXEbF8w=
 github.com/OpenPeeDeeP/depguard/v2 v2.3.0/go.mod h1:s0C87mbhDHS0xxt0K9kkxb+w+W1mdvgUyajfFs4AcfI=
 github.com/OpenPeeDeeP/depguard/v2 v2.3.0/go.mod h1:s0C87mbhDHS0xxt0K9kkxb+w+W1mdvgUyajfFs4AcfI=
-github.com/PaesslerAG/gval v1.0.0/go.mod h1:y/nm5yEyTeX6av0OfKJNp9rBNj2XrGhAf5+v24IBN1I=
-github.com/PaesslerAG/gval v1.2.4 h1:rhX7MpjJlcxYwL2eTTYIOBUyEKZ+A96T9vQySWkVUiU=
-github.com/PaesslerAG/gval v1.2.4/go.mod h1:XRFLwvmkTEdYziLdaCeCa5ImcGVrfQbeNUbVR+C6xac=
-github.com/PaesslerAG/jsonpath v0.1.0/go.mod h1:4BzmtoM/PI8fPO4aQGIusjGxGir2BzcV0grWtFzq1Y8=
-github.com/PaesslerAG/jsonpath v0.1.1 h1:c1/AToHQMVsduPAa4Vh6xp2U0evy4t8SWp8imEsylIk=
-github.com/PaesslerAG/jsonpath v0.1.1/go.mod h1:lVboNxFGal/VwW6d9JzIy56bUsYAP6tH/x80vjnCseY=
 github.com/alecthomas/assert/v2 v2.11.0 h1:2Q9r3ki8+JYXvGsDyBXwH3LcJ+WK5D0gc5E8vS6K3D0=
 github.com/alecthomas/assert/v2 v2.11.0 h1:2Q9r3ki8+JYXvGsDyBXwH3LcJ+WK5D0gc5E8vS6K3D0=
 github.com/alecthomas/assert/v2 v2.11.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
 github.com/alecthomas/assert/v2 v2.11.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
 github.com/alecthomas/chroma/v2 v2.27.0 h1:FodwmyOBgJULFYmDqibcp9pvfDLWdtPRh9v/r5BXYZs=
 github.com/alecthomas/chroma/v2 v2.27.0 h1:FodwmyOBgJULFYmDqibcp9pvfDLWdtPRh9v/r5BXYZs=
@@ -142,8 +136,8 @@ github.com/bufbuild/buf v1.75.0 h1:FvUEktoR5wduFOq1j+HmOswL0PM4pjDivLkJ1iwRztg=
 github.com/bufbuild/buf v1.75.0/go.mod h1:PMlP1QzE1ddPbaL3vW5cac0WKAvvPPipBTu/1QHvxOI=
 github.com/bufbuild/buf v1.75.0/go.mod h1:PMlP1QzE1ddPbaL3vW5cac0WKAvvPPipBTu/1QHvxOI=
 github.com/bufbuild/protocompile v0.14.2-0.20261020145055-56248e843b50 h1:JjQ4WXOPRj7b404ouvTJNdYHi2Ib4Bfl5VoSBluKbGs=
 github.com/bufbuild/protocompile v0.14.2-0.20261020145055-56248e843b50 h1:JjQ4WXOPRj7b404ouvTJNdYHi2Ib4Bfl5VoSBluKbGs=
 github.com/bufbuild/protocompile v0.14.2-0.20261020145055-56248e843b50/go.mod h1:mcyF/iWO0TSVh4LvVBH5gJO1N9pQyooNy+XR4tNlbO0=
 github.com/bufbuild/protocompile v0.14.2-0.20261020145055-56248e843b50/go.mod h1:mcyF/iWO0TSVh4LvVBH5gJO1N9pQyooNy+XR4tNlbO0=
-github.com/bufbuild/protoplugin v0.0.0-20260414125817-25d1d281b46b h1:b7wvo9ZhjLzCp7tGbOUMvgtYTnd33zGSAmMxcdxMnhQ=
-github.com/bufbuild/protoplugin v0.0.0-20260414125817-25d1d281b46b/go.mod h1:c5D8gWRIZ2HLWO3gXYTtUfw/hbJyD8xikv2ooPxnklQ=
+github.com/bufbuild/protoplugin v0.0.0-20261123142728-952b4b12a941 h1:24ue9PncyN7R5MAniQON6ZtVHWTRlwPqwJvSIYHfCjY=
+github.com/bufbuild/protoplugin v0.0.0-20261123142728-952b4b12a941/go.mod h1:c5D8gWRIZ2HLWO3gXYTtUfw/hbJyD8xikv2ooPxnklQ=
 github.com/butuzov/ireturn v0.4.1 h1:vWb3NO4t77iku/sjCQ/2pHTQeOmxEhjIriJqRLg1Y+I=
 github.com/butuzov/ireturn v0.4.1 h1:vWb3NO4t77iku/sjCQ/2pHTQeOmxEhjIriJqRLg1Y+I=
 github.com/butuzov/ireturn v0.4.1/go.mod h1:q+DXKzTDV5guNuXLnIab9fKXizTn2miZHLhxH7V/GB4=
 github.com/butuzov/ireturn v0.4.1/go.mod h1:q+DXKzTDV5guNuXLnIab9fKXizTn2miZHLhxH7V/GB4=
 github.com/butuzov/mirror v1.3.3 h1:v0RsWBhfFc1RQqE/f3sHpSttKDtodFn0gFmtYyD4/hA=
 github.com/butuzov/mirror v1.3.3 h1:v0RsWBhfFc1RQqE/f3sHpSttKDtodFn0gFmtYyD4/hA=
@@ -158,10 +152,10 @@ github.com/charithe/durationcheck v0.0.11 h1:g1/EX1eIiKS57NTWsYtHDZ/APfeXKhye1Di
 github.com/charithe/durationcheck v0.0.11/go.mod h1:x5iZaixRNl8ctbM+3B2RrPG5t856TxRyVQEnbIEM2X4=
 github.com/charithe/durationcheck v0.0.11/go.mod h1:x5iZaixRNl8ctbM+3B2RrPG5t856TxRyVQEnbIEM2X4=
 github.com/charmbracelet/colorprofile v0.4.3 h1:QPa1IWkYI+AOB+fE+mg/5/4HRMZcaXex9t5KX76i20Q=
 github.com/charmbracelet/colorprofile v0.4.3 h1:QPa1IWkYI+AOB+fE+mg/5/4HRMZcaXex9t5KX76i20Q=
 github.com/charmbracelet/colorprofile v0.4.3/go.mod h1:/zT4BhpD5aGFpqQQqw7a+VtHCzu+zrQtt1zhMt9mR4Q=
 github.com/charmbracelet/colorprofile v0.4.3/go.mod h1:/zT4BhpD5aGFpqQQqw7a+VtHCzu+zrQtt1zhMt9mR4Q=
-github.com/charmbracelet/ultraviolet v0.0.0-20261023060817-a45b7c86333f h1:D2JpB65eehsnkEwEG401dMBSNYtTDgvKXZZSl7ZCxWI=
-github.com/charmbracelet/ultraviolet v0.0.0-20261023060817-a45b7c86333f/go.mod h1:aJDVk+WOVM1K04rdc/71PMPoUGfjxjhvXfP3Pjz1Zio=
-github.com/charmbracelet/x/ansi v0.11.9 h1:kIrqLBxtTVbLyyHO2Evoi93EjQo1mylWmpNEsfPxXAM=
-github.com/charmbracelet/x/ansi v0.11.9/go.mod h1:DG/hpOnaI2QJ/KMMqLL2h0KVhluuJLazf8973P+Vy5w=
+github.com/charmbracelet/ultraviolet v0.0.0-20261125122737-8ed499892fb4 h1:+qSOCXQdH9dkIYGlh21aTN5ee1+KCZAWtrRNTwyLTjI=
+github.com/charmbracelet/ultraviolet v0.0.0-20261125122737-8ed499892fb4/go.mod h1:aJDVk+WOVM1K04rdc/71PMPoUGfjxjhvXfP3Pjz1Zio=
+github.com/charmbracelet/x/ansi v0.11.10 h1:GjcX3+rAk+8wDX/jY0XwrZstxkjRcLkYU3TvwzZWiRA=
+github.com/charmbracelet/x/ansi v0.11.10/go.mod h1:DG/hpOnaI2QJ/KMMqLL2h0KVhluuJLazf8973P+Vy5w=
 github.com/charmbracelet/x/term v0.2.2 h1:xVRT/S2ZcKdhhOuSP4t5cLi5o+JxklsoEObBSgfgZRk=
 github.com/charmbracelet/x/term v0.2.2 h1:xVRT/S2ZcKdhhOuSP4t5cLi5o+JxklsoEObBSgfgZRk=
 github.com/charmbracelet/x/term v0.2.2/go.mod h1:kF8CY5RddLWrsgVwpw4kAa6TESp6EB5y3uxGLeCqzAI=
 github.com/charmbracelet/x/term v0.2.2/go.mod h1:kF8CY5RddLWrsgVwpw4kAa6TESp6EB5y3uxGLeCqzAI=
 github.com/charmbracelet/x/termios v0.1.1 h1:o3Q2bT8eqzGnGPOYheoYS8eEleT5ZVNYNy8JawjaNZY=
 github.com/charmbracelet/x/termios v0.1.1 h1:o3Q2bT8eqzGnGPOYheoYS8eEleT5ZVNYNy8JawjaNZY=
@@ -199,20 +193,22 @@ github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5Qvfr
 github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
 github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
 github.com/dlclark/regexp2 v1.12.0 h1:0j4c5qQmnC6XOWNjP3PIXURXN2gWx76rd3KvgdPkCz8=
 github.com/dlclark/regexp2 v1.12.0 h1:0j4c5qQmnC6XOWNjP3PIXURXN2gWx76rd3KvgdPkCz8=
 github.com/dlclark/regexp2 v1.12.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
 github.com/dlclark/regexp2 v1.12.0/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
-github.com/dlclark/regexp2/v2 v2.13.0 h1:sGPfGE1Bx7H3F9vcCdLrKUFvnau7DGiQZxHPQ6rMMs4=
-github.com/dlclark/regexp2/v2 v2.13.0/go.mod h1:avUrQvPaLz2DrFNHJF0taWAFFX2C1GMSSoeiqFjcBmU=
-github.com/docker/cli v29.9.3+incompatible h1:SBaMp7ecohadEHMDrUJg22t9I3awqsAVhnJ7GOcWpfE=
-github.com/docker/cli v29.9.3+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
+github.com/dlclark/regexp2/v2 v2.13.2 h1:8vXJIqwqJRYqTHVl/DNQW8FPGNpkTn1aPrx2HZondsQ=
+github.com/dlclark/regexp2/v2 v2.13.2/go.mod h1:avUrQvPaLz2DrFNHJF0taWAFFX2C1GMSSoeiqFjcBmU=
+github.com/docker/cli v29.10.1+incompatible h1:0wlyVoe0snmKYUUjJuhoR0HiSqRHQonKVcZzT7LwkVM=
+github.com/docker/cli v29.10.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
 github.com/docker/docker-credential-helpers v0.9.13 h1:yLE5jCyKJraJaBACIGqgpLX0UheWfZUwBkIeCu6WPFU=
 github.com/docker/docker-credential-helpers v0.9.13 h1:yLE5jCyKJraJaBACIGqgpLX0UheWfZUwBkIeCu6WPFU=
 github.com/docker/docker-credential-helpers v0.9.13/go.mod h1:v1S+hepowrQXITkEfw6o4+BMbGot02wiKpzWhGUZK6c=
 github.com/docker/docker-credential-helpers v0.9.13/go.mod h1:v1S+hepowrQXITkEfw6o4+BMbGot02wiKpzWhGUZK6c=
 github.com/docker/go-connections v0.8.2 h1:9d9DEokx5W7qlr0shkFXIxEA7+TTD+llwzcykSlxMNc=
 github.com/docker/go-connections v0.8.2 h1:9d9DEokx5W7qlr0shkFXIxEA7+TTD+llwzcykSlxMNc=
 github.com/docker/go-connections v0.8.2/go.mod h1:no1qkHdjq7kLMGUXYAduOhYPSJxxvgWBh7ogVvptn3Q=
 github.com/docker/go-connections v0.8.2/go.mod h1:no1qkHdjq7kLMGUXYAduOhYPSJxxvgWBh7ogVvptn3Q=
 github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
 github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
 github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
 github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
+github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
+github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
 github.com/ettle/strcase v0.2.0 h1:fGNiVF21fHXpX1niBgk0aROov1LagYsOwV/xqKDKR/Q=
 github.com/ettle/strcase v0.2.0 h1:fGNiVF21fHXpX1niBgk0aROov1LagYsOwV/xqKDKR/Q=
 github.com/ettle/strcase v0.2.0/go.mod h1:DajmHElDSaX76ITe3/VHVyMin4LWSJN5Z909Wp+ED1A=
 github.com/ettle/strcase v0.2.0/go.mod h1:DajmHElDSaX76ITe3/VHVyMin4LWSJN5Z909Wp+ED1A=
-github.com/expr-lang/expr v1.17.8 h1:W1loDTT+0PQf5YteHSTpju2qfUfNoBt4yw9+wOEU9VM=
-github.com/expr-lang/expr v1.17.8/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4=
+github.com/expr-lang/expr v1.18.1 h1:mu6I2eTkwUgMP+Q4KgS9Ipc1CrukUpRrG9PsQYPv9js=
+github.com/expr-lang/expr v1.18.1/go.mod h1:8/vRC7+7HBzESEqt5kKpYXxrxkr31SaO8r40VO/1IT4=
 github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w=
 github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w=
 github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE=
 github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE=
 github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4=
 github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4=
@@ -240,6 +236,8 @@ github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
 github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
 github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
 github.com/go-quicktest/qt v1.102.0 h1:HSQxCeh5YZH3EL3W39ixjtyaEhcWSXQHtHnMBzSs474=
 github.com/go-quicktest/qt v1.102.0 h1:HSQxCeh5YZH3EL3W39ixjtyaEhcWSXQHtHnMBzSs474=
 github.com/go-quicktest/qt v1.102.0/go.mod h1:p4lGIVX+8Wa6ZPNDvqcxq36XpUDLh42FLetFU7odllI=
 github.com/go-quicktest/qt v1.102.0/go.mod h1:p4lGIVX+8Wa6ZPNDvqcxq36XpUDLh42FLetFU7odllI=
+github.com/go-sql-driver/mysql v1.9.3 h1:U/N249h2WzJ3Ukj8SowVFjdtZKfu9vlLZxjPXV1aweo=
+github.com/go-sql-driver/mysql v1.9.3/go.mod h1:qn46aNg1333BRMNU69Lq93t8du/dwxI64Gl8i5p1WMU=
 github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=
 github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=
 github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8=
 github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8=
 github.com/go-toolsmith/astcast v1.1.0 h1:+JN9xZV1A+Re+95pgnMgDboWNVnIMMQXwfBwLRPgSC8=
 github.com/go-toolsmith/astcast v1.1.0 h1:+JN9xZV1A+Re+95pgnMgDboWNVnIMMQXwfBwLRPgSC8=
@@ -337,6 +335,8 @@ github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUq
 github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg=
 github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg=
 github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
 github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
+github.com/jamesread/armature-health/v2 v2.0.2 h1:51yxUwXR3WPEj3IpXE2EW2yIGN58ieNjYv49n/K4zNM=
+github.com/jamesread/armature-health/v2 v2.0.2/go.mod h1:PqpA8CV9tJvwjjXaiNBhOVKZHPaeJs4Krga4DngYsKI=
 github.com/jamesread/golure v0.0.0-20261111213547-dc225fc15a30 h1:OH3LW5inwllequ0Saiv/y7mvfGWSmEE0rLROIEW5IBs=
 github.com/jamesread/golure v0.0.0-20261111213547-dc225fc15a30 h1:OH3LW5inwllequ0Saiv/y7mvfGWSmEE0rLROIEW5IBs=
 github.com/jamesread/golure v0.0.0-20261111213547-dc225fc15a30/go.mod h1:eanAcCk4sl2dM5bax4jeSCexnVYRF2IhhtQ4B+Wx8DU=
 github.com/jamesread/golure v0.0.0-20261111213547-dc225fc15a30/go.mod h1:eanAcCk4sl2dM5bax4jeSCexnVYRF2IhhtQ4B+Wx8DU=
 github.com/jdx/go-netrc v1.0.0 h1:QbLMLyCZGj0NA8glAhxUpf1zDg6cxnWgMBbjq40W0gQ=
 github.com/jdx/go-netrc v1.0.0 h1:QbLMLyCZGj0NA8glAhxUpf1zDg6cxnWgMBbjq40W0gQ=
@@ -355,8 +355,8 @@ github.com/kisielk/errcheck v1.30.0 h1:ZIxNDAfAd4larXHTceoZP/dYPAB90dHg1OYhA2sVh
 github.com/kisielk/errcheck v1.30.0/go.mod h1:uiCAInmFuyOje4VDdbQSP9mgqf5gORYSXrDf19XilsI=
 github.com/kisielk/errcheck v1.30.0/go.mod h1:uiCAInmFuyOje4VDdbQSP9mgqf5gORYSXrDf19XilsI=
 github.com/kkHAIKE/contextcheck v1.1.6 h1:7HIyRcnyzxL9Lz06NGhiKvenXq7Zw6Q0UQu/ttjfJCE=
 github.com/kkHAIKE/contextcheck v1.1.6 h1:7HIyRcnyzxL9Lz06NGhiKvenXq7Zw6Q0UQu/ttjfJCE=
 github.com/kkHAIKE/contextcheck v1.1.6/go.mod h1:3dDbMRNBFaq8HFXWC1JyvDSPm43CmE6IuHam8Wr0rkg=
 github.com/kkHAIKE/contextcheck v1.1.6/go.mod h1:3dDbMRNBFaq8HFXWC1JyvDSPm43CmE6IuHam8Wr0rkg=
-github.com/klauspost/compress v1.20.4 h1:dD0v/bvxtjCBqQu6sx1TNWkalEY5lNTIe+HY9w8TeNI=
-github.com/klauspost/compress v1.20.4/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI=
+github.com/klauspost/compress v1.20.5 h1:rJj5VjH4xQxbnLphg6eqUcDxRFCw1jpMdDY9qXlrwSs=
+github.com/klauspost/compress v1.20.5/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI=
 github.com/klauspost/pgzip v1.3.0 h1:8t+KjjzD/0n/8vNlJGGZmTeK4njuwffOQvJm8tOSc8o=
 github.com/klauspost/pgzip v1.3.0 h1:8t+KjjzD/0n/8vNlJGGZmTeK4njuwffOQvJm8tOSc8o=
 github.com/klauspost/pgzip v1.3.0/go.mod h1:Xx7tAv5DH8ObLHUDQKXoE/nd8i/FYdNDTVMvi3SLTKI=
 github.com/klauspost/pgzip v1.3.0/go.mod h1:Xx7tAv5DH8ObLHUDQKXoE/nd8i/FYdNDTVMvi3SLTKI=
 github.com/knadh/koanf/maps v0.1.3 h1:P1z7EvTqdFBrPYbzSvorvrpib+sjkUMxf0FVvA5NKK4=
 github.com/knadh/koanf/maps v0.1.3 h1:P1z7EvTqdFBrPYbzSvorvrpib+sjkUMxf0FVvA5NKK4=
@@ -427,10 +427,10 @@ github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zx
 github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
 github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
 github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0=
 github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0=
 github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
 github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
-github.com/moby/moby/api v1.56.1 h1:PpWkvVPB7Fr/No8w+TfyJ/I6rWZ2YPZhT3JorIg+06c=
-github.com/moby/moby/api v1.56.1/go.mod h1:sZ+THbVWkjOmBPPfbnzdD/G1LuIexWhqlSHHPTDQ1Uk=
-github.com/moby/moby/client v0.6.2 h1:ekSPlMccrZGcw6Scb8T9D39qE0mB+XupU/yS0zNw9N4=
-github.com/moby/moby/client v0.6.2/go.mod h1:DGcnO7qmPJrqobx/ggQgQ/AUk+2wgVdQv7uxB0/mEsc=
+github.com/moby/moby/api v1.57.0 h1:K2ykv5UZjwFCtmtL486T+SUEVrQ46w3v7isf214RCcw=
+github.com/moby/moby/api v1.57.0/go.mod h1:pRZ1QRtx6AVhdckeFYo4DUX4ASNF0SCllhyY6aj2mgg=
+github.com/moby/moby/client v0.6.3 h1:XJn2T8YdXBdMgQl7JrOx09NEBuzIpVXcsN2KDHufAKY=
+github.com/moby/moby/client v0.6.3/go.mod h1:7CXNAnAhcwwqjwjXqLembJczRorLfM+5mu0d5363lCc=
 github.com/moricho/tparallel v0.3.2 h1:odr8aZVFA3NZrNybggMkYO3rgPRcqjeQUlBBFVxKHTI=
 github.com/moricho/tparallel v0.3.2 h1:odr8aZVFA3NZrNybggMkYO3rgPRcqjeQUlBBFVxKHTI=
 github.com/moricho/tparallel v0.3.2/go.mod h1:OQ+K3b4Ln3l2TZveGCywybl68glfLEwFGqvnjok8b+U=
 github.com/moricho/tparallel v0.3.2/go.mod h1:OQ+K3b4Ln3l2TZveGCywybl68glfLEwFGqvnjok8b+U=
 github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
 github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
@@ -439,6 +439,8 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq
 github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
 github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
 github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U=
 github.com/nakabonne/nestif v0.3.1 h1:wm28nZjhQY5HyYPx+weN3Q65k6ilSBxDb8v5S81B81U=
 github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE=
 github.com/nakabonne/nestif v0.3.1/go.mod h1:9EtoZochLn5iUprVDmDjqGKPofoUEBL8U4Ngq6aY7OE=
+github.com/ncruces/go-strftime v1.0.0 h1:HMFp8mLCTPp341M/ZnA4qaf7ZlsbTc+miZjCLOFAw7w=
+github.com/ncruces/go-strftime v1.0.0/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
 github.com/nishanths/exhaustive v0.17.1 h1:zlwR7GV/UqKrm3AJdeXqldUTSsbyfdqS8f/m0oMYLD0=
 github.com/nishanths/exhaustive v0.17.1 h1:zlwR7GV/UqKrm3AJdeXqldUTSsbyfdqS8f/m0oMYLD0=
 github.com/nishanths/exhaustive v0.17.1/go.mod h1:/nBwAMRn2QmCjWQ3PiJ939yRSwvWLKSa21L2C6Tp84E=
 github.com/nishanths/exhaustive v0.17.1/go.mod h1:/nBwAMRn2QmCjWQ3PiJ939yRSwvWLKSa21L2C6Tp84E=
 github.com/nishanths/predeclared v0.3.1 h1:qb/HpkPb0bF0drRBFkTyKY1ZRWcilc6gtxaBZGgn8H8=
 github.com/nishanths/predeclared v0.3.1 h1:qb/HpkPb0bF0drRBFkTyKY1ZRWcilc6gtxaBZGgn8H8=
@@ -464,8 +466,8 @@ github.com/pandatix/go-abnf v0.5.5 h1:EXex5KkRQx4Dm6GnpAcQnIMBs9KiK0uf8p/wq+4t9P
 github.com/pandatix/go-abnf v0.5.5/go.mod h1:AE0KD3/VNoCjGzc1gqetRKshbI4SYErXQ/8kPenR5mc=
 github.com/pandatix/go-abnf v0.5.5/go.mod h1:AE0KD3/VNoCjGzc1gqetRKshbI4SYErXQ/8kPenR5mc=
 github.com/pelletier/go-toml/v2 v2.4.3 h1:GTRvJQutkOSftxIFD5xw9aepkYNuPWmVJpffdDPYVpY=
 github.com/pelletier/go-toml/v2 v2.4.3 h1:GTRvJQutkOSftxIFD5xw9aepkYNuPWmVJpffdDPYVpY=
 github.com/pelletier/go-toml/v2 v2.4.3/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
 github.com/pelletier/go-toml/v2 v2.4.3/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
-github.com/petermattis/goid v0.0.0-20261109124353-7cfa343ad0ab h1:Hn5vlRa0Br9/K866ZafCFIHz6M+xTnbV3sqMrPsT6pE=
-github.com/petermattis/goid v0.0.0-20261109124353-7cfa343ad0ab/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4=
+github.com/petermattis/goid v0.0.0-20261125140513-578663ba5663 h1:B1XzPu9EtK3k27aimJrsD+5zYF0hMeMxf44DHOTAF6k=
+github.com/petermattis/goid v0.0.0-20261125140513-578663ba5663/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4=
 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
 github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
 github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
 github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
 github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
@@ -473,8 +475,8 @@ github.com/prometheus/client_golang v1.25.0 h1:cDtW1TcFsMi1RJc8khwCKB4VhzwV04aKq
 github.com/prometheus/client_golang v1.25.0/go.mod h1:j2X/4/kaQHLPnmyEU8zjmkndo1T317VpCIQEml8LTKk=
 github.com/prometheus/client_golang v1.25.0/go.mod h1:j2X/4/kaQHLPnmyEU8zjmkndo1T317VpCIQEml8LTKk=
 github.com/prometheus/client_model v0.6.3 h1:O0jaTVAYNxTHYInEPFJt5I3+sN8zqBtVMPTB1qyxiEo=
 github.com/prometheus/client_model v0.6.3 h1:O0jaTVAYNxTHYInEPFJt5I3+sN8zqBtVMPTB1qyxiEo=
 github.com/prometheus/client_model v0.6.3/go.mod h1:gpN5P9S7Rr6Yr92PiQ+Ixvhf6JZEkF1dnxsYL2aPBEM=
 github.com/prometheus/client_model v0.6.3/go.mod h1:gpN5P9S7Rr6Yr92PiQ+Ixvhf6JZEkF1dnxsYL2aPBEM=
-github.com/prometheus/common v0.73.1 h1:SZWh/j4AvhCdhX8jvYSnxvPxhWlC9QZkjJ+tOrEr7kU=
-github.com/prometheus/common v0.73.1/go.mod h1:I9aA/Ukz9s1olOobh8KtCkU7B1mQPQsB9UvQPsUQ1Dk=
+github.com/prometheus/common v0.74.0 h1:6iYW8MsYvmEnXFD9zLGgF0qmReaRhs3OMONu1c/nrLI=
+github.com/prometheus/common v0.74.0/go.mod h1:i/02C+FCst5B1etKgWesNrD49n+onplJCqUCtUKkOeA=
 github.com/prometheus/procfs v0.23.0 h1:ad+S6FTkzwaMgacKLM5h6bNKExS+DMH0YiUwXItH/o4=
 github.com/prometheus/procfs v0.23.0 h1:ad+S6FTkzwaMgacKLM5h6bNKExS+DMH0YiUwXItH/o4=
 github.com/prometheus/procfs v0.23.0/go.mod h1:3AVXO0FqLafyYFU/V/IQRZlC8Rgqz8Dm/x6pKLK+RIk=
 github.com/prometheus/procfs v0.23.0/go.mod h1:3AVXO0FqLafyYFU/V/IQRZlC8Rgqz8Dm/x6pKLK+RIk=
 github.com/protocolbuffers/protoscope v0.0.0-20221109213918-8e7a6aafa2c9 h1:arwj11zP0yJIxIRiDn22E0H8PxfF7TsTrc2wIPFIsf4=
 github.com/protocolbuffers/protoscope v0.0.0-20221109213918-8e7a6aafa2c9 h1:arwj11zP0yJIxIRiDn22E0H8PxfF7TsTrc2wIPFIsf4=
@@ -493,10 +495,12 @@ github.com/quic-go/go-ossfuzz-seeds v0.1.0 h1:APacT+iIaNF6fd8AGEiN3bT/Jtkd2jz4v4
 github.com/quic-go/go-ossfuzz-seeds v0.1.0/go.mod h1:3IOHRbJIc+L6YKMwfDtJAM9Vj9k0YY4muhuyUYk5tbk=
 github.com/quic-go/go-ossfuzz-seeds v0.1.0/go.mod h1:3IOHRbJIc+L6YKMwfDtJAM9Vj9k0YY4muhuyUYk5tbk=
 github.com/quic-go/qpack v0.6.0 h1:g7W+BMYynC1LbYLSqRt8PBg5Tgwxn214ZZR34VIOjz8=
 github.com/quic-go/qpack v0.6.0 h1:g7W+BMYynC1LbYLSqRt8PBg5Tgwxn214ZZR34VIOjz8=
 github.com/quic-go/qpack v0.6.0/go.mod h1:lUpLKChi8njB4ty2bFLX2x4gzDqXwUpaO1DP9qMDZII=
 github.com/quic-go/qpack v0.6.0/go.mod h1:lUpLKChi8njB4ty2bFLX2x4gzDqXwUpaO1DP9qMDZII=
-github.com/quic-go/quic-go v0.65.0 h1:BJQSjdTvLPLmWtaCupUphRbgxgpZhdO/GMpr9Eoe3B4=
-github.com/quic-go/quic-go v0.65.0/go.mod h1:RAro2j2yN9a9EiPACLHT9IB2NXCvGQmmo/alT0yYI0w=
+github.com/quic-go/quic-go v0.66.0 h1:NCsBBGZrI2HZC6aKt4I89T5i4Crt39EYNqkh0w2Wgmg=
+github.com/quic-go/quic-go v0.66.0/go.mod h1:RAro2j2yN9a9EiPACLHT9IB2NXCvGQmmo/alT0yYI0w=
 github.com/raeperd/recvcheck v0.3.2 h1:uEL/XDkUASomQfB/KbepaVsVnyKqNSeqNHHX0au9VAk=
 github.com/raeperd/recvcheck v0.3.2 h1:uEL/XDkUASomQfB/KbepaVsVnyKqNSeqNHHX0au9VAk=
 github.com/raeperd/recvcheck v0.3.2/go.mod h1:1GYvabo+pT440BrQ5iT7Vf1JZl15rCYslKq6W+NV7HI=
 github.com/raeperd/recvcheck v0.3.2/go.mod h1:1GYvabo+pT440BrQ5iT7Vf1JZl15rCYslKq6W+NV7HI=
+github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
+github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
 github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
 github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
 github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
 github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
 github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs=
 github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs=
@@ -529,17 +533,14 @@ github.com/securego/gosec/v2 v2.30.0 h1:67aF6LHa7SAL6QEc4es857GrXTT50gUqmrl0XPht
 github.com/securego/gosec/v2 v2.30.0/go.mod h1:qQn/kd9spDGy4yCVezLnzPkUuHPhm6jiIcBANad01Sw=
 github.com/securego/gosec/v2 v2.30.0/go.mod h1:qQn/kd9spDGy4yCVezLnzPkUuHPhm6jiIcBANad01Sw=
 github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
 github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
 github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
 github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
-github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
-github.com/shopspring/decimal v1.6.0 h1:DcTwjCj4tJPLuGZYsR9W0hyX9pQwMIkdo26Ig1T9xX4=
-github.com/shopspring/decimal v1.6.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
 github.com/sirupsen/logrus v1.10.2 h1:G2SED73/qrAu6YwbdxOD6peLkCBI3z7L+ykJFTXJBBo=
 github.com/sirupsen/logrus v1.10.2 h1:G2SED73/qrAu6YwbdxOD6peLkCBI3z7L+ykJFTXJBBo=
 github.com/sirupsen/logrus v1.10.2/go.mod h1:SLEg8TqYulVKKfIGHldVp2K2aYz2DKSVBq4g/H5bR7Q=
 github.com/sirupsen/logrus v1.10.2/go.mod h1:SLEg8TqYulVKKfIGHldVp2K2aYz2DKSVBq4g/H5bR7Q=
 github.com/sivchari/containedctx v1.0.3 h1:x+etemjbsh2fB5ewm5FeLNi5bUjK0V8n0RB+Wwfd0XE=
 github.com/sivchari/containedctx v1.0.3 h1:x+etemjbsh2fB5ewm5FeLNi5bUjK0V8n0RB+Wwfd0XE=
 github.com/sivchari/containedctx v1.0.3/go.mod h1:c1RDvCbnJLtH4lLcYD/GqwiBSSf4F5Qk0xld2rBqzJ4=
 github.com/sivchari/containedctx v1.0.3/go.mod h1:c1RDvCbnJLtH4lLcYD/GqwiBSSf4F5Qk0xld2rBqzJ4=
 github.com/sonatard/noctx v0.5.1 h1:wklWg9c9ZYugOAk7qG4yP4PBrlQsmSLPTvW1K4PRQMs=
 github.com/sonatard/noctx v0.5.1 h1:wklWg9c9ZYugOAk7qG4yP4PBrlQsmSLPTvW1K4PRQMs=
 github.com/sonatard/noctx v0.5.1/go.mod h1:64XdbzFb18XL4LporKXp8poqZtPKbCrqQ402CV+kJas=
 github.com/sonatard/noctx v0.5.1/go.mod h1:64XdbzFb18XL4LporKXp8poqZtPKbCrqQ402CV+kJas=
-github.com/sourcegraph/go-diff v0.9.0 h1:7xcVsayWHhvxZGrqt1o89vvBApCa4nyCgO7tNxDHJ+Q=
-github.com/sourcegraph/go-diff v0.9.0/go.mod h1:hWlcO7Al+UZStZAP8rBumHpCK5ZHQ5BXsMls8p4+F5E=
+github.com/sourcegraph/go-diff v0.10.0 h1:z7LFMvf4Axz6rqYHtagX0j7/53DV+YEHP7opZNa/Lts=
+github.com/sourcegraph/go-diff v0.10.0/go.mod h1:hWlcO7Al+UZStZAP8rBumHpCK5ZHQ5BXsMls8p4+F5E=
 github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I=
 github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I=
 github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg=
 github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg=
 github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY=
 github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY=
@@ -573,6 +574,8 @@ github.com/tetafro/godot v1.5.6 h1:IEkrFCwXaYHlOn4mGzGS3F3dkP6m9t0jpwqBFPIkKiA=
 github.com/tetafro/godot v1.5.6/go.mod h1:eOkMrVQurDui411nBY2FA05EYH01r14LuWY/NrVDVcU=
 github.com/tetafro/godot v1.5.6/go.mod h1:eOkMrVQurDui411nBY2FA05EYH01r14LuWY/NrVDVcU=
 github.com/tetratelabs/wazero v1.12.0 h1:DuWcpNu/FzgEXgGBDp8J1Spc+CWOvvtvVyjKlaZopYU=
 github.com/tetratelabs/wazero v1.12.0 h1:DuWcpNu/FzgEXgGBDp8J1Spc+CWOvvtvVyjKlaZopYU=
 github.com/tetratelabs/wazero v1.12.0/go.mod h1:LvKtzl2RqO4gyF27BiXU+nKAjcV8f38U+kP/q2vgxh0=
 github.com/tetratelabs/wazero v1.12.0/go.mod h1:LvKtzl2RqO4gyF27BiXU+nKAjcV8f38U+kP/q2vgxh0=
+github.com/theory/jsonpath v0.12.3 h1:hRYcJGqnIetJJKJNS5yLLW0LDtY1kzo8S0zHAOTxUQs=
+github.com/theory/jsonpath v0.12.3/go.mod h1:fYTXa8TVFAnyGzDL5JyaFlfaHzKMm+2XfwK3rbEzTC4=
 github.com/tidwall/btree v1.8.2 h1:mTY5iM4UTh2e80TG7RHDQQmnAY3xGNQA/DbU0olkhkA=
 github.com/tidwall/btree v1.8.2 h1:mTY5iM4UTh2e80TG7RHDQQmnAY3xGNQA/DbU0olkhkA=
 github.com/tidwall/btree v1.8.2/go.mod h1:jBbTdUWhSZClZWoDg54VnvV7/54modSOzDN7VXftj1A=
 github.com/tidwall/btree v1.8.2/go.mod h1:jBbTdUWhSZClZWoDg54VnvV7/54modSOzDN7VXftj1A=
 github.com/timakin/bodyclose v0.0.0-20261107224203-8bb60b19bea4 h1:kAmyvrO1ePXQxa1gD3Mq27AtapMDmOJdDd5WW/gCY6s=
 github.com/timakin/bodyclose v0.0.0-20261107224203-8bb60b19bea4 h1:kAmyvrO1ePXQxa1gD3Mq27AtapMDmOJdDd5WW/gCY6s=
@@ -628,8 +631,8 @@ go.lsp.dev/protocol v1.0.1 h1:kLWUIk1v/deXxo1D0VO4avjZnfeuZ82mouJgJd/NbdU=
 go.lsp.dev/protocol v1.0.1/go.mod h1:e//i41aEqc9ml32xiNuneUwbjOjuvTA4+uv+AkssJgk=
 go.lsp.dev/protocol v1.0.1/go.mod h1:e//i41aEqc9ml32xiNuneUwbjOjuvTA4+uv+AkssJgk=
 go.lsp.dev/uri v1.0.1 h1:ywxJN1UXoQ+v0I9lkoQNMmsm7lub5G9ZG7KXT8YTx30=
 go.lsp.dev/uri v1.0.1 h1:ywxJN1UXoQ+v0I9lkoQNMmsm7lub5G9ZG7KXT8YTx30=
 go.lsp.dev/uri v1.0.1/go.mod h1:06a0ghafs4PuqkLsJGUmlgPHw6+kH79edRXjOT/rA8s=
 go.lsp.dev/uri v1.0.1/go.mod h1:06a0ghafs4PuqkLsJGUmlgPHw6+kH79edRXjOT/rA8s=
-go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
-go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
+go.opentelemetry.io/auto/sdk v1.2.2 h1:ErNn7NW2t1F9CFBLb9iyPMyLRbcEd07l5m/StCe9AEE=
+go.opentelemetry.io/auto/sdk v1.2.2/go.mod h1:Ca3X8ec6gdTYjAirla//dnp05ECtQPfN4Ut74OJLVsQ=
 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0 h1:LxwW/9ctSCv+QkE/cLR7M91ZIkXNMqJtEMi1vCw9U8s=
 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0 h1:LxwW/9ctSCv+QkE/cLR7M91ZIkXNMqJtEMi1vCw9U8s=
 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0/go.mod h1:tOsftB4SslBwwErVEPaenU2RpThXWPIU8DoJHEC4dyw=
 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0/go.mod h1:tOsftB4SslBwwErVEPaenU2RpThXWPIU8DoJHEC4dyw=
 go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM=
 go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM=
@@ -652,8 +655,8 @@ go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
 go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
 go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
 go.uber.org/zap v1.28.0 h1:IZzaP1Fv73/T/pBMLk4VutPl36uNC+OSUh3JLG3FIjo=
 go.uber.org/zap v1.28.0 h1:IZzaP1Fv73/T/pBMLk4VutPl36uNC+OSUh3JLG3FIjo=
 go.uber.org/zap v1.28.0/go.mod h1:rDLpOi171uODNm/mxFcuYWxDsqWSAVkFdX4XojSKg/Q=
 go.uber.org/zap v1.28.0/go.mod h1:rDLpOi171uODNm/mxFcuYWxDsqWSAVkFdX4XojSKg/Q=
-go.yaml.in/yaml/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ=
-go.yaml.in/yaml/v2 v2.4.4/go.mod h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ=
+go.yaml.in/yaml/v2 v2.4.5 h1:a5nxWvYi94DRl6QSLlTbLpVmutgx2qg8EVjnJtuFpwI=
+go.yaml.in/yaml/v2 v2.4.5/go.mod h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ=
 go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
 go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
 go.yaml.in/yaml/v3 v3.0.6 h1:zcDfvjXEqTQmpjniUBLc91xYJMB2c4QOFxEF/LCEckM=
 go.yaml.in/yaml/v3 v3.0.6 h1:zcDfvjXEqTQmpjniUBLc91xYJMB2c4QOFxEF/LCEckM=
 go.yaml.in/yaml/v3 v3.0.6/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
 go.yaml.in/yaml/v3 v3.0.6/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg=
@@ -664,12 +667,12 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y
 golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4=
 golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4=
 golang.org/x/crypto v0.59.0 h1:xS2jhqYbzNrpvkWP2YTDf4TJwBy3ykR03i8vFDxEc7c=
 golang.org/x/crypto v0.59.0 h1:xS2jhqYbzNrpvkWP2YTDf4TJwBy3ykR03i8vFDxEc7c=
 golang.org/x/crypto v0.59.0/go.mod h1:veDyUwATGs3c+vN3VfTbzViMGXeTBk3WyhBOkn+F/4U=
 golang.org/x/crypto v0.59.0/go.mod h1:veDyUwATGs3c+vN3VfTbzViMGXeTBk3WyhBOkn+F/4U=
-golang.org/x/exp v0.0.0-20261109185158-a52e3aef5920 h1:qr+tk4P56rtbVVAJDyAr5LAOiaD/XhZCoRTr4SfLxAk=
-golang.org/x/exp v0.0.0-20261109185158-a52e3aef5920/go.mod h1:J3U+E8RzytcGvwz+uJuAP4zULJ2TkAQBnmPZMexpdXs=
+golang.org/x/exp v0.0.0-20261124000051-d6646c509b6d h1:GxW3ezPxBJFxB7GVPlqeQ6mi67zWQC5dFSzidYXJrV8=
+golang.org/x/exp v0.0.0-20261124000051-d6646c509b6d/go.mod h1:xeYMf2GfgE/gQmBtvdPsBN608YETsXuvoiEhaOxGg/w=
 golang.org/x/exp/typeparams v0.0.0-20220428152302-39d4317da171/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk=
 golang.org/x/exp/typeparams v0.0.0-20220428152302-39d4317da171/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk=
 golang.org/x/exp/typeparams v0.0.0-20230203172020-98cc5a0785f9/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk=
 golang.org/x/exp/typeparams v0.0.0-20230203172020-98cc5a0785f9/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk=
-golang.org/x/exp/typeparams v0.0.0-20261109185158-a52e3aef5920 h1:qOQF+X4EUzJzIRkFJTVBqWc+QH3EbeCGFCWKVmzbuEk=
-golang.org/x/exp/typeparams v0.0.0-20261109185158-a52e3aef5920/go.mod h1:qkMnvgP8C7+xkci04txL2SJFc/0PGqnkf6gs5JUC43E=
+golang.org/x/exp/typeparams v0.0.0-20261124000051-d6646c509b6d h1:oPYGtP0R4WtVlfxZjOua/SjFcBKx2ZnP+5ZLTAZfHCk=
+golang.org/x/exp/typeparams v0.0.0-20261124000051-d6646c509b6d/go.mod h1:qkMnvgP8C7+xkci04txL2SJFc/0PGqnkf6gs5JUC43E=
 golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
 golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
 golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
 golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
 golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
 golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
@@ -688,8 +691,8 @@ golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qx
 golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
 golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
 golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
 golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
 golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
 golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
-golang.org/x/net v0.62.0 h1:18ELalfM5+XNRwzM2nYqXsZQ9ByS1uhj2O/U7+5jqRY=
-golang.org/x/net v0.62.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI=
+golang.org/x/net v0.63.0 h1:HCoTmNh9EpD1PpK8gBNFY4gcTY4N+KQEO8ylfIKqFJ0=
+golang.org/x/net v0.63.0/go.mod h1:15JLg3IX1bLjHK264EZQEbIpTiR/KVLuo9CTRWd0pig=
 golang.org/x/oauth2 v0.38.0 h1:uW7XQbcu1eoiQS7uMJvLOjPMl04bTbmY1VeRPxvbspI=
 golang.org/x/oauth2 v0.38.0 h1:uW7XQbcu1eoiQS7uMJvLOjPMl04bTbmY1VeRPxvbspI=
 golang.org/x/oauth2 v0.38.0/go.mod h1:IxwZNxUULJmpBFf9K/9NTMSIfZZuvuTy1gGxhigP/58=
 golang.org/x/oauth2 v0.38.0/go.mod h1:IxwZNxUULJmpBFf9K/9NTMSIfZZuvuTy1gGxhigP/58=
 golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -746,8 +749,8 @@ golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a/go.mod h1:9bzcO0MWcOuT0t
 golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
 golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
 golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
 golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
 golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
 golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
-golang.org/x/tools v0.52.1-0.20261106145633-d407941a339a h1:Yqozs0FNPRoPGS4hNGlrNwRENWr5H5nVG9sN/f+5640=
-golang.org/x/tools v0.52.1-0.20261106145633-d407941a339a/go.mod h1:ItcP5UNaVGG+Yc4eIYmaFLNJ4soEopkx5Y2d4lcEurs=
+golang.org/x/tools v0.53.0 h1:T3bIVp3zjHG9/aEiFk6BXxFh5/Vcbk7JA5hRq1cG8IU=
+golang.org/x/tools v0.53.0/go.mod h1:vg+Vrb7y5mTTtxZLTdbTK8G745wcaLcsCtgCWgQONCI=
 golang.org/x/tools/go/expect v0.1.1-deprecated h1:jpBZDwmgPhXsKZC6WhL20P4b/wmnpsEAGHaNy0n/rJM=
 golang.org/x/tools/go/expect v0.1.1-deprecated h1:jpBZDwmgPhXsKZC6WhL20P4b/wmnpsEAGHaNy0n/rJM=
 golang.org/x/tools/go/expect v0.1.1-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY=
 golang.org/x/tools/go/expect v0.1.1-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY=
 golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated h1:1h2MnaIAIXISqTFKdENegdpAgUXz6NrPEsbIeWaBRvM=
 golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated h1:1h2MnaIAIXISqTFKdENegdpAgUXz6NrPEsbIeWaBRvM=
@@ -756,10 +759,10 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T
 golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-google.golang.org/genproto/googleapis/api v0.0.0-20261110000943-09e21b237f2c h1:ofk4SEqvpf6M5VWh88xRp42IYgdVOh7gffebnDj3OqU=
-google.golang.org/genproto/googleapis/api v0.0.0-20261110000943-09e21b237f2c/go.mod h1:OzYcNQzaMRKcOFRMtyLzG/cfW1SmS2eh+7UmOLLFblk=
-google.golang.org/genproto/googleapis/rpc v0.0.0-20261110000943-09e21b237f2c h1:XXChExL+Tm7Ubp0x0VXUEncPLHrkXIgoVWqnxmKNbAA=
-google.golang.org/genproto/googleapis/rpc v0.0.0-20261110000943-09e21b237f2c/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc=
+google.golang.org/genproto/googleapis/api v0.0.0-20261123191846-1e707ab9fbc2 h1:TVEW5ciB4lPlyo3RBDd2JTlUY0vAzMkPlU/qAzC+rqU=
+google.golang.org/genproto/googleapis/api v0.0.0-20261123191846-1e707ab9fbc2/go.mod h1:3q/FqMoaJXT/mbOLAkZaCXuOEpmvBNwYXqdJKeN0gD0=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20261123191846-1e707ab9fbc2 h1:FCWn4wv5of/ooWpbWDIeOXqI3+h2MGnV7SvvcJ8f+bQ=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20261123191846-1e707ab9fbc2/go.mod h1:OaIUM3+LpYcK2GXM4FTmhWoIq371Owdr+Cc7/BsYHHc=
 google.golang.org/protobuf v1.37.0-rc.1 h1:RQUh2I7V8DjoPJlj2K1BXNUKIOpK2ZdPRfG0HK766Yg=
 google.golang.org/protobuf v1.37.0-rc.1 h1:RQUh2I7V8DjoPJlj2K1BXNUKIOpK2ZdPRfG0HK766Yg=
 google.golang.org/protobuf v1.37.0-rc.1/go.mod h1:X7eSFOSeyjM8zqq7vd+xpgLluojDTuH3nwq1zr6OCKg=
 google.golang.org/protobuf v1.37.0-rc.1/go.mod h1:X7eSFOSeyjM8zqq7vd+xpgLluojDTuH3nwq1zr6OCKg=
 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
 gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
@@ -772,13 +775,19 @@ gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=
 gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA=
 gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA=
 honnef.co/go/tools v0.8.2 h1:+jPbCzuYxYrcoOvCecYUFDj+XJQRmzIhJmlbpps21Zk=
 honnef.co/go/tools v0.8.2 h1:+jPbCzuYxYrcoOvCecYUFDj+XJQRmzIhJmlbpps21Zk=
 honnef.co/go/tools v0.8.2/go.mod h1:xG1Q4n+mg3bKZrO6RWFA9jFlkqplflmDRHGeuexiLDs=
 honnef.co/go/tools v0.8.2/go.mod h1:xG1Q4n+mg3bKZrO6RWFA9jFlkqplflmDRHGeuexiLDs=
+modernc.org/libc v1.77.1 h1:Ct8j47QtiZ1Enj2DtFXQtUqrPCAjdCmPjtCuvrYQ0Hs=
+modernc.org/libc v1.77.1/go.mod h1:87/pZ4L6nD1zqW4nItuS12YO7hN1igAah34xjnQo/W0=
+modernc.org/mathutil v1.7.1 h1:GCZVGXdaN8gTqB1Mf/usp1Y/hSqgI2vAGGP4jZMCxOU=
+modernc.org/mathutil v1.7.1/go.mod h1:4p5IwJITfppl0G4sUEDtCr4DthTaT47/N3aT6MhfgJg=
+modernc.org/memory v1.12.1 h1:nFMiWrpStgZczNl6XI9GnIk/rWhYIyHGUaR04pGbp9g=
+modernc.org/memory v1.12.1/go.mod h1:/JP4VbVC+K5sU2wZi9bHoq2MAkCnrt2r98UGeSK7Mjw=
+modernc.org/sqlite v1.60.1 h1:/blz53O951KWFOso4QQvEs/Fq6cDBKLtMVrYNSeJVKw=
+modernc.org/sqlite v1.60.1/go.mod h1:1dIoEagfDE72QytD5scH1lxARtaUgKgHC/NuApA27r0=
 mvdan.cc/gofumpt v0.12.0 h1:1Lbudkz2kpM9Cjz2pL4M19u7q+GaEhCTNf7N9mfpcho=
 mvdan.cc/gofumpt v0.12.0 h1:1Lbudkz2kpM9Cjz2pL4M19u7q+GaEhCTNf7N9mfpcho=
 mvdan.cc/gofumpt v0.12.0/go.mod h1:SmBHHrljiZu/uoypeKup3rFzP6eoC9UwCp2iH5E3jZA=
 mvdan.cc/gofumpt v0.12.0/go.mod h1:SmBHHrljiZu/uoypeKup3rFzP6eoC9UwCp2iH5E3jZA=
 mvdan.cc/unparam v0.0.0-20261102141913-394cd0a56cd5 h1:+w/oD0+NrvT39TwXLC5ElQte8LwPcFuTWdbJ+98LeAE=
 mvdan.cc/unparam v0.0.0-20261102141913-394cd0a56cd5 h1:+w/oD0+NrvT39TwXLC5ElQte8LwPcFuTWdbJ+98LeAE=
 mvdan.cc/unparam v0.0.0-20261102141913-394cd0a56cd5/go.mod h1:BEImwwhtsPZ0eyZhBtvrirFOvbQ7HmEnmfdFl3tz9M0=
 mvdan.cc/unparam v0.0.0-20261102141913-394cd0a56cd5/go.mod h1:BEImwwhtsPZ0eyZhBtvrirFOvbQ7HmEnmfdFl3tz9M0=
 mvdan.cc/xurls/v2 v2.6.0 h1:3NTZpeTxYVWNSokW3MKeyVkz/j7uYXYiMtXRUfmjbgI=
 mvdan.cc/xurls/v2 v2.6.0 h1:3NTZpeTxYVWNSokW3MKeyVkz/j7uYXYiMtXRUfmjbgI=
 mvdan.cc/xurls/v2 v2.6.0/go.mod h1:bCvEZ1XvdA6wDnxY7jPPjEmigDtvtvPXAD/Exa9IMSk=
 mvdan.cc/xurls/v2 v2.6.0/go.mod h1:bCvEZ1XvdA6wDnxY7jPPjEmigDtvtvPXAD/Exa9IMSk=
-pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk=
-pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04=
 pluginrpc.com/pluginrpc v0.6.0 h1:Dx5r3y9Nbbt02NSm+bKHvs+WgXM34lalD5grkjd8sno=
 pluginrpc.com/pluginrpc v0.6.0 h1:Dx5r3y9Nbbt02NSm+bKHvs+WgXM34lalD5grkjd8sno=
 pluginrpc.com/pluginrpc v0.6.0/go.mod h1:9FPMdIy8nmkALE5eSe2ipE42G83WpZnA2+I7M7ADijY=
 pluginrpc.com/pluginrpc v0.6.0/go.mod h1:9FPMdIy8nmkALE5eSe2ipE42G83WpZnA2+I7M7ADijY=

+ 4 - 0
service/internal/acl/acl.go

@@ -80,6 +80,10 @@ func permissionsConfigToBits(permissions config.PermissionsList) PermissionBits
 }
 }
 
 
 func aclCheck(requiredPermission PermissionBits, defaultValue bool, cfg *config.Config, aclFunction string, user *authpublic.AuthenticatedUser, resourceTitle string, resourceAcls []string, includeAddToEvery bool) bool {
 func aclCheck(requiredPermission PermissionBits, defaultValue bool, cfg *config.Config, aclFunction string, user *authpublic.AuthenticatedUser, resourceTitle string, resourceAcls []string, includeAddToEvery bool) bool {
+	if user.MustLogIn(cfg) {
+		return false
+	}
+
 	relevantAcls := getRelevantAcls(cfg, resourceAcls, user, includeAddToEvery)
 	relevantAcls := getRelevantAcls(cfg, resourceAcls, user, includeAddToEvery)
 
 
 	if cfg.LogDebugOptions.AclCheckStarted {
 	if cfg.LogDebugOptions.AclCheckStarted {

+ 79 - 0
service/internal/acl/acl_login_required_test.go

@@ -0,0 +1,79 @@
+package acl
+
+import (
+	"testing"
+
+	"github.com/stretchr/testify/assert"
+
+	authpublic "github.com/OliveTin/OliveTin/internal/auth/authpublic"
+	config "github.com/OliveTin/OliveTin/internal/config"
+)
+
+func guestMatchingAclConfig(requireLogin bool) (*config.Config, *config.Action) {
+	cfg := config.DefaultConfig()
+	cfg.AuthRequireGuestsToLogin = requireLogin
+	cfg.AccessControlLists = []*config.AccessControlList{
+		{
+			Name:            "basic-users",
+			MatchUsergroups: []string{"guest"},
+			MatchUsernames:  []string{"guest"},
+			Permissions:     config.PermissionsList{View: true, Exec: true, Logs: true, Kill: true},
+		},
+	}
+	cfg.Sanitize()
+
+	action := &config.Action{ID: "restart_web_server", Title: "Restart Web Server", Acls: []string{"basic-users"}}
+
+	return cfg, action
+}
+
+func newGuest(cfg *config.Config) *authpublic.AuthenticatedUser {
+	user := &authpublic.AuthenticatedUser{Username: "guest", UsergroupLine: "guest", Provider: "system"}
+	user.BuildUserAcls(cfg)
+	return user
+}
+
+func assertAllActionPermissions(t *testing.T, cfg *config.Config, user *authpublic.AuthenticatedUser, action *config.Action, expected bool) {
+	t.Helper()
+	assert.Equal(t, expected, IsAllowedView(cfg, user, action), "view")
+	assert.Equal(t, expected, IsAllowedExec(cfg, user, action), "exec")
+	assert.Equal(t, expected, IsAllowedLogs(cfg, user, action), "logs")
+	assert.Equal(t, expected, IsAllowedKill(cfg, user, action), "kill")
+}
+
+// GHSA-9q82-wjpr-32jm: an ACL that names the guest user or usergroup must not
+// give unauthenticated visitors any permission when login is required.
+func TestGuestMatchingAclGrantsNothingWhenLoginRequired(t *testing.T) {
+	cfg, action := guestMatchingAclConfig(true)
+	guest := newGuest(cfg)
+
+	assert.Empty(t, guest.Acls)
+	assertAllActionPermissions(t, cfg, guest, action, false)
+}
+
+func TestGuestDeniedByAclCheckEvenWithAclNamesSet(t *testing.T) {
+	cfg, action := guestMatchingAclConfig(true)
+	guest := &authpublic.AuthenticatedUser{Username: "guest", UsergroupLine: "guest", Provider: "system", Acls: []string{"basic-users"}}
+
+	assertAllActionPermissions(t, cfg, guest, action, false)
+}
+
+func TestGuestMatchingAclStillAppliesWhenLoginNotRequired(t *testing.T) {
+	cfg, action := guestMatchingAclConfig(false)
+	guest := newGuest(cfg)
+
+	assert.Equal(t, []string{"basic-users"}, guest.Acls)
+	assertAllActionPermissions(t, cfg, guest, action, true)
+}
+
+// The documented OAuth2 pattern gives logged-in users with no group claim the
+// usergroup "guest". Those users are not unauthenticated visitors, so the ACL
+// must keep working for them.
+func TestLoggedInUserInGuestUsergroupKeepsAclWhenLoginRequired(t *testing.T) {
+	cfg, action := guestMatchingAclConfig(true)
+	user := &authpublic.AuthenticatedUser{Username: "alice", UsergroupLine: "guest", Provider: "oauth2"}
+	user.BuildUserAcls(cfg)
+
+	assert.Equal(t, []string{"basic-users"}, user.Acls)
+	assertAllActionPermissions(t, cfg, user, action, true)
+}

+ 65 - 98
service/internal/api/api.go

@@ -237,22 +237,9 @@ func (api *oliveTinAPI) applyLocalLoginResult(req *apiv1.LocalUserLoginRequest,
 	}
 	}
 }
 }
 
 
-func (api *oliveTinAPI) localUserLoginEarlyReject(req *connect.Request[apiv1.LocalUserLoginRequest]) *connect.Response[apiv1.LocalUserLoginResponse] {
-	if !api.cfg.AuthLocalUsers.Enabled {
-		return connect.NewResponse(&apiv1.LocalUserLoginResponse{Success: false})
-	}
-
-	if isLocalInteractiveLoginDisabledForUser(api.cfg, req.Msg.Username) {
-		log.WithFields(log.Fields{"username": req.Msg.Username}).Debug("LocalUserLogin: interactive login disabled (no password configured)")
-		return connect.NewResponse(&apiv1.LocalUserLoginResponse{Success: false})
-	}
-
-	return nil
-}
-
 func (api *oliveTinAPI) LocalUserLogin(ctx ctx.Context, req *connect.Request[apiv1.LocalUserLoginRequest]) (*connect.Response[apiv1.LocalUserLoginResponse], error) {
 func (api *oliveTinAPI) LocalUserLogin(ctx ctx.Context, req *connect.Request[apiv1.LocalUserLoginRequest]) (*connect.Response[apiv1.LocalUserLoginResponse], error) {
-	if early := api.localUserLoginEarlyReject(req); early != nil {
-		return early, nil
+	if !api.cfg.AuthLocalUsers.Enabled {
+		return connect.NewResponse(&apiv1.LocalUserLoginResponse{Success: false}), nil
 	}
 	}
 
 
 	match, err := checkUserPassword(api.cfg, req.Msg.Username, req.Msg.Password)
 	match, err := checkUserPassword(api.cfg, req.Msg.Username, req.Msg.Password)
@@ -278,7 +265,8 @@ func (api *oliveTinAPI) startActionAndWaitRun(binding *executor.ActionBinding, a
 	}
 	}
 	wg, _ := api.executor.ExecRequest(&execReq)
 	wg, _ := api.executor.ExecRequest(&execReq)
 	wg.Wait()
 	wg.Wait()
-	return api.executor.GetLog(execReq.TrackingID)
+	entry := execReq.LogEntry()
+	return entry, entry != nil
 }
 }
 
 
 func (api *oliveTinAPI) findBindingOrNotFound(actionId string) (*executor.ActionBinding, error) {
 func (api *oliveTinAPI) findBindingOrNotFound(actionId string) (*executor.ActionBinding, error) {
@@ -344,16 +332,17 @@ func (api *oliveTinAPI) StartActionByGet(ctx ctx.Context, req *connect.Request[a
 	}
 	}
 
 
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
-	if err := api.errUnlessStartEntityAccessAllowed(user, binding, map[string]string{}); err != nil {
+	args := make(map[string]string)
+	justification, err := api.startByGetJustification(user, binding, args)
+	if err != nil {
 		return nil, err
 		return nil, err
 	}
 	}
 
 
-	args := make(map[string]string)
-
 	execReq := executor.ExecutionRequest{
 	execReq := executor.ExecutionRequest{
 		Binding:           binding,
 		Binding:           binding,
 		TrackingID:        uuid.NewString(),
 		TrackingID:        uuid.NewString(),
 		Arguments:         args,
 		Arguments:         args,
+		Justification:     justification,
 		AuthenticatedUser: user,
 		AuthenticatedUser: user,
 		Cfg:               api.cfg,
 		Cfg:               api.cfg,
 	}
 	}
@@ -365,27 +354,19 @@ func (api *oliveTinAPI) StartActionByGet(ctx ctx.Context, req *connect.Request[a
 	}), nil
 	}), nil
 }
 }
 
 
-func (api *oliveTinAPI) runBindingAndWait(binding *executor.ActionBinding, args map[string]string, user *authpublic.AuthenticatedUser) (*executor.InternalLogEntry, bool) {
-	execReq := executor.ExecutionRequest{
-		Binding:           binding,
-		TrackingID:        uuid.NewString(),
-		Arguments:         args,
-		AuthenticatedUser: user,
-		Cfg:               api.cfg,
+// The deprecated StartActionByGet methods take no arguments or justification, so they only
+// run an action that requires a justification when its justification template resolves to text.
+func (api *oliveTinAPI) startByGetJustification(user *authpublic.AuthenticatedUser, binding *executor.ActionBinding, args map[string]string) (string, error) {
+	if err := api.errUnlessStartEntityAccessAllowed(user, binding, args); err != nil {
+		return "", err
 	}
 	}
 
 
-	wg, _ := api.executor.ExecRequest(&execReq)
-	wg.Wait()
-
-	return api.executor.GetLog(execReq.TrackingID)
-}
-
-func (api *oliveTinAPI) startActionByGetAndWaitLogEntry(binding *executor.ActionBinding, user *authpublic.AuthenticatedUser) (*apiv1.LogEntry, error) {
-	internalLogEntry, ok := api.runBindingAndWait(binding, map[string]string{}, user)
-	if !ok {
-		return nil, connect.NewError(connect.CodeNotFound, fmt.Errorf("execution not found"))
+	justification := resolveStartJustification(binding.Action, binding, "", args)
+	if err := validateJustificationRequired(binding.Action, justification, user); err != nil {
+		return "", connectInvalidJustification(err)
 	}
 	}
-	return api.logEntryForAllowedViewer(internalLogEntry, user)
+
+	return justification, nil
 }
 }
 
 
 func (api *oliveTinAPI) StartActionByGetAndWait(ctx ctx.Context, req *connect.Request[apiv1.StartActionByGetAndWaitRequest]) (*connect.Response[apiv1.StartActionByGetAndWaitResponse], error) {
 func (api *oliveTinAPI) StartActionByGetAndWait(ctx ctx.Context, req *connect.Request[apiv1.StartActionByGetAndWaitRequest]) (*connect.Response[apiv1.StartActionByGetAndWaitResponse], error) {
@@ -397,11 +378,13 @@ func (api *oliveTinAPI) StartActionByGetAndWait(ctx ctx.Context, req *connect.Re
 	}
 	}
 
 
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
-	if err := api.errUnlessStartEntityAccessAllowed(user, binding, map[string]string{}); err != nil {
+	args := make(map[string]string)
+	justification, err := api.startByGetJustification(user, binding, args)
+	if err != nil {
 		return nil, err
 		return nil, err
 	}
 	}
 
 
-	logEntry, err := api.startActionByGetAndWaitLogEntry(binding, user)
+	logEntry, err := api.startActionAndWaitLogEntry(binding, args, justification, user)
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err
 	}
 	}
@@ -535,9 +518,6 @@ func (api *oliveTinAPI) executionStatusBackToDashboards(ile *executor.InternalLo
 
 
 func (api *oliveTinAPI) ExecutionStatus(ctx ctx.Context, req *connect.Request[apiv1.ExecutionStatusRequest]) (*connect.Response[apiv1.ExecutionStatusResponse], error) {
 func (api *oliveTinAPI) ExecutionStatus(ctx ctx.Context, req *connect.Request[apiv1.ExecutionStatusRequest]) (*connect.Response[apiv1.ExecutionStatusResponse], error) {
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
-	if err := api.checkDashboardAccess(user); err != nil {
-		return nil, err
-	}
 	ile, err := api.resolveExecutionStatusForView(req.Msg, user)
 	ile, err := api.resolveExecutionStatusForView(req.Msg, user)
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err
@@ -604,10 +584,6 @@ func (api *oliveTinAPI) Logout(ctx ctx.Context, req *connect.Request[apiv1.Logou
 func (api *oliveTinAPI) GetActionBinding(ctx ctx.Context, req *connect.Request[apiv1.GetActionBindingRequest]) (*connect.Response[apiv1.GetActionBindingResponse], error) {
 func (api *oliveTinAPI) GetActionBinding(ctx ctx.Context, req *connect.Request[apiv1.GetActionBindingRequest]) (*connect.Response[apiv1.GetActionBindingResponse], error) {
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 
 
-	if err := api.checkDashboardAccess(user); err != nil {
-		return nil, err
-	}
-
 	resp, err := api.getActionBindingResponse(user, req.Msg.BindingId)
 	resp, err := api.getActionBindingResponse(user, req.Msg.BindingId)
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err
@@ -674,10 +650,6 @@ func (api *oliveTinAPI) errUnlessBindingEntityTypeAllowed(user *authpublic.Authe
 func (api *oliveTinAPI) GetDashboard(ctx ctx.Context, req *connect.Request[apiv1.GetDashboardRequest]) (*connect.Response[apiv1.GetDashboardResponse], error) {
 func (api *oliveTinAPI) GetDashboard(ctx ctx.Context, req *connect.Request[apiv1.GetDashboardRequest]) (*connect.Response[apiv1.GetDashboardResponse], error) {
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 
 
-	if err := api.checkDashboardAccess(user); err != nil {
-		return nil, err
-	}
-
 	entityType := ""
 	entityType := ""
 	entityKey := ""
 	entityKey := ""
 	if req.Msg != nil {
 	if req.Msg != nil {
@@ -693,13 +665,6 @@ func (api *oliveTinAPI) GetDashboard(ctx ctx.Context, req *connect.Request[apiv1
 	return api.buildCustomDashboardResponse(dashboardRenderRequest, req.Msg.Title)
 	return api.buildCustomDashboardResponse(dashboardRenderRequest, req.Msg.Title)
 }
 }
 
 
-func (api *oliveTinAPI) checkDashboardAccess(user *authpublic.AuthenticatedUser) error {
-	if user.IsGuest() && api.cfg.AuthRequireGuestsToLogin {
-		return connect.NewError(connect.CodePermissionDenied, fmt.Errorf("guests are not allowed to access the dashboard"))
-	}
-	return nil
-}
-
 func (api *oliveTinAPI) createDashboardRenderRequest(user *authpublic.AuthenticatedUser, entityType, entityKey string) *DashboardRenderRequest {
 func (api *oliveTinAPI) createDashboardRenderRequest(user *authpublic.AuthenticatedUser, entityType, entityKey string) *DashboardRenderRequest {
 	rr := &DashboardRenderRequest{
 	rr := &DashboardRenderRequest{
 		AuthenticatedUser: user,
 		AuthenticatedUser: user,
@@ -747,10 +712,6 @@ func resolveLogsPageSize(requestPageSize, defaultPageSize int64) int64 {
 func (api *oliveTinAPI) GetLogs(ctx ctx.Context, req *connect.Request[apiv1.GetLogsRequest]) (*connect.Response[apiv1.GetLogsResponse], error) {
 func (api *oliveTinAPI) GetLogs(ctx ctx.Context, req *connect.Request[apiv1.GetLogsRequest]) (*connect.Response[apiv1.GetLogsResponse], error) {
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 
 
-	if err := api.checkDashboardAccess(user); err != nil {
-		return nil, err
-	}
-
 	pageSize := resolveLogsPageSize(req.Msg.GetPageSize(), api.cfg.LogHistoryPageSize)
 	pageSize := resolveLogsPageSize(req.Msg.GetPageSize(), api.cfg.LogHistoryPageSize)
 	logEntries, paging, err := api.executor.GetLogTrackingIdsACL(api.cfg, user, req.Msg.StartOffset, pageSize, req.Msg.DateFilter, req.Msg.GetFilter())
 	logEntries, paging, err := api.executor.GetLogTrackingIdsACL(api.cfg, user, req.Msg.StartOffset, pageSize, req.Msg.DateFilter, req.Msg.GetFilter())
 	if err != nil {
 	if err != nil {
@@ -836,10 +797,6 @@ func (api *oliveTinAPI) buildActionLogsResponse(filtered []*executor.InternalLog
 func (api *oliveTinAPI) GetActionLogs(ctx ctx.Context, req *connect.Request[apiv1.GetActionLogsRequest]) (*connect.Response[apiv1.GetActionLogsResponse], error) {
 func (api *oliveTinAPI) GetActionLogs(ctx ctx.Context, req *connect.Request[apiv1.GetActionLogsRequest]) (*connect.Response[apiv1.GetActionLogsResponse], error) {
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 
 
-	if err := api.checkDashboardAccess(user); err != nil {
-		return nil, err
-	}
-
 	filtered := api.filterLogsByACL(api.executor.GetLogsByBindingId(req.Msg.ActionId), user)
 	filtered := api.filterLogsByACL(api.executor.GetLogsByBindingId(req.Msg.ActionId), user)
 	page := paginate(int64(len(filtered)), api.cfg.LogHistoryPageSize, req.Msg.StartOffset)
 	page := paginate(int64(len(filtered)), api.cfg.LogHistoryPageSize, req.Msg.StartOffset)
 	if page.empty {
 	if page.empty {
@@ -925,9 +882,6 @@ func (api *oliveTinAPI) errUnlessUserMayValidateArgumentTypeForBinding(user *aut
 
 
 func (api *oliveTinAPI) ValidateArgumentType(ctx ctx.Context, req *connect.Request[apiv1.ValidateArgumentTypeRequest]) (*connect.Response[apiv1.ValidateArgumentTypeResponse], error) {
 func (api *oliveTinAPI) ValidateArgumentType(ctx ctx.Context, req *connect.Request[apiv1.ValidateArgumentTypeRequest]) (*connect.Response[apiv1.ValidateArgumentTypeResponse], error) {
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
-	if err := api.checkDashboardAccess(user); err != nil {
-		return nil, err
-	}
 
 
 	if err := api.validateArgumentTypeBindingAccess(user, req.Msg); err != nil {
 	if err := api.validateArgumentTypeBindingAccess(user, req.Msg); err != nil {
 		return nil, err
 		return nil, err
@@ -977,7 +931,7 @@ func (api *oliveTinAPI) validateArgumentTypeConnectResponse(msg *apiv1.ValidateA
 
 
 func (api *oliveTinAPI) validateArgumentTypeInternal(msg *apiv1.ValidateArgumentTypeRequest) error {
 func (api *oliveTinAPI) validateArgumentTypeInternal(msg *apiv1.ValidateArgumentTypeRequest) error {
 	if msg.BindingId == "" || msg.ArgumentName == "" {
 	if msg.BindingId == "" || msg.ArgumentName == "" {
-		return executor.TypeSafetyCheck("", msg.Value, msg.Type)
+		return validateUnboundArgumentType(msg)
 	}
 	}
 
 
 	arg, action := api.findArgumentForValidation(msg.BindingId, msg.ArgumentName)
 	arg, action := api.findArgumentForValidation(msg.BindingId, msg.ArgumentName)
@@ -992,6 +946,16 @@ func (api *oliveTinAPI) validateArgumentTypeInternal(msg *apiv1.ValidateArgument
 	return executor.ValidateArgument(arg, msg.Value, action)
 	return executor.ValidateArgument(arg, msg.Value, action)
 }
 }
 
 
+// Custom regex types only exist on configured arguments, so validating one
+// without a binding would only evaluate a caller-supplied pattern.
+func validateUnboundArgumentType(msg *apiv1.ValidateArgumentTypeRequest) error {
+	if strings.HasPrefix(msg.Type, "regex:") {
+		return fmt.Errorf("custom regex types can only be validated for a configured action argument")
+	}
+
+	return executor.TypeSafetyCheck("", msg.Value, msg.Type)
+}
+
 func (api *oliveTinAPI) findArgumentForValidation(bindingId string, argumentName string) (*config.ActionArgument, *config.Action) {
 func (api *oliveTinAPI) findArgumentForValidation(bindingId string, argumentName string) (*config.ActionArgument, *config.Action) {
 	binding := api.executor.FindBindingByID(bindingId)
 	binding := api.executor.FindBindingByID(bindingId)
 	if binding == nil || binding.Action == nil {
 	if binding == nil || binding.Action == nil {
@@ -1014,16 +978,12 @@ func (api *oliveTinAPI) findArgumentByName(action *config.Action, name string) *
 func (api *oliveTinAPI) WhoAmI(ctx ctx.Context, req *connect.Request[apiv1.WhoAmIRequest]) (*connect.Response[apiv1.WhoAmIResponse], error) {
 func (api *oliveTinAPI) WhoAmI(ctx ctx.Context, req *connect.Request[apiv1.WhoAmIRequest]) (*connect.Response[apiv1.WhoAmIResponse], error) {
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 
 
-	if err := api.checkDashboardAccess(user); err != nil {
-		return nil, err
-	}
-
 	res := &apiv1.WhoAmIResponse{
 	res := &apiv1.WhoAmIResponse{
-		AuthenticatedUser: user.Username,
-		Usergroup:         user.UsergroupLine,
-		Provider:          user.Provider,
-		Sid:               user.SID,
-		Acls:              user.Acls,
+		AuthenticatedUser:  user.Username,
+		Usergroup:          user.UsergroupLine,
+		Provider:           user.Provider,
+		Acls:               user.Acls,
+		SessionFingerprint: user.SessionFingerprint(),
 	}
 	}
 
 
 	return connect.NewResponse(res), nil
 	return connect.NewResponse(res), nil
@@ -1116,10 +1076,6 @@ func (api *oliveTinAPI) EventStream(ctx ctx.Context, req *connect.Request[apiv1.
 
 
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 
 
-	if err := api.checkDashboardAccess(user); err != nil {
-		return err
-	}
-
 	client := &streamingClient{
 	client := &streamingClient{
 		channel:           make(chan *apiv1.EventStreamResponse, 10), // Buffered channel to hold Events
 		channel:           make(chan *apiv1.EventStreamResponse, 10), // Buffered channel to hold Events
 		AuthenticatedUser: user,
 		AuthenticatedUser: user,
@@ -1343,9 +1299,6 @@ func (api *oliveTinAPI) maybeSendExecutionFinished(client *streamingClient, ile
 
 
 func (api *oliveTinAPI) GetDiagnostics(ctx ctx.Context, req *connect.Request[apiv1.GetDiagnosticsRequest]) (*connect.Response[apiv1.GetDiagnosticsResponse], error) {
 func (api *oliveTinAPI) GetDiagnostics(ctx ctx.Context, req *connect.Request[apiv1.GetDiagnosticsRequest]) (*connect.Response[apiv1.GetDiagnosticsResponse], error) {
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
-	if err := api.checkDashboardAccess(user); err != nil {
-		return nil, err
-	}
 	if !user.EffectivePolicy.ShowDiagnostics {
 	if !user.EffectivePolicy.ShowDiagnostics {
 		return nil, connect.NewError(connect.CodePermissionDenied, fmt.Errorf("diagnostics are not available for your account"))
 		return nil, connect.NewError(connect.CodePermissionDenied, fmt.Errorf("diagnostics are not available for your account"))
 	}
 	}
@@ -1363,7 +1316,7 @@ func (api *oliveTinAPI) Init(ctx ctx.Context, req *connect.Request[apiv1.InitReq
 }
 }
 
 
 func (api *oliveTinAPI) buildInitResponse(user *authpublic.AuthenticatedUser) *apiv1.InitResponse {
 func (api *oliveTinAPI) buildInitResponse(user *authpublic.AuthenticatedUser) *apiv1.InitResponse {
-	loginRequired := user.IsGuest() && api.cfg.AuthRequireGuestsToLogin
+	loginRequired := user.MustLogIn(api.cfg)
 	currentVersion, availableVersion, showNewVersions := initVersionFields(user, api.cfg)
 	currentVersion, availableVersion, showNewVersions := initVersionFields(user, api.cfg)
 	showNavigation, rootDashboardEntries := api.initNavigationFields(user, loginRequired)
 	showNavigation, rootDashboardEntries := api.initNavigationFields(user, loginRequired)
 
 
@@ -1602,10 +1555,6 @@ func (api *oliveTinAPI) maybeSendOutputChunk(client *streamingClient, entry *exe
 func (api *oliveTinAPI) GetEntities(ctx ctx.Context, req *connect.Request[apiv1.GetEntitiesRequest]) (*connect.Response[apiv1.GetEntitiesResponse], error) {
 func (api *oliveTinAPI) GetEntities(ctx ctx.Context, req *connect.Request[apiv1.GetEntitiesRequest]) (*connect.Response[apiv1.GetEntitiesResponse], error) {
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 
 
-	if err := api.checkDashboardAccess(user); err != nil {
-		return nil, err
-	}
-
 	entityMap := entities.GetEntities()
 	entityMap := entities.GetEntities()
 	entityDefinitions := api.buildEntityDefinitionsResponse(user, req.Msg, entityMap)
 	entityDefinitions := api.buildEntityDefinitionsResponse(user, req.Msg, entityMap)
 
 
@@ -1718,10 +1667,6 @@ func searchSubcomponentsForDirectories(entityType string, contents []*config.Das
 func (api *oliveTinAPI) GetEntity(ctx ctx.Context, req *connect.Request[apiv1.GetEntityRequest]) (*connect.Response[apiv1.Entity], error) {
 func (api *oliveTinAPI) GetEntity(ctx ctx.Context, req *connect.Request[apiv1.GetEntityRequest]) (*connect.Response[apiv1.Entity], error) {
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 
 
-	if err := api.checkDashboardAccess(user); err != nil {
-		return nil, err
-	}
-
 	instances := entities.GetEntityInstances(req.Msg.Type)
 	instances := entities.GetEntityInstances(req.Msg.Type)
 	if len(instances) == 0 {
 	if len(instances) == 0 {
 		return nil, connect.NewError(connect.CodeNotFound, fmt.Errorf("entity type %s not found", req.Msg.Type))
 		return nil, connect.NewError(connect.CodeNotFound, fmt.Errorf("entity type %s not found", req.Msg.Type))
@@ -1893,18 +1838,23 @@ func (api *oliveTinAPI) RestartAction(ctx ctx.Context, req *connect.Request[apiv
 		return nil, err
 		return nil, err
 	}
 	}
 
 
-	if err := validateRestartLogEntry(execReqLogEntry); err != nil {
+	binding, err := api.currentBindingForRestart(execReqLogEntry, req.Msg.ExecutionTrackingId)
+	if err != nil {
+		return nil, err
+	}
+
+	if err := validateRestartLogEntry(binding, execReqLogEntry); err != nil {
 		return nil, err
 		return nil, err
 	}
 	}
 
 
 	authenticatedUser := auth.UserFromApiCall(ctx, req, api.cfg)
 	authenticatedUser := auth.UserFromApiCall(ctx, req, api.cfg)
 	restartArgs := copyStringMap(execReqLogEntry.Arguments)
 	restartArgs := copyStringMap(execReqLogEntry.Arguments)
-	if err := api.errUnlessStartEntityAccessAllowed(authenticatedUser, execReqLogEntry.Binding, restartArgs); err != nil {
+	if err := api.errUnlessStartEntityAccessAllowed(authenticatedUser, binding, restartArgs); err != nil {
 		return nil, err
 		return nil, err
 	}
 	}
 
 
 	execReq := executor.ExecutionRequest{
 	execReq := executor.ExecutionRequest{
-		Binding:           execReqLogEntry.Binding,
+		Binding:           binding,
 		Arguments:         restartArgs,
 		Arguments:         restartArgs,
 		Justification:     execReqLogEntry.Justification,
 		Justification:     execReqLogEntry.Justification,
 		AuthenticatedUser: authenticatedUser,
 		AuthenticatedUser: authenticatedUser,
@@ -1935,6 +1885,19 @@ func (api *oliveTinAPI) restartActionLogEntry(executionTrackingId string) (*exec
 	return execReqLogEntry, nil
 	return execReqLogEntry, nil
 }
 }
 
 
+// A log entry keeps the binding it ran with, which can be out of date after the
+// config is reloaded. Restarts look the binding up again so that they run the
+// action as it is configured now, with its current ACLs, and so that actions
+// removed from the config cannot be restarted.
+func (api *oliveTinAPI) currentBindingForRestart(entry *executor.InternalLogEntry, executionTrackingId string) (*executor.ActionBinding, error) {
+	binding := api.executor.FindBindingByID(entry.Binding.ID)
+	if binding == nil || binding.Action == nil {
+		return nil, connect.NewError(connect.CodeNotFound, fmt.Errorf("action for tracking ID %s is no longer in the configuration", executionTrackingId))
+	}
+
+	return binding, nil
+}
+
 var (
 var (
 	executorListenersMu sync.Mutex
 	executorListenersMu sync.Mutex
 	executorListeners   = map[*executor.Executor]*oliveTinAPI{}
 	executorListeners   = map[*executor.Executor]*oliveTinAPI{}
@@ -1988,5 +1951,9 @@ func GetNewHandler(ex *executor.Executor) (string, http.Handler) {
 		},
 		},
 	)
 	)
 
 
-	return apiv1connect.NewOliveTinApiServiceHandler(server, jsonOpt)
+	return apiv1connect.NewOliveTinApiServiceHandler(
+		server,
+		jsonOpt,
+		connect.WithInterceptors(&loginRequiredInterceptor{api: server}),
+	)
 }
 }

+ 77 - 0
service/internal/api/api_justification_test.go

@@ -10,6 +10,7 @@ import (
 	"github.com/stretchr/testify/require"
 	"github.com/stretchr/testify/require"
 
 
 	apiv1 "github.com/OliveTin/OliveTin/gen/olivetin/api/v1"
 	apiv1 "github.com/OliveTin/OliveTin/gen/olivetin/api/v1"
+	apiv1connect "github.com/OliveTin/OliveTin/gen/olivetin/api/v1/apiv1connect"
 	"github.com/OliveTin/OliveTin/internal/auth"
 	"github.com/OliveTin/OliveTin/internal/auth"
 	config "github.com/OliveTin/OliveTin/internal/config"
 	config "github.com/OliveTin/OliveTin/internal/config"
 	"github.com/OliveTin/OliveTin/internal/executor"
 	"github.com/OliveTin/OliveTin/internal/executor"
@@ -164,3 +165,79 @@ func TestValidateJustificationRequiredAllowsSystemUser(t *testing.T) {
 	err := validateJustificationRequired(action, "", auth.UserFromSystem(cfg, "cron"))
 	err := validateJustificationRequired(action, "", auth.UserFromSystem(cfg, "cron"))
 	require.NoError(t, err)
 	require.NoError(t, err)
 }
 }
+
+func newJustificationRequiredTestServer(t *testing.T, cfg *config.Config) (apiv1connect.OliveTinApiServiceClient, func()) {
+	t.Helper()
+
+	cfg.Actions = append(cfg.Actions, &config.Action{
+		Title:         "Approve change",
+		ID:            "approve",
+		Justification: config.JustificationRequiredNoTemplate,
+		Shell:         "echo approved",
+	})
+
+	ex := executor.DefaultExecutor(cfg)
+	ex.RebuildActionMap()
+
+	ts, client := getNewTestServerAndClientWithExecutor(cfg, ex)
+	return client, ts.Close
+}
+
+func TestStartActionByGetRequiresJustification(t *testing.T) {
+	client, closeServer := newJustificationRequiredTestServer(t, config.DefaultConfig())
+	defer closeServer()
+
+	//nolint:staticcheck // Deliberately calling the deprecated RPC.
+	_, err := client.StartActionByGet(context.Background(), connect.NewRequest(&apiv1.StartActionByGetRequest{ActionId: "approve"}))
+	require.Error(t, err)
+	assert.Equal(t, connect.CodeInvalidArgument, connect.CodeOf(err))
+}
+
+func TestStartActionByGetAndWaitRequiresJustification(t *testing.T) {
+	client, closeServer := newJustificationRequiredTestServer(t, config.DefaultConfig())
+	defer closeServer()
+
+	//nolint:staticcheck // Deliberately calling the deprecated RPC.
+	_, err := client.StartActionByGetAndWait(context.Background(), connect.NewRequest(&apiv1.StartActionByGetAndWaitRequest{ActionId: "approve"}))
+	require.Error(t, err)
+	assert.Equal(t, connect.CodeInvalidArgument, connect.CodeOf(err))
+}
+
+func TestStartActionByGetUsesJustificationTemplate(t *testing.T) {
+	cfg := config.DefaultConfig()
+	cfg.Actions = append(cfg.Actions, &config.Action{
+		Title:         "Templated",
+		ID:            "templated",
+		Justification: "Scheduled maintenance",
+		Shell:         "echo hi",
+	})
+
+	ex := executor.DefaultExecutor(cfg)
+	ex.RebuildActionMap()
+	ts, client := getNewTestServerAndClientWithExecutor(cfg, ex)
+	defer ts.Close()
+
+	//nolint:staticcheck // Deliberately calling the deprecated RPC.
+	resp, err := client.StartActionByGet(context.Background(), connect.NewRequest(&apiv1.StartActionByGetRequest{ActionId: "templated"}))
+	require.NoError(t, err)
+
+	waitForLogJustification(t, ex, resp.Msg.ExecutionTrackingId, "Scheduled maintenance")
+}
+
+func TestTrustedHeaderProviderSystemDoesNotSkipJustification(t *testing.T) {
+	cfg := config.DefaultConfig()
+	cfg.AuthHttpHeaderUsername = "X-Username"
+	cfg.AuthHttpHeaderUserGroup = "X-Usergroup"
+
+	client, closeServer := newJustificationRequiredTestServer(t, cfg)
+	defer closeServer()
+
+	req := connect.NewRequest(&apiv1.StartActionAndWaitRequest{ActionId: "approve"})
+	req.Header().Set("X-Username", "alice")
+	req.Header().Set("X-Usergroup", "operators")
+	req.Header().Set("provider", "system")
+
+	_, err := client.StartActionAndWait(context.Background(), req)
+	require.Error(t, err)
+	assert.Equal(t, connect.CodeInvalidArgument, connect.CodeOf(err))
+}

+ 3 - 3
service/internal/api/api_log_arguments.go

@@ -46,12 +46,12 @@ func restartArgumentsIncompleteError() error {
 	return connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("stored arguments are incomplete for restart; use StartAction with the required arguments instead"))
 	return connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("stored arguments are incomplete for restart; use StartAction with the required arguments instead"))
 }
 }
 
 
-func validateRestartLogEntry(entry *executor.InternalLogEntry) error {
-	if entry.Binding.Action.RequiresJustification() && strings.TrimSpace(entry.Justification) == "" {
+func validateRestartLogEntry(binding *executor.ActionBinding, entry *executor.InternalLogEntry) error {
+	if binding.Action.RequiresJustification() && strings.TrimSpace(entry.Justification) == "" {
 		return restartRequiresJustificationError()
 		return restartRequiresJustificationError()
 	}
 	}
 
 
-	if executor.RestartArgumentsIncomplete(entry.Binding.Action, entry.Binding.Entity, entry.Arguments) {
+	if executor.RestartArgumentsIncomplete(binding.Action, binding.Entity, entry.Arguments) {
 		return restartArgumentsIncompleteError()
 		return restartArgumentsIncompleteError()
 	}
 	}
 
 

+ 72 - 0
service/internal/api/api_login_gate.go

@@ -0,0 +1,72 @@
+package api
+
+import (
+	ctx "context"
+	"errors"
+	"net/http"
+
+	"connectrpc.com/connect"
+
+	apiv1connect "github.com/OliveTin/OliveTin/gen/olivetin/api/v1/apiv1connect"
+	auth "github.com/OliveTin/OliveTin/internal/auth"
+)
+
+// When authRequireGuestsToLogin is enabled, unauthenticated visitors may only
+// call these procedures, which are needed to log in or to check the server is
+// up. Every other procedure is refused before its handler runs, so a handler
+// cannot forget the check, and a lookup cannot reveal whether an ID exists.
+//
+// Adding a procedure here makes it public. TestEveryProcedureRequiresLoginUnlessPublic
+// lists the same procedures and fails if the two lists differ.
+var loginNotRequiredProcedures = map[string]bool{
+	apiv1connect.OliveTinApiServiceInitProcedure:           true,
+	apiv1connect.OliveTinApiServiceGetReadyzProcedure:      true,
+	apiv1connect.OliveTinApiServiceLocalUserLoginProcedure: true,
+	apiv1connect.OliveTinApiServiceLogoutProcedure:         true,
+	apiv1connect.OliveTinApiServicePasswordHashProcedure:   true,
+}
+
+var errLoginRequired = errors.New("login is required")
+
+type loginRequiredInterceptor struct {
+	api *oliveTinAPI
+}
+
+func (interceptor *loginRequiredInterceptor) WrapUnary(next connect.UnaryFunc) connect.UnaryFunc {
+	return func(callCtx ctx.Context, req connect.AnyRequest) (connect.AnyResponse, error) {
+		if err := interceptor.checkLoginRequired(req.Spec().Procedure, req.Header()); err != nil {
+			return nil, err
+		}
+
+		return next(callCtx, req)
+	}
+}
+
+func (interceptor *loginRequiredInterceptor) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc {
+	return next
+}
+
+func (interceptor *loginRequiredInterceptor) WrapStreamingHandler(next connect.StreamingHandlerFunc) connect.StreamingHandlerFunc {
+	return func(callCtx ctx.Context, conn connect.StreamingHandlerConn) error {
+		if err := interceptor.checkLoginRequired(conn.Spec().Procedure, conn.RequestHeader()); err != nil {
+			return err
+		}
+
+		return next(callCtx, conn)
+	}
+}
+
+func (interceptor *loginRequiredInterceptor) checkLoginRequired(procedure string, header http.Header) error {
+	if loginNotRequiredProcedures[procedure] {
+		return nil
+	}
+
+	cfg := interceptor.api.cfg
+	user := auth.UserFromHeaders(header, procedure, cfg)
+
+	if user.MustLogIn(cfg) {
+		return connect.NewError(connect.CodePermissionDenied, errLoginRequired)
+	}
+
+	return nil
+}

+ 168 - 0
service/internal/api/api_login_gate_test.go

@@ -0,0 +1,168 @@
+package api
+
+import (
+	"context"
+	"net/http"
+	"testing"
+
+	"connectrpc.com/connect"
+	"github.com/stretchr/testify/assert"
+	"github.com/stretchr/testify/require"
+	"google.golang.org/protobuf/reflect/protoreflect"
+	"google.golang.org/protobuf/types/known/emptypb"
+
+	apiv1 "github.com/OliveTin/OliveTin/gen/olivetin/api/v1"
+	config "github.com/OliveTin/OliveTin/internal/config"
+	"github.com/OliveTin/OliveTin/internal/executor"
+)
+
+// The procedures that unauthenticated visitors may call when login is required.
+// This list is deliberately kept separate from loginNotRequiredProcedures, so
+// that making a procedure public needs both to be changed on purpose.
+var expectedPublicProcedures = []string{
+	"Init",
+	"GetReadyz",
+	"LocalUserLogin",
+	"Logout",
+	"PasswordHash",
+}
+
+// loginRequiredGuestAclConfig is the configuration from GHSA-9q82-wjpr-32jm:
+// login is required, and an ACL that matches the "guest" usergroup grants
+// every permission on the action.
+func loginRequiredGuestAclConfig() *config.Config {
+	cfg := config.DefaultConfig()
+	cfg.AuthRequireGuestsToLogin = true
+	cfg.AccessControlLists = []*config.AccessControlList{
+		{
+			Name:            "basic-users",
+			MatchUsergroups: []string{"guest"},
+			Permissions:     config.PermissionsList{View: true, Exec: true, Logs: true, Kill: true},
+		},
+	}
+	cfg.Actions = append(cfg.Actions, &config.Action{
+		ID:    "restart_web_server",
+		Title: "Restart Web Server",
+		Shell: "echo restarted",
+		Acls:  []string{"basic-users"},
+	})
+	cfg.Sanitize()
+
+	return cfg
+}
+
+func oliveTinServiceDescriptor() protoreflect.ServiceDescriptor {
+	return apiv1.File_olivetin_api_v1_olivetin_proto.Services().ByName("OliveTinApiService")
+}
+
+func procedureForMethod(method protoreflect.MethodDescriptor) string {
+	return "/" + string(method.Parent().FullName()) + "/" + string(method.Name())
+}
+
+// callAsGuest calls any procedure with an empty message and no credentials.
+// An empty protobuf message is valid for every request type.
+func callAsGuest(baseURL string, method protoreflect.MethodDescriptor) error {
+	client := connect.NewClient[emptypb.Empty, emptypb.Empty](http.DefaultClient, baseURL+"/api/"+string(method.Name()))
+
+	if !method.IsStreamingServer() {
+		_, err := client.CallUnary(context.Background(), connect.NewRequest(&emptypb.Empty{}))
+		return err
+	}
+
+	stream, err := client.CallServerStream(context.Background(), connect.NewRequest(&emptypb.Empty{}))
+	if err != nil {
+		return err
+	}
+	received := stream.Receive()
+	closeErr := stream.Close()
+
+	if received {
+		return closeErr
+	}
+
+	return stream.Err()
+}
+
+func TestPublicProcedureListsMatch(t *testing.T) {
+	expected := make(map[string]bool)
+	for _, name := range expectedPublicProcedures {
+		method := oliveTinServiceDescriptor().Methods().ByName(protoreflect.Name(name))
+		require.NotNil(t, method, "public procedure %s does not exist in the proto service", name)
+		expected[procedureForMethod(method)] = true
+	}
+
+	assert.Equal(t, expected, loginNotRequiredProcedures)
+}
+
+// TestEveryProcedureRequiresLoginUnlessPublic (GHSA-9q82-wjpr-32jm) calls every
+// procedure in the proto service as an unauthenticated visitor, so a procedure
+// added later is covered without anyone having to remember to add a test.
+func TestEveryProcedureRequiresLoginUnlessPublic(t *testing.T) {
+	cfg := loginRequiredGuestAclConfig()
+	ts, _ := getNewTestServerAndClient(cfg)
+	defer ts.Close()
+
+	methods := oliveTinServiceDescriptor().Methods()
+	require.Positive(t, methods.Len())
+
+	for i := 0; i < methods.Len(); i++ {
+		method := methods.Get(i)
+
+		t.Run(string(method.Name()), func(t *testing.T) {
+			err := callAsGuest(ts.URL, method)
+
+			if loginNotRequiredProcedures[procedureForMethod(method)] {
+				assert.NotEqual(t, connect.CodePermissionDenied, connect.CodeOf(err), "public procedure must be callable without logging in")
+				return
+			}
+
+			require.Error(t, err)
+			assert.Equal(t, connect.CodePermissionDenied, connect.CodeOf(err), "procedure must refuse unauthenticated visitors when login is required")
+		})
+	}
+}
+
+func TestGuestCannotStartActionsWhenLoginRequired(t *testing.T) {
+	cfg := loginRequiredGuestAclConfig()
+	ex := executor.DefaultExecutor(cfg)
+	ex.RebuildActionMap()
+	ts, client := getNewTestServerAndClientWithExecutor(cfg, ex)
+	defer ts.Close()
+
+	_, err := client.StartAction(context.Background(), connect.NewRequest(&apiv1.StartActionRequest{BindingId: "restart_web_server"}))
+	assert.Equal(t, connect.CodePermissionDenied, connect.CodeOf(err))
+
+	_, err = client.StartActionAndWait(context.Background(), connect.NewRequest(&apiv1.StartActionAndWaitRequest{ActionId: "restart_web_server"}))
+	assert.Equal(t, connect.CodePermissionDenied, connect.CodeOf(err))
+
+	binding := ex.FindBindingByID("restart_web_server")
+	require.NotNil(t, binding)
+	assert.Empty(t, ex.GetLogsByBindingId(binding.ID), "the action must not have been requested at all")
+}
+
+// Real and made-up action IDs must get the same answer, so that unauthenticated
+// visitors cannot find out which actions exist.
+func TestGuestCannotTellRealActionIdsFromFakeOnes(t *testing.T) {
+	cfg := loginRequiredGuestAclConfig()
+	ts, client := getNewTestServerAndClient(cfg)
+	defer ts.Close()
+
+	_, realErr := client.StartAction(context.Background(), connect.NewRequest(&apiv1.StartActionRequest{BindingId: "restart_web_server"}))
+	_, fakeErr := client.StartAction(context.Background(), connect.NewRequest(&apiv1.StartActionRequest{BindingId: "does_not_exist_1234"}))
+
+	require.Error(t, realErr)
+	require.Error(t, fakeErr)
+	assert.Equal(t, connect.CodeOf(realErr), connect.CodeOf(fakeErr))
+	assert.Equal(t, realErr.Error(), fakeErr.Error())
+}
+
+func TestGuestCanStillStartActionsWhenLoginNotRequired(t *testing.T) {
+	cfg := loginRequiredGuestAclConfig()
+	cfg.AuthRequireGuestsToLogin = false
+	ts, client := getNewTestServerAndClient(cfg)
+	defer ts.Close()
+
+	res, err := client.StartActionAndWait(context.Background(), connect.NewRequest(&apiv1.StartActionAndWaitRequest{ActionId: "restart_web_server"}))
+	require.NoError(t, err)
+	assert.Contains(t, res.Msg.LogEntry.Output, "restarted")
+}

+ 0 - 4
service/internal/api/api_queue.go

@@ -22,10 +22,6 @@ type executionQueueBucketKey struct {
 func (api *oliveTinAPI) GetExecutionQueue(ctx ctx.Context, req *connect.Request[apiv1.GetExecutionQueueRequest]) (*connect.Response[apiv1.GetExecutionQueueResponse], error) {
 func (api *oliveTinAPI) GetExecutionQueue(ctx ctx.Context, req *connect.Request[apiv1.GetExecutionQueueRequest]) (*connect.Response[apiv1.GetExecutionQueueResponse], error) {
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 	user := auth.UserFromApiCall(ctx, req, api.cfg)
 
 
-	if err := api.checkDashboardAccess(user); err != nil {
-		return nil, err
-	}
-
 	active := api.executor.GetActiveExecutionsACL(api.cfg, user)
 	active := api.executor.GetActiveExecutionsACL(api.cfg, user)
 	groups := buildExecutionQueueGroups(active, user, api)
 	groups := buildExecutionQueueGroups(active, user, api)
 
 

+ 58 - 0
service/internal/api/api_test.go

@@ -1194,3 +1194,61 @@ func TestBuildChoicesExpandsChecklistEntityChoices(t *testing.T) {
 	assert.Equal(t, "basement", choices[1].Value)
 	assert.Equal(t, "basement", choices[1].Value)
 	assert.Equal(t, "basement", choices[1].Title)
 	assert.Equal(t, "basement", choices[1].Title)
 }
 }
+
+func TestValidateArgumentTypeRejectsUnboundCustomRegex(t *testing.T) {
+	cfg := config.DefaultConfig()
+	ts, client := getNewTestServerAndClient(cfg)
+	defer ts.Close()
+
+	resp, err := client.ValidateArgumentType(context.Background(), connect.NewRequest(&apiv1.ValidateArgumentTypeRequest{
+		Value: "aaaa",
+		Type:  "regex:a+",
+	}))
+	require.NoError(t, err)
+	assert.False(t, resp.Msg.Valid, "a caller-supplied regex must not be evaluated without a binding")
+	assert.Contains(t, resp.Msg.Description, "custom regex types can only be validated for a configured action argument")
+}
+
+func TestValidateArgumentTypeUnboundBuiltinTypeStillValidates(t *testing.T) {
+	cfg := config.DefaultConfig()
+	ts, client := getNewTestServerAndClient(cfg)
+	defer ts.Close()
+
+	valid, err := client.ValidateArgumentType(context.Background(), connect.NewRequest(&apiv1.ValidateArgumentTypeRequest{
+		Value: "hello",
+		Type:  "ascii",
+	}))
+	require.NoError(t, err)
+	assert.True(t, valid.Msg.Valid)
+
+	invalid, err := client.ValidateArgumentType(context.Background(), connect.NewRequest(&apiv1.ValidateArgumentTypeRequest{
+		Value: "hello; rm -rf /",
+		Type:  "ascii_identifier",
+	}))
+	require.NoError(t, err)
+	assert.False(t, invalid.Msg.Valid)
+}
+
+func TestValidateArgumentTypeBoundCustomRegexStillValidates(t *testing.T) {
+	cfg := config.DefaultConfig()
+	cfg.Actions = append(cfg.Actions, &config.Action{
+		ID:    "regex_action",
+		Title: "Regex action",
+		Exec:  []string{"echo", "{{ code }}"},
+		Arguments: []config.ActionArgument{
+			{Name: "code", Type: "regex:[a-z]{3}"},
+		},
+	})
+	cfg.Sanitize()
+	ts, client := getNewTestServerAndClient(cfg)
+	defer ts.Close()
+
+	resp, err := client.ValidateArgumentType(context.Background(), connect.NewRequest(&apiv1.ValidateArgumentTypeRequest{
+		BindingId:    "regex_action",
+		ArgumentName: "code",
+		Value:        "abc",
+		Type:         "regex:[a-z]{3}",
+	}))
+	require.NoError(t, err)
+	assert.True(t, resp.Msg.Valid, "configured custom regex arguments must still validate")
+}

+ 35 - 8
service/internal/api/local_user_login.go

@@ -1,8 +1,10 @@
 package api
 package api
 
 
 import (
 import (
+	"crypto/rand"
 	"errors"
 	"errors"
 	"runtime"
 	"runtime"
+	"sync"
 
 
 	config "github.com/OliveTin/OliveTin/internal/config"
 	config "github.com/OliveTin/OliveTin/internal/config"
 	"github.com/alexedwards/argon2id"
 	"github.com/alexedwards/argon2id"
@@ -61,21 +63,46 @@ func comparePasswordAndHash(password, hash string) (bool, error) {
 	return match, nil
 	return match, nil
 }
 }
 
 
-func isLocalInteractiveLoginDisabledForUser(cfg *config.Config, username string) bool {
-	user := cfg.FindUserByUsername(username)
-	if user == nil {
-		return false
+// A login for an unknown username, or for a user with no password, still runs
+// one Argon2id comparison against a dummy hash, through the same concurrency
+// limit. Otherwise the response time, and whether the limit is reported as
+// busy, would show which usernames exist.
+// The dummy password is random, so it is not known to anyone, and the result of
+// the comparison is never used.
+var (
+	dummyPassword         string
+	dummyPasswordHash     string
+	dummyPasswordHashErr  error
+	dummyPasswordHashOnce sync.Once
+)
+
+func getDummyPasswordHash() (string, error) {
+	dummyPasswordHashOnce.Do(func() {
+		dummyPassword = rand.Text()
+		dummyPasswordHash, dummyPasswordHashErr = argon2id.CreateHash(dummyPassword, &defaultParams)
+	})
+
+	return dummyPasswordHash, dummyPasswordHashErr
+}
+
+func compareAgainstDummyHash(password string) error {
+	hash, err := getDummyPasswordHash()
+	if err != nil {
+		return err
 	}
 	}
 
 
-	return user.Password == ""
+	_, err = comparePasswordAndHash(password, hash)
+
+	return err
 }
 }
 
 
 func checkUserPassword(cfg *config.Config, username, password string) (bool, error) {
 func checkUserPassword(cfg *config.Config, username, password string) (bool, error) {
 	user := cfg.FindUserByUsername(username)
 	user := cfg.FindUserByUsername(username)
-	if user == nil {
-		log.WithFields(log.Fields{"username": username}).Warn("Failed to check password for user, as username was not found")
-		return false, nil
+	if user == nil || user.Password == "" {
+		log.WithFields(log.Fields{"username": username}).Warn("Failed to check password for user, as the username was not found or has no password")
+		return false, compareAgainstDummyHash(password)
 	}
 	}
+
 	return comparePasswordAndLogResult(password, user.Password, username)
 	return comparePasswordAndLogResult(password, user.Password, username)
 }
 }
 
 

+ 102 - 0
service/internal/api/local_user_login_enumeration_test.go

@@ -0,0 +1,102 @@
+package api
+
+import (
+	"context"
+	"testing"
+
+	"connectrpc.com/connect"
+	"github.com/stretchr/testify/assert"
+	"github.com/stretchr/testify/require"
+
+	apiv1 "github.com/OliveTin/OliveTin/gen/olivetin/api/v1"
+	apiv1connect "github.com/OliveTin/OliveTin/gen/olivetin/api/v1/apiv1connect"
+	config "github.com/OliveTin/OliveTin/internal/config"
+)
+
+func newEnumerationTestClient(t *testing.T) apiv1connect.OliveTinApiServiceClient {
+	t.Helper()
+
+	hash, err := createHash("correct horse")
+	require.NoError(t, err)
+
+	cfg := config.DefaultConfig()
+	cfg.SetDir(t.TempDir())
+	cfg.AuthLocalUsers.Enabled = true
+	cfg.AuthLocalUsers.Users = []*config.LocalUser{
+		{Username: "alice", Password: hash},
+		{Username: "apikeyonly", ApiKey: "k"},
+	}
+
+	ts, client := getNewTestServerAndClient(cfg)
+	t.Cleanup(ts.Close)
+
+	return client
+}
+
+func loginAttempt(client apiv1connect.OliveTinApiServiceClient, username string, password string) (*connect.Response[apiv1.LocalUserLoginResponse], error) {
+	return client.LocalUserLogin(context.Background(), connect.NewRequest(&apiv1.LocalUserLoginRequest{
+		Username: username,
+		Password: password,
+	}))
+}
+
+func fillArgon2Slots(t *testing.T) {
+	t.Helper()
+
+	for range argon2MaxConcurrent {
+		argon2Sem <- struct{}{}
+	}
+
+	t.Cleanup(func() {
+		for range argon2MaxConcurrent {
+			<-argon2Sem
+		}
+	})
+}
+
+// Not parallel: this test holds every Argon2 slot while it runs.
+func TestLocalUserLoginIsBusyForEveryUsernameWhenArgon2IsBusy(t *testing.T) {
+	client := newEnumerationTestClient(t)
+	_, err := getDummyPasswordHash()
+	require.NoError(t, err)
+
+	fillArgon2Slots(t)
+
+	for _, username := range []string{"alice", "nosuchuser", "apikeyonly"} {
+		_, err := loginAttempt(client, username, "wrong password")
+		require.Error(t, err, username)
+		assert.Equal(t, connect.CodeResourceExhausted, connect.CodeOf(err), "username %q must get the same busy error as every other username", username)
+	}
+}
+
+func TestLocalUserLoginFailsTheSameForUnknownAndPasswordlessUsers(t *testing.T) {
+	client := newEnumerationTestClient(t)
+
+	for _, username := range []string{"alice", "nosuchuser", "apikeyonly"} {
+		resp, err := loginAttempt(client, username, "wrong password")
+		require.NoError(t, err, username)
+		assert.False(t, resp.Msg.GetSuccess(), username)
+		assert.Empty(t, resp.Header().Values("Set-Cookie"), username)
+	}
+}
+
+func TestLocalUserLoginRejectsDummyPasswordForUnknownAndPasswordlessUsers(t *testing.T) {
+	client := newEnumerationTestClient(t)
+	_, err := getDummyPasswordHash()
+	require.NoError(t, err)
+	require.NotEmpty(t, dummyPassword)
+
+	for _, username := range []string{"nosuchuser", "apikeyonly"} {
+		resp, err := loginAttempt(client, username, dummyPassword)
+		require.NoError(t, err, username)
+		assert.False(t, resp.Msg.GetSuccess(), "the dummy password must never log anyone in")
+	}
+}
+
+func TestLocalUserLoginStillAcceptsTheRightPassword(t *testing.T) {
+	client := newEnumerationTestClient(t)
+
+	resp, err := loginAttempt(client, "alice", "correct horse")
+	require.NoError(t, err)
+	assert.True(t, resp.Msg.GetSuccess())
+}

+ 218 - 0
service/internal/api/restart_action_current_binding_test.go

@@ -0,0 +1,218 @@
+package api
+
+import (
+	"context"
+	"testing"
+
+	"connectrpc.com/connect"
+	"github.com/stretchr/testify/assert"
+	"github.com/stretchr/testify/require"
+
+	apiv1 "github.com/OliveTin/OliveTin/gen/olivetin/api/v1"
+	apiv1connect "github.com/OliveTin/OliveTin/gen/olivetin/api/v1/apiv1connect"
+	config "github.com/OliveTin/OliveTin/internal/config"
+	"github.com/OliveTin/OliveTin/internal/entities"
+	"github.com/OliveTin/OliveTin/internal/executor"
+)
+
+const restartTestActionID = "restart-test-action"
+
+func restartTestAction(command string, acls ...string) *config.Action {
+	return &config.Action{
+		ID:            restartTestActionID,
+		Title:         "Restart test action",
+		Exec:          []string{"echo", command},
+		Acls:          acls,
+		MaxConcurrent: 1,
+		Timeout:       5,
+	}
+}
+
+func startAndWaitForBinding(t *testing.T, client apiv1connect.OliveTinApiServiceClient, ex *executor.Executor, bindingID string) string {
+	t.Helper()
+
+	resp, err := client.StartAction(context.Background(), connect.NewRequest(&apiv1.StartActionRequest{BindingId: bindingID}))
+	require.NoError(t, err)
+	waitForLogFinished(t, ex, resp.Msg.ExecutionTrackingId)
+
+	return resp.Msg.ExecutionTrackingId
+}
+
+func restartAndWait(t *testing.T, client apiv1connect.OliveTinApiServiceClient, ex *executor.Executor, trackingID string) *executor.InternalLogEntry {
+	t.Helper()
+
+	resp, err := client.RestartAction(context.Background(), connect.NewRequest(&apiv1.RestartActionRequest{ExecutionTrackingId: trackingID}))
+	require.NoError(t, err)
+	waitForLogFinished(t, ex, resp.Msg.ExecutionTrackingId)
+
+	entry, ok := ex.GetLog(resp.Msg.ExecutionTrackingId)
+	require.True(t, ok)
+
+	return entry
+}
+
+func requireRestartNotFound(t *testing.T, client apiv1connect.OliveTinApiServiceClient, trackingID string) {
+	t.Helper()
+
+	_, err := client.RestartAction(context.Background(), connect.NewRequest(&apiv1.RestartActionRequest{ExecutionTrackingId: trackingID}))
+	require.Error(t, err)
+	assert.Equal(t, connect.CodeNotFound, connect.CodeOf(err))
+}
+
+func logCount(ex *executor.Executor) int {
+	logs, _ := ex.GetLogTrackingIds(0, 1000)
+
+	return len(logs)
+}
+
+func entityBindingID(ex *executor.Executor) string {
+	ex.MapActionBindingsLock.RLock()
+	defer ex.MapActionBindingsLock.RUnlock()
+
+	for id, binding := range ex.MapActionBindings {
+		if binding.Entity != nil {
+			return id
+		}
+	}
+
+	return ""
+}
+
+func newRestartTestServer(t *testing.T, cfg *config.Config) (*executor.Executor, apiv1connect.OliveTinApiServiceClient) {
+	t.Helper()
+
+	ex := executor.DefaultExecutor(cfg)
+	ex.RebuildActionMap()
+
+	ts, client := getNewTestServerAndClientWithExecutor(cfg, ex)
+	t.Cleanup(ts.Close)
+
+	return ex, client
+}
+
+func TestRestartActionRunsUnchangedActionAgain(t *testing.T) {
+	cfg := config.DefaultConfig()
+	cfg.Actions = []*config.Action{restartTestAction("first-run")}
+	ex, client := newRestartTestServer(t, cfg)
+
+	trackingID := startAndWaitForBinding(t, client, ex, restartTestActionID)
+	ex.RebuildActionMap()
+
+	entry := restartAndWait(t, client, ex, trackingID)
+	assert.False(t, entry.Blocked)
+	assert.Contains(t, entry.Output, "first-run")
+}
+
+func TestRestartActionRejectsActionRemovedFromConfig(t *testing.T) {
+	cfg := config.DefaultConfig()
+	cfg.Actions = []*config.Action{restartTestAction("removed-command")}
+	ex, client := newRestartTestServer(t, cfg)
+
+	trackingID := startAndWaitForBinding(t, client, ex, restartTestActionID)
+	logsBefore := logCount(ex)
+
+	cfg.Actions = nil
+	ex.RebuildActionMap()
+
+	requireRestartNotFound(t, client, trackingID)
+	assert.Equal(t, logsBefore, logCount(ex), "a rejected restart must not start an execution")
+}
+
+func TestRestartActionUsesCurrentAclsAfterReload(t *testing.T) {
+	cfg := config.DefaultConfig()
+	cfg.DefaultPermissions.Exec = false
+	cfg.AccessControlLists = []*config.AccessControlList{
+		{Name: "guest-exec", MatchUsernames: []string{"guest"}, Permissions: config.PermissionsList{Exec: true}},
+		{Name: "admin-exec", MatchUsernames: []string{"admin"}, Permissions: config.PermissionsList{Exec: true}},
+	}
+	cfg.Actions = []*config.Action{restartTestAction("old-guest-command", "guest-exec")}
+	ex, client := newRestartTestServer(t, cfg)
+
+	trackingID := startAndWaitForBinding(t, client, ex, restartTestActionID)
+
+	cfg.Actions = []*config.Action{restartTestAction("new-admin-command", "admin-exec")}
+	ex.RebuildActionMap()
+
+	entry := restartAndWait(t, client, ex, trackingID)
+	assert.True(t, entry.Blocked, "the guest must be blocked by the action's current ACLs")
+	assert.NotContains(t, entry.Output, "old-guest-command")
+	assert.NotContains(t, entry.Output, "new-admin-command")
+}
+
+func TestRestartActionRunsCurrentCommandAfterReload(t *testing.T) {
+	cfg := config.DefaultConfig()
+	cfg.Actions = []*config.Action{restartTestAction("old-command")}
+	ex, client := newRestartTestServer(t, cfg)
+
+	trackingID := startAndWaitForBinding(t, client, ex, restartTestActionID)
+
+	cfg.Actions = []*config.Action{restartTestAction("new-command")}
+	ex.RebuildActionMap()
+
+	entry := restartAndWait(t, client, ex, trackingID)
+	assert.False(t, entry.Blocked)
+	assert.Contains(t, entry.Output, "new-command")
+	assert.NotContains(t, entry.Output, "old-command")
+}
+
+func TestRestartActionRequiresJustificationAddedAfterReload(t *testing.T) {
+	cfg := config.DefaultConfig()
+	cfg.Actions = []*config.Action{restartTestAction("no-justification")}
+	ex, client := newRestartTestServer(t, cfg)
+
+	trackingID := startAndWaitForBinding(t, client, ex, restartTestActionID)
+
+	action := restartTestAction("no-justification")
+	action.Justification = config.JustificationRequiredNoTemplate
+	cfg.Actions = []*config.Action{action}
+	ex.RebuildActionMap()
+
+	_, err := client.RestartAction(context.Background(), connect.NewRequest(&apiv1.RestartActionRequest{ExecutionTrackingId: trackingID}))
+	require.Error(t, err)
+	assert.Contains(t, err.Error(), "justification")
+}
+
+func TestRestartActionRequiresArgumentAddedAfterReload(t *testing.T) {
+	cfg := config.DefaultConfig()
+	cfg.Actions = []*config.Action{restartTestAction("no-arguments")}
+	ex, client := newRestartTestServer(t, cfg)
+
+	trackingID := startAndWaitForBinding(t, client, ex, restartTestActionID)
+
+	action := restartTestAction("{{ host }}")
+	action.Arguments = []config.ActionArgument{{Name: "host", Type: "ascii_identifier"}}
+	cfg.Actions = []*config.Action{action}
+	ex.RebuildActionMap()
+
+	_, err := client.RestartAction(context.Background(), connect.NewRequest(&apiv1.RestartActionRequest{ExecutionTrackingId: trackingID}))
+	require.Error(t, err)
+	assert.Equal(t, connect.CodeInvalidArgument, connect.CodeOf(err))
+}
+
+func TestRestartActionRejectsEntityRemovedAfterReload(t *testing.T) {
+	const entityType = "restarttestservers"
+
+	entities.ClearEntitiesOfType(entityType)
+	t.Cleanup(func() { entities.ClearEntitiesOfType(entityType) })
+	entities.AddEntity(entityType, "web01", map[string]any{"name": "web01"})
+
+	cfg := config.DefaultConfig()
+	cfg.Actions = []*config.Action{{
+		Title:         "Restart entity test",
+		Exec:          []string{"echo", "entity-command"},
+		Entity:        entityType,
+		MaxConcurrent: 1,
+		Timeout:       5,
+	}}
+	ex, client := newRestartTestServer(t, cfg)
+
+	bindingID := entityBindingID(ex)
+	require.NotEmpty(t, bindingID)
+
+	trackingID := startAndWaitForBinding(t, client, ex, bindingID)
+
+	entities.ClearEntitiesOfType(entityType)
+	ex.RebuildActionMap()
+
+	requireRestartNotFound(t, client, trackingID)
+}

+ 78 - 0
service/internal/api/whoami_session_test.go

@@ -0,0 +1,78 @@
+package api
+
+import (
+	"context"
+	"io"
+	"net/http"
+	"strings"
+	"testing"
+
+	"connectrpc.com/connect"
+	"github.com/stretchr/testify/assert"
+	"github.com/stretchr/testify/require"
+
+	apiv1 "github.com/OliveTin/OliveTin/gen/olivetin/api/v1"
+	apiv1connect "github.com/OliveTin/OliveTin/gen/olivetin/api/v1/apiv1connect"
+	config "github.com/OliveTin/OliveTin/internal/config"
+)
+
+func loginLocalUserForSessionCookie(t *testing.T, client apiv1connect.OliveTinApiServiceClient) *http.Cookie {
+	t.Helper()
+
+	resp, err := client.LocalUserLogin(context.Background(), connect.NewRequest(&apiv1.LocalUserLoginRequest{
+		Username: "alice",
+		Password: "correct horse",
+	}))
+	require.NoError(t, err)
+	require.True(t, resp.Msg.GetSuccess())
+
+	header := http.Header{"Set-Cookie": resp.Header().Values("Set-Cookie")}
+	for _, cookie := range (&http.Response{Header: header}).Cookies() {
+		if cookie.Name == "olivetin-sid-local" && cookie.Value != "" {
+			return cookie
+		}
+	}
+
+	t.Fatal("login did not set the olivetin-sid-local cookie")
+	return nil
+}
+
+func postWhoAmI(t *testing.T, baseURL string, cookie *http.Cookie) string {
+	t.Helper()
+
+	req, err := http.NewRequestWithContext(t.Context(), http.MethodPost, baseURL+"/api/WhoAmI", strings.NewReader("{}"))
+	require.NoError(t, err)
+	req.Header.Set("Content-Type", "application/json")
+	req.AddCookie(cookie)
+
+	resp, err := http.DefaultClient.Do(req)
+	require.NoError(t, err)
+	defer func() { assert.NoError(t, resp.Body.Close()) }()
+
+	body, err := io.ReadAll(resp.Body)
+	require.NoError(t, err)
+	require.Equal(t, http.StatusOK, resp.StatusCode, string(body))
+
+	return string(body)
+}
+
+func TestWhoAmINeverReturnsSessionID(t *testing.T) {
+	hash, err := createHash("correct horse")
+	require.NoError(t, err)
+
+	cfg := config.DefaultConfig()
+	cfg.SetDir(t.TempDir())
+	cfg.AuthLocalUsers.Enabled = true
+	cfg.AuthLocalUsers.Users = []*config.LocalUser{{Username: "alice", Password: hash}}
+
+	ts, client := getNewTestServerAndClient(cfg)
+	defer ts.Close()
+
+	cookie := loginLocalUserForSessionCookie(t, client)
+	body := postWhoAmI(t, ts.URL, cookie)
+
+	assert.Contains(t, body, `"authenticatedUser":"alice"`)
+	assert.NotContains(t, body, cookie.Value, "WhoAmI must not return the session cookie value")
+	assert.NotContains(t, body, `"sid"`)
+	assert.Contains(t, body, `"sessionFingerprint":"`)
+}

+ 9 - 10
service/internal/auth/authcheck.go

@@ -24,11 +24,11 @@ func AddAuthChainFunction(check func(*types.AuthCheckingContext) *types.Authenti
 	authChain = append(authChain, check)
 	authChain = append(authChain, check)
 }
 }
 
 
-func runAuthChain[T any](req *connect.Request[T], cfg *config.Config) *types.AuthenticatedUser {
+func runAuthChain(header http.Header, cfg *config.Config) *types.AuthenticatedUser {
 	var user *types.AuthenticatedUser
 	var user *types.AuthenticatedUser
 
 
 	authCtx := &types.AuthCheckingContext{
 	authCtx := &types.AuthCheckingContext{
-		Request: &http.Request{Header: req.Header()},
+		Request: &http.Request{Header: header},
 		Config:  cfg,
 		Config:  cfg,
 	}
 	}
 
 
@@ -44,27 +44,26 @@ func runAuthChain[T any](req *connect.Request[T], cfg *config.Config) *types.Aut
 }
 }
 
 
 func UserFromApiCall[T any](ctx context.Context, req *connect.Request[T], cfg *config.Config) *types.AuthenticatedUser {
 func UserFromApiCall[T any](ctx context.Context, req *connect.Request[T], cfg *config.Config) *types.AuthenticatedUser {
-	user := runAuthChain(req, cfg)
-
 	log.Tracef("UserFromApiCall Context: %+v", ctx)
 	log.Tracef("UserFromApiCall Context: %+v", ctx)
 
 
+	return UserFromHeaders(req.Header(), req.Spec().Procedure, cfg)
+}
+
+func UserFromHeaders(header http.Header, procedure string, cfg *config.Config) *types.AuthenticatedUser {
+	user := runAuthChain(header, cfg)
+
 	if user == nil || user.Username == "" {
 	if user == nil || user.Username == "" {
 		user = UserGuest(cfg)
 		user = UserGuest(cfg)
 	} else {
 	} else {
 		user.BuildUserAcls(cfg)
 		user.BuildUserAcls(cfg)
 	}
 	}
 
 
-	path := ""
-	if req != nil {
-		path = req.Spec().Procedure
-	}
-
 	log.WithFields(log.Fields{
 	log.WithFields(log.Fields{
 		"username":      user.Username,
 		"username":      user.Username,
 		"usergroupLine": user.UsergroupLine,
 		"usergroupLine": user.UsergroupLine,
 		"provider":      user.Provider,
 		"provider":      user.Provider,
 		"acls":          user.Acls,
 		"acls":          user.Acls,
-		"path":          path,
+		"path":          procedure,
 	}).Debugf("Authenticated API request")
 	}).Debugf("Authenticated API request")
 
 
 	return user
 	return user

+ 44 - 9
service/internal/auth/authpublic/authenticateduser.go

@@ -1,6 +1,8 @@
 package authpublic
 package authpublic
 
 
 import (
 import (
+	"crypto/sha256"
+	"encoding/hex"
 	"slices"
 	"slices"
 	"strings"
 	"strings"
 
 
@@ -18,10 +20,31 @@ type AuthenticatedUser struct {
 	Acls            []string
 	Acls            []string
 }
 }
 
 
+// The session ID is the credential held in the session cookie, so it is never
+// returned to clients. The fingerprint lets a client tell sessions apart, and
+// cannot be used to authenticate.
+const sessionFingerprintLength = 16
+
+func (u *AuthenticatedUser) SessionFingerprint() string {
+	if u.SID == "" {
+		return ""
+	}
+
+	sum := sha256.Sum256([]byte(u.SID))
+
+	return hex.EncodeToString(sum[:])[:sessionFingerprintLength]
+}
+
 func (u *AuthenticatedUser) IsGuest() bool {
 func (u *AuthenticatedUser) IsGuest() bool {
 	return u.Username == "guest" && u.Provider == "system"
 	return u.Username == "guest" && u.Provider == "system"
 }
 }
 
 
+// MustLogIn is true for unauthenticated visitors when authRequireGuestsToLogin
+// is enabled. Such visitors get no permissions at all, whatever the ACLs say.
+func (u *AuthenticatedUser) MustLogIn(cfg *config.Config) bool {
+	return u != nil && u.IsGuest() && cfg.AuthRequireGuestsToLogin
+}
+
 func (u *AuthenticatedUser) parseUsergroupLine(sep string) []string {
 func (u *AuthenticatedUser) parseUsergroupLine(sep string) []string {
 	ret := []string{}
 	ret := []string{}
 
 
@@ -56,19 +79,31 @@ func (u *AuthenticatedUser) MatchesUsergroupAcl(matchUsergroups []string, sep st
 }
 }
 
 
 func (u *AuthenticatedUser) BuildUserAcls(cfg *config.Config) {
 func (u *AuthenticatedUser) BuildUserAcls(cfg *config.Config) {
-	for _, acl := range cfg.AccessControlLists {
-		if slices.Contains(acl.MatchUsernames, u.Username) {
-			u.Acls = append(u.Acls, acl.Name)
-			continue
-		}
+	u.Acls = append(u.Acls, u.matchingAclNames(cfg)...)
+	u.EffectivePolicy = getEffectivePolicy(cfg, u)
+}
+
+// An ACL that names the "guest" user or usergroup is meant for logged-in users
+// (for example OAuth2 users with no group claim). When login is required it must
+// never match an unauthenticated visitor, who is also called "guest".
+func (u *AuthenticatedUser) matchingAclNames(cfg *config.Config) []string {
+	if u.MustLogIn(cfg) {
+		return nil
+	}
+
+	var names []string
 
 
-		if u.MatchesUsergroupAcl(acl.MatchUsergroups, cfg.AuthHttpHeaderUserGroupSep) {
-			u.Acls = append(u.Acls, acl.Name)
-			continue
+	for _, acl := range cfg.AccessControlLists {
+		if u.matchesAcl(acl, cfg.AuthHttpHeaderUserGroupSep) {
+			names = append(names, acl.Name)
 		}
 		}
 	}
 	}
 
 
-	u.EffectivePolicy = getEffectivePolicy(cfg, u)
+	return names
+}
+
+func (u *AuthenticatedUser) matchesAcl(acl *config.AccessControlList, usergroupSep string) bool {
+	return slices.Contains(acl.MatchUsernames, u.Username) || u.MatchesUsergroupAcl(acl.MatchUsergroups, usergroupSep)
 }
 }
 
 
 func getEffectivePolicy(cfg *config.Config, u *AuthenticatedUser) *config.ConfigurationPolicy {
 func getEffectivePolicy(cfg *config.Config, u *AuthenticatedUser) *config.ConfigurationPolicy {

+ 39 - 0
service/internal/auth/authpublic/session_fingerprint_test.go

@@ -0,0 +1,39 @@
+package authpublic
+
+import (
+	"testing"
+
+	"github.com/stretchr/testify/assert"
+)
+
+func TestSessionFingerprintIsEmptyWithoutSession(t *testing.T) {
+	t.Parallel()
+
+	user := &AuthenticatedUser{Username: "guest"}
+
+	assert.Empty(t, user.SessionFingerprint())
+}
+
+func TestSessionFingerprintDoesNotContainSessionID(t *testing.T) {
+	t.Parallel()
+
+	sid := "3f2b1c7a-8d4e-4f1a-9b6c-2e5d7a9c1b3f"
+	user := &AuthenticatedUser{SID: sid}
+
+	fingerprint := user.SessionFingerprint()
+
+	assert.Len(t, fingerprint, sessionFingerprintLength)
+	assert.NotContains(t, sid, fingerprint)
+	assert.NotContains(t, fingerprint, sid)
+}
+
+func TestSessionFingerprintIsStablePerSession(t *testing.T) {
+	t.Parallel()
+
+	first := &AuthenticatedUser{SID: "session-a"}
+	again := &AuthenticatedUser{SID: "session-a"}
+	other := &AuthenticatedUser{SID: "session-b"}
+
+	assert.Equal(t, first.SessionFingerprint(), again.SessionFingerprint())
+	assert.NotEqual(t, first.SessionFingerprint(), other.SessionFingerprint())
+}

+ 51 - 54
service/internal/auth/otjwt/jwt.go

@@ -1,6 +1,7 @@
 package otjwt
 package otjwt
 
 
 import (
 import (
+	"bytes"
 	"context"
 	"context"
 	"crypto/rsa"
 	"crypto/rsa"
 	"errors"
 	"errors"
@@ -67,18 +68,56 @@ func parseJwtTokenWithRemoteKey(cfg *config.Config, jwtToken string) (*jwt.Token
 }
 }
 
 
 var (
 var (
-	pubKeyBytes   []byte = nil
-	pubKey        *rsa.PublicKey
-	loadedKeyPath string
-
 	jwksVerifier keyfunc.Keyfunc
 	jwksVerifier keyfunc.Keyfunc
 	jwksOnce     sync.Once
 	jwksOnce     sync.Once
 	jwksInitErr  error
 	jwksInitErr  error
 
 
-	localKeyMutex   sync.RWMutex
-	localKeyInitErr error
+	localKey localKeyCache
 )
 )
 
 
+// Operators rotate the local public key by replacing the file at the same
+// path, for example when a Kubernetes or Docker secret is updated, so the file
+// is read on every request and parsed again whenever its contents change. A
+// key file that cannot be read or parsed rejects every token, rather than
+// leaving the previous key trusted.
+type localKeyCache struct {
+	key      *rsa.PublicKey
+	keyBytes []byte
+	mu       sync.Mutex
+}
+
+func (c *localKeyCache) get(keyPath string) (*rsa.PublicKey, error) {
+	keyBytes, err := os.ReadFile(keyPath)
+
+	c.mu.Lock()
+	defer c.mu.Unlock()
+
+	if err != nil {
+		c.clearLocked()
+		return nil, fmt.Errorf("couldn't read public key from file %s", keyPath)
+	}
+
+	if c.key != nil && bytes.Equal(c.keyBytes, keyBytes) {
+		return c.key, nil
+	}
+
+	parsedKey, err := jwt.ParseRSAPublicKeyFromPEM(keyBytes)
+	if err != nil {
+		c.clearLocked()
+		return nil, fmt.Errorf("error parsing public key object (from %s)", keyPath)
+	}
+
+	c.keyBytes = keyBytes
+	c.key = parsedKey
+
+	return parsedKey, nil
+}
+
+func (c *localKeyCache) clearLocked() {
+	c.keyBytes = nil
+	c.key = nil
+}
+
 func initJwks(cfg *config.Config) error {
 func initJwks(cfg *config.Config) error {
 	jwksOnce.Do(func() {
 	jwksOnce.Do(func() {
 		if cfg.AuthJwtCertsURL != "" {
 		if cfg.AuthJwtCertsURL != "" {
@@ -102,58 +141,16 @@ func initRemoteJwks(certsURL string) (keyfunc.Keyfunc, error) {
 	return keyfunc.NewDefaultCtx(context.Background(), []string{certsURL})
 	return keyfunc.NewDefaultCtx(context.Background(), []string{certsURL})
 }
 }
 
 
-func loadPublicKeyFromFile(keyPath string) error {
-	keyBytes, err := os.ReadFile(keyPath)
-	if err != nil {
-		return fmt.Errorf("couldn't read public key from file %s", keyPath)
-	}
-
-	parsedKey, err := jwt.ParseRSAPublicKeyFromPEM(keyBytes)
-	if err != nil {
-		return fmt.Errorf("error parsing public key object (from %s)", keyPath)
-	}
-
-	pubKeyBytes = keyBytes
-	pubKey = parsedKey
-	loadedKeyPath = keyPath
-	localKeyInitErr = nil
-	return nil
-}
-
-func isKeyLoadedForPath(keyPath string) bool {
-	return pubKeyBytes != nil && loadedKeyPath == keyPath
-}
-
-func readLocalPublicKeyWithLock(keyPath string) error {
-	localKeyMutex.RLock()
-	alreadyLoaded := isKeyLoadedForPath(keyPath)
-	localKeyMutex.RUnlock()
-
-	if alreadyLoaded {
-		return nil
-	}
-
-	localKeyMutex.Lock()
-	defer localKeyMutex.Unlock()
-
-	if isKeyLoadedForPath(keyPath) {
-		return nil
-	}
-
-	localKeyInitErr = loadPublicKeyFromFile(keyPath)
-	return localKeyInitErr
-}
-
-func readLocalPublicKey(cfg *config.Config) error {
+func readLocalPublicKey(cfg *config.Config) (*rsa.PublicKey, error) {
 	if cfg.AuthJwtPubKeyPath == "" {
 	if cfg.AuthJwtPubKeyPath == "" {
-		return errors.New("no JWT public key path configured")
+		return nil, errors.New("no JWT public key path configured")
 	}
 	}
-	return readLocalPublicKeyWithLock(cfg.AuthJwtPubKeyPath)
+
+	return localKey.get(cfg.AuthJwtPubKeyPath)
 }
 }
 
 
 func parseJwtTokenWithLocalKey(cfg *config.Config, jwtString string) (*jwt.Token, error) {
 func parseJwtTokenWithLocalKey(cfg *config.Config, jwtString string) (*jwt.Token, error) {
-	err := readLocalPublicKey(cfg)
-
+	publicKey, err := readLocalPublicKey(cfg)
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err
 	}
 	}
@@ -163,7 +160,7 @@ func parseJwtTokenWithLocalKey(cfg *config.Config, jwtString string) (*jwt.Token
 			return nil, fmt.Errorf("parseJwt expected token algorithm RSA but got: %v", token.Header["alg"])
 			return nil, fmt.Errorf("parseJwt expected token algorithm RSA but got: %v", token.Header["alg"])
 		}
 		}
 
 
-		return pubKey, nil
+		return publicKey, nil
 	}
 	}
 
 
 	opts := parserOptionsWithAudience(cfg)
 	opts := parserOptionsWithAudience(cfg)

+ 172 - 0
service/internal/auth/otjwt/jwt_local_key_rotation_test.go

@@ -0,0 +1,172 @@
+package otjwt
+
+import (
+	"crypto/rsa"
+	"os"
+	"path/filepath"
+	"sync"
+	"testing"
+
+	config "github.com/OliveTin/OliveTin/internal/config"
+	"github.com/stretchr/testify/assert"
+	"github.com/stretchr/testify/require"
+)
+
+type rotationKey struct {
+	private *rsa.PrivateKey
+	pubPem  []byte
+	token   string
+}
+
+func newRotationKey(t *testing.T) rotationKey {
+	t.Helper()
+
+	privateKey, pubPem := generateRSAKeyPair(t)
+
+	return rotationKey{
+		private: privateKey,
+		pubPem:  pubPem,
+		token:   createJWTTokenWithExpirationAndAudience(t, privateKey, 1000, ""),
+	}
+}
+
+func localKeyConfig(keyPath string) *config.Config {
+	cfg := config.DefaultConfig()
+	cfg.AuthJwtPubKeyPath = keyPath
+
+	return cfg
+}
+
+func tokenAccepted(cfg *config.Config, token string) bool {
+	parsed, err := parseJwtTokenWithLocalKey(cfg, token)
+
+	return err == nil && parsed != nil && parsed.Valid
+}
+
+func writeKeyFile(t *testing.T, path string, content []byte) {
+	t.Helper()
+
+	require.NoError(t, os.WriteFile(path, content, 0o600))
+}
+
+func requireOnlyAccepted(t *testing.T, cfg *config.Config, accepted rotationKey, rejected rotationKey) {
+	t.Helper()
+
+	assert.True(t, tokenAccepted(cfg, accepted.token), "token signed by the current key must be accepted")
+	assert.False(t, tokenAccepted(cfg, rejected.token), "token signed by the old key must be rejected")
+}
+
+func TestLocalKeyReplacedInPlaceIsUsedWithoutRestart(t *testing.T) {
+	keyA, keyB := newRotationKey(t), newRotationKey(t)
+	keyPath := filepath.Join(t.TempDir(), "jwt.pub")
+	writeKeyFile(t, keyPath, keyA.pubPem)
+	cfg := localKeyConfig(keyPath)
+
+	requireOnlyAccepted(t, cfg, keyA, keyB)
+
+	writeKeyFile(t, keyPath, keyB.pubPem)
+
+	requireOnlyAccepted(t, cfg, keyB, keyA)
+}
+
+func TestLocalKeyReplacedByRenameIsUsedWithoutRestart(t *testing.T) {
+	keyA, keyB := newRotationKey(t), newRotationKey(t)
+	dir := t.TempDir()
+	keyPath := filepath.Join(dir, "jwt.pub")
+	writeKeyFile(t, keyPath, keyA.pubPem)
+	cfg := localKeyConfig(keyPath)
+
+	requireOnlyAccepted(t, cfg, keyA, keyB)
+
+	staged := filepath.Join(dir, "jwt.pub.new")
+	writeKeyFile(t, staged, keyB.pubPem)
+	require.NoError(t, os.Rename(staged, keyPath))
+
+	requireOnlyAccepted(t, cfg, keyB, keyA)
+}
+
+// Kubernetes updates a mounted secret by pointing a symlink at a new directory.
+func TestLocalKeyReplacedBySymlinkSwapIsUsedWithoutRestart(t *testing.T) {
+	keyA, keyB := newRotationKey(t), newRotationKey(t)
+	dir := t.TempDir()
+
+	for name, key := range map[string]rotationKey{"..2026_a": keyA, "..2026_b": keyB} {
+		require.NoError(t, os.Mkdir(filepath.Join(dir, name), 0o750))
+		writeKeyFile(t, filepath.Join(dir, name, "jwt.pub"), key.pubPem)
+	}
+
+	require.NoError(t, os.Symlink("..2026_a", filepath.Join(dir, "..data")))
+	require.NoError(t, os.Symlink(filepath.Join("..data", "jwt.pub"), filepath.Join(dir, "jwt.pub")))
+	cfg := localKeyConfig(filepath.Join(dir, "jwt.pub"))
+
+	requireOnlyAccepted(t, cfg, keyA, keyB)
+
+	require.NoError(t, os.Symlink("..2026_b", filepath.Join(dir, "..data_tmp")))
+	require.NoError(t, os.Rename(filepath.Join(dir, "..data_tmp"), filepath.Join(dir, "..data")))
+
+	requireOnlyAccepted(t, cfg, keyB, keyA)
+}
+
+func TestLocalKeyDeletedRejectsEveryToken(t *testing.T) {
+	keyA := newRotationKey(t)
+	keyPath := filepath.Join(t.TempDir(), "jwt.pub")
+	writeKeyFile(t, keyPath, keyA.pubPem)
+	cfg := localKeyConfig(keyPath)
+
+	require.True(t, tokenAccepted(cfg, keyA.token))
+
+	require.NoError(t, os.Remove(keyPath))
+	assert.False(t, tokenAccepted(cfg, keyA.token), "a deleted key file must not leave the old key trusted")
+
+	writeKeyFile(t, keyPath, keyA.pubPem)
+	assert.True(t, tokenAccepted(cfg, keyA.token), "restoring the key file must work without a restart")
+}
+
+func TestLocalKeyCorruptedRejectsEveryToken(t *testing.T) {
+	keyA := newRotationKey(t)
+	keyPath := filepath.Join(t.TempDir(), "jwt.pub")
+	writeKeyFile(t, keyPath, keyA.pubPem)
+	cfg := localKeyConfig(keyPath)
+
+	require.True(t, tokenAccepted(cfg, keyA.token))
+
+	writeKeyFile(t, keyPath, []byte("not a public key"))
+
+	assert.False(t, tokenAccepted(cfg, keyA.token), "a corrupted key file must not leave the old key trusted")
+}
+
+func TestLocalKeyUnchangedFileReusesParsedKey(t *testing.T) {
+	keyA := newRotationKey(t)
+	keyPath := filepath.Join(t.TempDir(), "jwt.pub")
+	writeKeyFile(t, keyPath, keyA.pubPem)
+
+	first, err := localKey.get(keyPath)
+	require.NoError(t, err)
+
+	second, err := localKey.get(keyPath)
+	require.NoError(t, err)
+
+	assert.Same(t, first, second, "an unchanged key file must not be parsed again")
+}
+
+func TestLocalKeyRotationDuringConcurrentRequests(t *testing.T) {
+	keyA, keyB := newRotationKey(t), newRotationKey(t)
+	keyPath := filepath.Join(t.TempDir(), "jwt.pub")
+	writeKeyFile(t, keyPath, keyA.pubPem)
+	cfg := localKeyConfig(keyPath)
+
+	var wg sync.WaitGroup
+	for range 8 {
+		wg.Go(func() {
+			for range 50 {
+				tokenAccepted(cfg, keyA.token)
+				tokenAccepted(cfg, keyB.token)
+			}
+		})
+	}
+
+	writeKeyFile(t, keyPath, keyB.pubPem)
+	wg.Wait()
+
+	requireOnlyAccepted(t, cfg, keyB, keyA)
+}

+ 2 - 3
service/internal/auth/trusted-headers.go

@@ -18,9 +18,8 @@ func checkUserFromHeaders(context *types.AuthCheckingContext) *types.Authenticat
 		u.UsergroupLine = getHeaderKeyOrEmpty(context.Request.Header, context.Config.AuthHttpHeaderUserGroup)
 		u.UsergroupLine = getHeaderKeyOrEmpty(context.Request.Header, context.Config.AuthHttpHeaderUserGroup)
 	}
 	}
 
 
-	if prov := getHeaderKeyOrEmpty(context.Request.Header, "provider"); prov != "" {
-		u.Provider = prov
-	}
+	u.Provider = "trusted-header"
+
 	return u
 	return u
 }
 }
 
 

+ 28 - 0
service/internal/auth/trusted-headers_test.go

@@ -0,0 +1,28 @@
+package auth
+
+import (
+	"net/http"
+	"testing"
+
+	"github.com/stretchr/testify/assert"
+
+	types "github.com/OliveTin/OliveTin/internal/auth/authpublic"
+	"github.com/OliveTin/OliveTin/internal/config"
+)
+
+func TestCheckUserFromHeadersIgnoresClientProviderHeader(t *testing.T) {
+	cfg := config.DefaultConfig()
+	cfg.AuthHttpHeaderUsername = "X-Username"
+
+	header := http.Header{}
+	header.Set("X-Username", "alice")
+	header.Set("provider", "system")
+
+	user := checkUserFromHeaders(&types.AuthCheckingContext{
+		Request: &http.Request{Header: header},
+		Config:  cfg,
+	})
+
+	assert.Equal(t, "alice", user.Username)
+	assert.Equal(t, "trusted-header", user.Provider)
+}

+ 39 - 1
service/internal/config/config.go

@@ -2,6 +2,7 @@ package config
 
 
 import (
 import (
 	"fmt"
 	"fmt"
+	"slices"
 )
 )
 
 
 // ReservedArgumentNamePrefix is reserved for OliveTin-injected system arguments.
 // ReservedArgumentNamePrefix is reserved for OliveTin-injected system arguments.
@@ -92,9 +93,38 @@ type RateSpec struct {
 }
 }
 
 
 // WebhookConfig defines configuration for generic webhook triggers.
 // WebhookConfig defines configuration for generic webhook triggers.
+// WebhookAuthTypeNone must be set explicitly for a webhook that accepts
+// unauthenticated requests.
+const WebhookAuthTypeNone = "none"
+
+// WebhookTemplateNames are the webhook templates OliveTin knows. Each one sets
+// its own authType, so a webhook that uses one does not need an authType in
+// the config.
+var WebhookTemplateNames = []string{
+	"github-push",
+	"github-pr",
+	"github-pull-request",
+	"github-release",
+	"github-workflow",
+}
+
+func IsKnownWebhookTemplate(name string) bool {
+	return slices.Contains(WebhookTemplateNames, name)
+}
+
+// HmacWebhookAuthTypes sign only the request body. The older of the two hash
+// functions is only accepted so that OliveTin can check signatures from
+// senders that still use it, such as older GitHub webhooks; OliveTin does not
+// use it for anything else.
+var HmacWebhookAuthTypes = []string{"hmac-sha256", "hmac-sha1"} // DevSkim: ignore DS126858
+
+func IsHmacWebhookAuthType(authType string) bool {
+	return slices.Contains(HmacWebhookAuthTypes, authType)
+}
+
 type WebhookConfig struct {
 type WebhookConfig struct {
 	Secret        string            `koanf:"secret"`        // Optional: secret for signature verification
 	Secret        string            `koanf:"secret"`        // Optional: secret for signature verification
-	AuthType      string            `koanf:"authType"`      // Optional: "hmac-sha256", "hmac-sha1", "bearer", "basic", "none"
+	AuthType      string            `koanf:"authType"`      // Required unless set by a template: "hmac-sha256", "hmac-sha1", "bearer", "basic", "none"
 	AuthHeader    string            `koanf:"authHeader"`    // Optional: custom header name for auth (default: "X-Webhook-Signature")
 	AuthHeader    string            `koanf:"authHeader"`    // Optional: custom header name for auth (default: "X-Webhook-Signature")
 	MatchHeaders  map[string]string `koanf:"matchHeaders"`  // Match HTTP headers
 	MatchHeaders  map[string]string `koanf:"matchHeaders"`  // Match HTTP headers
 	MatchPath     string            `koanf:"matchPath"`     // JSONPath expression to match in request body (format: "jsonpath=value" or just "jsonpath")
 	MatchPath     string            `koanf:"matchPath"`     // JSONPath expression to match in request body (format: "jsonpath=value" or just "jsonpath")
@@ -215,6 +245,7 @@ type Config struct {
 	sourceFiles                        []string
 	sourceFiles                        []string
 	AuthLocalUsers                     AuthLocalUsersConfig `koanf:"authLocalUsers"`
 	AuthLocalUsers                     AuthLocalUsersConfig `koanf:"authLocalUsers"`
 	LogHistoryPageSize                 int64                `koanf:"logHistoryPageSize"`
 	LogHistoryPageSize                 int64                `koanf:"logHistoryPageSize"`
+	LogHistoryLimit                    int                  `koanf:"logHistoryLimit"`
 	LogDebugOptions                    LogDebugOptions      `koanf:"logDebugOptions"`
 	LogDebugOptions                    LogDebugOptions      `koanf:"logDebugOptions"`
 	DefaultPermissions                 PermissionsList      `koanf:"defaultPermissions"`
 	DefaultPermissions                 PermissionsList      `koanf:"defaultPermissions"`
 	DefaultPolicy                      ConfigurationPolicy  `koanf:"defaultPolicy"`
 	DefaultPolicy                      ConfigurationPolicy  `koanf:"defaultPolicy"`
@@ -303,6 +334,12 @@ type DashboardComponent struct {
 	Contents     []*DashboardComponent `koanf:"contents"`
 	Contents     []*DashboardComponent `koanf:"contents"`
 }
 }
 
 
+// DefaultLogHistoryLimit is how many execution logs are kept in memory by default.
+const DefaultLogHistoryLimit = 2000
+
+// MinimumLogHistoryLimit stops the in-memory log history being configured too small to be useful.
+const MinimumLogHistoryLimit = 100
+
 func DefaultConfig() *Config {
 func DefaultConfig() *Config {
 	return DefaultConfigWithBasePort(1337)
 	return DefaultConfigWithBasePort(1337)
 }
 }
@@ -320,6 +357,7 @@ func DefaultConfigWithBasePort(basePort int) *Config {
 	config.ExternalRestAddress = "."
 	config.ExternalRestAddress = "."
 	config.LogLevel = "INFO"
 	config.LogLevel = "INFO"
 	config.LogHistoryPageSize = 10
 	config.LogHistoryPageSize = 10
+	config.LogHistoryLimit = DefaultLogHistoryLimit
 	config.CheckForUpdates = false
 	config.CheckForUpdates = false
 	config.DefaultPermissions.Exec = true
 	config.DefaultPermissions.Exec = true
 	config.DefaultPermissions.View = true
 	config.DefaultPermissions.View = true

+ 64 - 13
service/internal/config/sanitize.go

@@ -18,6 +18,7 @@ func (cfg *Config) Sanitize() {
 	cfg.sanitizeLogLevel()
 	cfg.sanitizeLogLevel()
 	cfg.sanitizeAuthRequireGuestsToLogin()
 	cfg.sanitizeAuthRequireGuestsToLogin()
 	cfg.sanitizeLogHistoryPageSize()
 	cfg.sanitizeLogHistoryPageSize()
+	cfg.sanitizeLogHistoryLimit()
 	cfg.sanitizeLocalUsers()
 	cfg.sanitizeLocalUsers()
 	cfg.sanitizeSecurityHeaders()
 	cfg.sanitizeSecurityHeaders()
 	cfg.sanitizeOnClickDefaults()
 	cfg.sanitizeOnClickDefaults()
@@ -263,6 +264,7 @@ func (action *Action) sanitize(cfg *Config) {
 	action.Icon = lookupHTMLIcon(action.Icon, cfg.DefaultIconForActions)
 	action.Icon = lookupHTMLIcon(action.Icon, cfg.DefaultIconForActions)
 	migrateActionOnClick(action)
 	migrateActionOnClick(action)
 	action.sanitizeJustification()
 	action.sanitizeJustification()
+	action.reportUnknownOnClick(cfg)
 	action.OnClick = sanitizeOnClick(action.OnClick, cfg)
 	action.OnClick = sanitizeOnClick(action.OnClick, cfg)
 	action.PopupOnStart = action.OnClick
 	action.PopupOnStart = action.OnClick
 
 
@@ -357,6 +359,13 @@ func (cfg *Config) sanitizeLogHistoryPageSize() {
 	}
 	}
 }
 }
 
 
+func (cfg *Config) sanitizeLogHistoryLimit() {
+	if cfg.LogHistoryLimit < MinimumLogHistoryLimit {
+		log.Warnf("logHistoryLimit %d is too low, setting it to %d", cfg.LogHistoryLimit, MinimumLogHistoryLimit)
+		cfg.LogHistoryLimit = MinimumLogHistoryLimit
+	}
+}
+
 func (cfg *Config) sanitizeLocalUsers() {
 func (cfg *Config) sanitizeLocalUsers() {
 	for _, user := range cfg.AuthLocalUsers.Users {
 	for _, user := range cfg.AuthLocalUsers.Users {
 		expandLocalUserEnvTemplates(user)
 		expandLocalUserEnvTemplates(user)
@@ -454,22 +463,63 @@ func getActionID(action *Action) string {
 	return action.ID
 	return action.ID
 }
 }
 
 
-//gocyclo:ignore
+// onClickModes are the onclick values that change how an action behaves.
+var onClickModes = []string{
+	"execution-dialog",
+	"execution-dialog-output-html",
+	"execution-dialog-stdout-only",
+	"execution-button",
+	"history",
+}
+
+// onClickDefaultAliases are accepted values that mean "use the default behaviour".
+var onClickDefaultAliases = []string{
+	"",
+	"default",
+	"nothing",
+}
+
+func isKnownOnClick(value string) bool {
+	return slices.Contains(onClickModes, value) || slices.Contains(onClickDefaultAliases, value)
+}
+
 func sanitizeOnClick(raw string, cfg *Config) string {
 func sanitizeOnClick(raw string, cfg *Config) string {
-	switch raw {
-	case "execution-dialog":
-		return raw
-	case "execution-dialog-output-html":
-		return raw
-	case "execution-dialog-stdout-only":
-		return raw
-	case "execution-button":
+	if slices.Contains(onClickModes, raw) {
 		return raw
 		return raw
-	case "history":
-		return raw
-	default:
-		return cfg.DefaultOnClick
 	}
 	}
+
+	return cfg.DefaultOnClick
+}
+
+func (action *Action) reportUnknownOnClick(cfg *Config) {
+	// On a second sanitize pass, an action's onclick may already hold the
+	// (separately reported) defaultOnClick value.
+	if isKnownOnClick(action.OnClick) || action.OnClick == cfg.DefaultOnClick {
+		return
+	}
+
+	configissues.ReportSticky(configissues.Issue{
+		Severity:    configissues.SeverityWarning,
+		Code:        configissues.CodeOnClickUnknown,
+		Message:     fmt.Sprintf("Unknown onclick value %q, using defaultOnClick (%q) instead", action.OnClick, cfg.DefaultOnClick),
+		ActionID:    action.ID,
+		ActionTitle: action.Title,
+		Source:      action.OnClick,
+		ConfigFile:  action.SourceFile,
+	})
+}
+
+func (cfg *Config) reportUnknownDefaultOnClick() {
+	if isKnownOnClick(cfg.DefaultOnClick) {
+		return
+	}
+
+	configissues.ReportSticky(configissues.Issue{
+		Severity: configissues.SeverityWarning,
+		Code:     configissues.CodeOnClickUnknown,
+		Message:  fmt.Sprintf("Unknown defaultOnClick value %q, actions will behave as if it were \"nothing\"", cfg.DefaultOnClick),
+		Source:   cfg.DefaultOnClick,
+	})
 }
 }
 
 
 func migrateActionOnClick(action *Action) {
 func migrateActionOnClick(action *Action) {
@@ -511,6 +561,7 @@ func (cfg *Config) sanitizeOnClickDefaults() {
 		cfg.DefaultOnClick = "nothing"
 		cfg.DefaultOnClick = "nothing"
 	}
 	}
 
 
+	cfg.reportUnknownDefaultOnClick()
 	cfg.DefaultPopupOnStart = cfg.DefaultOnClick
 	cfg.DefaultPopupOnStart = cfg.DefaultOnClick
 }
 }
 
 

+ 50 - 0
service/internal/config/sanitize_test.go

@@ -3,6 +3,7 @@ package config
 import (
 import (
 	"testing"
 	"testing"
 
 
+	"github.com/OliveTin/OliveTin/internal/configissues"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 	"github.com/stretchr/testify/require"
 )
 )
@@ -293,3 +294,52 @@ func TestValidateChecklistChoiceValuesAllowsCommas(t *testing.T) {
 	err := c.validateChecklistChoiceValues()
 	err := c.validateChecklistChoiceValues()
 	require.NoError(t, err)
 	require.NoError(t, err)
 }
 }
+
+func stickyIssuesWithCode(code string) []configissues.Issue {
+	out := make([]configissues.Issue, 0)
+	for _, issue := range configissues.CopySticky() {
+		if issue.Code == code {
+			out = append(out, issue)
+		}
+	}
+	return out
+}
+
+func TestSanitizeReportsUnknownOnClick(t *testing.T) {
+	configissues.BeginConfigLoad()
+	c := DefaultConfig()
+	c.Actions = append(c.Actions, &Action{Title: "Ping", OnClick: "myexample"})
+	c.Sanitize()
+
+	issues := stickyIssuesWithCode(configissues.CodeOnClickUnknown)
+	require.Len(t, issues, 1)
+	assert.Equal(t, "Ping", issues[0].ActionTitle)
+	assert.Equal(t, "myexample", issues[0].Source)
+	assert.Equal(t, "nothing", c.findAction("Ping").OnClick, "Unknown onclick still falls back to the default")
+}
+
+func TestSanitizeAcceptsKnownOnClickValues(t *testing.T) {
+	configissues.BeginConfigLoad()
+	c := DefaultConfig()
+	for _, value := range []string{"", "default", "nothing", "execution-dialog", "execution-dialog-output-html", "execution-dialog-stdout-only", "execution-button", "history"} {
+		c.Actions = append(c.Actions, &Action{Title: "Action " + value, OnClick: value})
+	}
+	c.Sanitize()
+
+	assert.Empty(t, stickyIssuesWithCode(configissues.CodeOnClickUnknown))
+}
+
+func TestSanitizeReportsUnknownDefaultOnClickOnce(t *testing.T) {
+	configissues.BeginConfigLoad()
+	c := DefaultConfig()
+	c.DefaultOnClick = "myexample"
+	c.Actions = append(c.Actions, &Action{Title: "Ping"})
+	c.Sanitize()
+	c.Sanitize()
+
+	issues := stickyIssuesWithCode(configissues.CodeOnClickUnknown)
+	require.NotEmpty(t, issues)
+	for _, issue := range issues {
+		assert.Empty(t, issue.ActionTitle, "Only defaultOnClick is reported, not each action inheriting it")
+	}
+}

+ 61 - 0
service/internal/configcheck/dashboard_types.go

@@ -0,0 +1,61 @@
+package configcheck
+
+import (
+	"fmt"
+	"slices"
+
+	"github.com/OliveTin/OliveTin/internal/config"
+	"github.com/OliveTin/OliveTin/internal/configissues"
+)
+
+// knownDashboardComponentTypes are the dashboard component types the web UI
+// can render. An empty type lets OliveTin pick one from the component's contents.
+var knownDashboardComponentTypes = []string{
+	"",
+	"fieldset",
+	"directory",
+	"display",
+	"link",
+	"stdout-most-recent-execution",
+}
+
+func collectDashboardTypeIssues(cfg *config.Config) []configissues.Issue {
+	out := make([]configissues.Issue, 0)
+	visited := make(map[*config.DashboardComponent]bool)
+
+	for _, dashboard := range cfg.Dashboards {
+		out = append(out, dashboardTypeIssues(dashboard, dashboard, visited)...)
+	}
+
+	return out
+}
+
+func dashboardTypeIssues(dashboard, component *config.DashboardComponent, visited map[*config.DashboardComponent]bool) []configissues.Issue {
+	if component == nil || visited[component] {
+		return nil
+	}
+
+	visited[component] = true
+
+	out := unknownDashboardTypeIssue(dashboard, component)
+
+	for _, child := range component.Contents {
+		out = append(out, dashboardTypeIssues(dashboard, child, visited)...)
+	}
+
+	return out
+}
+
+func unknownDashboardTypeIssue(dashboard, component *config.DashboardComponent) []configissues.Issue {
+	if slices.Contains(knownDashboardComponentTypes, component.Type) {
+		return nil
+	}
+
+	return []configissues.Issue{{
+		Severity: configissues.SeverityWarning,
+		Code:     configissues.CodeDashboardTypeUnknown,
+		Message: fmt.Sprintf("Dashboard %q component %q has unknown type %q; a default type will be used instead",
+			dashboard.Title, component.Title, component.Type),
+		Source: component.Type,
+	}}
+}

+ 70 - 0
service/internal/configcheck/dashboard_types_test.go

@@ -0,0 +1,70 @@
+package configcheck_test
+
+import (
+	"testing"
+
+	"github.com/OliveTin/OliveTin/internal/config"
+	"github.com/OliveTin/OliveTin/internal/configcheck"
+	"github.com/OliveTin/OliveTin/internal/configissues"
+	"github.com/stretchr/testify/assert"
+	"github.com/stretchr/testify/require"
+)
+
+func TestRebuildUnknownDashboardComponentType(t *testing.T) {
+	configissues.BeginConfigLoad()
+	cfg := config.DefaultConfig()
+	cfg.Dashboards = []*config.DashboardComponent{
+		{
+			Title: "Containers",
+			Contents: []*config.DashboardComponent{
+				{
+					Title:  "Container {{ .CurrentEntity.Names }}",
+					Entity: "container",
+					Type:   "myexample",
+					Contents: []*config.DashboardComponent{
+						{Title: "Start", Type: "display"},
+					},
+				},
+			},
+		},
+	}
+
+	configcheck.Rebuild(cfg)
+
+	issues := issuesWithCode(configissues.List(), configissues.CodeDashboardTypeUnknown)
+	require.Len(t, issues, 1)
+	assert.Equal(t, "myexample", issues[0].Source)
+	assert.Contains(t, issues[0].Message, "Containers")
+}
+
+func TestRebuildKnownDashboardComponentTypes(t *testing.T) {
+	configissues.BeginConfigLoad()
+	cfg := config.DefaultConfig()
+	cfg.Dashboards = []*config.DashboardComponent{
+		{
+			Title: "Everything",
+			Contents: []*config.DashboardComponent{
+				{Title: "a"},
+				{Title: "b", Type: "fieldset"},
+				{Title: "c", Type: "directory"},
+				{Title: "d", Type: "display"},
+				{Title: "e", Type: "link"},
+				{Title: "f", Type: "stdout-most-recent-execution"},
+			},
+		},
+	}
+
+	configcheck.Rebuild(cfg)
+
+	assert.False(t, hasCode(configissues.List(), configissues.CodeDashboardTypeUnknown))
+}
+
+func issuesWithCode(issues []configissues.Issue, code string) []configissues.Issue {
+	out := make([]configissues.Issue, 0)
+	for _, issue := range issues {
+		if issue.Code == code {
+			out = append(out, issue)
+		}
+	}
+	return out
+}

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است