Skip to content

docs: document Zero --security token and whitelist flags#762

Open
matthewmcneely wants to merge 1 commit into
mainfrom
docs-zero-security-flags
Open

docs: document Zero --security token and whitelist flags#762
matthewmcneely wants to merge 1 commit into
mainfrom
docs-zero-security-flags

Conversation

@matthewmcneely

@matthewmcneely matthewmcneely commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Documents the --security superflag on dgraph zero, which authenticates Zero's administrative HTTP endpoints (/state, /assign, /removeNode, /moveTablet) using the same token and whitelist options Alpha already supports.

What changed

  • cli/zero.md — adds --security to the superflag list, a new "Securing the admin HTTP endpoints" section with usage examples, and the flag block in the Full Reference.
  • cli/superflags.md — the Security superflag token and whitelist options now list zero under "Applies to", with a pointer to the admin-endpoint-security page.
  • admin/security/admin-endpoint-security.md — a new "Zero admin endpoints" section describing how the flag protects these endpoints.

Behavior documented

  • The destructive endpoints (/removeNode, /moveTablet) are restricted to loopback by default. A whitelist or token is required to reach them from another host.
  • The informational and allocation endpoints (/state, /assign) are enforced once a token or whitelist is configured.
  • Network isolation of the port (it is an internal control-plane port) remains the primary control, and --limit "disable-admin-http=true" turns the endpoints off entirely.

Notes

  • Applied to both docs/ (next) and docs_versioned_docs/version-v25.3/ (the version served as latest, per includeCurrentVersion: false + lastVersion: 'v25.3').
  • The --security flag on Zero is being added in dgraph; this documents it. Best merged alongside that release.

🤖 Generated with Claude Code

Zero now supports the --security superflag (token, whitelist) to
authenticate its administrative HTTP endpoints (/state, /assign,
/removeNode, /moveTablet). Document the flag on the dgraph zero CLI page,
add zero to the Security superflag table, and add a "Zero admin
endpoints" section to Admin Endpoint Security describing the two-tier
protection: /removeNode and /moveTablet are loopback-only by default,
while /state and /assign are enforced once a token or whitelist is set.

Applied to both docs/ (next) and the served v25.3 version.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@matthewmcneely
matthewmcneely requested a review from rderbier as a code owner July 17, 2026 19:42
@matthewmcneely

Copy link
Copy Markdown
Collaborator Author

Merge only when v25.3.9 is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant