Skip to content

fix(edge): version.toml as single source of truth for health + dashboard#8125

Merged
h0lybyte merged 1 commit intodevfrom
trunk/edge-version-fix-1773701086
Mar 16, 2026
Merged

fix(edge): version.toml as single source of truth for health + dashboard#8125
h0lybyte merged 1 commit intodevfrom
trunk/edge-version-fix-1773701086

Conversation

@h0lybyte
Copy link
Member

Summary

  • version.toml is now the single source of truth for edge version AND function registry (name, label, description)
  • Dockerfile bakes version.toml into the container at /home/deno/version.toml with --chown=deno:deno for proper read permissions
  • health/index.ts parses version.toml at startup and serves version + full function list in its JSON response
  • ReactEdgeDashboard fetches the function registry dynamically from /health instead of maintaining a hardcoded list — adding a new edge function only requires a [[functions]] entry in version.toml
  • Removed EDGE_VERSION env var from k8s deployment manifest (no longer needed)
  • Added Deno.readTextFile type declaration to types.d.ts
  • e2e tests validate that health endpoint returns version and function names matching version.toml

Test plan

  • Build edge Docker image locally and verify /health returns version 0.1.11 + 8 functions
  • Verify dashboard loads function list dynamically from health endpoint
  • Run nx run edge-e2e:e2e to validate version and function registry assertions
  • Confirm deno user can read /home/deno/version.toml inside the container

… function registry

Bake version.toml into the Docker image with proper deno user permissions.
Health endpoint now reads version and function metadata from version.toml
at startup, serving it in the JSON response. Dashboard fetches the function
list dynamically from health instead of hardcoding it. Added e2e tests to
validate version and function registry match version.toml.
@github-actions
Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit 4450b66 into dev Mar 16, 2026
4 checks passed
@h0lybyte h0lybyte deleted the trunk/edge-version-fix-1773701086 branch March 16, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant