Skip to content

self-hosted managed indexer treats env var lookup failure as fatal instead of degrading gracefully #3259

@flowq-C

Description

@flowq-C

Summary

The build-stage indexer aborts the entire deployment if environment variables cannot be fetched. This creates a full deployment outage from a secondary metadata/indexing dependency.

Proven behavior

  • Indexer failure prevents image build completion
  • No fallback path
  • No warning-only mode

Why this matters

  • This turns a metadata/bootstrap problem into a full deployment outage
  • In self-hosted environments this is especially brittle because auth/storage/config drift is more likely than in cloud

Repro

  1. Cause envvar fetch to fail during local build indexing
  2. Run deployment
  3. Observe full build failure

Expected

  • Indexer should continue with:
    • env = {}
  • or mark metadata incomplete but still allow deployment image build

Actual

  • Full Docker build fails
  • Deployment status ends as FAILED

Evidence

  • managed-index-controller throws immediately on failed envvar fetch:
    • throw new Error(\Failed to fetch environment variables: ${$env.error}`)`

Suggested fix

  • Downgrade envvar fetch failure to warning
  • Continue indexing with empty env variables
  • Only fail hard if task graph itself cannot be resolved

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions