Skip to content

srx-terraform workshop, wan-cloud module, lab reader copy buttons, vault bot fixes, code-server 4.145.0 - #76

Merged
fiddler110 merged 25 commits into
mainfrom
feat/srx-terraform
Nov 5, 2026
Merged

fiddler110 merged 25 commits into
mainfrom
feat/srx-terraform

Conversation

@fiddler110

Copy link
Copy Markdown
Collaborator

What

  • New workshop srx-terraform (SRX with Terraform and Mist) and the wan-cloud module (the Dojo WAN simulator and renderer behind it). Labs 0-9 cover org objects, the gateway template, sites and variables, claiming devices, roles (spoke template, hub profile, device override), shared state, pull-request review, drift and a ticket-driven capstone. Roadmap T1-T3, T5 and T6 are closed. T4, the SRX engineer's review, is still open.
  • Class-wide drift button for Lab 8. Drift is refused in an org with no network.
  • Workshops grouped into tracks: education, offensive, technology.
  • Lab reader: every code block in every workshop, reveal bodies included, gets a Copy button. When the clipboard API is refused it falls back to execCommand.
  • Vault bot and tests: shell blocks are found again after the labs moved from bash to sh fences (this fixes the IndexError). tests/lab_2.sh is rewritten for Lab 2's 9 merged blocks. The bot retries transient bao errors such as the kv-v2 "Upgrading from non-versioned..." window, resending the same stdin.
  • code-server 4.137.0 -> 4.145.0 (engine/web-terminal-vscode/Dockerfile). The roadmap planned 4.141.0, but that version is affected by GHSA-gcvg-jpfh-4xm8 (Brotli RCE) and GHSA-jvcp-w94c-mvvh (the session cookie leaks through the port proxy).

Tested locally (WSL2 stack)

  • srx-terraform: --test 1 --fast ran through dojo check 9 with no failing block. Lab 8's expected outputs match, and Lab 9's PR block opened and merged a PR. Earlier runs used 10 and 15 bots.
  • Copy buttons (Playwright): 16 code blocks and 16 buttons on vault Lab 5. The copied text equals the block, the button stays put when a wide block scrolls, and a 390 px page doesn't scroll sideways.
  • vault-fundamentals:
    • --test 3 --fast: every bot finished with no IndexError. The retry caught one transient kv put, and Lab 6 rendered the rotated secret.
    • tests/lab_2.sh student01: 14/14 checks passed.
  • code-server: the image builds, --version reports 4.145.0, and /ide/ serves the workbench.
  • Repo lint passes.

🤖 Generated with Claude Code

scott and others added 21 commits November 4, 2026 06:17
The platform now has three kinds of pack: concept workshops, the CTF series and
product-focused training. WORKSHOP_TRACK in workshop.env names the bucket;
./dojo list groups by it, each track keeps its own learning-path order, and the
showcase (no track) lists above them. A tag instead of subfolders keeps every
workshops/<name> path working.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
First pack of the technology track. The spike showed the real Juniper/mist
provider running a full SRX build against a simulated API answering as
api.mist.com, offline; the plan records the rules the simulator must follow
and the build contract the parts share.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first technology-track pack: students build a greenfield SRX estate with
Terraform and the real Juniper/mist provider against wan-api, a simulated Mist
API answering as api.mist.com inside the lab. The module brings the simulator,
the Dojo WAN portal with a Junos config preview, a root token broker and an
offline Terraform 1.17.1 plus provider mirror; the pack has ten labs, slides,
checks and demo bots. Unit and contract tests pass; not yet run on a stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mist only applies a template's or profile's DNS and NTP servers when
dnsOverride/ntpOverride is set, and a device's vars override site vars.
The renderer now does both and notes when a template and a profile meet
on one gateway, which Mist does not document. The plan records the
sources and what still needs a real org to confirm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mist documents a template for spoke sites and a device profile for hub
gateways, not both on one box. Lab 5 now adds a dc-01 hub site with a
fifth delivered gateway (SRX1500) carrying a hub profile, shows the
dns_override flag, and keeps the Ottawa device override as the last
resort. Stages, checks, bots and slides follow. Networks now default
disallow_mist_services to false as the API does, so an import plans clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fast bot walked Labs 0-9 with every dojo check passing; the stale stacked-layer
wording in the slide cheat sheet, srx-check and indexes now matches the hub/spoke
model, and slides that overflowed 16:9 are split or trimmed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013J9U65HFBhdKq9sHUiNfjT
The bot now runs each page's code blocks in order instead of copying stage files.
That exposed an apply before the hub's inventory entry, a prose-only profile edit,
a lock demo that held no lock, an unmerged Lab 8 branch that made Lab 9 destroy
guest, and two wrong plan counts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013J9U65HFBhdKq9sHUiNfjT
Records the lab-text bot, the five lab bugs its first run found, the Roles rename,
the lock demo that holds an apply (console takes no lock), and what is still open.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013J9U65HFBhdKq9sHUiNfjT
… ran live

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ngineer

The renderer no longer emits an untagged unit 0 on a port with vlan-tagging,
which Junos refuses, and its header says what the preview leaves out. Lab 5's
NTP troubleshooting row named the wrong cause. SRX-REVIEW.md lists what only a
person who runs SRX with Mist can settle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fallback created a service policy Terraform doesn't manage, so the
facilitator was told plan would show a change and it showed none (live,
15-bot run). The portal now shows the server's reason for a 409.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The facilitator guide promised one press that drifts every org; the portal
only had a per-org button. POST /wan/api/drift moves each student org's
first network VLAN and reports changed and skipped (no network yet).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… override NTP

Mist's WAN config hierarchy page: a device overrides only DNS and the
application policy. Ottawa's override moves from NTP to DNS through Labs
5-9, the stages, the slides and srx-check; the renderer notes a device NTP
setting as not applied. SRX-REVIEW.md records what the docs settled, and
FACILITATOR.md gets the measured 15-bot numbers and the class-wide drift.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both drift panels wrote into a span that refresh() and the 3 s poll rebuild,
so the facilitator never saw the result (live, 2026-11-05).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From a read of the labs as a student: Lab 5's NTP leftover, its commit
missing terraform.tfvars, the delivery sample showing four gateways of
five, Lab 7 never committing backend.tf, wrong counts and lab numbers in
Labs 1 and 2 and the README, a for_each error Lab 4 can't produce, and
a gloss for -replace and sensei in the cheat sheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lab tables on phones scroll inside themselves instead of the page (the
lab reader is shared, so every workshop gets it). Roadmap, releases and
the plan record the load, drift, docs and rehearsal results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Students copy commands from every lab; selecting a long block by hand is slow
and easy to get wrong. Shared by all workshops. Falls back to execCommand when
the clipboard API is refused (iframes, plain http).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The labs' fences were retagged bash -> sh and some blocks merged, so vf_block
and md_blocks picked the wrong block or ran off the end (IndexError). A bare
number now counts sh and bash fences, and each call is renumbered by content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4.141.0 (the planned target) is affected by GHSA-gcvg-jpfh-4xm8 (unauthenticated
RCE via Node's Brotli decoder, fixed in 4.141.1) and everything up to 4.144.0 by
GHSA-jvcp-w94c-mvvh (session cookie exposed through the port proxy).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lab 8 shows what its grep checks print, Lab 3 names the portal columns to
read, Lab 9 opens its pull request itself instead of pointing back at Lab 7,
Lab 1's predictions say to compare with the reveal, and the unconfirmed
device-vars claim is gone. Roadmap: T6, vault IndexError and the code-server
bump closed; two vault follow-ups found on the way added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ao errors in the bot

Lab 2 merged 14 shell blocks into 9, so the test's per-block checks ran the wrong
commands. The bot's first kv put after enabling a kv-v2 mount can hit the mount's
upgrade window; with no retry, team/app was never written and Lab 6's agent had
nothing to render. A person reads the error and retries; the bot now does too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread modules/wan-cloud/terminal/wan-broker.py Dismissed
Comment thread modules/wan-cloud/wan-api/pki.py Dismissed
scott and others added 4 commits November 5, 2026 11:18
The student terminals' Terraform provider speaks TLS 1.2+, so nothing needs 1.0/1.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It sent more writes than the limiter's burst and passed only if enough tokens
refilled in time; a fast CI runner got a 429.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Terminals trust the Dojo WAN CA system-wide, so a leaked CA key could
sign for any domain. A critical nameConstraints extension limits it to
the lab's own names (api.mist.com, wan-api, localhost, 127.0.0.1).

The credential broker now logs uid, user and whether it served each
request (never the token), so probing of the shared socket is visible
in the container log.

Both follow up CodeQL's permission alerts on PR #76, which are
intentional (public CA cert, shared socket guarded by SO_PEERCRED,
executable provider binary).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fiddler110
fiddler110 merged commit 2d599b5 into main Nov 5, 2026
8 checks passed
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.

2 participants