1. MooseStack
  2. Configuration
  3. JWT Configuration

JWT Configuration

Configure JSON Web Token (JWT) validation for your ingestion and consumption APIs.

[jwt]# Enforce JWT on all consumption APIs (Default: false)enforce_on_all_consumptions_apis = false# Enforce JWT on all ingestion APIs (Default: false)enforce_on_all_ingest_apis = false# Secret key for JWT signing (Required if jwt is enabled)# secret = "your-jwt-secret"# JWT issuer (Required if jwt is enabled)# issuer = "your-issuer-name"# JWT audience (Required if jwt is enabled)# audience = "your-audience-name"
KeyEnv VariableDefaultDescription
enforce_on_all_consumptions_apisMOOSE_JWT__ENFORCE_ON_ALL_CONSUMPTIONS_APISfalseGlobally enable JWT for consumption endpoints.
enforce_on_all_ingest_apisMOOSE_JWT__ENFORCE_ON_ALL_INGEST_APISfalseGlobally enable JWT for ingestion endpoints.
secretMOOSE_JWT__SECRET-SECRET. The key used to sign/verify tokens.
issuerMOOSE_JWT__ISSUER-Expected token issuer claim (iss).
audienceMOOSE_JWT__AUDIENCE
-
Expected token audience claim (aud).
Warning:

The secret field contains sensitive authentication material and should never be defined in plaintext in moose.config.toml. Store it in your secrets manager and expose it via the MOOSE_JWT__SECRET environment variable.

FiveonefourFiveonefour
Fiveonefour Docs
MooseStackTemplates
Changelog
Source506
  • Overview
  • Quick Start
  • Templates / Examples
Fundamentals
  • Moose Runtime
  • MooseDev MCP
  • Data Modeling
MooseStack in your App
  • App / API frameworks
Modules
  • Moose OLAP
  • Moose Streaming
  • Moose Workflows
  • Moose APIs
Deployment & Lifecycle
  • Moose Migrate
  • Moose Deploy
Reference
  • API Reference
  • Data Types
  • Table Engines
  • CLI
  • Configuration
    • Core Settings
    • Project Settings
    • TypeScript
    • Telemetry
    • Git
    • Features
    • Migrations
    • Infrastructure
    • ClickHouse
    • Redpanda
    • Redis
    • Temporal
    • HTTP Server
    • State Storage
    • Security
    • JWT
    • Admin API
    • Development
    • Dev Environment
  • Observability Metrics
  • Help
  • Changelog
Contribution
  • Documentation
  • Framework