feat: add lost-root-password lab with restricted initial access - #175
Conversation
fe3028e to
aaebaeb
Compare
fc43958 to
0421f69
Compare
Closes #26 - Add backend support for initial_access: restricted in lab.yaml - When restricted, web terminal connects as operator user - Backend verify/solution scripts still run as root internally - Create new lost-root-password lab with privilege escalation via sudo find exploit - Update LAB_FORMAT.md to document initial_access field Co-authored-by: HimanM <67066047+HimanM@users.noreply.github.com>
0421f69 to
aaba6a1
Compare
|
It took a few tries to get CI green. Here's what was wrong: Root CauseThe
Fixes Applied
Backend Changes
CI is green now. |
|
Quick review, because apparently this lab wanted to trip over a very specific rake:
Please make the username configurable and use the same value consistently in both user-data and |
- use opsuser for restricted terminal sessions - keep cloud-init and websocket login paths consistent Co-authored-by: HimanM <HimanM@users.noreply.github.com>
|
Green check ✅ Fixed the login mismatch: the restricted terminal now uses This one can stop pretending the user exists under two different names. |
|
Green check ✅ Reviewed and looks good — the restricted login path is now consistent with the lab setup. No blockers. |
Implements #26 — Lost Root Password lab with restricted SSH access.
Backend Changes
initial_access: restrictedinlab.yamloperatorinstead ofrootrootinternally (no CI impact)fullNew Lab:
lost-root-passwordoperatorwith no sudo privilegessudo findmisconfiguration to escalate to rootsolution.shrestores operator to sudo group, cleans up dangerous rule, resets root passwordverify.shchecks: operator in sudo group, dangerous rule removed, valid sudoers syntaxDocumentation
LAB_FORMAT.mdupdated withinitial_accesssection explaining restricted modeCo-authored-by: HimanM 67066047+HimanM@users.noreply.github.com