audit

package
v0.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAnonymousMCP

func CheckAnonymousMCP(ctx context.Context, endpoint string) error

func CheckAuthEndpoint

func CheckAuthEndpoint(ctx context.Context, issuer string) error

func CheckAuthorizationMetadata

func CheckAuthorizationMetadata(raw []byte, issuer string) error

func CheckDeniedTool

func CheckDeniedTool(ctx context.Context, endpoint, name string) error

func CheckDeploymentReadiness

func CheckDeploymentReadiness(raw []byte) error

CheckDeploymentReadiness rejects both unavailable workloads and old ready replicas while a new rollout has not yet been observed or completed.

func CheckFixture

func CheckFixture(ctx context.Context, cfg FixtureConfig, out io.Writer) (err error)

func CheckRegistry

func CheckRegistry(ctx context.Context, target string) error

func ValidatePolicyDenial

func ValidatePolicyDenial(status int, raw []byte) error

Types

type CheckResult

type CheckResult struct {
	Name         string `json:"name"`
	Status       string `json:"status"`
	Milliseconds int64  `json:"milliseconds"`
	Error        string `json:"error,omitempty"`
}

type FixtureConfig

type FixtureConfig struct {
	Endpoint         string
	Write            bool
	ExpectDeniedTool string
	PublicEndpoint   string
}

type PostDeployConfig

type PostDeployConfig struct {
	RuntimeCLI, Kubeconfig, KubeContext, ExpectedClusterUID                 string
	ReleaseTag, Manifest, PlatformURL, RegistryURL, Issuer, PublicMCP, Team string
	MCPAuthVersion                                                          string
	ClusterLogin                                                            bool
}

func (PostDeployConfig) Validate

func (c PostDeployConfig) Validate() error

type Report

type Report struct {
	Status   string        `json:"status"`
	Started  time.Time     `json:"started_at"`
	Finished time.Time     `json:"finished_at"`
	Release  string        `json:"release"`
	Target   string        `json:"mcp_target"`
	Checks   []CheckResult `json:"checks"`
}

func RunPostDeploy

func RunPostDeploy(ctx context.Context, cfg PostDeployConfig, out io.Writer) (report Report, err error)

RunPostDeploy performs the shared post-deployment audit. Credentials remain in this runner and its CLI children; the fixture never receives admin keys.

Jump to

Keyboard shortcuts

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