Skip to content

Upstream Source

This page is part of Truthound Orchestration 3.x.

Source repository: seadonggyun4/truthound-orchestration Upstream docs path: docs/kestra/namespace-secrets.md Edit upstream page: Edit in orchestration

Kestra Namespaces and Secrets

Kestra namespaces are often the cleanest way to separate environments, teams, or tenants. Truthound's Kestra integration is designed to fit that model: namespace and secret concerns stay Kestra-native while validation behavior stays Truthound-native.

Who This Is For

  • platform engineers structuring Kestra namespaces
  • teams separating dev, staging, and production validation flows
  • operators deciding where secret values should come from

When To Use It

Use this page when:

  • generated flows should land in a specific namespace
  • secrets and environment routing should align with namespace boundaries
  • teams need a policy for multi-environment or multi-tenant deployment

Prerequisites

  • a Kestra namespace strategy
  • access to the secret provider used by the Kestra installation
  • familiarity with FlowConfig(namespace=...)

Minimal Quickstart

Generate a flow into the intended namespace:

from truthound_kestra import FlowConfig, generate_flow_yaml

config = FlowConfig(
    id="users_quality",
    namespace="production",
)
yaml_content = generate_flow_yaml(config)

Use Kestra variable accessors when runtime values need to be read safely:

from truthound_kestra import get_kestra_variable

threshold = get_kestra_variable("MAX_FAILURES", 10)

Production Pattern

Use this split of responsibility:

Concern Recommended Kestra Boundary
environment and ownership routing namespace
secret values Kestra secret or variable management
validation rules versioned flow or script configuration
output contract Truthound output helpers

Failure Modes and Troubleshooting

Symptom Likely Cause What To Do
production flow reads staging values namespace or variable scoping is inconsistent align namespace strategy and secret lookup policy
generated flows are hard to audit namespace is implicit or defaulted too often set it explicitly in FlowConfig
rules drift between teams namespace-specific secrets also carry rule logic keep rules in versioned configuration, not secret stores