endeavor

by Rotational Labs

Helm chartv1.7.0App 1.7.0Verified publisher

Configure, evaluate, and extend LLMs for business workflows with rigor and speed

About this chart

Endeavor Chart

This chart deploys Endeavor and the embedded Quarterdeck subchart.

Basic usage

Run from the helm-charts repository root.

helm dependency build ./charts/endeavor
helm template myrelease ./charts/endeavor -f ./my-values.yaml --namespace endeavor

Apply with Helm:

helm upgrade --install myrelease ./charts/endeavor -f ./my-values.yaml --namespace endeavor

Secret model

This chart expects pre-existing Kubernetes secrets by default (secrets.create=false).

Common required secret keys:

  • databaseURL (from secrets.databaseURL)
  • cofferKeys when coffer is enabled (from secrets.cofferKeys)
  • AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY when S3 blobs are used (from secrets.aws)

Quarterdeck email is configured independently through quarterdeck.quarterdeck.email.sendgrid.

Beacon task loader credentials

Beacon URL/TTL are configured from values:

  • endeavor.tasks.beacon.url
  • endeavor.tasks.beacon.ttl

Basic auth credentials support secret references:

endeavor:
  tasks:
    beacon:
      url: "https://beacon.rotational.app"
      ttl: "24h"
      compassVersion: "0.37.0"
      authSecret:
        secretName: "my-tenant-endeavor"
        usernameKey: "beaconBasicAuthUsername"
        passwordKey: "beaconBasicAuthPassword"

Full render reference

ci/full-template-values.yaml sets every parent-chart value to concrete sample data for render review. It is for local/CI rendering, not production.

helm template myrelease /Users/chris/Repositories/Rotational.io/helm-charts/charts/endeavor \
  -f /Users/chris/Repositories/Rotational.io/helm-charts/charts/endeavor/ci/full-template-values.yaml \
  --namespace rotational

For smaller checks, use ci/all-values.yaml or chart defaults only.

Current Environment Configuration

Radish queue connection settings are managed by Endeavor's store. Configure task queue behavior with the RADISH_* tunables below; do not use ENDEAVOR_RADISH_* variables.

Fetch Metadata CSRF protection

Endeavor uses Gimlet's Fetch Metadata CSRF protection. Same-origin mutations pass; same-site mutations require a trusted exact Origin. Requests with missing or unknown fetch metadata require a trusted Origin or Referer. Explicit cross-site mutations and Sec-Fetch-Site: none mutations are rejected by default. Safe methods default to GET,HEAD,OPTIONS.

Configure the middleware under endeavor.csrf. expectedOrigins is separate from CORS allowOrigins; when it is empty, Endeavor uses the resolved CORS origins (endeavor.allowOrigins, global.origins, or endeavor.origin, in that order). Specify a non-empty expectedOrigins list to override this fallback. Origins must be exact browser-facing HTTP(S) origins (scheme and host, including a non-default port when applicable), with no wildcard domains or URL paths. Lists are exported as comma-separated environment variables. Boolean relaxations default to false, and fetch mode/destination allowlists default to empty.

For example, these configured origins automatically become the CSRF expected origins unless endeavor.csrf.expectedOrigins is set explicitly:

global:
  origins:
    - https://endeavor.example.com
    - https://quarterdeck.example.com
endeavor:
  origin: https://endeavor.example.com
  csrf:
    namespace: endeavor
    disable: false
    expectedOrigins: []
    safeHTTPMethods: [GET, HEAD, OPTIONS]
    allowMissingMetadata: false
    allowUnknownSite: false
    allowSiteNone: false
    allowedFetchModes: []
    allowedFetchDestinations: []
    requireFetchMode: false
    requireFetchDestination: false

The expected-origin trust list and CORS allowOrigins list serve different policies. The namespace configures Endeavor's CSRF error response header; it is separate from endeavor.auth.quarterdeckCSRFNamespace, which determines the header Endeavor expects from Quarterdeck. Preserve the existing authentication cookie settings when changing CSRF configuration.

When Quarterdeck is enabled as Endeavor's dependency, configure its CSRF middleware at quarterdeck.quarterdeck.csrf (the first quarterdeck selects the dependency chart):

quarterdeck:
  enabled: true
  quarterdeck:
    csrf:
      namespace: quarterdeck
      disable: false
      # Empty uses Quarterdeck's resolved CORS origins; a non-empty list overrides them.
      expectedOrigins: []
      safeHTTPMethods: [GET, HEAD, OPTIONS]
      allowMissingMetadata: false
      allowUnknownSite: false
      allowSiteNone: false
      allowedFetchModes: []
      allowedFetchDestinations: []
      requireFetchMode: false
      requireFetchDestination: false

Quarterdeck's empty expectedOrigins falls back to its own resolved CORS origins (quarterdeck.allowOrigins, global.origins, or global.issuer). This configuration is independent of Endeavor's endeavor.csrf settings.

This application is configured via the environment. The following environment
variables can be used:

ENDEAVOR_MAINTENANCE
  [description] if true, the server will start in maintenance mode
  [type]        True or False
  [default]     false
  [required]
ENDEAVOR_MODE
  [description] specify the mode of the server (release, debug, testing)
  [type]        String
  [default]     release
  [required]
ENDEAVOR_LOG_LEVEL
  [description] specify the verbosity of logging (trace, debug, info, warn, error, fatal, or panic)
  [type]        LevelDecoder
  [default]     info
  [required]
ENDEAVOR_CONSOLE_LOG
  [description] if true logs human readable text output instead of json
  [type]        True or False
  [default]     false
  [required]
ENDEAVOR_BIND_ADDR
  [description] the ip address and port to bind the web server on
  [type]        String
  [default]     :8000
  [required]
ENDEAVOR_ORIGIN
  [description] origin (url) of the web ui for creating endpoints and CORS access
  [type]        String
  [default]     http://localhost:8000
  [required]
ENDEAVOR_ALLOW_ORIGINS
  [description] a list of allowed origins (domains including port) for CORS requests
  [type]        Comma-separated list of String
  [default]     http://localhost:8000,http://localhost:8888
  [required]
ENDEAVOR_DOCS_NAME
  [description] the display title for the API docs
  [type]        String
  [default]     Endeavor API Reference
  [required]
ENDEAVOR_ORGANIZATION_ID
  [description] a string identifier for the organization that this endeavor instance serves
  [type]        String
  [default]     endeavor
  [required]
ENDEAVOR_DATABASE_URL
  [description] dsn containing backend database configuration
  [type]        String
  [default]     postgres://localhost:5432/endeavor
  [required]
ENDEAVOR_READ_HEADER_TIMEOUT
  [description] the maximum duration for reading the request header (see Go's http.Server.ReadHeaderTimeout)
  [type]        Duration
  [default]     180s
  [required]
ENDEAVOR_WRITE_TIMEOUT
  [description] the maximum duration for writing the response (see Go's http.Server.WriteTimeout)
  [type]        Duration
  [default]     180s
  [required]
ENDEAVOR_IDLE_TIMEOUT
  [description] the maximum duration for idle connections (see Go's http.Server.IdleTimeout)
  [type]        Duration
  [default]     360s
  [required]
ENDEAVOR_SHUTDOWN_TIMEOUT
  [description] the maximum duration for shutting down the server
  [type]        Duration
  [default]     180s
  [required]
ENDEAVOR_BLOBS_URI
  [description] blob store URI (see config doc for examples)
  [type]        String
  [default]     file:///blobs
  [required]
ENDEAVOR_STATIC_SERVE
  [description] if true, static files will be served from the filesystem
  [type]        True or False
  [default]     true
  [required]
ENDEAVOR_STATIC_ROOT
  [description] the root directory for static files
  [type]        String
  [default]     pkg/web/static
  [required]
ENDEAVOR_STATIC_URL
  [description] the URL that static files are served from either a relative URL or a URL to a CDN
  [type]        String
  [default]     /static
  [required]
ENDEAVOR_AUTH_QUARTERDECK_URL
  [description] the base authentication endpoint for quarterdeck
  [type]        String
  [default]     http://localhost:8888
  [required]
ENDEAVOR_AUTH_AUDIENCE
  [description] value for the aud jwt claim
  [type]        String
  [default]     http://localhost:8000
  [required]
ENDEAVOR_CSRF_DISABLED
  [description] if true, logs would-be CSRF rejections without blocking requests
  [type]        True or False
  [default]     false
  [required]
ENDEAVOR_CSRF_NAMESPACE
  [description] namespace used for Endeavor's CSRF error response header
  [type]        String
  [default]     endeavor
  [required]
ENDEAVOR_AUTH_QUARTERDECK_CSRF_NAMESPACE
  [description] namespace used for the CSRF error response header expected from Quarterdeck
  [type]        String
  [default]     quarterdeck
  [required]
ENDEAVOR_CSRF_EXPECTED_ORIGINS
  [description] exact trusted browser-facing HTTP(S) origins; defaults to the resolved CORS allowed origins
  [type]        Comma-separated list of String
  [default]     resolved CORS origins
  [required]
ENDEAVOR_CSRF_SAFE_HTTP_METHODS
  [description] methods that are safe from CSRF checks
  [type]        Comma-separated list of String
  [default]     GET,HEAD,OPTIONS
  [required]
ENDEAVOR_CSRF_ALLOW_MISSING_METADATA
  [description] allow requests missing Fetch Metadata headers
  [type]        True or False
  [default]     false
  [required]
ENDEAVOR_CSRF_ALLOW_UNKNOWN_SITE
  [description] allow requests with unknown Fetch Metadata site values
  [type]        True or False
  [default]     false
  [required]
ENDEAVOR_CSRF_ALLOW_SITE_NONE
  [description] allow requests with Sec-Fetch-Site: none
  [type]        True or False
  [default]     false
  [required]
ENDEAVOR_CSRF_ALLOWED_FETCH_MODES
  [description] allowed Sec-Fetch-Mode values
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_CSRF_ALLOWED_FETCH_DESTINATIONS
  [description] allowed Sec-Fetch-Dest values
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_CSRF_REQUIRE_FETCH_MODE
  [description] require a Sec-Fetch-Mode header
  [type]        True or False
  [default]     false
  [required]
ENDEAVOR_CSRF_REQUIRE_FETCH_DESTINATION
  [description] require a Sec-Fetch-Dest header
  [type]        True or False
  [default]     false
  [required]
ENDEAVOR_SECURE_CONTENT_TYPE_NOSNIFF
  [description] If true, adds the X-Content-Type-Options header with the nosniff directive.
  [type]        True or False
  [default]     true
  [required]
ENDEAVOR_SECURE_CROSS_ORIGIN_OPENER_POLICY
  [description] Value for the Cross-Origin-Opener-Policy header.
  [type]        String
  [default]     same-origin
  [required]
ENDEAVOR_SECURE_REFERRER_POLICY
  [description] Value for the Referrer-Policy header.
  [type]        String
  [default]     strict-origin-when-cross-origin
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_CHILD_SRC
  [description] defines valid sources for web workers and nested browsing contexts loading using elements such as <frame> and <iframe>.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_CONNECT_SRC
  [description] restricts the URLs which can be loaded using script interfaces.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_DEFAULT_SRC
  [description] serves as a fallback for the other fetch directives.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_FENCED_FRAME_SRC
  [description] specifies valid sources for nested browsing contexts loaded into <fencedframe> elements.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_FONT_SRC
  [description] specifies valid sources for fonts loaded using @font-face.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_FRAME_SRC
  [description] specifies valid sources for nested browsing contexts loaded into elements such as <frame> and <iframe>.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_IMG_SRC
  [description] specifies valid sources of images and favicons.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_MANIFEST_SRC
  [description] specifies valid sources of application manifest files.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_MEDIA_SRC
  [description] specifies valid sources for loading media using the <audio>, <video> and <track> elements.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_OBJECT_SRC
  [description] specifies valid sources for the <object> and <embed> elements.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_PREFETCH_SRC
  [description] specifies valid sources to be prefetched or prerendered.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_SCRIPT_SRC
  [description] specifies valid sources for JavaScript and WebAssembly resources.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_SCRIPT_SRC_ELEM
  [description] specifies valid sources for JavaScript <script> elements.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_SCRIPT_SRC_ATTR
  [description] specifies valid sources for JavaScript inline event handlers.
  [type]        Comma-separated list of String
  [default]
  [required]
ENDEAVOR_SECURE_CONTENT_SECURITY_POLICY_STYLE_S

Deploy endeavor with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has endeavor on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartendeavor is pinned at v1.7.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply