Skip to content

tools/aurora-sep: ask for a yes before the SEP writes - #2997

Draft
Alyx-ML wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
Alyx-ML:aurora/installer-sep-consent
Draft

Alyx-ML wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
Alyx-ML:aurora/installer-sep-consent

Conversation

@Alyx-ML

@Alyx-ML Alyx-ML commented Nov 23, 2026

Copy link
Copy Markdown

Part of the #2755 split, as its own change because it changes non-interactive installs. Draft until it has a run on a Mac (the last Evidence line says which).

Summary

 sep_write_notice
-  warn "... press Ctrl-C now" and go on
+  --yes given -> go on
+  /dev/tty -> ask "Type yes"; anything else stops with nothing installed
+  no tty and no --yes -> stop with nothing installed: "add --yes (bash -s -- --yes)"
 argument loop
-  --yes means the install's yes only if no command came before it
+  --yes anywhere: with --reset-touchid or --m3max-kit it is that command's own

Behaviour change: a script or agent that runs the installer without a terminal now has to
pass --yes.

Evidence

  • Before: --yes --reset-touchid died ("--yes goes with an install") while
    --reset-touchid --yes worked.
  • After: test_yes_works_before_or_after_the_command checks that both orders end the same way
    for --reset-touchid and --m3max-kit. test_sep_writes_always_on.py in SEP source checks:
    passed, SEP source checks.
  • Needed before merging: on a Mac, an install from a terminal (typing yes, and typing anything
    else), and one without a terminal, with and without --yes.

Merge Danger

Door: two-way

Blast Radius: installer users

Assisted-by: LLM (Claude:Opus 5.5)

The install warns that the SEP driver creates an identity keybag and
writes to the enclave's anti-replay store, and says "press Ctrl-C now".
It then goes straight on. Run as documented, from curl into bash, the
warning scrolls past and there is no moment to stop.

sep_write_notice now asks for "yes" on /dev/tty, since stdin is the
script when piped. With no terminal, the install stops before anything
is installed, unless --yes is given (bash -s -- --yes). The agent prompt
says to pass --yes only once the owner has agreed in writing. A Mac
whose owner blocks apple_sep is still asked nothing.

This changes how non-interactive installs behave: a script or agent
that ran the installer with no terminal and no --yes now stops with
nothing installed, and has to add --yes.

--yes may come anywhere on the command line. With --reset-touchid or
--m3max-kit it is that command's own --yes, before or after the command
name; the kit's own --yes also counts as the yes to the SEP writes. With
any other command it is refused.

The handling of the file an earlier --read-only install wrote is not
changed (aurora-silicon#2591).

Tests in test_sep_writes_always_on.py: a run with no terminal and no
--yes stops with nothing done; --yes with --uninstall is refused in
either order; --yes before and after --reset-touchid or --m3max-kit
ends the same way and reaches that command; the write notice test
passes --yes.

Not run here: the tests need bash 4.4 or newer and this Mac has bash
3.2. sep-source.yml runs this file in CI. The answer typed on a real
terminal was not tested: the sandbox refuses a pseudo-terminal.

Signed-off-by: Alyx-ML <256263590+Alyx-ML@users.noreply.github.com>
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