verify

package
v0.152.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractVerifyInfo

func ExtractVerifyInfo(ctx context.Context, inst *lsv1alpha1.Installation, installationContext *lsv1alpha1.Context, client client.Client) (string, PublicKeyData, CaCertData, error)

ExtractVerifyInfo extracts signautre name, publickey data and caCert data from the secrets referenced in the context

func IsVerifyEnabled

func IsVerifyEnabled(inst *lsv1alpha1.Installation, lsConfig *config.LandscaperConfiguration) bool

IsVerifyEnabled returns if verification is enabled. The following rules apply: 1. if lsConfig.SignatureVerificationEnforcementPolicy is Enforce, always return true 2. if lsConfig.SignatureVerificationEnforcementPolicy is Disabled, always return false even if installation.Spec.Verification is set. 3. else, if SignatureVerificationEnforcementPolicy is DoNotEnforce return Installation.Spec.Verification != nil 3. otherwise should not happen, return true as a safe fallback

Types

type CaCertData

type CaCertData []byte

type PublicKeyData

type PublicKeyData []byte

Jump to

Keyboard shortcuts

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