Help us shape the future of Go! Take the 2026 Go Developer Survey

policyserver

package
v0.40.0 Latest Latest
Warning

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

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

Documentation

Overview

Package policyserver defines the in-process evaluator contract and defaults.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultExpiration added in v0.1.8

func DefaultExpiration() string

DefaultExpiration returns the default certificate expiration duration

func DefaultExtensions added in v0.1.8

func DefaultExtensions() map[string]string

DefaultExtensions returns the default SSH certificate extensions

func Forbidden

func Forbidden(message string) error

Forbidden returns an explicit policy denial.

Types

type PolicyEvaluator

type PolicyEvaluator interface {
	Evaluate(context.Context, wire.Connection, *wire.PolicyFacts) (*wire.PolicyResponse, error)
}

PolicyEvaluator decides access using validated CA-owned authentication and current directory/host facts. It has no storage or transport responsibility. It returns a positive TTL, extensions, and an optional tighter deadline. CA always enforces the authentication lifetime as an additional ceiling.

Directories

Path Synopsis
Package writpolicy implements the policy server's PolicyEvaluator over a compiled writ policy, an inventory, and registries of requirement handlers, flag sources, and notify targets.
Package writpolicy implements the policy server's PolicyEvaluator over a compiled writ policy, an inventory, and registries of requirement handlers, flag sources, and notify targets.

Jump to

Keyboard shortcuts

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