Skip to content

Commit b58c88e

Browse files
committed
feat: enable protocol secrets in the agent
1 parent 446cc2b commit b58c88e

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

internal/adhoc/adhoc.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,10 @@ func (h *Handler) loop(ctx context.Context) error {
283283
result, err := client.RegisterProbe(
284284
ctx,
285285
&sm.ProbeInfo{
286-
Version: version.Short(),
287-
Commit: version.Commit(),
288-
Buildstamp: version.Buildstamp(),
289-
// TODO(d0ugal): We will switch this to true when the implementation is complete in the Agent and API.
290-
SupportsProtocolSecrets: false,
286+
Version: version.Short(),
287+
Commit: version.Commit(),
288+
Buildstamp: version.Buildstamp(),
289+
SupportsProtocolSecrets: true,
291290
},
292291
)
293292
if err != nil {

internal/checks/checks.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,10 @@ func (c *Updater) loop(ctx context.Context) (bool, error) {
366366
}
367367

368368
result, err := client.RegisterProbe(ctx, &sm.ProbeInfo{
369-
Version: version.Short(),
370-
Commit: version.Commit(),
371-
Buildstamp: version.Buildstamp(),
372-
// TODO(d0ugal): We will switch this to true when the implementation is complete in the Agent and API.
373-
SupportsProtocolSecrets: false,
369+
Version: version.Short(),
370+
Commit: version.Commit(),
371+
Buildstamp: version.Buildstamp(),
372+
SupportsProtocolSecrets: true,
374373
})
375374
if err != nil {
376375
return connected, grpcErrorHandler("registering probe with synthetic-monitoring-api", err)

0 commit comments

Comments
 (0)