Skip to content

fix(bootstrap): keep hardening flags set -e safe - #168

Merged
rldyourmnd merged 1 commit into
mainfrom
fix/bootstrap-device-hardening-set-e
Sep 15, 2026
Merged

rldyourmnd merged 1 commit into
mainfrom
fix/bootstrap-device-hardening-set-e

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

Summary

  • append_hardening_flags used cmd && append as the last statement of the desktop-server/server case arms.
  • With set -e that exits 1 when hardening is unset, so --phase 1 --apply never built gds.
  • Use if tests; cover desktop-server --docker-mode rootful with no hardening.

Test plan

  • pytest tests/test_bootstrap_device.py
  • GDS PR required / darwin builds

Made with Cursor

A desktop-server or server descriptor without ssh/ufw/fail2ban made
append_hardening_flags return 1 as the last command of the profile case,
so the orchestrator exited before phase 0.

Co-authored-by: Cursor <cursoragent@cursor.com>
@rldyourmnd
rldyourmnd merged commit 0a6f764 into main Sep 15, 2026
8 checks passed
@rldyourmnd
rldyourmnd deleted the fix/bootstrap-device-hardening-set-e branch September 15, 2026 01:46
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