From 8e4fb49cb084ebefe54005c90caf3922d805dbd2 Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Wed, 27 Aug 2025 18:03:35 +0100 Subject: [PATCH] feat: enable protocol secrets in the agent --- internal/adhoc/adhoc.go | 9 ++++----- internal/checks/checks.go | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/internal/adhoc/adhoc.go b/internal/adhoc/adhoc.go index 4f0093f5e..b4b875071 100644 --- a/internal/adhoc/adhoc.go +++ b/internal/adhoc/adhoc.go @@ -283,11 +283,10 @@ func (h *Handler) loop(ctx context.Context) error { result, err := client.RegisterProbe( ctx, &sm.ProbeInfo{ - Version: version.Short(), - Commit: version.Commit(), - Buildstamp: version.Buildstamp(), - // TODO(d0ugal): We will switch this to true when the implementation is complete in the Agent and API. - SupportsProtocolSecrets: false, + Version: version.Short(), + Commit: version.Commit(), + Buildstamp: version.Buildstamp(), + SupportsProtocolSecrets: true, }, ) if err != nil { diff --git a/internal/checks/checks.go b/internal/checks/checks.go index 4e77f449b..2717908da 100644 --- a/internal/checks/checks.go +++ b/internal/checks/checks.go @@ -372,11 +372,10 @@ func (c *Updater) loop(ctx context.Context) (bool, error) { } result, err := client.RegisterProbe(ctx, &sm.ProbeInfo{ - Version: version.Short(), - Commit: version.Commit(), - Buildstamp: version.Buildstamp(), - // TODO(d0ugal): We will switch this to true when the implementation is complete in the Agent and API. - SupportsProtocolSecrets: false, + Version: version.Short(), + Commit: version.Commit(), + Buildstamp: version.Buildstamp(), + SupportsProtocolSecrets: true, }) if err != nil { return connected, grpcErrorHandler("registering probe with synthetic-monitoring-api", err)