-
Notifications
You must be signed in to change notification settings - Fork 0
Cookbook Enable Tokens
Turn on personal-token enforcement for the REST / management plane - the tokens-only posture, where every management call must carry a personal token. This is the ordered task; the concepts are in Security: Advanced and the configuration mechanism (and exact property names) in Configuration: Advanced - Tokens.
Audience: Operator. Prerequisites: a running deployment, and access to the gateway service definition and its deploy log.
- This gates the management plane only. Client (market-data) access is governed separately and is unaffected - see Access Control.
- Enforcement is presence-based: it comes on because you provision a token store on the primary gateway, not from a strictness switch. Off is the default; this recipe moves you to tokens-only.
-
Give the primary gateway a persistent volume. Mount
/app/dataon the primary gateway service (the store lives here). Only the primary needs it - secondary gateways forward token checks and stay stateless. (→ Configuration: Advanced - Tokens) -
Provision the token store on the primary gateway service, then restart it (no rebake) - or bake it into a
-cfg-<tag>image to pin it. Provisioning the store without the/app/datamount is a loud startup error, not a silent half-state. (→ Configuration: Advanced - Tokens) -
Read the one-time bootstrap secret. On the first start with an empty volume, the gateway prints it once to the deploy log (
/app/logs). Capture it now. (→ API Token Administration - Arming a fresh gateway) - Mint the first admin token using that bootstrap secret. It is retired the moment the first administrative token exists. (→ API Token Administration - Arming a fresh gateway)
- Issue per-person tokens from the admin token - one per person or automation. (→ API Token Administration - Issuing a token)
Confirm enforcement is live before you rely on it:
# No token -> refused (401)
curl -s -o /dev/null -w '%{http_code}\n' \
"http://mf-api-gateway:9090/api/application-state/v1/*/name,state"
# With a valid token -> served (200)
curl -s -o /dev/null -w '%{http_code}\n' \
-H "Authorization: Bearer mft_..." \
"http://mf-api-gateway:9090/api/application-state/v1/*/name,state"The configuration self-report should also show the primary gateway with token enforcement armed (see Configuration: Basics).
-
Off: remove the store provisioning and the
/app/datamount from the gateway service and restart. With nothing provisioned the gateway serves openly again - identical to a deployment with no access control. -
Reset: wiping the
/app/datavolume makes the next start a fresh first boot - a new bootstrap secret is generated and the store starts empty.
-
Configuration: Advanced - Tokens - the store, the
/app/datamount, expiry and switch-off-delay tunables, and the exact property names. - API Token Administration - issuing, listing, auditing, revoking, and rotating tokens.
- Security: Advanced - how personal tokens work.
- Cookbook: Enable SSO - the next step, if people should log in with a company account.
Elastic MDS documentation - (c) MetaFluent LLC - Confidential. Tracked in IssueTracking#586.
Getting Started
Deployment Cookbook
Concepts
- Architecture: Basics
- Access Control
- Architecture: Advanced
- Security: Basics
- Security: Advanced
- Glossary
Configuration
Configuration Cookbook
Deployment
Operations
- Monitoring & Diagnostics
- Logging
- Dashboard
- Troubleshooting & FAQ
- AI-Assisted Troubleshooting
- API Token Administration
Diagnostic Cookbook
Developing Applications
Reference