Two tasks in the ondemand role could not pass, and c002 is where it
showed: the play aborted on "Confirm the portal refuses a caller with
no certificate" against a portal that was configured correctly.
Handlers run at the end of a play, which is after these checks. The
configuration had been rewritten on disk and Apache was still serving
the old one - "Start the portal" uses state: started, which does
nothing to a process already running. So the check tested the Apache
that was being replaced, failed, aborted the play, and the restart
never happened at all; the next run found the same state. Handlers
are now flushed before anything reads the result back.
The trusted-caller probe insisted on 401 while its own status_code
excluded it, so it could never pass either. It is skipped without a
client key, which is why nothing noticed.
And the pinned certificate is now read back as a certificate. A value
that arrives truncated still writes a file, Apache still starts, and
the failure surfaces much later as a handshake refused for no stated
reason. Passing the PEM through a command line did exactly that here:
ten bytes on disk, and every check downstream was happy.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>