Skip to main content

naos web

The operator interface of naos: Runs and their detail, runners, images, profiles and the audit trail. It reads everything from the naos api and holds no state and no database of its own.

The pages are server-rendered Jinja templates driven by htmx, so a browser with no JavaScript still gets the full page. Nothing is bundled and nothing is fetched from a CDN.

Install

pip install "naos-web[server]"

The server extra adds uvicorn, which the library itself does not need. The published image carries it:

docker pull ghcr.io/oberon-systems/naos-web

Configure

Variable Default Meaning
NAOS_WEB_API_BASE_URL http://127.0.0.1:8080 The API endpoint shown in the top bar, as a browser reaches it
NAOS_WEB_API_URL http://127.0.0.1:8080 The API this process calls, which may be a private address
NAOS_WEB_OPERATOR_TOKEN_FILE unset File holding the operator token; unset leaves every page unauthorized
NAOS_WEB_API_TIMEOUT_SECONDS 10 How long a page waits for the API
NAOS_WEB_ALLOWED_HOSTS ["127.0.0.1", "localhost"] Host names the UI answers, as a JSON list; any other Host gets 400

The token is read once at startup and lives only in the HTTP client, which sends it to the API's login route alone and signs every other call with the short-lived credential it gets back, renewed before it expires. It is never rendered, and the UI is never the authorization boundary: every action is authorized by the API, which refuses the same calls to anyone else.

Every request the UI accepts acts with the operator's authority. It answers only the hosts in NAOS_WEB_ALLOWED_HOSTS, and refuses a form post or a socket that the browser marks as coming from another origin. No page may be shown in a frame (X-Frame-Options: DENY, frame-ancestors 'none'), so another site cannot pass the operator's clicks off as its own. Binding it beyond loopback needs an authenticating reverse proxy in front.

The screens and what each one shows are in docs/10-web-ui.md.

Run

export NAOS_WEB_API_BASE_URL=https://api.example.com
export NAOS_WEB_API_URL=http://192.0.2.10:8080
export NAOS_WEB_OPERATOR_TOKEN_FILE=/run/secrets/operator
uvicorn --factory naos_web.app:create_app --host 127.0.0.1 --port 8000

/healthz answers {"status": "ok"} without touching the API.

Metadata

Release files for naos-web 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for naos-web 0.3.0
File Size Uploaded Provenance Actions
naos_web-0.3.0.tar.gz 293.6 kB With provenance Details for naos_web-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for naos-web 0.3.0
File Interpreter ABI Platform Actions
naos_web-0.3.0-py3-none-any.whl Python 3 none any Details for naos_web-0.3.0-py3-none-any.whl

Total release size: 608.1 kB

Release files / naos_web-0.3.0.tar.gz

Download URL naos_web-0.3.0.tar.gz
Size 293.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3f774be9f9d529ddaa836ccb999149c22ff5bc5fab2baa96a27417b6d3c3e9d1
BLAKE2b-256 checksum
How to use checksums
71bc45b1e530011bd85d4d8296f488adb446620972116e7d7c52a9926c701094
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / naos_web-0.3.0-py3-none-any.whl

Download URL naos_web-0.3.0-py3-none-any.whl
Size 314.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15931e6294524d12df2edc0bd749af2717008e22daa28e59cacb55529cb60df1
BLAKE2b-256 checksum
How to use checksums
34e74851d5efc23d477326366422c0cc9f0b8866caac5f41804b3b90f7436a8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for naos-web 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for naos_web-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page