proposal: self-managed AppProject + centralised app version pinning#5
Open
proposal: self-managed AppProject + centralised app version pinning#5
Conversation
…n pinning Bundle three coupled platform improvements as one OpenSpec change for review: 1. Self-managing AppProject via a bootstrap Application in the built-in `default` project — eliminates the manual `kubectl apply` drift that caused the 6 May 2026 fan-out incident (deny window committed in 939db3d sat unapplied for 2 days). 2. Centralised app version pinning using a two-key model: top-level `appVersions.*` in common/env layers as the platform default, and the existing nested `tenant.apps.versions.*` for tenant-level overrides. Asymmetry is intentional and CI-enforced (D9): a tenant file with a top-level `appVersions:` block fails validation. 3. Wave-gated batch rollout: add `nextcloud.platform/wave` label so operators can serialize fleet-wide bumps via `argocd app sync -l nextcloud.platform/wave=N`. Phased promotion protocol (canary → accept → prod-per-wave) documented in `docs/ROLLOUTS.md`, no auto-promotion. Artifacts: - proposal.md (why) - design.md (9 decisions, risks table, 3-commit migration plan, pre-flight rollback drill on canary-accept) - specs/{argo-self-managed-appproject,app-version-pinning, wave-gated-rollout}/spec.md (testable requirements) - tasks.md (implementation checklist) Not implemented yet — proposal is for team review. Implementation runs via /opsx:apply once approved. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OpenSpec proposal bundling three coupled platform improvements. Not implemented yet — this PR is for review of the design and tasks before any code lands.
defaultproject eliminates manualkubectl applydrift (root cause of the 6 May 2026 fan-out incident:nc-*deny window committed in 939db3d, sat unapplied for 2 days).appVersions.*incommon.yaml/env/*.yamlas platform default; existingtenant.apps.versions.*stays as the tenant-level override. Asymmetry intentional and CI-enforced (D9): top-levelappVersions:in a tenant file fails validation.nextcloud.platform/wavelabel on Applications enablesargocd app sync -l nextcloud.platform/wave=Nfor serialized fleet bumps. Phased promotion documented indocs/ROLLOUTS.md. No auto-promotion.Artifacts
All under
openspec/changes/platform-self-managed-and-centralized-versions/:proposal.md— why + capabilities + impactdesign.md— 9 decisions with alternatives, risks table, 3-commit migration plan, pre-flight rollback drill on canary-acceptspecs/argo-self-managed-appproject/spec.mdspecs/app-version-pinning/spec.mdspecs/wave-gated-rollout/spec.mdtasks.md— implementation checklist, 3 commits + final verificationKey decisions worth attention in review
default, notnextcloud-platform.prune: falseandpreserveResourcesOnDeletion: trueto prevent catastrophic AppProject prune.nextcloud-platform.yamlinto AppProject + Namespace as separate single-doc files before introducing the bootstrap.appVersions.*for platform / env,tenant.apps.versions.*for tenant overrides. No deprecation. Helm template uses sprigdigto resolve safely.appVersions:in any tenant file, making the asymmetry a contract, not a convention.Implementation order (when approved)
Three commits, each verifiable independently:
scripts/audit-tenant-pins.sh+ memory updateOut of scope
common.yamlTest plan
nextcloud.platform/wavelabel format and confirm it does not collide with any other toolingdocs/incidents/2026-05-06-common-yaml-fanout.mdis acceptable in scope and sensitivity