smallstep-certificates/api
David Cowden 9af4dd3692 acme: Retry challenge validation attempts
Section 8.2 of RFC 8555 explains how retries apply to the validation
process. However, much is left up to the implementer.

Add retries every 12 seconds for 2 minutes after a client requests a
validation. The challenge status remains "processing" indefinitely until
a distinct conclusion is reached. This allows a client to continually
re-request a validation by sending a post-get to the challenge resource
until the process fails or succeeds.

Challenges in the processing state include information about why a
validation did not complete in the error field. The server also includes
a Retry-After header to help clients and servers coordinate.

Retries are inherently stateful because they're part of the public API.
When running step-ca in a highly available setup with replicas, care
must be taken to maintain a persistent identifier for each instance
"slot". In kubernetes, this implies a *stateful set*.
2020-05-06 07:39:13 -07:00
..
api_test.go Add context to tests. 2020-03-10 19:17:32 -07:00
api.go Simplify statuscoder error generators. 2020-01-28 13:29:40 -08:00
errors.go Move api errors to their own package and modify the typedef 2020-01-28 13:29:39 -08:00
renew.go Simplify statuscoder error generators. 2020-01-28 13:29:40 -08:00
revoke_test.go Simplify statuscoder error generators. 2020-01-28 13:29:40 -08:00
revoke.go Simplify statuscoder error generators. 2020-01-28 13:29:40 -08:00
sign.go Simplify statuscoder error generators. 2020-01-28 13:29:40 -08:00
ssh_test.go ssh/api: Use host tags instead of groups 2020-04-03 12:11:19 -07:00
ssh.go Add support for user provisioner certificates on OIDC provisioners. 2020-04-23 19:42:55 -07:00
sshRekey.go Add context parameter to all SSH methods. 2020-03-10 19:01:45 -07:00
sshRenew.go Add context parameter to all SSH methods. 2020-03-10 19:01:45 -07:00
sshRevoke.go Add context parameter to all SSH methods. 2020-03-10 19:01:45 -07:00
utils_test.go Fix tests. 2020-01-28 13:29:39 -08:00
utils.go acme: Retry challenge validation attempts 2020-05-06 07:39:13 -07:00