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
Description
Return the effective runtime configuration with secret fields redacted using the existing
safe_valuehelper. Bound to loopback or admin-authenticated only.Requirements and context
internal/config/config.go,internal/secrets/safe_value.gosecret:"true"Suggested execution
git checkout -b feat/config-dump-redactedTest and commit
go test ./internal/handlers/... ./internal/config/...Example commit message
feat: expose redacted config dump for diagnosticsGuidelines