Intentional behaviors and review decisions

These decisions were confirmed by the maintainer on 2026-10-16 following the project-wide correctness and security review. The finding numbers below refer to that review. Each listed behavior is intentional, not a bug.

Missing rationale text does not make a decision pending. The maintainer will add explanations for human reviewers later. These decisions apply only to the behaviors described here; unrelated defects remain in scope for review.

Finding 2: Unauthenticated admin API

The admin API intentionally provides its existing read and mutation endpoints without application-level authentication or authorization. Do not report the absence of those checks as a new bug or add them as an unsolicited fix.

Maintainer rationale: TODO

Finding 7: Source OCI TLS verification

Superseded by the maintainer request on 2026-10-26: OCI registry and token requests verify TLS by default, including redirected requests. Exceptions are the enabled built-in registry and exact hostnames explicitly listed in kube-system/orbit-deploy-registries under insecure. proxies in that ConfigMap rewrites image registry/path prefixes before image resolution.

Finding 8: Optional SSH host verification

SSH Git sources intentionally accept the remote host when sshKnownHosts is absent or empty. Do not make that field mandatory or change its default behavior as an unsolicited security fix. Defects in configured verification remain in scope.

Maintainer rationale: TODO

Finding 10: Cleanup attempt is the lifecycle cutoff

Deleted-deployment cleanup is best effort. The cleanup attempt is the cutoff; there is intentionally no durable cleanup retry queue or finalizer ensuring eventual removal. A failed attempt can leave resources behind. Do not report the lack of persistent retries as a new bug or add an indefinite retry scheme.

This does not authorize unsafe deletion: tenant boundaries, current ownership, and no-delete protections still apply. Uncertain scope or annotation reads must not permit a destructive operation.

Maintainer rationale: TODO

Automatic pruning and protection flags

The maintainer confirmed this lifecycle on 2026-11-10:

  • Verify the complete source and compile the desired inventory before applying. Manifest/API syntax and state errors may skip items while other applies continue, as clarified on 2026-11-15 below. Automatic pruning still requires a complete, successful pass. Do not add workload-readiness gates, approval settings or extra prune policies.
  • Ownership is the deployment namespace/name plus priority in the shared write-through ConfigMap. Object UID/resourceVersion are request preconditions, not additional owner identity.
  • No-update/noupdate is read only from the rendered Git manifest, as corrected by the maintainer on 2026-11-12; this supersedes the earlier live-only rule. A truthy Git flag blocks in-place updates even if absent from the live object. Removing or disabling it in Git resumes updates regardless of any live flag. Creation is allowed. Live no-delete/nodelete blocks DELETE, not updates that change or remove that flag when Git no-update is false. Normal removal retains protected objects but releases tracking/ownership; blocked recreation retains its tracking.
  • Recreate-on-change is DELETE then CREATE. Git no-update does not block its DELETE; live no-delete on the old target does. Desired replacement flags do not retroactively protect the old object.
  • Protection is target-only. Namespace/CRD deletion needs no additional opt-in or descendant scan. Kubernetes cascades can remove protected children when their parent is unprotected.

The one-attempt deleted-CR cleanup cutoff remains unchanged.

Source failures and worker retirement

The maintainer confirmed on 2026-11-10:

  • DELETE targets come from OD status tracking, not hypothetical replacements.
  • Directory/metadata access errors and missing Git refs abort the run. Keep retrying missing refs indefinitely; do not infer intentional resource removal.
  • There must never be overlapping workers for the same OD. Stop and join the predecessor before replacement; a stuck native thread requires controller process termination rather than an overlapping replacement thread.
  • The controller Deployment rolls out with Recreate (destroy before create).
  • API-group alias handling is deferred in TODO.md. Further internal-registry work is parked in INTERNAL_REGISTRY_TODO.md because it is disabled everywhere; file-path escape mitigation is the explicit exception requested for this change.

Source and parser follow-up

The maintainer clarified on 2026-11-12:

  • Protected main/lab sources must not prune because clone, fetch, checkout or source access failed. Incomplete source is an error, retried next run. A complete committed removal still prunes automatically.
  • Avoid ambiguous bare hexadecimal branch/tag names; document the restriction rather than implementing a new ref-selection policy in this change.
  • Worker termination is preferred. A strict single-flight interlock is also acceptable: replacement must not overlap a predecessor that later unblocks. The implementation terminates the whole controller for stuck forced retirement or reaper-start failure; it does not inject asynchronous thread exceptions.
  • Source images accept valid tag/digest reference syntax. Human-readable tag provenance remains visible when resolution pins an image to a digest.
  • Offline lint uses the same parsing rules as live reconciliation. Different provided metadata and simulated cluster/registry inputs are expected; implicit working-directory metadata and different YAML parsers are not.

Reconciliation and cleanup review follow-up

The maintainer clarified on 2026-11-12:

  • A recreate-on-change resource may still be processed after another resource's apply fails in the same pass. This is intentional: attempting its configured recreation is more predictable than silently withholding its update. The failed apply still blocks the final automatic pruning pass; current ownership and live no-delete checks still apply to recreation.
  • After an OrbitDeployment is deleted, cleanup remains best effort per target. A failure for one target does not stop attempts for the remaining targets. Uncertain scope, ownership or annotation reads must prevent deletion of the affected target; each subsequent target requires its own successful checks. The one-attempt cutoff and absence of durable cleanup retries are unchanged.
  • Source failures being logged without appearing in deployment error status is understood current behavior. The status visibility follow-up is tracked in TODO.md; no implementation change was requested in this review.

Git-controlled no-update correction

The maintainer explicitly corrected no-update on 2026-11-12 after an existing PVC protected in Git was incorrectly submitted for replacement. The live-only rule was a regression. Only the desired Git manifest controls no-update, so it can be enabled, disabled or removed through Git without manual live edits. The legacy noupdate spelling follows the same rule. No-delete continues to be read from the live DELETE target; creation and recreation semantics are unchanged.

Manifest error isolation correction

The maintainer clarified on 2026-11-15 that Kubernetes manifest syntax/state errors must not abort a whole run. Invalid YAML/resource documents, unavailable resource APIs (including missing CRDs), and individual API rejections are reported with their source/object context while independent valid manifests continue. This supersedes the earlier all-or-nothing validation requirement for those errors only. A YAML stream parse failure leaves its remaining documents unreadable; continue other files without guessing a resynchronization.

Every such error blocks that pass's automatic pruning and retains old tracking. Valid applies may still include configured recreations under the previously accepted rules. Complete source verification remains required before writes: Git/credential/read failures, unresolved substitutions, conditional uncertainty, metadata failures, ambiguous duplicate desired identities, tenant-scope violations, ownership failures and transport/discovery outages are not evidence of a valid source and do not gain permission to proceed from this correction.

Purge preserves ownership

The maintainer clarified on 2026-11-18 that Purge exists to reapply the OD's desired objects. It must never remove ownership records: relinquishing a claim would allow a lower-priority deployment to take over and potentially cause downtime. The earlier ownership release was a bug.

Purge clears managed-object/error tracking and requests reapplication. It does not directly write or delete workloads. Eligible objects must be applied even when their live applied-manifest receipt matches. Existing ownership/priority and protection rules remain in force. Forced reapplication of unchanged content must not trigger recreate-on-change DELETE/CREATE. Normal Git changes and deletion/cleanup continue to follow the existing lifecycle decisions above.

Discovery failures are object errors

The maintainer clarified on 2026-11-18 that, once YAML is being processed, objects must be applied or their errors recorded. Discovery is needed to resolve the REST endpoint and namespace scope; its cache must not gate independent manifests. Discovery timeouts, access errors and client-cache failures are therefore recorded per object, with source context, while other valid manifests continue. This supersedes the 2026-11-15 whole-pass discovery-outage rule. Failures still block automatic pruning and are retried next pass. Ownership, tenant boundaries, protection flags and complete source verification continue to apply. No CRD-schema or workload-readiness admission policy is added.

Ownership concurrency correction

The maintainer requested a fix on 2026-11-19 after staging logs demonstrated controller-wide ownership queueing. Ownership decisions and mutations remain serialized for competing operations on a resource, while unrelated resource API requests must proceed independently. ConfigMap writes still use checked UID/resourceVersion preconditions; conflicts may merge unrelated entries only while the target claim remains unchanged. A changed target or storage identity invalidates the prior decision. Current owner/priority, Purge, protection and pruning rules remain in force. See ownership transactions.