serve

package
v1.10.29 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package serve is the network surface over the decision, and nothing else.

It is a SEPARATE package because the decision leaf must stay pure: a caller importing github.com/hanzoai/authz links no HTTP stack, no driver, no socket, so adding a caller costs nothing. Speaking HTTP is I/O, and I/O lives here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(app *zip.App, logger luxlog.Logger) error

Mount registers /v1/authz/* on the shared cloud app (HIP-0106).

It takes only the canonical logger — the surface has no other dependency on the host, so this stays a standalone module and cloud's composition root adapts its own dependencies by passing the one thing needed.

The surface is STATELESS, like the decision it exposes: a check carries the grants it is to be decided against. There is no policy store and no policy CRUD here, because the grant SET belongs to IAM — IAM signs it, so IAM owns it, and a second writable copy behind this surface would be a second source of truth for who may do what.

Types

This section is empty.

Jump to

Keyboard shortcuts

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