Skip to content

Kubernetes/Velero audit provider and checks (0.1.16) #14

Description

@Trifunovich

Implement the next RestoreGuard core release: optional Kubernetes-cluster audit through SSH plus a configurable kubectl command prefix. It must assess Velero backup health and enabled cluster workload posture without any writes to audited systems.

The feature is config-file-only in v1. Its public behavior must be explicit: an omitted Velero namespace defaults to velero; an explicit null namespace disables Velero rules; checkWorkloads: false issues neither workload commands nor workload RBAC probes.

Acceptance criteria

  • kubernetesClusters is an optional multi-cluster config surface with validated unique names, alias, kubectl prefix, namespace semantics, positive backup age, and backward-compatible defaults.
  • Provider commands are read-only; each enabled surface is tracked in the audit progress ticker. Missing Velero API resources become a visible coverage finding only through a narrow, tested classifier; malformed output, transport, authentication, RBAC, and other failures leave a partial report.
  • The audit produces deterministic Kubernetes service, backup, and provider-state data. It evaluates backup coverage/freshness/failure/schedule, PVC binding and data-protection evidence, deployment availability, and node readiness with stable finding identities that suppress correctly.
  • Backup data protection is not inferred from a Backup CR alone: enabled PVC coverage has evidence from the appropriate Velero volume-backup or CSI-snapshot resource. A real restore of the test PVC is part of live acceptance.
  • Doctor checks the command and permission shape for every enabled query, including a negative can-i response; disabled surfaces are not probed.
  • The complete feature-surface checklist is satisfied: parser/check/config/runner/doctor tests; sanitized fixtures; docs; both identical samples; README; CHANGELOG; no wizard surface in v1 with that n/a decision documented.
  • Live verification captures the no-Velero baseline before installation, then verifies a correctly configured Velero backup and restored token PVC after installation. Publishing remains owner-go only.

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions