Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Offer Asymptote managed forwarding during onboarding; Homebrew depends on vector

shukieshah5e061ec6ccc1
diff --git a/CLAUDE.md b/CLAUDE.md
index 24292a2e..e983b7fa 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -20,7 +20,7 @@ Do not recreate or depend on removed `asymptote` mirror trees. Keep new work foc
- Beacon is visibility-first endpoint telemetry for local AI agent runtimes, not a hosted policy service or general endpoint protection product.
- Preserve the local-only default. The public Beacon build must not require a hosted account, remote policy fetch, hosted dashboard, or external network dependency during normal hook execution, and hooks themselves never touch the network.
- Asymptote Managed forwarding (`cli/beacon/internal/endpoint/asymptote`, `beacon endpoint asymptote`) is the one destination that sends telemetry to an Asymptote-run service, and it is an explicit, opt-in, revocable Vector destination shaped like every other pack: Beacon stays the local JSONL producer, Vector does the network, and the per-device key lives in a `0600` secrets file read through Vector's secret backend, never in `config.json`, `vector.toml`, or the process environment. Nothing is forwarded until a member of the organization approves the specific device in the browser; only lines written after that are shipped (`read_from = "end"`); revocation from the dashboard takes effect at the ingest service within a minute. The wire contract (gzip NDJSON to `/v1/ingest/{runtime,inventory}`, bearer `bcn_device_*` key, `/v1/ingest/health` credential check) is owned by the `beacon-ingest` service in beacon-mdr; change both sides together. Do not add a second network channel, and do not let the ingest URL be anything but `https://`.
-- One narrow, deliberate exception to the no-network posture: `beacon endpoint install` asks for an email and work/personal intent once per machine and POSTs that plus install context (OS, arch, version, install method, detected runtime names, a random install ID) to an Asymptote-run signup endpoint. This is intentional product behavior for open-source attribution, not an oversight — do not remove it. It is strictly bounded: interactive TTY only, once per machine, never during hook execution, never on `--system`/root/CI/piped-stdin/`--dry-run` installs, and always skippable with `--no-onboarding` or `BEACON_ONBOARDING=0`. A failed submission never fails an install. No prompt text, telemetry event, file content, or command ever leaves the machine through it. Implementation lives in `cli/beacon/internal/onboarding` and `cli/beacon/cmd/endpoint_onboarding.go`; the README documents the payload field-by-field, so changing the fields means changing that table too.
+- Two bounded network channels exist, both explicit. The first: `beacon endpoint install` asks for an email and work/personal intent once per machine and POSTs that plus install context (OS, arch, version, install method, detected runtime names, a random install ID) to an Asymptote-run signup endpoint. The same first-run prompt, when Vector is present, also offers to connect the machine to Asymptote Managed (default no; `BEACON_MANAGED_INGEST=0` silences it; `install --connect` forces it; asked at most once per machine and recorded in the profile); a yes runs `connect` after the install and is the only way onboarding ever forwards telemetry. The second channel is that forwarder, described below. This is intentional product behavior for open-source attribution, not an oversight — do not remove it. It is strictly bounded: interactive TTY only, once per machine, never during hook execution, never on `--system`/root/CI/piped-stdin/`--dry-run` installs, and always skippable with `--no-onboarding` or `BEACON_ONBOARDING=0`. A failed submission never fails an install. No prompt text, telemetry event, file content, or command ever leaves the machine through it. Implementation lives in `cli/beacon/internal/onboarding` and `cli/beacon/cmd/endpoint_onboarding.go`; the README documents the payload field-by-field, so changing the fields means changing that table too.
- Do not add dependency vulnerability scanning, OSV/GHSA lookups, package remediation, or other vulnerability-enforcement flows to the public hook path.
- Do not add broad runtime enforcement unless explicitly requested. Current control behavior is limited to hook-native approvals/denials exposed by supported agent runtimes.
- Keep direct destination support scoped to local JSONL/Wazuh unless explicitly requested. Elastic support is a file-tailing pack over local JSONL; Beacon itself must not store Elastic credentials or require a hosted Elastic dependency.
diff --git a/README.md b/README.md
index 51271318..b167f1af 100644
--- a/README.md
+++ b/README.md
@@ -193,7 +193,10 @@ archives remain available for CLI installs.
The macOS package also ships
[GCS forwarder helpers](https://docs.asymptotelabs.ai/mdm/jamf/claude) under
-`/opt/beacon/jamf/claude/gcs/` that run bundled Vector as a launchd job.
+`/opt/beacon/jamf/claude/gcs/` that run bundled Vector as a launchd job. Connecting a
+system-mode endpoint to Asymptote Managed is interactive today: an admin runs
+`sudo beacon endpoint connect --system` on the machine and approves it in the console
+user's browser. Headless enrollment tokens for MDM fleets are planned as a follow-up.
## Dashboard and Local Detection
@@ -234,8 +237,8 @@ email and whether this is work or personal use, and sends that to Asymptote once
Knowing who runs Beacon is how we decide which runtimes and integrations to build
next. It happens once per machine and never runs non-interactively: MDM deployments,
package postinstall scripts, `--system` installs, CI, `--dry-run`, and piped stdin all
-skip it silently, and `--no-onboarding` or `BEACON_ONBOARDING=0` turns it off. Exactly
-what is sent, and nothing else:
+skip it silently, and `BEACON_ONBOARDING=0` turns it off. Exactly what is sent, and
+nothing else:
| Field | Example |
| --- | --- |
@@ -248,7 +251,19 @@ what is sent, and nothing else:
**Never sent:** prompts, file contents, commands, telemetry events, repository names,
or anything else Beacon captures. The endpoint agent itself stays local-only; this is
-one HTTP request at install time, not an ongoing channel.
+one HTTP request at install time, not an ongoing channel, unless you connect the
+machine to Asymptote Managed.
+
+When Vector is available, the same first-run prompt also asks whether to
+**forward this machine's agent telemetry to Asymptote Managed now** (default no).
+Answering yes runs `beacon endpoint connect` after the install: your browser opens the
+Asymptote dashboard, a member of your organization approves this specific device, and a
+Vector forwarder starts shipping the runtime and inventory JSONL with a per-device key.
+Nothing recorded before the approval is sent, and the device can be revoked from the
+dashboard at any time. `beacon endpoint install --connect` forces the same flow,
+`BEACON_MANAGED_INGEST=0` silences the question, and the question is asked at most once
+per machine. See [`beacon endpoint connect`](https://docs.asymptotelabs.ai/cli/endpoint-connect)
+and [Asymptote Managed forwarding](https://docs.asymptotelabs.ai/log-forwarding/asymptote).
See the [first-run onboarding docs](https://docs.asymptotelabs.ai/cli/endpoint-onboarding#first-run-onboarding)
for fleet attribution without a terminal, inspecting or clearing the record, and
@@ -263,7 +278,10 @@ for rollout, validation, retention, and SIEM forwarding. For vendor review, see
### For Developers
-Install the released CLI with Homebrew, or build from source:
+Install the released CLI with Homebrew, or build from source. The Homebrew formula
+depends on `vector`, so a Homebrew install can connect to Asymptote Managed without a
+second step; on Linux, install the `vector` package from [vector.dev](https://vector.dev)
+if you want managed forwarding.
```bash
brew tap asymptote-labs/tap
diff --git a/beacon-release-validation-runbook.md b/beacon-release-validation-runbook.md
index 7ef1c1c1..17de6cb2 100644
--- a/beacon-release-validation-runbook.md
+++ b/beacon-release-validation-runbook.md
@@ -108,6 +108,20 @@ Acceptance criteria:
- `which beacon` resolves to the Homebrew-installed binary.
- Help output includes `endpoint`, `endpoint hooks`, and `endpoint elastic` command groups.
+## Managed Ingest Connect Smoke
+
+Needs a browser signed in to the Asymptote dashboard as a member of an org with managed
+ingest enabled (Asymptote Test), and Vector on the machine (`brew install beacon` pulls it).
+
+- [ ] `beacon endpoint connect --no-browser` prints an approval URL; approve it, and the
+ command ends with "Connected to Asymptote as device …" and a running forwarder.
+- [ ] `beacon endpoint status` shows `Asymptote managed ingest: connected … credential valid`
+ and `~/.beacon/endpoint/asymptote/vector.toml` contains no `bcn_device` string.
+- [ ] Run a short agent session; within two minutes it appears on `/dashboard/telemetry`
+ and the machine on `/dashboard/endpoints`.
+- [ ] Revoke the device on the dashboard; within a minute `status` says `credential revoked`.
+- [ ] `beacon endpoint disconnect` removes the forwarder and the `asymptote/` directory.
+
## Endpoint Quickstart Validation
Follow the quickstart exactly:
diff --git a/cli/beacon/.goreleaser.yaml b/cli/beacon/.goreleaser.yaml
index ff354221..8a8ac823 100644
--- a/cli/beacon/.goreleaser.yaml
+++ b/cli/beacon/.goreleaser.yaml
@@ -219,6 +219,10 @@ brews:
name: asymptote-bot
commit_msg_template: "Homebrew formula update for {{ .ProjectName }} version {{ .Tag }}"
+ # Vector runs the optional Asymptote managed forwarder (`beacon endpoint connect`);
+ # pulling it in here means a Homebrew install can connect without a second step.
+ dependencies:
+ - name: vector
install: |
bin.install "beacon"
bin.install "beacon-hooks"
@@ -226,6 +230,8 @@ brews:
caveats: |
To configure local endpoint telemetry, run:
beacon endpoint install
+ To forward telemetry to the Asymptote dashboard (opt-in, revocable), run:
+ beacon endpoint connect
test: |
system "#{bin}/beacon", "version"
diff --git a/cli/beacon/cmd/endpoint.go b/cli/beacon/cmd/endpoint.go
index 37320338..9ad0413f 100644
--- a/cli/beacon/cmd/endpoint.go
+++ b/cli/beacon/cmd/endpoint.go
@@ -37,6 +37,7 @@ var endpointOpts struct {
dryRun bool
onboardingReset bool
onboardingResend bool
+ connect bool
fix bool
allTargets bool
coworkHeaders string
@@ -410,6 +411,7 @@ func init() {
endpointInstallCmd.Flags().BoolVar(&endpointOpts.noStart, "no-start", false, "Write files without starting the collector service")
endpointInstallCmd.Flags().StringVar(&endpointOpts.serviceKind, "service", "", "Service manager to use: auto (default), launchd, systemd, or none for a supervised collector process")
endpointInstallCmd.Flags().BoolVar(&endpointOpts.dryRun, "dry-run", false, "Print planned actions without changing endpoint files or services")
+ endpointInstallCmd.Flags().BoolVar(&endpointOpts.connect, "connect", false, "After installing, connect this endpoint to Asymptote managed ingest (opens a browser to approve the device)")
endpointOnboardingCmd.Flags().BoolVar(&endpointOpts.onboardingReset, "reset", false, "Clear the onboarding record so the question is asked again")
endpointOnboardingCmd.Flags().BoolVar(&endpointOpts.onboardingResend, "resend", false, "Retry a signup that could not be delivered")
endpointOnboardingCmd.Flags().BoolVar(&endpointOpts.jsonOutput, "json", false, "Print the onboarding record as JSON")
diff --git a/cli/beacon/cmd/endpoint_connect.go b/cli/beacon/cmd/endpoint_connect.go
index c126f82d..c76d4005 100644
--- a/cli/beacon/cmd/endpoint_connect.go
+++ b/cli/beacon/cmd/endpoint_connect.go
@@ -74,7 +74,13 @@ func runEndpointConnect(cmd *cobra.Command, args []string) error {
if !userMode && !lifecycle.HasSystemPrivileges() {
return fmt.Errorf("connecting a system endpoint needs root: rerun with sudo, or pass --user for a per-user install")
}
- cfg := loadOrDefaultConfig()
+ return connectEndpoint(cmd, userMode, loadOrDefaultConfig().LogPath)
+}
+
+// connectEndpoint runs the enrollment and forwarder setup for the given mode and log
+// path, printing the outcome. `endpoint install --connect` and the onboarding offer
+// call it after a successful install; `endpoint connect` calls it directly.
+func connectEndpoint(cmd *cobra.Command, userMode bool, logPath string) error {
hostname, _ := os.Hostname()
out := cmd.OutOrStdout()
if endpointOpts.jsonOutput {
@@ -82,7 +88,7 @@ func runEndpointConnect(cmd *cobra.Command, args []string) error {
}
result, err := asymptote.Connect(context.Background(), asymptote.ConnectOptions{
UserMode: userMode,
- LogPath: cfg.LogPath,
+ LogPath: logPath,
VectorBin: connectOpts.vectorBin,
Out: out,
Enroll: asymptote.EnrollOptions{
diff --git a/cli/beacon/cmd/endpoint_install.go b/cli/beacon/cmd/endpoint_install.go
index 84026fea..0a8c5fb3 100644
--- a/cli/beacon/cmd/endpoint_install.go
+++ b/cli/beacon/cmd/endpoint_install.go
@@ -104,9 +104,11 @@ func runEndpointInstall(cmd *cobra.Command, args []string) error {
}
// Asked once, on an interactive install, before anything is written to disk. Every
// non-interactive path (package postinstall, MDM, CI) is gated out inside.
- if err := maybeRunOnboarding(cmd); err != nil {
+ connectAfterInstall, err := maybeRunOnboarding(cmd)
+ if err != nil {
return err
}
+ connectAfterInstall = connectAfterInstall || endpointOpts.connect
result, err := lifecycle.Install(lifecycle.InstallOptions{
UserMode: endpointUserMode(),
LogPath: endpointOpts.logPath,
@@ -133,6 +135,14 @@ func runEndpointInstall(cmd *cobra.Command, args []string) error {
if err := installHookTargetsFromEndpointInstall(hookHarnesses); err != nil {
return fmt.Errorf("endpoint install completed, but hook installation failed: %w", err)
}
+ if connectAfterInstall {
+ // The install is complete and stands on its own; a failed connect is reported
+ // with the retry command rather than turning a working install into an error.
+ fmt.Fprintln(cmd.OutOrStdout())
+ if err := connectEndpoint(cmd, endpointUserMode(), result.LogPath); err != nil {
+ fmt.Fprintf(cmd.ErrOrStderr(), "beacon: managed ingest was not connected (%v). Run `beacon endpoint connect` to try again.\n", err)
+ }
+ }
return nil
}
diff --git a/cli/beacon/cmd/endpoint_onboarding.go b/cli/beacon/cmd/endpoint_onboarding.go
index cb2d3ba9..31a32aea 100644
--- a/cli/beacon/cmd/endpoint_onboarding.go
+++ b/cli/beacon/cmd/endpoint_onboarding.go
@@ -9,6 +9,7 @@ import (
"strings"
"time"
+ "github.com/asymptote-labs/agent-beacon/cli/beacon/internal/endpoint/asymptote"
"github.com/asymptote-labs/agent-beacon/cli/beacon/internal/onboarding"
"github.com/asymptote-labs/agent-beacon/cli/beacon/internal/version"
"github.com/spf13/cobra"
@@ -25,6 +26,10 @@ const (
// they just have no terminal to type it into.
onboardingEnvEmail = "BEACON_ONBOARDING_EMAIL"
onboardingEnvUsage = "BEACON_ONBOARDING_USAGE"
+ // managedIngestEnvEnabled set to a false-ish value suppresses the offer to connect
+ // this machine to Asymptote managed ingest. The explicit --connect flag is unaffected:
+ // the variable silences a question, it does not override an operator's request.
+ managedIngestEnvEnabled = "BEACON_MANAGED_INGEST"
)
// Reasons the prompt did not run. Surfaced by `endpoint onboarding --show` so support
@@ -40,14 +45,20 @@ const (
// Indirection points so the gate and the flow can be tested without a terminal, a
// network, or a real home directory.
var (
- onboardingLoad = onboarding.Load
- onboardingSave = onboarding.Save
- onboardingAsk = onboarding.Prompt
- onboardingSend = onboarding.Submit
- onboardingStdin io.Reader = os.Stdin
- onboardingIsTTY = defaultOnboardingIsTTY
- onboardingIsRoot = func() bool { return os.Geteuid() == 0 }
- onboardingProbeFn = onboarding.StartRuntimeProbe
+ onboardingLoad = onboarding.Load
+ onboardingSave = onboarding.Save
+ onboardingAsk = onboarding.Prompt
+ onboardingSend = onboarding.Submit
+ onboardingStdin io.Reader = os.Stdin
+ onboardingIsTTY = defaultOnboardingIsTTY
+ onboardingIsRoot = func() bool { return os.Geteuid() == 0 }
+ onboardingProbeFn = onboarding.StartRuntimeProbe
+ onboardingAskWith = onboarding.PromptWith
+ onboardingAskManagedIngest = onboarding.AskManagedIngest
+ // managedIngestOfferable reports whether connect could succeed here: Vector is present
+ // and this endpoint is not already connected. Offering a question whose "yes" would
+ // fail is worse than not asking.
+ managedIngestOfferable = defaultManagedIngestOfferable
)
// runtimeProbeBudget bounds how long submission waits on background runtime
@@ -63,41 +74,122 @@ func defaultOnboardingIsTTY() bool {
return isCharDevice(os.Stdin) && isCharDevice(os.Stdout)
}
-// maybeRunOnboarding runs the one-time signup prompt if this install should ask.
+// maybeRunOnboarding runs the one-time signup prompt if this install should ask, and
+// reports whether the user asked to connect this machine to Asymptote managed ingest
+// once the install has finished.
//
// It is called from `endpoint install` after the --dry-run early return, so a dry run
// never prompts. An error returned here does stop the install: the prompt is a
// required step on an interactive terminal, and every refusal path names the opt-out.
-func maybeRunOnboarding(cmd *cobra.Command) error {
+func maybeRunOnboarding(cmd *cobra.Command) (connect bool, err error) {
profile := onboardingLoad()
// Someone who already answered is never asked again, but a submission that failed
- // on a flaky network still deserves a quiet retry.
+ // on a flaky network still deserves a quiet retry. The forwarding question is newer
+ // than the signup prompt, so a machine onboarded before it existed gets it once.
if profile.Prompted() {
resendPendingOnboarding(&profile)
- return nil
+ return maybeOfferManagedIngest(cmd, &profile)
}
// A headless rollout that supplied answers is recorded without a terminal.
if email, usage, ok := onboardingAnswersFromEnv(cmd.ErrOrStderr()); ok {
- completeOnboarding(cmd, &profile, email, usage, nil)
- return nil
+ completeOnboarding(cmd, &profile, email, usage, nil, nil)
+ return false, nil
}
if _, skipped := onboardingSkipReason(profile); skipped {
- return nil
+ return false, nil
}
// Discovery shells out to every installed runtime, so start it now and collect it
// after the questions. The latency disappears behind the user reading and typing.
probe := onboardingProbeFn()
- answers, err := onboardingAsk(onboardingStdin, cmd.OutOrStdout())
+ offer := managedIngestOfferableNow()
+ answers, err := onboardingAskWith(onboardingStdin, cmd.OutOrStdout(), onboarding.PromptOptions{OfferManagedIngest: offer})
if err != nil {
- return err
+ return false, err
}
- completeOnboarding(cmd, &profile, answers.Email, answers.Usage, probe)
- return nil
+ var choice *bool
+ if answers.ManagedIngestOffered {
+ choice = &answers.ManagedIngest
+ }
+ completeOnboarding(cmd, &profile, answers.Email, answers.Usage, probe, choice)
+ return answers.ManagedIngestOffered && answers.ManagedIngest, nil
+}
+
+// maybeOfferManagedIngest asks the forwarding question alone, once, on an interactive
+// install of a machine that was onboarded before the question existed.
+func maybeOfferManagedIngest(cmd *cobra.Command, profile *onboarding.Profile) (bool, error) {
+ if profile.Onboarding.ManagedIngest != "" {
+ return false, nil
+ }
+ if reason, skipped := managedIngestSkipReason(*profile); skipped {
+ _ = reason
+ return false, nil
+ }
+ connect, err := onboardingAskManagedIngest(onboardingStdin, cmd.OutOrStdout())
+ if err != nil {
+ return false, err
+ }
+ profile.Onboarding.ManagedIngest = managedIngestChoice(connect)
+ if err := onboardingSave(*profile); err != nil {
+ fmt.Fprintf(cmd.ErrOrStderr(), "beacon: could not record onboarding: %v\n", err)
+ }
+ return connect, nil
+}
+
+// managedIngestSkipReason mirrors onboardingSkipReason for the forwarding question, with
+// two extra conditions: the variable that silences it and whether connect could succeed.
+func managedIngestSkipReason(profile onboarding.Profile) (string, bool) {
+ switch {
+ case profile.Onboarding.ManagedIngest != "":
+ return onboardingSkipCompleted, true
+ case !managedIngestEnabledByEnv():
+ return onboardingSkipOptedOut, true
+ case !endpointUserMode(), onboardingIsRoot():
+ return onboardingSkipSystemInstall, true
+ case isCIEnvironment():
+ return onboardingSkipCI, true
+ case !onboardingIsTTY():
+ return onboardingSkipNotAterminal, true
+ case !managedIngestOfferable():
+ return "not_offerable", true
+ default:
+ return "", false
+ }
+}
+
+// managedIngestOfferableNow is the gate for adding the question to a first-run prompt
+// that is already going to be shown.
+func managedIngestOfferableNow() bool {
+ return managedIngestEnabledByEnv() && managedIngestOfferable()
+}
+
+// managedIngestEnabledByEnv reports whether BEACON_MANAGED_INGEST permits the offer.
+func managedIngestEnabledByEnv() bool {
+ switch strings.ToLower(strings.TrimSpace(os.Getenv(managedIngestEnvEnabled))) {
+ case "0", "false", "no", "off":
+ return false
+ default:
+ return true
+ }
+}
+
+func defaultManagedIngestOfferable() bool {
+ if asymptote.Connected(endpointUserMode()) {
+ return false
+ }
+ _, err := asymptote.FindVector("")
+ return err == nil
+}
+
+func managedIngestChoice(connect bool) string {
+ if connect {
+ return onboarding.ManagedIngestAccepted
+ }
+ return onboarding.ManagedIngestDeclined
}
// onboardingSkipReason reports whether the prompt should stay silent, and why.
@@ -173,7 +265,7 @@ func onboardingAnswersFromEnv(stderr io.Writer) (string, string, bool) {
//
// It never returns an error. Once the user has answered, the install belongs to them;
// a signup endpoint being unreachable is our problem, not theirs.
-func completeOnboarding(cmd *cobra.Command, profile *onboarding.Profile, email, usage string, probe *onboarding.RuntimeProbe) {
+func completeOnboarding(cmd *cobra.Command, profile *onboarding.Profile, email, usage string, probe *onboarding.RuntimeProbe, managedIngest *bool) {
installID, err := onboarding.EnsureInstallID(profile)
if err != nil {
// Without an install ID there is no dedupe key, so there is nothing sensible
@@ -205,6 +297,9 @@ func completeOnboarding(cmd *cobra.Command, profile *onboarding.Profile, email,
Usage: usage,
BeaconVersion: version.GetVersion(),
}
+ if managedIngest != nil {
+ profile.Onboarding.ManagedIngest = managedIngestChoice(*managedIngest)
+ }
// Keep the payload only when resending could still work. A rejected submission is
// terminal, and holding the address on disk past that point serves nobody.
if outcome == onboarding.OutcomePending {
@@ -268,6 +363,7 @@ type endpointOnboardingStatus struct {
Usage string `json:"usage,omitempty"`
InstallID string `json:"install_id,omitempty"`
BeaconVersion string `json:"beacon_version,omitempty"`
+ ManagedIngest string `json:"managed_ingest,omitempty"`
Pending bool `json:"pending_submission"`
SkipReason string `json:"skip_reason,omitempty"`
ProfilePath string `json:"profile_path"`
@@ -306,6 +402,7 @@ func runEndpointOnboarding(cmd *cobra.Command, args []string) error {
Usage: profile.Onboarding.Usage,
InstallID: profile.InstallID,
BeaconVersion: profile.Onboarding.BeaconVersion,
+ ManagedIngest: profile.Onboarding.ManagedIngest,
Pending: profile.Pending != nil,
SkipReason: reason,
ProfilePath: onboarding.Path(),
@@ -326,6 +423,9 @@ func runEndpointOnboarding(cmd *cobra.Command, args []string) error {
fmt.Fprintf(out, "Email: %s\n", status.Email)
fmt.Fprintf(out, "Usage: %s\n", status.Usage)
}
+ if status.ManagedIngest != "" {
+ fmt.Fprintf(out, "Managed ingest offer: %s\n", status.ManagedIngest)
+ }
fmt.Fprintf(out, "Install ID: %s\n", status.InstallID)
fmt.Fprintf(out, "Profile: %s\n", status.ProfilePath)
fmt.Fprintf(out, "Endpoint: %s\n", status.Endpoint)
diff --git a/cli/beacon/cmd/endpoint_onboarding_test.go b/cli/beacon/cmd/endpoint_onboarding_test.go
index 6fd06e56..e76393e1 100644
--- a/cli/beacon/cmd/endpoint_onboarding_test.go
+++ b/cli/beacon/cmd/endpoint_onboarding_test.go
@@ -29,6 +29,12 @@ type onboardingHarness struct {
outcome string
sendErr error
probeRuns int
+ // offered records the PromptOptions the prompt was invoked with; offerable and
+ // standaloneAnswer drive the managed-ingest question.
+ offered []onboarding.PromptOptions
+ offerable bool
+ standaloneAsked bool
+ standaloneAnswer bool
}
func newOnboardingHarness(t *testing.T) *onboardingHarness {
@@ -62,18 +68,26 @@ func newOnboardingHarness(t *testing.T) *onboardingHarness {
t.Setenv(onboardingEnvUsage, "")
t.Setenv("HOME", t.TempDir())
- prevLoad, prevSave, prevAsk, prevSend := onboardingLoad, onboardingSave, onboardingAsk, onboardingSend
+ prevLoad, prevSave, prevAsk, prevSend := onboardingLoad, onboardingSave, onboardingAskWith, onboardingSend
prevTTY, prevRoot, prevProbe := onboardingIsTTY, onboardingIsRoot, onboardingProbeFn
+ prevStandalone, prevOfferable := onboardingAskManagedIngest, managedIngestOfferable
+ t.Setenv(managedIngestEnvEnabled, "")
onboardingLoad = func() onboarding.Profile { return h.loaded }
onboardingSave = func(p onboarding.Profile) error {
h.saved = append(h.saved, p)
return nil
}
- onboardingAsk = func(io.Reader, io.Writer) (onboarding.Answers, error) {
+ onboardingAskWith = func(_ io.Reader, _ io.Writer, opts onboarding.PromptOptions) (onboarding.Answers, error) {
h.asked = true
+ h.offered = append(h.offered, opts)
return h.answers, h.askErr
}
+ onboardingAskManagedIngest = func(io.Reader, io.Writer) (bool, error) {
+ h.standaloneAsked = true
+ return h.standaloneAnswer, nil
+ }
+ managedIngestOfferable = func() bool { return h.offerable }
onboardingSend = func(_ context.Context, s onboarding.Submission) (string, error) {
h.sent = append(h.sent, s)
return h.outcome, h.sendErr
@@ -87,8 +101,9 @@ func newOnboardingHarness(t *testing.T) *onboardingHarness {
t.Cleanup(func() {
endpointOpts = prevOpts
- onboardingLoad, onboardingSave, onboardingAsk, onboardingSend = prevLoad, prevSave, prevAsk, prevSend
+ onboardingLoad, onboardingSave, onboardingAskWith, onboardingSend = prevLoad, prevSave, prevAsk, prevSend
onboardingIsTTY, onboardingIsRoot, onboardingProbeFn = prevTTY, prevRoot, prevProbe
+ onboardingAskManagedIngest, managedIngestOfferable = prevStandalone, prevOfferable
})
return h
}
@@ -96,7 +111,7 @@ func newOnboardingHarness(t *testing.T) *onboardingHarness {
func TestMaybeRunOnboardingPromptsOnInteractiveInstall(t *testing.T) {
h := newOnboardingHarness(t)
- if err := maybeRunOnboarding(h.cmd); err != nil {
+ if _, err := maybeRunOnboarding(h.cmd); err != nil {
t.Fatalf("maybeRunOnboarding returned error: %v", err)
}
if !h.asked {
@@ -184,7 +199,7 @@ func TestMaybeRunOnboardingStaysSilentWhenGated(t *testing.T) {
t.Fatalf("skip reason = %q, want %q", reason, tc.wantReason)
}
- if err := maybeRunOnboarding(h.cmd); err != nil {
+ if _, err := maybeRunOnboarding(h.cmd); err != nil {
t.Fatalf("maybeRunOnboarding returned error: %v", err)
}
if h.asked {
@@ -205,7 +220,7 @@ func TestMaybeRunOnboardingPropagatesPromptFailure(t *testing.T) {
h := newOnboardingHarness(t)
h.askErr = onboarding.ErrTooManyAttempts
- err := maybeRunOnboarding(h.cmd)
+ _, err := maybeRunOnboarding(h.cmd)
if err == nil {
t.Fatalf("maybeRunOnboarding returned nil, want the prompt failure to stop the install")
}
@@ -223,7 +238,7 @@ func TestMaybeRunOnboardingSurvivesSubmissionFailure(t *testing.T) {
h.outcome = onboarding.OutcomePending
h.sendErr = errors.New("connection refused")
- if err := maybeRunOnboarding(h.cmd); err != nil {
+ if _, err := maybeRunOnboarding(h.cmd); err != nil {
t.Fatalf("maybeRunOnboarding returned error: %v", err)
}
if len(h.saved) != 1 {
@@ -247,7 +262,7 @@ func TestMaybeRunOnboardingDropsPayloadWhenRejected(t *testing.T) {
h.outcome = onboarding.OutcomeRejected
h.sendErr = errors.New("signup endpoint returned 429 Too Many Requests")
- if err := maybeRunOnboarding(h.cmd); err != nil {
+ if _, err := maybeRunOnboarding(h.cmd); err != nil {
t.Fatalf("maybeRunOnboarding returned error: %v", err)
}
if h.saved[0].Pending != nil {
@@ -267,7 +282,7 @@ func TestMaybeRunOnboardingResendsPendingSubmission(t *testing.T) {
Pending: &pending,
}
- if err := maybeRunOnboarding(h.cmd); err != nil {
+ if _, err := maybeRunOnboarding(h.cmd); err != nil {
t.Fatalf("maybeRunOnboarding returned error: %v", err)
}
if h.asked {
@@ -290,7 +305,7 @@ func TestMaybeRunOnboardingKeepsPendingWhenResendFails(t *testing.T) {
Pending: &pending,
}
- if err := maybeRunOnboarding(h.cmd); err != nil {
+ if _, err := maybeRunOnboarding(h.cmd); err != nil {
t.Fatalf("maybeRunOnboarding returned error: %v", err)
}
if len(h.saved) != 0 {
@@ -305,7 +320,7 @@ func TestMaybeRunOnboardingAcceptsEnvironmentAnswersHeadless(t *testing.T) {
t.Setenv(onboardingEnvEmail, " [email protected] ")
t.Setenv(onboardingEnvUsage, "work")
- if err := maybeRunOnboarding(h.cmd); err != nil {
+ if _, err := maybeRunOnboarding(h.cmd); err != nil {
t.Fatalf("maybeRunOnboarding returned error: %v", err)
}
if h.asked {
@@ -326,7 +341,7 @@ func TestMaybeRunOnboardingIgnoresInvalidEnvironmentAnswers(t *testing.T) {
t.Setenv(onboardingEnvEmail, "not-an-email")
t.Setenv(onboardingEnvUsage, "work")
- if err := maybeRunOnboarding(h.cmd); err != nil {
+ if _, err := maybeRunOnboarding(h.cmd); err != nil {
t.Fatalf("maybeRunOnboarding returned error: %v", err)
}
if len(h.sent) != 0 || h.asked {
@@ -343,7 +358,7 @@ func TestMaybeRunOnboardingEnvironmentAnswersRespectOptOut(t *testing.T) {
t.Setenv(onboardingEnvEmail, "[email protected]")
t.Setenv(onboardingEnvUsage, "work")
- if err := maybeRunOnboarding(h.cmd); err != nil {
+ if _, err := maybeRunOnboarding(h.cmd); err != nil {
t.Fatalf("maybeRunOnboarding returned error: %v", err)
}
if len(h.sent) != 0 {
@@ -506,3 +521,116 @@ func TestRetryPendingOnboardingIsSilentWithNothingQueued(t *testing.T) {
})
}
}
+
+func TestMaybeRunOnboardingOffersManagedIngestOnlyWhenOfferable(t *testing.T) {
+ h := newOnboardingHarness(t)
+ h.offerable = false
+ if connect, err := maybeRunOnboarding(h.cmd); err != nil || connect {
+ t.Fatalf("connect=%t err=%v", connect, err)
+ }
+ if len(h.offered) != 1 || h.offered[0].OfferManagedIngest {
+ t.Fatalf("offer must not be made when Vector is missing or already connected: %+v", h.offered)
+ }
+ if h.saved[len(h.saved)-1].Onboarding.ManagedIngest != "" {
+ t.Fatal("an offer that was not made must not be recorded as declined")
+ }
+
+ h = newOnboardingHarness(t)
+ h.offerable = true
+ h.answers.ManagedIngestOffered = true
+ h.answers.ManagedIngest = true
+ connect, err := maybeRunOnboarding(h.cmd)
+ if err != nil || !connect {
+ t.Fatalf("accepted offer should request a connect: connect=%t err=%v", connect, err)
+ }
+ if !h.offered[0].OfferManagedIngest {
+ t.Fatal("prompt should have been asked to offer managed ingest")
+ }
+ if got := h.saved[len(h.saved)-1].Onboarding.ManagedIngest; got != onboarding.ManagedIngestAccepted {
+ t.Fatalf("recorded choice = %q", got)
+ }
+
+ h = newOnboardingHarness(t)
+ h.offerable = true
+ h.answers.ManagedIngestOffered = true
+ h.answers.ManagedIngest = false
+ if connect, _ := maybeRunOnboarding(h.cmd); connect {
+ t.Fatal("declined offer must not connect")
+ }
+ if got := h.saved[len(h.saved)-1].Onboarding.ManagedIngest; got != onboarding.ManagedIngestDeclined {
+ t.Fatalf("recorded choice = %q", got)
+ }
+}
+
+func TestManagedIngestOfferRespectsOptOut(t *testing.T) {
+ h := newOnboardingHarness(t)
+ h.offerable = true
+ t.Setenv(managedIngestEnvEnabled, "0")
+ if connect, err := maybeRunOnboarding(h.cmd); err != nil || connect {
+ t.Fatalf("connect=%t err=%v", connect, err)
+ }
+ if len(h.offered) != 1 || h.offered[0].OfferManagedIngest {
+ t.Fatalf("BEACON_MANAGED_INGEST=0 must suppress the offer: %+v", h.offered)
+ }
+}
+
+func TestManagedIngestOfferedOnceToPreviouslyOnboardedMachine(t *testing.T) {
+ h := newOnboardingHarness(t)
+ h.offerable = true
+ h.loaded = onboarding.Profile{InstallID: "abc", Onboarding: onboarding.Onboarding{CompletedAt: "2026-08-01T00:00:00Z", Outcome: onboarding.OutcomeSubmitted, Email: "[email protected]", Usage: onboarding.UsageWork}}
+ h.standaloneAnswer = true
+ connect, err := maybeRunOnboarding(h.cmd)
+ if err != nil || !connect {
+ t.Fatalf("connect=%t err=%v", connect, err)
+ }
+ if h.asked {
+ t.Fatal("the signup questions must not be asked again")
+ }
+ if !h.standaloneAsked {
+ t.Fatal("the forwarding question should be asked once on an already-onboarded machine")
+ }
+ if got := h.saved[len(h.saved)-1].Onboarding.ManagedIngest; got != onboarding.ManagedIngestAccepted {
+ t.Fatalf("recorded choice = %q", got)
+ }
+
+ // Once recorded, it is never asked again.
+ h = newOnboardingHarness(t)
+ h.offerable = true
+ h.loaded = onboarding.Profile{InstallID: "abc", Onboarding: onboarding.Onboarding{CompletedAt: "2026-08-01T00:00:00Z", ManagedIngest: onboarding.ManagedIngestDeclined}}
+ if connect, _ := maybeRunOnboarding(h.cmd); connect || h.standaloneAsked {
+ t.Fatalf("a recorded choice must not be asked again: connect=%t asked=%t", connect, h.standaloneAsked)
+ }
+
+ // Non-interactive paths never see it either.
+ h = newOnboardingHarness(t)
+ h.offerable = true
+ h.loaded = onboarding.Profile{InstallID: "abc", Onboarding: onboarding.Onboarding{CompletedAt: "2026-08-01T00:00:00Z"}}
+ onboardingIsTTY = func() bool { return false }
+ if connect, _ := maybeRunOnboarding(h.cmd); connect || h.standaloneAsked {
+ t.Fatal("no terminal, no question")
+ }
+ h = newOnboardingHarness(t)
+ h.offerable = true
+ h.loaded = onboarding.Profile{InstallID: "abc", Onboarding: onboarding.Onboarding{CompletedAt: "2026-08-01T00:00:00Z"}}
+ t.Setenv("CI", "1")
+ if connect, _ := maybeRunOnboarding(h.cmd); connect || h.standaloneAsked {
+ t.Fatal("CI never sees the question")
+ }
+}
+
+func TestInstallHasConnectFlag(t *testing.T) {
+ if endpointInstallCmd.Flags().Lookup("connect") == nil {
+ t.Fatal("endpoint install should expose --connect")
+ }
+}
+
+func TestEndpointOnboardingShowsManagedIngestChoice(t *testing.T) {
+ h := newOnboardingHarness(t)
+ h.loaded = onboarding.Profile{InstallID: "abc", Onboarding: onboarding.Onboarding{CompletedAt: "2026-08-01T00:00:00Z", Outcome: onboarding.OutcomeSubmitted, Email: "[email protected]", Usage: onboarding.UsageWork, ManagedIngest: onboarding.ManagedIngestAccepted}}
+ if err := runEndpointOnboarding(h.cmd, nil); err != nil {
+ t.Fatal(err)
+ }
+ if !strings.Contains(h.stdout.String(), "Managed ingest offer: accepted") {
+ t.Fatalf("output = %s", h.stdout.String())
+ }
+}
diff --git a/cli/beacon/internal/onboarding/profile.go b/cli/beacon/internal/onboarding/profile.go
index 29968aca..03479c91 100644
--- a/cli/beacon/internal/onboarding/profile.go
+++ b/cli/beacon/internal/onboarding/profile.go
@@ -57,8 +57,18 @@ type Onboarding struct {
Email string `json:"email,omitempty"`
Usage string `json:"usage,omitempty"`
BeaconVersion string `json:"beacon_version,omitempty"`
+ // ManagedIngest records the answer to the managed-forwarding offer: accepted or
+ // declined. Empty means it has not been offered on this machine yet, so a later
+ // interactive install may ask once.
+ ManagedIngest string `json:"managed_ingest,omitempty"`
}
+// Answers to the managed-forwarding offer.
+const (
+ ManagedIngestAccepted = "accepted"
+ ManagedIngestDeclined = "declined"
+)
+
// Prompted reports whether this machine has already been through onboarding.
// It is the single gate that makes the prompt fire once and only once.
func (p Profile) Prompted() bool {
diff --git a/cli/beacon/internal/onboarding/prompt.go b/cli/beacon/internal/onboarding/prompt.go
index 99c80bce..ea600303 100644
--- a/cli/beacon/internal/onboarding/prompt.go
+++ b/cli/beacon/internal/onboarding/prompt.go
@@ -26,6 +26,17 @@ var ErrTooManyAttempts = errors.New("too many invalid answers")
type Answers struct {
Email string
Usage string
+ // ManagedIngestOffered is true when the forwarding question was asked;
+ // ManagedIngest is the answer.
+ ManagedIngestOffered bool
+ ManagedIngest bool
+}
+
+// PromptOptions tunes the one-time prompt.
+type PromptOptions struct {
+ // OfferManagedIngest adds the "forward to Asymptote Managed now?" question. The
+ // caller decides whether it is offerable (Vector present, not already connected).
+ OfferManagedIngest bool
}
// Prompt runs the one-time onboarding questions.
@@ -34,6 +45,11 @@ type Answers struct {
// buffer in tests, a terminal that will not enter raw mode -- it degrades to a typed
// numbered menu, so no environment loses the ability to answer.
func Prompt(in io.Reader, out io.Writer) (Answers, error) {
+ return PromptWith(in, out, PromptOptions{})
+}
+
+// PromptWith is Prompt with options.
+func PromptWith(in io.Reader, out io.Writer, opts PromptOptions) (Answers, error) {
color := supportsColor(out)
reader := bufio.NewReader(in)
@@ -58,8 +74,54 @@ func Prompt(in io.Reader, out io.Writer) (Answers, error) {
fmt.Fprintf(out, " %s%s is a personal mailbox — using it anyway.%s\n", dim(color), EmailDomain(email), reset(color))
}
+ answers := Answers{Email: email, Usage: usage}
+ if opts.OfferManagedIngest {
+ fmt.Fprintln(out)
+ connect, err := askManagedIngest(reader, out, color)
+ if err != nil {
+ return Answers{}, err
+ }
+ answers.ManagedIngestOffered = true
+ answers.ManagedIngest = connect
+ }
+
+ fmt.Fprintln(out)
+ return answers, nil
+}
+
+// AskManagedIngest asks only the forwarding question, for a machine that went through
+// onboarding before the question existed.
+func AskManagedIngest(in io.Reader, out io.Writer) (bool, error) {
+ color := supportsColor(out)
+ fmt.Fprintln(out)
+ answer, err := askManagedIngest(bufio.NewReader(in), out, color)
+ fmt.Fprintln(out)
+ return answer, err
+}
+
+// askManagedIngest offers to connect this machine to Asymptote Managed. Default is no:
+// forwarding telemetry off the machine is a choice, never a side effect of Enter.
+func askManagedIngest(reader *bufio.Reader, out io.Writer, color bool) (bool, error) {
+ fmt.Fprintf(out, " %sForward this machine's agent telemetry to Asymptote Managed?%s\n", bold(color), reset(color))
+ fmt.Fprintln(out, " This opens your browser to sign in and approve this device; you can revoke it")
+ fmt.Fprintln(out, " from the dashboard at any time. Nothing recorded before approval is sent.")
fmt.Fprintln(out)
- return Answers{Email: email, Usage: usage}, nil
+ for attempt := 0; attempt < maxAttempts; attempt++ {
+ line, err := readLine(reader, out, " Connect now? [y/N] ")
+ if err != nil {
+ return false, err
+ }
+ switch strings.ToLower(strings.TrimSpace(line)) {
+ case "", "n", "no":
+ printChoice(out, "Not now. Run `beacon endpoint connect` whenever you are ready.", color)
+ return false, nil
+ case "y", "yes":
+ printChoice(out, "Connecting after install.", color)
+ return true, nil
+ }
+ fmt.Fprintf(out, " %s✗ answer y or n%s\n", warn(color), reset(color))
+ }
+ return false, ErrTooManyAttempts
}
func askUsage(reader *bufio.Reader, in io.Reader, out io.Writer, color bool) (string, error) {
diff --git a/cli/beacon/internal/onboarding/prompt_test.go b/cli/beacon/internal/onboarding/prompt_test.go
index b341a4a3..27bdb672 100644
--- a/cli/beacon/internal/onboarding/prompt_test.go
+++ b/cli/beacon/internal/onboarding/prompt_test.go
@@ -166,3 +166,58 @@ func TestPromptDoesNotNoteFreeMailboxForPersonalUse(t *testing.T) {
t.Fatalf("personal use should not trigger the mailbox note:\n%s", out)
}
}
+
+func TestPromptOffersManagedIngestOnlyWhenAsked(t *testing.T) {
+ answers, out, err := runPrompt(t, "1\[email protected]\n")
+ if err != nil {
+ t.Fatalf("Prompt returned error: %v", err)
+ }
+ if answers.ManagedIngestOffered || strings.Contains(out, "Asymptote Managed") {
+ t.Fatalf("default prompt must not offer managed ingest: %+v\n%s", answers, out)
+ }
+
+ var buf bytes.Buffer
+ answers, err = PromptWith(strings.NewReader("1\[email protected]\ny\n"), &buf, PromptOptions{OfferManagedIngest: true})
+ if err != nil {
+ t.Fatalf("PromptWith returned error: %v", err)
+ }
+ if !answers.ManagedIngestOffered || !answers.ManagedIngest {
+ t.Fatalf("expected an accepted offer, got %+v", answers)
+ }
+ for _, want := range []string{"Forward this machine's agent telemetry to Asymptote Managed?", "revoke it", "Nothing recorded before approval is sent", "Connect now? [y/N]", "Connecting after install."} {
+ if !strings.Contains(buf.String(), want) {
+ t.Fatalf("offer output missing %q:\n%s", want, buf.String())
+ }
+ }
+}
+
+func TestManagedIngestOfferDefaultsToNo(t *testing.T) {
+ for _, input := range []string{"\n", "n\n", "NO\n"} {
+ var buf bytes.Buffer
+ answers, err := PromptWith(strings.NewReader("1\[email protected]\n"+input), &buf, PromptOptions{OfferManagedIngest: true})
+ if err != nil {
+ t.Fatalf("input %q: %v", input, err)
+ }
+ if !answers.ManagedIngestOffered || answers.ManagedIngest {
+ t.Fatalf("input %q should decline, got %+v", input, answers)
+ }
+ if !strings.Contains(buf.String(), "beacon endpoint connect") {
+ t.Fatalf("declining should name the command to run later:\n%s", buf.String())
+ }
+ }
+ var buf bytes.Buffer
+ if _, err := PromptWith(strings.NewReader("1\[email protected]\nmaybe\nwhat\nhuh\n?\n!\n"), &buf, PromptOptions{OfferManagedIngest: true}); !errors.Is(err, ErrTooManyAttempts) {
+ t.Fatalf("expected ErrTooManyAttempts after repeated bad answers, got %v", err)
+ }
+}
+
+func TestAskManagedIngestAlone(t *testing.T) {
+ var buf bytes.Buffer
+ yes, err := AskManagedIngest(strings.NewReader("yes\n"), &buf)
+ if err != nil || !yes {
+ t.Fatalf("AskManagedIngest = %t, %v", yes, err)
+ }
+ if _, err := AskManagedIngest(strings.NewReader(""), &buf); !errors.Is(err, ErrPromptAborted) {
+ t.Fatalf("EOF should abort, got %v", err)
+ }
+}
diff --git a/docs/changelog/cli.mdx b/docs/changelog/cli.mdx
index 7619c796..1b70957a 100644
--- a/docs/changelog/cli.mdx
+++ b/docs/changelog/cli.mdx
@@ -11,8 +11,15 @@ Stay up to date with the latest changes to the Agent Beacon CLI.
## September 2026
-### Unreleased
-
+### v1.2.8 · September 4, 2026
+
+- **Onboarding offers managed forwarding** · When Vector is present, the
+ first-run prompt asks one more question, whether to forward this machine's
+ telemetry to Asymptote Managed (default no); yes runs `beacon endpoint connect`
+ after the install. `beacon endpoint install --connect` forces it,
+ `BEACON_MANAGED_INGEST=0` silences it, the answer is recorded once per machine
+ and shown by `beacon endpoint onboarding`. The Homebrew formula now depends on
+ `vector` so a Homebrew install can connect without a second step.
- **`beacon endpoint connect` and `disconnect`** · Connect an endpoint to
Asymptote managed ingest from the CLI: it finds Vector (0.56+), opens the
dashboard's device approval page, receives a per-device key through a
diff --git a/docs/cli/endpoint-install.mdx b/docs/cli/endpoint-install.mdx
index 5f70c8a8..6895efcb 100644
--- a/docs/cli/endpoint-install.mdx
+++ b/docs/cli/endpoint-install.mdx
@@ -43,6 +43,11 @@ By default, Beacon configures Claude Code and Codex CLI telemetry for local or c
| `--falcon-sourcetype <type>` | Optional Falcon LogScale parser or sourcetype |
| `--falcon-insecure-skip-verify` | Skip Falcon LogScale HEC TLS certificate verification |
| `--falcon-ca-file <path>` | Optional CA certificate path for Falcon LogScale HEC TLS verification |
+| `--connect` | After a successful install, connect this endpoint to Asymptote managed ingest: opens the dashboard to approve the device and starts the Vector forwarder. Same as running [`beacon endpoint connect`](/cli/endpoint-connect) afterwards |
+
+## Managed ingest offer
+
+On a first interactive install where Vector is available, the [onboarding prompt](/cli/endpoint-onboarding) ends with one more question: whether to forward this machine's agent telemetry to Asymptote Managed now. The default is no. Answering yes runs the connect flow after the install completes; a failed connect is reported with the retry command and never fails the install. `BEACON_MANAGED_INGEST=0` suppresses the question, the question is never shown non-interactively, and it is asked at most once per machine.
## Examples
diff --git a/docs/cli/endpoint-onboarding.mdx b/docs/cli/endpoint-onboarding.mdx
index 89225d26..9f18ed18 100644
--- a/docs/cli/endpoint-onboarding.mdx
+++ b/docs/cli/endpoint-onboarding.mdx
@@ -18,7 +18,7 @@ Beacon does not ask again.
## First-run onboarding
The first interactive `beacon endpoint install` asks two questions, how you are using Beacon and your email, then sends the answers to Asymptote once. This is how we decide
-which agent runtimes and integrations to build next.
+which agent runtimes and integrations to build next. When Vector is available on the machine it asks a third question, whether to forward this machine's telemetry to Asymptote Managed now; that answer stays local and, if yes, runs [`beacon endpoint connect`](/cli/endpoint-connect) after the install.
What is sent, and nothing else:
@@ -53,7 +53,8 @@ skip it silently.
Set `BEACON_ONBOARDING=0` to suppress the prompt on an install that would otherwise be
interactive. There is no CLI flag for this: it exists for unattended CI and MDM
-workflows.
+workflows. `BEACON_MANAGED_INGEST=0` suppresses only the managed-forwarding question;
+`beacon endpoint install --connect` still connects when asked explicitly.
```bash title="Suppress the prompt"
BEACON_ONBOARDING=0 beacon endpoint install
@@ -72,7 +73,8 @@ is reported on stderr and ignored rather than failing the install.
## Examples
-Show what was recorded:
+Show what was recorded, including the answer to the managed-forwarding question
+(`Managed ingest offer: accepted` or `declined`; absent when it has not been asked):
```bash title="Show the onboarding record"
beacon endpoint onboarding
diff --git a/docs/cli/install.mdx b/docs/cli/install.mdx
index 3cc58941..28f03d3e 100644
--- a/docs/cli/install.mdx
+++ b/docs/cli/install.mdx
@@ -26,6 +26,8 @@ brew install beacon
beacon version
```
+The formula depends on `vector`, which runs the optional [Asymptote Managed forwarder](/cli/endpoint-connect); Homebrew installs it alongside Beacon.
+
<Accordion title="Example output">
```bash title="beacon version output"
$ beacon version
diff --git a/docs/deployment/hosting-options.mdx b/docs/deployment/hosting-options.mdx
index 874d567e..18aa7581 100644
--- a/docs/deployment/hosting-options.mdx
+++ b/docs/deployment/hosting-options.mdx
@@ -43,7 +43,7 @@ Use Managed when you want hosted visibility, governance, and enterprise rollout
1. Request access at [asymptotelabs.ai/contact](https://asymptotelabs.ai/contact).
2. Configure your workspace with the runtimes and teams you want to observe.
3. Use the Asymptote Observe SDK for cloud-hosted agents, services, workers, and serverless functions.
-4. Deploy Agent Beacon on endpoints when you also need local harness visibility.
+4. Deploy Agent Beacon on endpoints and run [`beacon endpoint connect`](/cli/endpoint-connect) on each so their telemetry reaches the dashboard.
Managed adds centralized ingest, retention, search, detections, fleet-wide visibility, policy controls, identity mapping, approvals, investigation workflows, SSO, RBAC, audit trails, and enterprise onboarding on top of the open-source Agent Beacon foundation.
diff --git a/docs/deployment/managed.mdx b/docs/deployment/managed.mdx
index b1c81121..1ecfa7a7 100644
--- a/docs/deployment/managed.mdx
+++ b/docs/deployment/managed.mdx
@@ -27,6 +27,8 @@ Asymptote Managed includes the open-source capture and forwarding paths, then ad
Managed ingest turns endpoint and cloud-agent telemetry into searchable fleet-wide visibility. Security teams can review which agents are running, which tools they use, and what sensitive files or data are involved in agent activity.
+Endpoints join with [`beacon endpoint connect`](/cli/endpoint-connect): the CLI opens the dashboard, a member of the organization approves the specific device, and a Vector forwarder ships the machine's runtime and inventory JSONL with a per-device key that the dashboard's Beacon Endpoints page can revoke at any time. The first interactive `beacon endpoint install` offers the same step. Enrollment is interactive per device today; headless enrollment for MDM fleets is a planned follow-up.
+
For provider-managed cloud agents, Managed avoids proof-of-concept patterns such
as placing storage service-account keys directly into cloud sandbox environment
variables. Asymptote can operate the secure ingest and retention layer for you,
diff --git a/docs/get-started/quickstart.mdx b/docs/get-started/quickstart.mdx
index 5f374c37..59a363fe 100644
--- a/docs/get-started/quickstart.mdx
+++ b/docs/get-started/quickstart.mdx
@@ -31,6 +31,8 @@ The open-source path is local-only by default. The endpoint agent does not requi
Move to Managed when a small pilot becomes an operating program: multiple teams, centralized search, governance, investigations, access control, and rollout support.
+Connecting an endpoint is one command once your organization is provisioned: `beacon endpoint connect` opens the dashboard, a member of your organization approves the device, and the machine's telemetry starts appearing on the dashboard. The first interactive `beacon endpoint install` offers the same step. See [`beacon endpoint connect`](/cli/endpoint-connect).
+
Private Deployment is the path for regulated teams that need managed capabilities with dedicated infrastructure, stronger isolation, custom retention, or residency requirements.
[Contact us](https://asymptotelabs.ai/contact) to discuss Managed or Private Deployment.
diff --git a/docs/mdm/index.mdx b/docs/mdm/index.mdx
index 8901639b..d044570f 100644
--- a/docs/mdm/index.mdx
+++ b/docs/mdm/index.mdx
@@ -58,6 +58,8 @@ off by default.
</Step>
</Steps>
+Connecting packaged endpoints to Asymptote Managed is a separate, interactive step today: an admin runs `sudo /opt/beacon/bin/beacon endpoint connect --system` on the machine and the approval page opens in the console user's browser. The package never enrolls a device on its own, and there is no headless enrollment for MDM fleets yet; it is a planned follow-up. See [`beacon endpoint connect`](/cli/endpoint-connect).
+
Environment variables take precedence over MDM script parameters:
| Environment variable | Default |