taskverifier

package
v0.0.0-...-e70f483 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeysManager

type KeysManager interface {
	Start(ctx context.Context)
	GetKey(keyId string) types.DecodedKey
	WaitForReady()
}

KeysManager manages the signing keys used to verify task envelopes.

func NewKeyManager

func NewKeyManager(rcClient rcclient.Client) KeysManager

NewKeyManager returns a KeysManager appropriate for the current environment. When DD_INTERNAL_PAR_SKIP_TASK_VERIFICATION=true, a no-op manager is returned.

type TaskVerifier

type TaskVerifier interface {
	UnwrapTask(task *types.Task) (*types.Task, error)
}

TaskVerifier unwraps and validates a task received from the OPMS dequeue endpoint.

func NewTaskVerifier

func NewTaskVerifier(keysManager KeysManager, cfg *config.Config) TaskVerifier

NewTaskVerifier returns a TaskVerifier appropriate for the current environment. When DD_INTERNAL_PAR_SKIP_TASK_VERIFICATION=true, a no-op verifier is returned for e2e tests.

Jump to

Keyboard shortcuts

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