Repository navigation
feat(release): cut v0.2.11 release with DevSecOps hardening and GitHub management - #38
Conversation
…33) * refactor(exceptions): define domain exception classes and canonical error codes * test(invariants): author architectural and stylistic invariant test specifications * fix(exceptions): replace bare generic exceptions with strongly typed domain exceptions * refactor(complexity): flatten excessive nesting and reduce cyclomatic complexity across modules * fix(test-hygiene): eliminate pytest collection warning and unawaited coroutines * docs(standards): update architectural guidelines, task tracking, and roadmap * docs(agent): update task tracking to monitor PR 32 CI * fix(review): address copilot feedback on vector validation, invariant checks, and error codes * test(mcp): author contract and integration test specifications for expanded tools, prompts, and resources * feat(mcp): expand FastMCP server to 72 tools, prompt templates, and schema export command * docs(mcp): update MCP_TOOLS, README, ROADMAP, and task tracking for phase 37 * fix(mcp): resolve schema union type parsing and update roadmap resource URIs
…iation (#32) * refactor(exceptions): define domain exception classes and canonical error codes * test(invariants): author architectural and stylistic invariant test specifications * fix(exceptions): replace bare generic exceptions with strongly typed domain exceptions * refactor(complexity): flatten excessive nesting and reduce cyclomatic complexity across modules * fix(test-hygiene): eliminate pytest collection warning and unawaited coroutines * docs(standards): update architectural guidelines, task tracking, and roadmap * docs(agent): update task tracking to monitor PR 32 CI * fix(review): address copilot feedback on vector validation, invariant checks, and error codes * fix(agents): prevent ThreadPoolExecutor blocking on tool timeout in runner
) * refactor(exceptions): define domain exception classes and canonical error codes * test(invariants): author architectural and stylistic invariant test specifications * fix(exceptions): replace bare generic exceptions with strongly typed domain exceptions * refactor(complexity): flatten excessive nesting and reduce cyclomatic complexity across modules * fix(test-hygiene): eliminate pytest collection warning and unawaited coroutines * docs(standards): update architectural guidelines, task tracking, and roadmap * docs(agent): update task tracking to monitor PR 32 CI * fix(review): address copilot feedback on vector validation, invariant checks, and error codes * test(mcp): author contract and integration test specifications for expanded tools, prompts, and resources * feat(mcp): expand FastMCP server to 72 tools, prompt templates, and schema export command * docs(mcp): update MCP_TOOLS, README, ROADMAP, and task tracking for phase 37 * fix(mcp): resolve schema union type parsing and update roadmap resource URIs * feat(kb): add Valkey IT domain knowledge base reference guide and dynamic index counters * docs(roadmap): expand roadmap and pending features for milestone v0.2.12 Valkey integration * fix(agents): prevent ThreadPoolExecutor blocking on tool timeout in runner
…for v0.2.13 (#35) * refactor(exceptions): define domain exception classes and canonical error codes * test(invariants): author architectural and stylistic invariant test specifications * fix(exceptions): replace bare generic exceptions with strongly typed domain exceptions * refactor(complexity): flatten excessive nesting and reduce cyclomatic complexity across modules * fix(test-hygiene): eliminate pytest collection warning and unawaited coroutines * docs(standards): update architectural guidelines, task tracking, and roadmap * docs(agent): update task tracking to monitor PR 32 CI * fix(review): address copilot feedback on vector validation, invariant checks, and error codes * test(mcp): author contract and integration test specifications for expanded tools, prompts, and resources * feat(mcp): expand FastMCP server to 72 tools, prompt templates, and schema export command * docs(mcp): update MCP_TOOLS, README, ROADMAP, and task tracking for phase 37 * fix(mcp): resolve schema union type parsing and update roadmap resource URIs * feat(kb): add Valkey IT domain knowledge base reference guide and dynamic index counters * docs(roadmap): expand roadmap and pending features for milestone v0.2.12 Valkey integration * docs(roadmap): expand roadmap and pending features for milestone v0.2.13 library ingestion engine * fix(mcp): validate integer argument bounds and ensure consistent export-schemas instructions output * docs(agent): update task tracking for phase 39 completion and pr 35 review resolution * fix(agents): prevent ThreadPoolExecutor blocking on tool timeout in runner
…itHub automation roadmap (#36) * feat(governance): establish enterprise SDLC repository templates and community health policies * docs(sdlc): author enterprise software development life cycle architecture manual * docs(roadmap): expand roadmap with v0.2.14 enterprise GitHub repository automation * docs(agent): track phase 40 completion and PR 36 submission * fix(review): address copilot feedback on private key exclusion, PR template, and task status
…nd findings remediation (#37) * fix(security): remediate review findings for traversal, protocols, and tool validation * feat(review): harden self-improvement feedback loop and add report executive summary * docs(review): synchronize review task manual, SDLC, and working log * docs(agent): mark phase 41 complete and record PR 37 status * fix(review): address copilot feedback on secret masking, AST symbol fallback, error message, and dynamic patterns * docs(agent): note PR 36 merged into release branch
…and FastMCP tools
…rs, and table builder
…l-closed SSRF, sandbox isolation, and K8s perimeter
There was a problem hiding this comment.
🟡 Changes recommended
Confirmed functional issues in Checkov JSON parsing on non-zero exit codes, GitHub milestone due_on being silently ignored, and gitleaks ignore_tests path parsing that should be corrected before cutting the release.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR cuts the v0.2.11 release of devops-cli, bundling broad DevSecOps hardening (SSRF fail-closed, secret sanitization, sandbox tightening, K8s PSA + NetworkPolicy), a new devops gh governance subsystem, and several consolidation utilities (dry-run decorator, subprocess JSON parsing, path containment, table builder, AST cache), along with corresponding test and documentation updates.
Changes:
- Bump version to
0.2.11and update changelog/docs to reflect the release. - Add/expand security controls (SSRF resolution fail-closed, sandbox defaults, gitleaks ignore-tests, secret masking expansion, K8s PSA + NetworkPolicy, EKS public endpoint disabled).
- Introduce GitHub governance automation (
devops gh) and shared core utilities (scanner base/registry, serialization helpers, binaries helpers, table builder, AST cache).
File summaries
| File | Description |
|---|---|
| uv.lock | Version bump to 0.2.11 (lock metadata). |
| pyproject.toml | Version bump to 0.2.11. |
| src/devops_cli/init.py | Version bump to 0.2.11. |
| CHANGELOG.md | Add 0.2.11 release notes. |
| README.md | Document devops mcp export-schemas and devops gh group. |
| tf/aws/main.tf | Disable public EKS endpoint. |
| k8s/README.md | Update stack description (Valkey). |
| k8s/namespaces.yaml | Add PSA labels to namespaces. |
| k8s/llm/namespace.yaml | Add PSA labels for llm namespace. |
| k8s/llm/networkpolicy.yaml | New default-deny/egress-blocking policy for llm. |
| k8s/llm/kustomization.yaml | Include new NetworkPolicy manifest. |
| k8s/llm/values-qdrant.yaml | Harden pod/container security contexts. |
| k8s/llm/values-open-webui.yaml | Configure Valkey via Redis protocol URL. |
| k8s/argocd/values.yaml | Switch ArgoCD redis image to Valkey. |
| k8s/argocd/apps/root-app.yaml | Switch repoURL to HTTPS. |
| k8s/argocd/apps/llm-apps.yaml | Switch repoURL to HTTPS. |
| k8s/argocd/apps/infra-apps.yaml | Switch repoURL(s) to HTTPS. |
| docs/DEVCONTAINER_USAGE.md | Replace redis-tools with valkey-tools. |
| .devcontainer/Dockerfile | Pin uv image to 0.12.3. |
| .pre-commit-config.yaml | Add extra hooks (private-key detection, toml/json checks, etc.). |
| .github/pull_request_template.md | Add PR template with quality gates checklist. |
| .github/ISSUE_TEMPLATE/config.yml | Add issue template config and links. |
| .github/ISSUE_TEMPLATE/bug_report.yml | Add bug report issue form. |
| .github/ISSUE_TEMPLATE/feature_request.yml | Add feature proposal issue form. |
| .github/dependabot.yml | Add dependabot config targeting release branch. |
| .github/CODEOWNERS | Add code ownership rules. |
| docs/commands/mcp.md | Document new export-schemas command. |
| docs/KNOWLEDGE_BASE.md | Update KB catalog counts + Valkey entry + GitHub PM task. |
| src/devops_cli/lang/en/help.py | Add GH help catalog + MCP export schemas help text. |
| src/devops_cli/main.py | Register new gh CLI group. |
| tests/test_otel_command_coverage.py | Include gh command in coverage checks. |
| src/devops_cli/commands/mcp.py | Add export-schemas subcommand implementation. |
| src/devops_cli/docs/generator.py | Improve MCP schema param type extraction; KB stats text fix. |
| tests/test_docs.py | Add tests for anyOf-array MCP schema parsing + Valkey docs. |
| src/devops_cli/security/tflint.py | Parse JSON via shared extract_json_block. |
| src/devops_cli/security/kubeconform.py | Use shared subprocess runner. |
| src/devops_cli/security/dive.py | Use shared JSON subprocess runner. |
| src/devops_cli/security/checkov.py | Use shared JSON subprocess runner (behavioral change). |
| src/devops_cli/security/gitleaks.py | Add ignore_tests filtering + helper _is_test_file. |
| tests/test_security_gitleaks.py | Add tests for ignore_tests behavior. |
| src/devops_cli/security/base.py | New BaseSecurityScanner abstraction. |
| src/devops_cli/security/registry.py | New scanner registry + global instance. |
| src/devops_cli/security/init.py | Re-export scanner base/registry + sanitizer APIs. |
| tests/test_consolidation_security_scanner_base.py | Tests for scanner base + registry behavior. |
| src/devops_cli/security/complexity.py | Refactor finding generation into helper. |
| src/devops_cli/security/aibom.py | Refactor model config parsing helpers. |
| src/devops_cli/security/sanitizer.py | (Covered via tests) Centralized secret masking patterns. |
| tests/test_consolidation_security_sanitizer.py | New tests for expanded secret masking. |
| src/devops_cli/core/serialization.py | New JSON/markdown JSON extraction utility. |
| tests/test_consolidation_serialization.py | Tests for JSON block extraction behavior. |
| src/devops_cli/core/process.py | Add run_json_subprocess helper with structured errors. |
| tests/test_consolidation_process_json.py | Tests for run_json_subprocess. |
| src/devops_cli/core/paths.py | New secure subpath containment helper. |
| tests/test_consolidation_core_paths.py | Tests for safe_resolve_subpath. |
| src/devops_cli/core/binaries.py | New check_binary / require_binary helpers. |
| tests/test_consolidation_binaries.py | Tests for binary helpers. |
| src/devops_cli/core/repo.py | Tighten repo file listing containment checks. |
| src/devops_cli/core/validation.py | Fail-closed SSRF DNS resolution + “no resolved IPs” handling. |
| tests/test_validation.py | Add SSRF fail-closed test coverage. |
| tests/test_http.py | Patch DNS resolution in URL validation tests for determinism. |
| src/devops_cli/docker/sandbox.py | Harden docker sandbox defaults + validation + runtime flags + timeouts. |
| tests/test_workload_sandbox.py | Update/add tests for new sandbox hardening defaults/flags. |
| src/devops_cli/ai/review/sanitization.py | Swap inline secret regexes for centralized sanitizer. |
| src/devops_cli/ai/review/stages/static_scan.py | Run gitleaks with ignore_tests=True. |
| src/devops_cli/ai/review/pipeline.py | Run gitleaks with ignore_tests=True; add executive summary synthesis hook. |
| src/devops_cli/ai/review/exporter.py | Restrict export directory roots for safety. |
| src/devops_cli/ai/review/verification.py | Use safe_resolve_subpath; improve path resolution and invalidation text. |
| src/devops_cli/ai/review/common_hallucinations.py | Improve hallucination verification for missing symbols + placeholder cases. |
| src/devops_cli/ai/review/common_hallucinations.json | Update hallucination entries/signatures. |
| src/devops_cli/ai/review_schema.py | Delegate JSON extraction to core serialization util. |
| src/devops_cli/ai/response_repair.py | Refactor tool-call extraction parsing into helpers. |
| src/devops_cli/ai/tasks/guardrails_isolation.md | Tighten and simplify guardrails text. |
| src/devops_cli/ai/tasks/review_output_instruction.md | Clarify sanitizer placeholder protections. |
| src/devops_cli/ai/personas/devsecops/prompt.md | Streamline persona prompt content. |
| src/devops_cli/ai/ast_cache.py | New thread-safe AST cache implementation. |
| tests/test_consolidation_ast_cache.py | Tests for AST cache behavior. |
| src/devops_cli/ai/analyze/scanner.py | Refactor dependency extraction into smaller helpers. |
| src/devops_cli/ai/benchmark/embedding_tasks.py | Refactor markdown parsing into helper. |
| src/devops_cli/ai/agents/tools.py | Simplify tool arg filtering logic. |
| src/devops_cli/ai/agents/testing.py | Add __test__ = False for pytest hygiene. |
| src/devops_cli/ai/agents/agent.py | Refactor toolset instructions + tools block formatting helpers. |
| src/devops_cli/ai/model_bundler.py | Replace bare ValueError with ModelBundleError. |
| src/devops_cli/ai/providers/base.py | Add optional api_key to provider base. |
| src/devops_cli/ai/providers/openai.py | Inject Authorization header with env/keyring fallback. |
| src/devops_cli/ai/providers/anthropic.py | Inject x-api-key header with env/keyring fallback. |
| src/devops_cli/ai/providers/init.py | Replace provider if/elif ladder with mapping. |
| tests/test_openai_auth.py | New tests for provider auth header injection. |
| tests/test_rag_embeddings.py | Add vector-count mismatch test coverage. |
| src/devops_cli/ai/harness/workflow.py | Replace bare exceptions with HarnessExecution/ValidationError. |
| src/devops_cli/ai/harness/skills.py | Replace bare exceptions with HarnessValidationError. |
| src/devops_cli/ai/harness/shell.py | Replace bare exceptions with HarnessValidationError. |
| src/devops_cli/ai/harness/planning.py | Replace bare exceptions with HarnessValidationError. |
| src/devops_cli/ai/harness/os_access.py | Replace bare exceptions with HarnessExecutionError. |
| src/devops_cli/ai/harness/memory.py | Replace bare exceptions with harness domain errors. |
| src/devops_cli/ai/harness/compaction.py | Replace bare exceptions with HarnessValidationError. |
| src/devops_cli/ai/durable.py | Replace bare exceptions with HarnessValidationError. |
| src/devops_cli/exceptions/ai.py | Add ModelBundle/Harness exception types + constants wiring. |
| src/devops_cli/exceptions/docker.py | Add Docker domain exception types. |
| src/devops_cli/exceptions/k8s.py | Add Kubernetes domain exception types. |
| src/devops_cli/exceptions/vault.py | Add Vault domain exception types. |
| src/devops_cli/exceptions/tools.py | Add DependencyError/SubprocessError types. |
| src/devops_cli/exceptions/git.py | Add GitHubOperationError type. |
| src/devops_cli/exceptions/init.py | Export newly added exception classes. |
| src/devops_cli/k8s/chaos_runner.py | Replace RuntimeError with ChaosExecutionError. |
| src/devops_cli/k8s/credentials.py | Refactor Grafana password search loops into helpers. |
| src/devops_cli/commands/argo.py | Adopt dry-run decorator; add stronger manifest path validation. |
| src/devops_cli/commands/k8s/cluster_context.py | Replace bare ValueError with KubernetesContextError. |
| src/devops_cli/commands/k8s/bootstrap.py | Adopt dry-run decorator; use check_binary for GPU detection. |
| src/devops_cli/dry_run/decorator.py | New declarative dry-run decorator. |
| src/devops_cli/dry_run/init.py | Export dry-run decorator. |
| tests/test_consolidation_dry_run_decorator.py | Tests for dry-run decorator behavior. |
| src/devops_cli/core/init.py | Export new core utilities via lazy loader map. |
| src/devops_cli/config/constants.py | Add new error-code constants. |
| src/devops_cli/commands/vault.py | Harden vault path validation; use VaultConfigurationError. |
| src/devops_cli/commands/tf.py | Use check_binary instead of shutil.which. |
| src/devops_cli/commands/pr.py | Use check_binary instead of shutil.which. |
| src/devops_cli/commands/pipeline.py | Use check_binary for dagger detection. |
| src/devops_cli/commands/config.py | Use check_binary for gh presence checks. |
| src/devops_cli/github/client.py | Add labels + milestones API wrappers (milestone create incomplete). |
| src/devops_cli/github/init.py | Export labels/milestones/projects models and helpers. |
| tests/test_github_labels.py | New tests for declarative labels diff/sync/audit. |
| tests/test_github_milestones.py | New tests for roadmap milestone parsing/diff/sync/progress. |
| tests/test_github_projects.py | New tests for project template parsing and task item mapping. |
| tests/test_gh_cmd.py | New tests for devops gh CLI group behavior. |
| tests/test_pydantic_ai_mcp.py | Update MCP tool/prompt/resource discovery expectations. |
| tests/test_pydantic_ai_format_prompt.py | Update example from redis -> valkey. |
| tests/test_output.py | Update examples from redis -> valkey. |
| tests/test_kb.py | Update KB counts and assert valkey article present. |
| tests/test_subsystem_containment_and_redaction.py | Update module docstring text. |
| tests/test_security_sandbox_and_protection.py | Expand sandbox rejection tests (home, sensitive dirs, docker sock). |
| tests/test_pydantic_ai_exceptions.py | Add tool-timeout non-blocking enforcement test. |
| tests/test_validation.py | Expand SSRF enforcement tests. |
| src/devops_cli/output/table_builder.py | New consolidated Rich/JSON table builder. |
| tests/test_consolidation_table_builder.py | Tests for table builder output. |
| src/devops_cli/output/formatters/scalars.py | Extract symbol formatting helper for repo-map text. |
| src/devops_cli/ai/knowledge_base/README.md | Add GitHub PM task and Valkey tool entry. |
| src/devops_cli/ai/knowledge_base/devops_cli/tasks/ai_code_review.md | Document executive summary generation + placeholder safety. |
| src/devops_cli/ai/knowledge_base/devops_cli/configuration_and_settings.md | Clarify data-dir vs agent subdir. |
| src/devops_cli/ai/knowledge_base/devops_cli/architecture.md | Clarify agent artifacts location under <data_dir>/agent. |
| src/devops_cli/ai/instruction_generator.py | Sync generated instruction wording for agent isolation. |
Review details
- Files reviewed: 177/178 changed files
- Comments generated: 4
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…stone due_on, gitleaks Windows paths, and symlink semantics
…iation in task tracking and log
Summary of Release v0.2.11
Release
v0.2.11delivers comprehensive Principal DevSecOps architectural zero-trust hardening, GitHub Projects v2 and declarative label management subsystem, architectural boilerplate consolidation across CLI subcommands, and AI prompt stack token optimization.🛡️ DevSecOps Architectural Hardening & Zero-Trust Defense-in-Depth
s.*,hvs.*,hvb.*), GitLab Personal Access Tokens (glpat-*), Slack Webhooks, and HuggingFace API tokens (hf_*).Authorization: Bearer <key>intoOpenAIProviderandx-api-keyintoAnthropicProviderwith OS Keyring and environment variable fallbacks._enforce_non_private_ssrfto fail closed upon DNS resolution errors, unresolvable domains, or timeouts whenallow_private=False.read_only=True,cap_drop=["ALL"],security_opt=["no-new-privileges:true"],pids_limit=256, path containment blocking~,.ssh,.aws,.kube,.git, anddocker.sock, and bounded subprocess timeouts.ignore_tests=Trueparameter torun_gitleaks_scanand review stages to eliminate false alerts from mock test credentials.restricted/baseline) labels tok8s/namespaces.yamlandk8s/llm/namespace.yaml. Createdk8s/llm/networkpolicy.yamlwith default-deny perimeter, intra-namespace routing, CoreDNS (port 53), and cloud metadata (169.254.169.254/32) egress blocking. Added restrictedsecurityContextandpodSecurityContexttok8s/llm/values-qdrant.yaml.ghcr.io/astral-sh/uv:0.12.3in.devcontainer/Dockerfile.🐙 GitHub Integration Subsystem (
devops gh).github/labels.ymland CLI subcommandsdevops gh labels syncanddevops gh labels audit.devops gh milestones syncanddevops gh milestones list..github/project-template.json,devops gh project sync,devops gh views list, and 6 registered FastMCP tools.⚡ Architectural & Boilerplate Consolidation
@dry_run_commandand@cli_command_handlerdecorators across CLI command modules.safe_resolve_subpath), subprocess execution (run_json_subprocess), and binary checking (require_binary).BaseSecurityScanner,ScannerRegistry) and unified AST cache (ASTCache).render_table,TableBuilder).📚 Token Efficiency & Documentation Optimization
AGENTS.mdby 36% (10.5KB reduction) to resolve assistant context window truncation.review.md,guardrails_isolation.md, andverify_finding_system.md(34% token reduction per review segment)..data) versus dedicated agent work product tier (.data/agent).Verification & Quality Gates
uv run pre-commit run --all-files).uv run pytest tests/test_architectural_invariants.py, cyclomatic complexityuv run devops ci, 1,898 tests passed,src/).