Skip to content

feat: env var coverage for all config (12-factor compliance) #338

Closed

Description

@ajianaz

Problem

Uteke only supports 3 env vars:

  • UTEKE_HOME — data directory
  • UTEKE_NAMESPACE — default namespace
  • UTEKE_AUTH_TOKEN — server auth token

Most config is only accessible via uteke.toml or CLI flags. This makes Docker deployment harder (env vars are the standard way to configure containers).

Proposed Solution

New env vars

Env Var Config Equivalent Default Description
UTEKE_EMBEDDING_BACKEND [embedding] backend onnx Embedding backend
UTEKE_EMBEDDING_API_KEY [embedding] api_key — API key for cloud backends
UTEKE_EMBEDDING_BASE_URL [embedding] base_url — Custom embedding endpoint
UTEKE_EMBEDDING_MODEL [embedding] model backend-specific Model name
UTEKE_LOG_LEVEL [logging] level info Log level (trace/debug/info/warn/error)
UTEKE_SERVER_HOST [server] host 127.0.0.1 Server bind address
UTEKE_SERVER_PORT [server] port 8767 Server port
UTEKE_RECALL_MIN_SCORE [recall] min_score 0.3 Default recall threshold
UTEKE_RECALL_MIN_SCORE_STRICT [recall] min_score_strict 0.5 Strict threshold

Resolution order (highest priority first)

  1. CLI flag (--min, --host, --port)
  2. Env var (UTEKE_*)
  3. Config file (uteke.toml)
  4. Built-in default

Documentation

Update docs/configuration.md with:

  • Complete env var table
  • Docker example using env vars
  • Resolution order explanation

Acceptance Criteria

  • All listed env vars supported in config loading
  • Env vars override config file values
  • CLI flags override env vars
  • docs/configuration.md updated with env var table
  • docs/docker.md references env vars

Dependencies

Effort

~3-4 hours

Activity

  1. added
    enhancement
    scope:core
    scope:cli
    on Jun 14, 2026
  2. modified the milestones: v0.2.1 — DX & Ecosystem, on Jun 14, 2026
  3. added 2 commits that reference this issue on Jun 14, 2026
  4. added a commit that references this issue on Jul 2, 2026
  5. added 2 commits that reference this issue on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:mediumscope:cliscope:core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions