Skip to content

Add /internal/config-dump endpoint (redacted) for on-call diagnostics #702

Description

@thlpkee20-wq

Description

Return the effective runtime configuration with secret fields redacted using the existing safe_value helper. Bound to loopback or admin-authenticated only.

Requirements and context

  • Must be secure, tested, and documented
  • Should be efficient and easy to review
  • Relevant code: internal/config/config.go, internal/secrets/safe_value.go
  • Redact fields tagged secret:"true"

Suggested execution

  • Fork the repo and create a branch
  • git checkout -b feat/config-dump-redacted
  • Implement changes
    • Add reflection-based dumper
    • Add handler on internal port with RBAC
    • Add integration test asserting no secrets leak
  • Validate security and correctness assumptions

Test and commit

  • Run tests
    • go test ./internal/handlers/... ./internal/config/...
  • Cover edge cases
    • Nested structs redact recursively
  • Include test output and notes

Example commit message

feat: expose redacted config dump for diagnostics

Guidelines

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

Labels

Stellar WaveStellar Wave issue batch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions