Skip to content

/health returns local filesystem paths #39

Description

@ascendedent

Summary

GET /health is unauthenticated and returns:

  • page_path — absolute path to page.html
  • page_candidates — the full search list of local paths

That is local filesystem layout, including home-directory prefixes. Architecture says public HTTP should not carry local paths.

page_path is currently used by scripts/install / install-linux to confirm the process on :8722 is this runtime (os.path.commonpath). So any change needs an installer-compatible substitute (for example a fingerprint of the runtime root) rather than just deleting the field.

page_candidates is not needed for that check and can go.

Where

health_state() in token_meter/app.py, plus the Python snippet in scripts/install and scripts/install-linux.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions