Repository navigation
Description
Update 2026-11-26 (infra move): the store side is in dan-petty/homelab.
- Namespace
devopsalready hasbackup-client: "true", and bucketargo-artifactsand its lifecycle exist there. - The
argokey reaches namespaceargo-workflowsonly. A copy intodevopsis the follow-up issue. - This issue keeps the
k8s/devops/ConfigMap, test template and egress rule.k8s/argo/does not exist.
Follow-up: dan-petty/homelab#281.
Problem or Motivation
Argo Workflows has no artifact repository: the controller ConfigMap has no artifactRepository. The ArtifactRepository type of Argo Workflows v4.1.5 has no HTTP field, so a step that passes an output to the next step needs S3. No WorkflowTemplate declares an output today, so this item starts when the first one does.
Proposed Solution & Architectural Design
- ConfigMap
artifact-repositorieswith the default annotation in namespacedevops(after feat(k8s): let Argo Workflows run roadmap pods in devops #4566), and the Secret of theargokey from a ClusterSecret row (keyring). - Target: bucket
argo-artifactson the S3 gateway Service, port 8333, path style, the region set explicitly. AkeyFormatandarchiveLogs: false(Loki keeps the logs). - An egress rule from the workflow pods to
object-storeon 8333. - No
artifactGC:argoproj/argo-workflows#15765reports a GC loop on SeaweedFS for directory artifacts (archive: none). The 7-day lifecycle rule ofargo-artifacts(feat(k8s): apply store buckets, keys and rules from git #4756) removes old objects.
Target Subsystem
Kubernetes & Minikube Automation (k8s/devops/, the devops namespace).
Existing Tool Considered
The S3 artifact repository of Argo Workflows (Apache-2.0) on the store of #4742. No custom code. Rejected: an OCI or HTTP artifact repository (the ArtifactRepository type has no HTTP field, and Argo has no OCI artifact type).
Acceptance Criteria
- A test Workflow passes a file output artifact and a directory output artifact (
archive: none) from one step to the next. - An invariant test shows that no Workflow or WorkflowTemplate sets
artifactGC. - The BucketLifecyclePolicy of
argo-artifactshas a 7-day Expiration, and the lifecycle expiry check of the store passes. kubectl get cm -n devops artifact-repositoriesshows the ConfigMap with the default annotation.
Dependencies
- feat(k8s): let Argo Workflows run roadmap pods in devops #4566 (let Argo Workflows run roadmap pods in
devops). - dan-petty/homelab#98 (the key
argo; feat(k8s): apply store buckets, keys and rules from git #4756 made the bucketargo-artifactsand its lifecycle rules, with no key). - The first WorkflowTemplate that declares an output.
- Tracker: feat(k8s): track the cluster content store #4742 (child 11).
Source: #4742
Alternatives check of 2026-11-26: in-use.
The repository already uses this tool.
Tool: argoproj/argo-workflows (https://github.com/argoproj/argo-workflows), Apache-2.0, last activity 2026-11-26, maintained.
Reason: Searches returned only unrelated pages, but the repository facts and README show Argo Workflows ships S3 artifact support and step-level output artifacts; the item only configures that built-in repository, adding no code.
Covers:
- S3 artifact repository set in ConfigMap artifact-repositories
- File and directory outputs passed between steps
- secretKeyRef credentials, path style, insecure endpoint, keyFormat
Lacks:
- No artifactGC; expiry relies on the bucket lifecycle rule
- No HTTP or OCI artifact repository type in v4.1.5
- Needs the argo key Secret from
dan-petty/homelab#98before the live pass
Proposed design
Problem statement
Argo Workflows in namespace devops has no artifact repository. One step cannot pass an output artifact to the next. The ArtifactRepository type of Argo Workflows v4.1.5 has no HTTP field, so the S3 gateway of the SeaweedFS store is the target. This repository adds ConfigMap artifact-repositories and WorkflowTemplate argo-artifacts-test under k8s/devops/. It adds the egress rule to the store on port 8333 and the offline k8s gate checks. The store side, the backup-client label and the 7-day lifecycle of bucket argo-artifacts live in dan-petty/homelab.
Acceptance criteria
Requirement: Artifact repository files are in the kustomization
The k8s/devops/kustomization.yaml SHALL list artifact-repositories.yaml and workflowtemplate-argo-artifacts-test.yaml in its resources.
Scenario: The k8s row asserts both file names
- WHEN The validator command
uv run devops ci --check --only k8sruns on the change. - THEN The
k8srow passes and prints0 failed, because theargo_artifactscheck finds both file names in the resources ofk8s/devops/kustomization.yaml.
Requirement: Artifact repository ConfigMap and default annotation
ConfigMap artifact-repositories in namespace devops SHALL hold one repository entry under data key default and the annotation workflows.argoproj.io/default-artifact-repository: default.
Scenario: The k8s row asserts the ConfigMap and its default annotation
- WHEN The validator command
uv run devops ci --check --only k8sruns on the change. - THEN The
k8srow passes and prints0 failed, because theargo_artifactscheck finds the ConfigMap, its data keydefaultand its default annotation.
Requirement: S3 endpoint and object settings
The default entry MUST name bucket argo-artifacts at seaweedfs-s3.object-store.svc.cluster.local on port 8333, with s3ForcePathStyle: true, insecure: true, a non-empty region, a keyFormat and archiveLogs: false.
Scenario: The k8s row asserts the endpoint and object settings
- WHEN The validator command
uv run devops ci --check --only k8sruns on the change. - THEN The
k8srow passes and prints0 failed. Theargo_artifactschecks report no problem on the bucket, the endpoint, the port, the path style, the region, thekeyFormatandarchiveLogs: false.
Requirement: Credentials from a Secret
The default entry MUST read both S3 keys from a Secret of namespace devops through accessKeySecret and secretKeySecret, with no literal key value.
Scenario: The k8s row asserts the secret key selectors
- WHEN The validator command
uv run devops ci --check --only k8sruns on the change. - THEN The
k8srow passes and prints0 failed. Theargo_artifactschecks findaccessKeySecretandsecretKeySecretwith anameand akey, and no literalaccessKeyorsecretKeyvalue.
Requirement: Test WorkflowTemplate declares both artifact types
WorkflowTemplate argo-artifacts-test in k8s/devops/ SHALL declare a file output, a directory output with archive: none, and both as inputs in a second step.
Scenario: The k8s row asserts both artifacts in both steps
- WHEN The validator command
uv run devops ci --check --only k8sruns on the change. - THEN The
k8srow passes and prints0 failed.argo lint --offlineaccepts the template. Theargo_artifactschecks find the file output, the directory output witharchive: noneand both inputs in the second step.
Requirement: No artifact garbage collection
Every Workflow and WorkflowTemplate under k8s/ MUST leave artifactGC unset.
Scenario: The k8s row finds no artifactGC
- WHEN The validator command
uv run devops ci --check --only k8sruns on the change. - THEN The
k8srow passes and prints0 failed. Theargo_artifactscheck reports noartifactGCin a rendered Workflow or WorkflowTemplate.
Requirement: Egress to the object store
NetworkPolicy devops-default-perimeter-egress in k8s/devops/networkpolicy.yaml SHALL allow egress to namespace object-store on TCP port 8333.
Scenario: The k8s row asserts the egress rule
- WHEN The validator command
uv run devops ci --check --only k8sruns on the change. - THEN The
k8srow passes and prints0 failed. Theargo_artifactscheck finds the rule to theobject-storenamespace selector on TCP 8333, and the other rules are unchanged.
Requirement: Deploy stack names the new files
The devops entry of PRODUCT_POST_HELM_BY_STACK SHALL name artifact-repositories.yaml and workflowtemplate-argo-artifacts-test.yaml.
Scenario: The k8s row asserts the deploy-stack table
- WHEN The validator command
uv run devops ci --check --only k8sruns on the change. - THEN The
k8srow passes and prints0 failed. Theargo_artifactscheck finds both paths in thedevopsentry ofPRODUCT_POST_HELM_BY_STACK.
Requirement: Pending a person after the merge
The cluster SHALL show ConfigMap artifact-repositories with the default annotation, and the test WorkflowTemplate SHALL pass both outputs to the second step.
Scenario: The live ConfigMap and Workflow checks pass
- WHEN A person runs
kubectl get cm -n devops artifact-repositories -o yaml. The person runs the live checkargo submit -n devops --from workflowtemplate/argo-artifacts-test --wait. Both run after feat(k8s): let Argo Workflows run roadmap pods in devops #4566 anddan-petty/homelab#281. - THEN The ConfigMap shows data key
defaultand the default annotation. The Workflow succeeds, and the second step reads the file output and the directory output.
Existing Tool Considered
argoproj/argo-workflows is Apache-2.0 and maintained. The verdict is in-use. The alternatives check of 2026-11-26 in the issue body names the tool and lists what it covers and lacks. The proposal adds no artifact-repository code. It configures the built-in S3 repository, adds WorkflowTemplate argo-artifacts-test to prove it, and adds one gate-check module for the offline proof. For the missing artifactGC, expiry comes from the 7-day lifecycle rule of bucket argo-artifacts in dan-petty/homelab. The live pass waits for the Secret that dan-petty/homelab#281 copies into devops.
Key questions
- Does the store side of the item still need work in this repository?: No. The store manifests, their
k8srow checks and the build test moved todan-petty/homelab(refactor(k8s): delete the environment files from devops-cli #7290), and ADR 0034 records that move. A tracked file underk8s/must be ink8s/devopsor be Markdown. A namespace label or a bucket lifecycle rule cannot live here. The body update of 2026-11-26 records that the labelbackup-client: "true"and the 7-day lifecycle ofargo-artifactsalready exist there. This repository adds the ConfigMap, the test WorkflowTemplate, the egress rule and the gate checks only. [sources: docs/adr/0034-the-object-store-is-seaweedfs-with-its-operator.md, tests/gate/k8s_checks/product_tree.py, k8s/README.md] - Which artifact repository serves the Argo workflows?: The S3 artifact repository built into Argo Workflows serves the workflows. A Workflow selects it through ConfigMap
artifact-repositories. ADR 0034 records the SeaweedFS store as the object store. The alternatives check of 2026-11-26 gives the verdictin-usefor argoproj/argo-workflows. The item adds no artifact-repository code. (best practice) [sources: docs/adr/0034-the-object-store-is-seaweedfs-with-its-operator.md]- Chosen: S3 artifact repository of Argo Workflows. The installed controller ships it, and ADR 0034 makes the store the object store.
- Rejected: OCI artifact repository. The ArtifactRepository type of v4.1.5 has no OCI artifact type, as the alternatives block records.
- Rejected: HTTP artifact repository. The ArtifactRepository type of v4.1.5 has no HTTP field, as the issue body states.
- Rejected: Custom artifact repository sidecar. It builds code that the installed tool already ships.
- Where does the ConfigMap live, and how do the workflows select it?: The ConfigMap lives in
k8s/devops/artifact-repositories.yaml, in namespacedevops. It holds one entry under data keydefaultand the annotationworkflows.argoproj.io/default-artifact-repository: default. A Workflow of namespacedevopsreads that default repository without its own reference. (best practice) [sources: k8s/devops/kustomization.yaml, k8s/README.md]- Chosen: Per-namespace ConfigMap in
devopswith the default annotation. Every Workflow ofdevopsreads it, and no Workflow names the repository. - Rejected: The
artifactRepositorykey of the controller ConfigMap. It gives one repository to all namespaces, and the workflows run indevops. - Rejected: An
artifactRepositoryRefin each Workflow. Every Workflow must name the repository, which the default annotation avoids.
- Chosen: Per-namespace ConfigMap in
- How do the S3 credentials reach the artifact repository?: The entry uses
accessKeySecretandsecretKeySecretto the Secret thatdan-petty/homelab#281copies into namespacedevops. The entry holds no literal key value.CLUSTER_SECRETSholds no row for a store key, because the cluster-secrets-loader spec forbids a row whose name starts withobject-store-. The implementer reads the Secret name and the two key names from that issue. (best practice) [sources: openspec/specs/cluster-secrets-loader/spec.md, src/devops_cli/k8s/cluster_secrets.py]- Chosen: Secret selector to the Secret that homelab copies into
devops. The store keys stay out of the keyring, and the ConfigMap stays readable. - Rejected: A
CLUSTER_SECRETSrow in the keyring. The cluster-secrets-loader spec forbids a row whose name starts withobject-store-. - Rejected: Literal keys in the ConfigMap. It puts a credential in a ConfigMap that many persons read.
- Chosen: Secret selector to the Secret that homelab copies into
- Which bucket and endpoint settings does the entry use?: The entry uses bucket
argo-artifactsat Serviceseaweedfs-s3in namespaceobject-store, port 8333, over HTTP. It setss3ForcePathStyle: true,insecure: true, a non-emptyregion, akeyFormatandarchiveLogs: false. The issue body sets port 8333 and path style, and ADR 0034 records the SeaweedFS store. Loki keeps the logs, so the entry setsarchiveLogs: false. (best practice) [sources: docs/adr/0034-the-object-store-is-seaweedfs-with-its-operator.md, openspec/changes/archive/2026-11-22-4756-store-buckets-from-git/specs/object-store/spec.md]- Chosen: Path style on the
seaweedfs-s3Service over HTTP. The store serves S3 on that Service and port, so the entry setsinsecure: true. - Rejected: A virtual-host address of the bucket. The gateway has no DNS name for each bucket.
- Rejected:
archiveLogs: true. Loki keeps the logs, so the bucket would hold a second copy.
- Chosen: Path style on the
- Does the item set
artifactGC?: No. Bucketargo-artifactshas a lifecycle rule that expires each object after 7 days, so the repository leavesartifactGCunset. The alternatives check of 2026-11-26 records that the tool lacksartifactGC. The cause is a GC loop on SeaweedFS for directory artifacts (argoproj/argo-workflows#15765). (best practice) [sources: openspec/changes/archive/2026-11-22-4756-store-buckets-from-git/specs/object-store/spec.md]- Chosen: No
artifactGC, with the 7-day bucket lifecycle. The lifecycle expires each object, and the executor Role stays narrow. - Rejected:
artifactGCon completion. It enters the GC loop that the alternatives block records for directory artifacts on SeaweedFS.
- Chosen: No
- Does the item wait for the first WorkflowTemplate that declares an output?: No. The item ships WorkflowTemplate
argo-artifacts-testink8s/devops/with a file output and a directory output witharchive: none. The template proves the repository itself. A WorkflowTemplate runs only when a person submits it, and a committed Workflow would run on each sync. (best practice) [sources: k8s/devops/kustomization.yaml, k8s/README.md]- Chosen: Ship a test WorkflowTemplate with both artifact types. The repository is tested now, and a template runs only when a person submits it.
- Rejected: Wait for a production WorkflowTemplate with an output. The item then stalls, and the repository stays untested.
- Rejected: Ship a committed Workflow. Argo CD applies it, so it runs on every sync.
- Where does the egress rule to the store go?: The rule goes into NetworkPolicy
devops-default-perimeter-egressink8s/devops/networkpolicy.yaml. It is a rule to theobject-storenamespace selector on TCP port 8333, in the shape of its existing namespace-selector rules. Namespacedevopsalready carriesbackup-client: "true"indan-petty/homelab, so the store admits it. No label change is needed here. (best practice) [sources: k8s/devops/networkpolicy.yaml, docs/adr/0034-the-object-store-is-seaweedfs-with-its-operator.md]- Chosen: Add the rule to
devops-default-perimeter-egress. The policy selects the workflow pods, and it already carries the namespace-selector rules. - Rejected: A second NetworkPolicy for the same pods. Two policies that select the same pods are harder to read.
- Rejected: Name namespace
devopsin the store's ingress policy. That file is an environment file ofdan-petty/homelab, not of this repository.
- Chosen: Add the rule to
- Must
deploy-stackapply the new files on a cluster without Argo CD?: Yes.k8s/README.mdrequires each product manifest inPRODUCT_MANIFESTS_BY_STACKorPRODUCT_POST_HELM_BY_STACK. The WorkflowTemplate needs the CRD that the chart installs. So both files go in thedevopsentry ofPRODUCT_POST_HELM_BY_STACK, after the charts. (best practice) [sources: k8s/README.md, src/devops_cli/commands/k8s/stack_lifecycle.py:387, tests/gate/k8s_checks/deploy_stack.py]- Chosen: Add both files to the
devopsentry ofPRODUCT_POST_HELM_BY_STACK. The WorkflowTemplate needs the chart CRD, and that entry already holds the WorkflowTemplates of the base. - Rejected: Add them to
PRODUCT_MANIFESTS_BY_STACK. That table runs before the charts, so the WorkflowTemplate CRD does not exist yet. - Rejected: Register them nowhere. A cluster without Argo CD then gets neither object, which
k8s/README.mdforbids.
- Chosen: Add both files to the
- How do the offline checks run?: A new module
tests/gate/k8s_checks/argo_artifacts.pyruns in thek8srow ofuv run devops ci. It rendersk8s/devops/and asserts the ConfigMap, the test WorkflowTemplate, the egress rule, the absence ofartifactGCand the apply paths. The row prints only the failures and ak8s: <n> cases, <m> failedline, so the proof is0 failed. The artifact pass is the liveargo submitof the template. (best practice) [sources: tests/gate/k8s_checks/network_policies.py, tests/gate/k8s_checks/deploy_stack.py, tests/gate/k8s_checks/product_tree.py]- Chosen: A new gate-check module beside the other
k8s_checksmodules, plus the live check. Thek8srow renders the kustomizations, and the cluster result needs a live check. - Rejected: Pytest tests that read the manifests. The proof of a manifest is a validator command, not a test that reads the file.
- Rejected: Extend
tests/gate/k8s_checks/network_policies.py. That module asserts other NetworkPolicy facts, not a ConfigMap or a WorkflowTemplate.
- Chosen: A new gate-check module beside the other
Fit
Fits in one pull request.
Suspected block
dan-petty/homelab#281 must copy the Secret of the argo key into namespace devops. The entry reads that Secret name, and the live artifact pass needs it.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(argo)scope of the title gives the scope.It enables artifact passing but only becomes active when the first WorkflowTemplate declares an output.It unblocks workflows that need to pass file or directory outputs between steps.It requires a ConfigMap, Secret, egress rule, lifecycle policy, and acceptance tests.Both items configure Argo Workflows in the devops namespace; #4566 lets pods run there, while this item adds the artifact repository for step-to-step file passing.devops-cli-service commentedon Nov 14, 2026
Alternatives check: in-use
Reason: The issue needs an artifact repository so a step can pass file and directory outputs to the next, and it already names the S3 artifact repository of Argo Workflows (Apache-2.0) as the tool considered. Argo Workflows itself ships that repository (the
artifact-repositoriesConfigMap / controllerartifactRepositorywith an S3 backend, keyFormat, archiveLogs and archive modes), so one tool covers the whole need; the searches returned no better alternative.The repository already uses this tool.
Tool: argoproj/argo-workflows (https://github.com/argoproj/argo-workflows)
Covers:
artifact-repositoriesConfigMap with a default annotation in the target namespacekeyFormat,archiveLogs: falseandarchive: nonesettings the item asks for, with no custom codeLacks:
argoproj/argo-workflows#15765), which is why the item dropsartifactGCTools considered:
Searches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 15, 2026
Refine cannot set this item to Ready at e5dfddb while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.
The next refine round also looks at the item again when a commit on the default branch changes one of these files:
k8s/argo-workflows/values.yaml.devops-cli-service commentedon Nov 21, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
dan-petty commentedon Nov 22, 2026
Dependency correction (2026-11-22): #4756 closed with PR #6724, which made only the buckets
reports,reports-private,cacheandargo-artifacts, with no S3Identity and no key. Its operator watches onlyobject-storeand cannot write a key Secret into another namespace. The tenant chart of dan-petty/infra#14 renders only for a services entry, not for a platform namespace. Live: 0 S3Identity and 0 S3Credentials objects, and no store key Secret ingitea. The backup buckets and writer keys of the platform namespaces now come with dan-petty/homelab#98 (External Secrets Operator copies each key fromobject-store). I changed the Dependencies section of this item to name it.devops-cli-service commentedon Nov 22, 2026
Owner question: See the first point of Open questions and Watched files in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 26, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.
devops-cli-service commentedon Nov 27, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Dec 1, 2026
Owner question: See Suspected block in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence