platform

module
v0.0.0-...-3c87a54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0

README

platform

The application layer of a single window, built on core's libraries. A single window takes these packages as a set: they share one principal (authn), one catalog of roles and clients (catalog) and one audit trail (audit), and they wire HTTP routes and middleware.

What belongs here

A package belongs in platform when it needs the platform's shared types or the server's shape: it imports platform/authn, platform/catalog or platform/audit, or it registers routes or middleware.

A package that works without adopting those conventions is a library and gets its own module at the top of the repository, or joins an existing one. Examples are storage (drivers and the upload service), htmlgen (HTML rendering) and refid (reference numbers). A library never imports platform; platform imports libraries.

platform/storage and the top-level storage module show the split. The storage library stores files and presigns URLs for any caller. platform/storage picks a backend from the storage library or a proxy onto another service, serves files over HTTP, and issues file tokens whose holder is an authn principal.

Packages

Package What it does
authn The application's boundary onto core/authn: the principal of an authenticated request
catalog Maps the logical names used in configuration onto a deployment's IdP roles and OAuth2 client IDs
audit Structured audit events for security-relevant actions
securitylog Security events worth alerting on
systemlog A log line for every inbound HTTP request
storage Serves a deployment's files from a storage library backend or a proxy onto another service
storage/filetoken Seals a grant (resource, holder, scopes) into an opaque encrypted token, and opens it
storage/fileaccess Decides who a file token is for, what it allows and how long it lasts
payloadschema Checks step submissions against their JSON Schema
taskauthz The shared vocabulary of task authorization
tasktypes The generic task types a workflow step names, such as AUTH_API_CALL, EXTERNAL_REVIEW and PAYMENT
payment Connects core/payment to the task engine and to refid
filefields Reads and rewrites the file fields a task's render config declares
renderer UI projectors for the platform's task types, such as the payment instructions

Directories

Path Synopsis
Package audit records security-relevant application events as structured logs with Category.
Package audit records security-relevant application events as structured logs with Category.
Package authn is this application's boundary onto the shared JWT authentication library, github.com/OpenNSW/core/authn.
Package authn is this application's boundary onto the shared JWT authentication library, github.com/OpenNSW/core/authn.
Package catalog holds the deployment's global catalog: the single source of truth mapping the stable logical names used across configuration onto one deployment's concrete identifiers — IdP token roles and OAuth2 client ids today, further sections later.
Package catalog holds the deployment's global catalog: the single source of truth mapping the stable logical names used across configuration onto one deployment's concrete identifiers — IdP token roles and OAuth2 client ids today, further sections later.
Package filefields reads which values in a task's data are stored files, as the task's render config declares them, and rewrites those values.
Package filefields reads which values in a task's data are stored files, as the task's render config declares them, and rewrites those values.
Package payloadschema provides nsw-srilanka's payload schema validation extension: a PRE_RESUME check that a task step submission matches the JSON Schema of the form its step template names.
Package payloadschema provides nsw-srilanka's payload schema validation extension: a PRE_RESUME check that a task step submission matches the JSON Schema of the form its step template names.
Package payment adapts core/payment to the refid registry and the task engine.
Package payment adapts core/payment to the refid registry and the task engine.
Package securitylog records sparse category=security events worth alerting on (authn failures, authz denials, bad callback tokens).
Package securitylog records sparse category=security events worth alerting on (authn failures, authz denials, bad callback tokens).
Package storage selects the file storage this deployment serves uploads from: either a storage backend of its own (core/storage — local disk or S3) or a proxy onto another service that owns the files.
Package storage selects the file storage this deployment serves uploads from: either a storage backend of its own (core/storage — local disk or S3) or a proxy onto another service that owns the files.
fileaccess
Package fileaccess decides who a file token is for, what it allows and how long it lasts.
Package fileaccess decides who a file token is for, what it allows and how long it lasts.
filetoken
Package filetoken seals a grant into an opaque token, and opens such tokens again.
Package filetoken seals a grant into an opaque token, and opens such tokens again.
Package systemlog records every inbound HTTP request as a slog line with category=system, except GET /health.
Package systemlog records every inbound HTTP request as a slog line with category=system, except GET /health.
Package taskauthz is the shared vocabulary of task authorization: who the caller is, what the deployment's logical principal names mean, and which roles the caller may act in on a given task.
Package taskauthz is the shared vocabulary of task authorization: who the caller is, what the deployment's logical principal names mean, and which roles the caller may act in on a given task.
Package tasktypes holds the task types any single window can use: the ones a template names in a step's type and that need nothing specific to one deployment.
Package tasktypes holds the task types any single window can use: the ones a template names in a step's type and that need nothing specific to one deployment.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL