Skip to content

refactor: rename SPIFFE_DEMO env var prefix to DOCSCLAW #93

Closed

Description

@pavelanni

Summary

The Viper env var prefix is still SPIFFE_DEMO from the original
Zero Trust demo. All env-based configuration requires the
SPIFFE_DEMO_ prefix (e.g. SPIFFE_DEMO_OTEL_ENABLED), which
is confusing for DocsClaw users.

Location

internal/config/config.go:88:

v.SetEnvPrefix("SPIFFE_DEMO")

Proposed change

Rename to DOCSCLAW:

v.SetEnvPrefix("DOCSCLAW")

This changes all env var mappings:

  • SPIFFE_DEMO_OTEL_ENABLED → DOCSCLAW_OTEL_ENABLED
  • SPIFFE_DEMO_SERVICE_PORT → DOCSCLAW_SERVICE_PORT
  • etc.

Considerations

  • Check if any deployment manifests, Helm charts, or docs
    reference SPIFFE_DEMO_* env vars and update them
  • Consider accepting both prefixes during a transition period
    (check DOCSCLAW_* first, fall back to SPIFFE_DEMO_*)
  • Also rename the config file paths (/etc/spiffe-demo/) at
    the same time

Activity

  1. pavelanni commented on Jul 1, 2026

    @pavelanni
    CollaboratorAuthor

    Resolved in PR #95 (v0.14.0). Env var prefix renamed from SPIFFE_DEMO to DOCSCLAW.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions