authz

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PolicyFromDecision

func PolicyFromDecision(decision Decision) guardsql.Policy

PolicyFromDecision converts an authorization decision into a GuardSQL structural policy. Query endpoints should normally remain read-only.

Types

type Decision

type Decision struct {
	AllowedEntities []string
	Fields          map[string]map[string]guardsql.FieldPolicy
	RequireLimit    bool
	MaxLimit        int
	MaxDepth        int
	MaxNodes        int
	MaxInValues     int
	AllowStar       bool
}

Decision is an authorization result that can be compiled into a GuardSQL AST policy. External engines such as SpiceDB should populate this shape from trusted application context, not from user-authored query text.

Jump to

Keyboard shortcuts

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