From 21f5a79604d7feb0f806b9bbf72be95f99849e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Insaurralde?= Date: Tue, 24 Feb 2026 19:27:44 -0300 Subject: [PATCH] fix(controlplane): use request context when resolving CAS backend in attestation init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matías Insaurralde --- app/controlplane/internal/service/attestation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controlplane/internal/service/attestation.go b/app/controlplane/internal/service/attestation.go index 585c6701a..c713ebbc3 100644 --- a/app/controlplane/internal/service/attestation.go +++ b/app/controlplane/internal/service/attestation.go @@ -179,7 +179,7 @@ func (s *AttestationService) Init(ctx context.Context, req *cpAPI.AttestationSer } // Find the default or fallback CAS backend to associate the workflow - backend, err := s.casUC.FindDefaultOrFallbackBackend(context.Background(), robotAccount.OrgID) + backend, err := s.casUC.FindDefaultOrFallbackBackend(ctx, robotAccount.OrgID) if err != nil { if biz.IsNotFound(err) { return nil, cpAPI.ErrorCasBackendErrorReasonRequired("no CAS backend configured for organization")