Skip to content

fix(security): check the hub's host key, bind Jaeger's UI to the tailnet, turn off the VMs' password - #111

Merged
retr0h merged 1 commit into
mainfrom
fix/lab-security-87
Nov 27, 2026
Merged

retr0h merged 1 commit into
mainfrom
fix/lab-security-87

Conversation

@retr0h

@retr0h retr0h commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Specs: osapi-io/specs#690

The four settings of #87, as the owner approved:

  1. Host keys. ansible.cfg checks host keys again. group_vars/hub.yml records the hub's key at the first connection (StrictHostKeyChecking=accept-new) and refuses a changed key. The VM connections (vm_inventory, lab_vm, client's ssh_config) keep the check off for the VM only; the jump to the hub reads ~/.ssh/known_hosts.
  2. Jaeger. The UI binds to the hub's tailnet address, read with tailscale ip -4. The OTLP receiver stays on each interface, because the VMs send on the vmnet bridge.
  3. VM password. A play in lab.yml sets admin's password to * on each run, so running VMs and new clones get it with no rebake. * matches no password and, unlike a lock (!), leaves key login when sshd runs without PAM. I did not change packer/: any change there makes each just bump refuse until a full just deploy reclones the VMs. Recovery is tart exec lab-<vm> <command> on the hub.
  4. Firewall. Kept; documented in the specs PR.

Lab check (session osapi-lab-87, just deploy jaeger && just restart vms from this branch): failed=0 on the hub and all five VMs, with host key checking on. Jaeger listens on 100.67.100.96:16686 (tailnet) and *:4317. The UI answers 200 on the tailnet name, nothing on the LAN name or on the vmnet .1; OTLP 4317 is open from ubuntu-1. On all five VMs key SSH and sudo -n work and admin's hash is *; a password login with admin is refused. Not seen: an agent span in Jaeger, because every job fails while the job store is full (osapi#1714); the controller and CLI spans arrive.

Closes #87

🤖 Generated with Claude Code

…net, turn off the VMs' password

- ansible.cfg checks host keys again. group_vars/hub.yml records the hub's
  key at the first connection (accept-new); the VM connections keep the
  check off for the VM only, since a reclone gets a new key.
- Jaeger's UI listens on the hub's tailnet address (tailscale ip -4); the
  OTLP receiver stays on each interface for the VMs.
- A play sets the VM user's password to '*' on each run, so running VMs and
  new clones need no rebake; key login and NOPASSWD sudo are unchanged.
- The firewall's block-all change is kept and documented in specs.

Closes #87

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@retr0h
retr0h marked this pull request as ready for review November 27, 2026 22:50
@retr0h
retr0h merged commit c5b35cd into main Nov 27, 2026
7 checks passed
@retr0h
retr0h deleted the fix/lab-security-87 branch November 27, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

decision: the lab's security settings: host key checking, the firewall, the Jaeger bind and the VM password

1 participant