The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
Build the secrets file with json.Marshal
shukieshah969848eb1d14
diff --git a/cli/beacon/internal/endpoint/asymptote/asymptote.go b/cli/beacon/internal/endpoint/asymptote/asymptote.goindex 80d1b9f8..6092ed9b 100644--- a/cli/beacon/internal/endpoint/asymptote/asymptote.go+++ b/cli/beacon/internal/endpoint/asymptote/asymptote.go@@ -10,11 +10,11 @@package asymptoteimport (+ "embed"+ "encoding/json""io/fs""strings"- "embed"-endpointconfig "github.com/asymptote-labs/agent-beacon/cli/beacon/internal/endpoint/config""github.com/asymptote-labs/agent-beacon/cli/beacon/internal/endpoint/siempack")@@ -142,11 +142,9 @@ func tomlString(s string) string {// SecretsFileContent returns the JSON document the secrets file must hold for the// template's SECRET[beacon.device_key] reference.func SecretsFileContent(deviceKey string) string {- return `{"` + SecretsKey + `": ` + jsonString(deviceKey) + "}\n"-}--func jsonString(s string) string {- return `"` + siempack.JSONEscapeForString(s) + `"`+ // json.Marshal on a map cannot fail for string values.+ encoded, _ := json.Marshal(map[string]string{SecretsKey: deviceKey})+ return string(encoded) + "\n"}// Sentinel errors returned by RenderVectorConfig.