signerr

package
v0.9.63 Latest Latest
Warning

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

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

Documentation

Overview

Package signerr classifies the errors xpki's authority.Issuer.Sign returns into permanent failures (a request the policy or the parser rejects, which no retry fixes) and transient ones (the crypto provider, KMS or anything unknown). xpki v1.0 returns untyped errors, so the split matches the messages of authority/issuer.go and csr/san.go; an unknown message is transient, the conservative choice (KUBECA-013). Shared by the CSR signer (internal/controller) and the Certificate controller (internal/operator/certificate).

if _, _, err := issuer.Sign(req); err != nil && signerr.IsPermanent(err) {
	// record the failure on the object, do not retry
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPermanent

func IsPermanent(err error) bool

IsPermanent reports whether err is a rejection of the request itself, which must not be retried. A NotBefore the issuer finds too early is transient: it comes from a minute boundary passing between the controller's clock read and the signature, and the next attempt recomputes the window.

Types

This section is empty.

Jump to

Keyboard shortcuts

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