Repository navigation
feat(demo): live demo on rootless Podman behind a Cloudflare Tunnel - #12
Merged
Merged
Conversation
Four generated apps (rest, htmx, realtime, grpc) served at
{rest,htmx,live,grpc}-demo.cybercoretech.net from a home host, with no
open ports.
demo/
- quadlet/: systemd user units (rootless Podman, no sudo, start at
boot via lingering). Internal networks: apps <-> cloudflared, and a
separate db network for postgres <-> rest/htmx. Only cloudflared has
an egress network; no unit publishes a port. Read-only root fs, all
caps dropped (postgres keeps 5), no-new-privileges, memory/CPU/pid
limits, health checks, AutoUpdate=registry.
- systemd/: nightly 04:00 reset timer (TRUNCATE items/todos/users).
- install.sh: --check / install / --uninstall; generates DB password and
JWT secrets once (mode 600, never printed), shape-checks the tunnel
token without reading it out, enables reset + podman-auto-update.
- README: dashboard setup (routes incl. /metrics 404, HTTP/2 origin for
gRPC, zone gRPC, rate-limit rule), GHCR visibility, operations.
CI
- demo-images.yml: builds each demo image with this commit's novastack,
runs it read-only with no caps (plus postgres) and passes the
docker-smoke HTTP checks; publishes :latest + version on release,
:latest + sha on main dispatch, never on PRs.
- ci.yml "demo units": Podman 5.8 quadlet dry-run (all six services
generated, no published ports), shellcheck, systemd-analyze verify.
Verified locally: quadlet -dryrun with Podman 6.1.4 and 5.8.7, shellcheck,
systemd-analyze, and the hardened postgres container (init script creates
rest + htmx, reset SQL is a no-op on empty and truncates when populated).
👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The runner's own system units print unrelated CPUAccounting warnings. 👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds everything needed to run a public live demo of four NovaStack-generated apps from blackbox, with no open ports.
rest-demo.cybercoretech.netrest+ Postgres + auth + otel (/metricsblocked at the tunnel)htmx-demo.cybercoretech.nethtmx+ Postgres + authlive-demo.cybercoretech.netrealtime(WebSocket + SSE)grpc-demo.cybercoretech.net:443grpc(reflection;grpcurl … list)How it runs (
demo/)/etc; start at boot through lingering (already on forraven).--cap-drop all(Postgres keeps CHOWN/DAC_OVERRIDE/FOWNER/SETGID/SETUID),no-new-privileges, memory/CPU/pid limits, health checks.AutoUpdate=registry;podman-auto-update.timerpulls a new:latestdaily.items,todos,users).install.sh(--check/ install /--uninstall): generates the DB password and JWT secrets once (mode 600, never printed); checks the tunnel token's shape without printing it.demo/README.mddocuments the Cloudflare setup (routes, gRPC/HTTP2, rate-limit rule), GHCR visibility and day-to-day commands.CI
demo-images.yml: builds each demo image with this commit's NovaStack, runs it like the host does (read-only, no caps, Postgres where needed) and passes thedocker-smoke.shHTTP checks. Publishes:latest+ version on a release,:latest+sha-…on a manual run frommain, never on PRs (it runs on this PR to test the images).ci.yml→demo units: Podman 5.8 Quadlet dry-run (all six services generated, no published ports), shellcheck,systemd-analyze verify.Verified locally
-dryrunwith Podman 6.1.4 (blackbox) and 5.8.7 (CI image): all units accepted.systemd-analyze verify(only "demo-postgres.service not found", expected before install).rest+htmx; reset SQL is a no-op on an empty DB and empties populated tables.After merge
main(or wait for the next release), then make the fournovastack-demo-*packages public.demo/install.sh(needs the real tunnel token in~/.config/novastack-demo/tunnel.env), then verify every hostname from outside.👻 Code & Design by Darkstardevx 🤖 Generated with Claude Code