Skip to content

Platform: the hostname, its sign-in and its route are applied from Actions, not from the laptop #13495

Open

Description

@dezren39

Today. pm-stack/console/scripts/expose.py, run on the laptop by a timer, is what points pm.security.cab at the Worker, keeps the Cloudflare Access application and its policy in place, and hands the Worker its two tokens. If the laptop is gone for good, none of that can be changed or repaired from anywhere else.

What done looks like.

  • The route, the Access application and its policy, and the Worker's settings are described in the repository and applied by a workflow (Terraform under infra/, or the API calls expose.py makes, moved into the deploy), with the repository's own Cloudflare secret.
  • The Worker's two tokens are set by that workflow from the repository's secret store, and rotated by running it. expose.py --edge-direct stops uploading them; the switch in the app turns the capability off without a machine.
  • expose.py keeps only what is the laptop's own: the tunnel to itself.
  • The Cloudflare screen in the app says where each of these was last applied from and when.

Design record: doc/2026-11-23T06-50-00Z_architecture_pm_platform_cloudflare_core/.


Generated by Claude Code

Activity

  1. added
    kind/infrastructureInfrastructure / host-portability work
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    source/agentCreated by an agent worker
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/infrastructureInfrastructure / host-portability worksource/agentCreated by an agent worker

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions