go/pkg/devops
Snider c615408700
Centralized Configuration Service Implementation (#319)
* feat: implement centralized configuration service using viper

This commit introduces a centralized configuration service in `pkg/config`
to reduce code duplication and provide a unified way to manage configuration
across the project.

Key changes:
- Refactored `pkg/config` to use `github.com/spf13/viper` as the backend.
- Implemented `core.Config` interface with support for layered resolution
  (defaults, files, environment variables).
- Added `LoadFile` to support merging multiple configuration files, with
  automatic type detection for YAML and .env files.
- Migrated `pkg/agentic`, `pkg/devops`, `pkg/build`, and `pkg/release`
  to use the new centralized service.
- Added `mapstructure` tags to configuration structs to support viper unmarshaling.
- Added comprehensive tests for the new configuration service features.

This addresses the recommendations from the Architecture & Design Pattern Audit.

* feat: implement centralized configuration service and address security alerts

- Introduced centralized configuration service in `pkg/config` using `viper`.
- Migrated major packages (`agentic`, `devops`, `build`, `release`) to the new service.
- Resolved merge conflicts with `dev` branch.
- Addressed CodeQL security alert by making UniFi TLS verification configurable.
- Fixed `go.mod` to ensure it is tidy and consistent with direct dependencies.
- Updated UniFi CLI to support TLS verification configuration.
2026-02-05 10:26:44 +00:00
..
sources Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
claude.go Remove StrictHostKeyChecking=no from SSH commands (#315) 2026-02-05 07:09:34 +00:00
claude_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
config.go Centralized Configuration Service Implementation (#319) 2026-02-05 10:26:44 +00:00
config_test.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
devops.go Remove StrictHostKeyChecking=no from SSH commands (#315) 2026-02-05 07:09:34 +00:00
devops_test.go Remove StrictHostKeyChecking=no from SSH commands (#315) 2026-02-05 07:09:34 +00:00
images.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
images_test.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
serve.go Remove StrictHostKeyChecking=no from SSH commands (#315) 2026-02-05 07:09:34 +00:00
serve_test.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
shell.go Remove StrictHostKeyChecking=no from SSH commands (#315) 2026-02-05 07:09:34 +00:00
shell_test.go test: increase coverage to 63.8% across packages 2026-01-29 14:28:23 +00:00
ssh_utils.go Remove StrictHostKeyChecking=no from SSH commands (#315) 2026-02-05 07:09:34 +00:00
test.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00
test_test.go Migrate pkg/devops to Medium abstraction (#293) 2026-02-04 14:58:03 +00:00