-
Notifications
You must be signed in to change notification settings - Fork 6
feat: use get.agent-vault.dev short URL and add anonymous install beacon #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,10 +2,14 @@ | |
| set -e | ||
|
|
||
| # Agent Vault installer | ||
| # Usage: curl -fsSL https://raw.githubusercontent.com/Infisical/agent-vault/main/install.sh | sh | ||
| # Usage: curl -fsSL https://get.agent-vault.dev | sh | ||
| # | ||
| # Supports: macOS (Intel + Apple Silicon), Linux (amd64 + arm64) | ||
| # Works for both fresh install and upgrade. | ||
| # | ||
| # Privacy: on successful install, sends an anonymous ping with OS, arch, | ||
| # and version only — no identifiers, no IP retention. Opt out with: | ||
| # AGENT_VAULT_NO_TELEMETRY=1 curl -fsSL https://get.agent-vault.dev | sh | ||
|
Check failure on line 12 in install.sh
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 The telemetry opt-out command documented in install.sh (line 12) and docs/installation.mdx is syntactically incorrect: Extended reasoning...What the bug is and how it manifests The install.sh comment (line 12) and the docs/installation.mdx AGENT_VAULT_NO_TELEMETRY=1 curl -fsSL https://get.agent-vault.dev | shThis syntax is incorrect. In POSIX shell, a The specific code path that triggers it At install.sh line 186 (in the new if [ -z "$AGENT_VAULT_NO_TELEMETRY" ]; thenWhen a user follows the documented procedure, Why existing code doesn't prevent it The check itself is correct — it correctly gates the beacon on the variable being non-empty. The problem is purely in the documentation: the example command sets the variable in the wrong process. No runtime guard exists to detect or compensate for this mis-invocation. What the impact would be Users who explicitly follow the documented privacy opt-out procedure will still have their install telemetrized without their knowledge or consent. This silently violates stated user intent and contradicts the privacy promise made in both the script comment and the docs Note. Since this is a new feature introduced by this PR, the broken opt-out ships alongside the first deployment of the beacon. How to fix it Two correct forms exist:
curl -fsSL https://get.agent-vault.dev | AGENT_VAULT_NO_TELEMETRY=1 sh
export AGENT_VAULT_NO_TELEMETRY=1 && curl -fsSL https://get.agent-vault.dev | shBoth install.sh line 12 and docs/installation.mdx should be updated with the correct form. The docs Note currently says only Step-by-step proof
Empirical confirmation: running |
||
|
|
||
| REPO="Infisical/agent-vault" | ||
| INSTALL_DIR="/usr/local/bin" | ||
|
|
@@ -173,9 +177,19 @@ | |
| if [ "$SERVER_WAS_RUNNING" = true ]; then | ||
| echo "" | ||
| info "The server was stopped for the upgrade." | ||
| info "Run 'agent-vault server' to start it again." | ||
| info "Database migrations (if any) will run automatically on startup." | ||
| fi | ||
|
|
||
| # Anonymous completion beacon. No PII, no identifiers. | ||
| # Opt out: AGENT_VAULT_NO_TELEMETRY=1 | ||
| if [ -z "$AGENT_VAULT_NO_TELEMETRY" ]; then | ||
| EVENT="install" | ||
| if [ -n "$EXISTING_VERSION" ] && [ "$EXISTING_VERSION" != "unknown" ]; then | ||
| EVENT="upgrade" | ||
| fi | ||
| curl -fsS -m 3 "https://get.agent-vault.dev/ok?os=${OS}&arch=${ARCH}&v=${LATEST}&event=${EVENT}" >/dev/null 2>&1 || true | ||
| fi | ||
|
Check warning on line 192 in install.sh
|
||
|
dangtony98 marked this conversation as resolved.
|
||
| } | ||
|
|
||
| main "$@" | ||
|
Check notice on line 195 in install.sh
|
||
|
dangtony98 marked this conversation as resolved.
|
||
Uh oh!
There was an error while loading. Please reload this page.