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

policyfile

package
v0.23.2 Latest Latest
Warning

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

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

Documentation

Overview

Package policyfile reads a certificate policy file (audit.ParseIdentityPolicy) from disk, for the commands that check a certificate-bound decision outside a running gate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(path string) (*audit.CertIdentity, error)

Read reads the policy file at path and compiles it; the anchor files it names are read from the policy file's directory. Every failure wraps agent.ErrConfig.

func ReadSources added in v0.20.0

func ReadSources(path string) (audit.CRLSources, []*x509.Certificate, error)

ReadSources reads the refresher members of the policy file at path: where each issuing CA's CRLs are fetched from, and the certificates of the pinned intermediates (audit.ParseCRLSources).

Types

This section is empty.

Jump to

Keyboard shortcuts

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