signerr

package
v0.10.68 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 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

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(ctx, 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