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

trustpolicy

package
v3.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package trustpolicy validates external identity claim policies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSchema

func BuildSchema(claims, required map[string]json.RawMessage) ([]byte, error)

BuildSchema canonicalizes and validates an effective trust schema without compiling it.

func CompileCanonicalSchema

func CompileCanonicalSchema(data []byte) (*jsonschema.Schema, error)

CompileCanonicalSchema compiles canonical bytes returned by BuildSchema.

func CompileSchema

func CompileSchema(claims, required map[string]json.RawMessage) ([]byte, *jsonschema.Schema, error)

CompileSchema canonicalizes and compiles an effective trust schema.

func JSONSchema

func JSONSchema() ([]byte, error)

JSONSchema returns provider definitions for one claims or required_claims object.

func ValidateClaimName

func ValidateClaimName(name, provider string) error

ValidateClaimName applies one provider's trust claim allowlist.

func ValidateClaims

func ValidateClaims(provider string, claims map[string]json.RawMessage) error

ValidateClaims validates and compiles one provider's bounded claim policy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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