From 1a2e64724ad944701a740005f3ed26ec2e6b2ecb Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Fri, 15 Nov 2024 15:53:31 -0800 Subject: [PATCH] Change URN for acme errors This commit changes the urn suffix for acme errors to urn:smallstep:acme:error --- acme/order.go | 2 +- acme/order_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/acme/order.go b/acme/order.go index 33bb914bb..c23befd91 100644 --- a/acme/order.go +++ b/acme/order.go @@ -312,7 +312,7 @@ func (o *Order) Finalize(ctx context.Context, db DB, csr *x509.CertificateReques //nolint:govet // ignore non-constant format string acmeError := NewDetailedError(ErrorUnauthorizedType, webhookErr.Error()) acmeError.AddSubproblems(Subproblem{ - Type: fmt.Sprintf("urn:smallstep:webhook:error:%s", webhookErr.Code), + Type: fmt.Sprintf("urn:smallstep:acme:error:%s", webhookErr.Code), Detail: webhookErr.Message, }) return acmeError diff --git a/acme/order_test.go b/acme/order_test.go index 6182fb2bf..6a0200cc2 100644 --- a/acme/order_test.go +++ b/acme/order_test.go @@ -636,7 +636,7 @@ func TestOrder_Finalize(t *testing.T) { }, }, err: NewDetailedError(ErrorUnauthorizedType, "The message (theCode)").AddSubproblems(Subproblem{ - Type: "urn:smallstep:webhook:error:theCode", + Type: "urn:smallstep:acme:error:theCode", Detail: "The message", }), }