Skip to content

demo: teams-demo organization server on GCP (deploy + teardown) - #2630

Merged
santoshkumarradha merged 2 commits into
work/teamsfrom
demo/gcp-org-server
Nov 13, 2026
Merged

santoshkumarradha merged 2 commits into
work/teamsfrom
demo/gcp-org-server

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

What

A one-command deploy and teardown for the organization server the teams demo records against: two desks on two Macs joining one codeaf factory serve as two people.

  • scripts/demo-org-server-deploy.sh [ref] (default origin/work/teams) does a static linux/amd64 build from the ref in a throwaway worktree, copies it to one e2-small Debian 12 VM in openaf-505800/us-central1-a, and restarts codeaf factory serve under systemd. On the first run it also creates the VM, static IP and firewall rules (80/443/22). A redeploy keeps the server's state and its access token.
  • HTTPS: Caddy on <static-ip>.sslip.io (Let's Encrypt) proxies to the server on 127.0.0.1:8787, with flush_interval -1 so event streams are not buffered. The server runs tls: off, domain: set, and trusted_proxies: [127.0.0.1/32], so every link it prints names the public https address.
  • Sign-in uses the GitHub device flow with the CodeAF OAuth app (Ov23liZE8n5kPnDn5RcK). No client secret is needed: the server's refresh path sends only client_id.
  • scripts/demo-org-server-teardown.sh [-y] deletes every VM, disk and address labelled purpose=codeaf-teams-demo, plus the codeaf-teams-demo-* firewall rules (firewall rules cannot carry labels), and prints each thing it deletes.
  • deploy/demo-org-server/README.md covers claiming and joining.

Live now

https://34-55-128-185.sslip.io, built from origin/work/teams @ 384f15b. The server is not claimed yet: the operator link is in the service log (see the README).

Proof

  • GET /v1/about returns scheme: https, served_by: factory, contract: 2, version 384f15b. /v1/me and /v1/teams return 401 without a session.
  • Ran the deploy three times. The second run failed because its own health check used /healthz, which is loopback-only, so that check was fixed. The third run exited 0, and the access token was unchanged.
  • A teardown dry run (answered n) lists the VM and its disk, codeaf-teams-demo-ip, codeaf-teams-demo-web and codeaf-teams-demo-ssh.

No Go changes, so there is no change entry for the engine surface. This is demo infrastructure only.

santoshkumarradha and others added 2 commits November 13, 2026 13:05
…server on GCP

scripts/demo-org-server-deploy.sh builds a static linux/amd64 codeaf from a
given ref and runs it as `codeaf factory serve` under systemd on one e2-small
VM, behind Caddy with HTTPS on <ip>.sslip.io; it creates the VM, static
address and firewall rules the first time and only updates afterwards.
scripts/demo-org-server-teardown.sh deletes everything labelled
purpose=codeaf-teams-demo so the demo stops billing.

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>
The default GCP project id spells the old name and cannot be renamed, so its
lines carry the legacy-name marker the name law reads.

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>
@santoshkumarradha
santoshkumarradha merged commit 3f24c02 into work/teams Nov 13, 2026
1 check passed
@santoshkumarradha
santoshkumarradha deleted the demo/gcp-org-server branch November 13, 2026 18:34
ZeroPoint95 pushed a commit that referenced this pull request Nov 24, 2026
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