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 ¶
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.
Click to show internal directories.
Click to hide internal directories.