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.
Summary
GET /healthis unauthenticated and returns:page_path— absolute path topage.htmlpage_candidates— the full search list of local pathsThat is local filesystem layout, including home-directory prefixes. Architecture says public HTTP should not carry local paths.
page_pathis currently used byscripts/install/install-linuxto 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_candidatesis not needed for that check and can go.Where
health_state()intoken_meter/app.py, plus the Python snippet inscripts/installandscripts/install-linux.