Skip to content

feat(cli): publish and read content-store files #4761

Description

@dan-petty

Problem or Motivation

devops-cli writes reports, sessions and studies only to local files. No command uploads them to the content store with keyring credentials and a local pending queue. No command gives a clear message when the store is down (owner requirement of 2026-11-11: fail gracefully).

Proposed Solution & Architectural Design

  • Commands devops store publish, sync, ls, get, url, presign and doctor, on boto3 1.43.118.
  • One table of content kinds gives the bucket, the prefix, web or private, and immutable or not (for example the project review window, a study and a review session).
  • Path-style SigV4 with the region of store.region (default us-east-1).
  • Multipart parts of 64 MiB. Content-Type from Python mimetypes. A sha256 metadata value on each object.
  • A changed immutable path is refused without --replace.
  • A local pending queue .data/store/pending.jsonl. When the store does not answer, publish keeps the file, writes one queue line and returns status pending. sync uploads the queue later. A repeat upload with the same checksum counts as sent.
  • index.html and index.json at each kind root, written from ListObjectsV2 plus the keys that the command just wrote, because a listing through the other filer can lag a write.
  • --dry-run sends no request.
  • Settings store.s3_endpoint, store.web_base_url and store.region. Keyring keys store.access_key_id and store.secret_access_key. With no endpoint set, the command stops with an error that names the setting. No built-in default host.
  • Error codes, the gauge devops_store_pending_uploads, a devops cleanup rule that keeps pending files, and README rows.

Target Subsystem

Workstation Caching & Valkey (src/devops_cli/store/, a new devops store command group).

Existing Tool Considered

boto3 (Apache-2.0) does the S3 part. No tool joins the keyring, the content kinds, the pending queue, the index pages and clear messages. Cost (estimate): about 400 lines plus tests with moto or the botocore Stubber, about 600k tokens and 5 hours to build, and about 50k tokens a quarter to keep. Rejected: the AWS CLI (no keyring, no queue, no index pages) and rclone (a second binary on each workstation for the same S3 calls).

Acceptance Criteria

  • Against the live store: publish, ls, get, url and presign (at most 7 days) work.
  • doctor puts, lists, gets, presigns and deletes a canary through the cluster endpoint and through s3.<domain>.
  • A 150 MB file uploads through s3.<domain>.
  • The index page shows a new window right after its publish.
  • With store.s3_endpoint unset, the command exits non-zero and names the setting.
  • --dry-run makes 0 network calls (socket guard test).
  • With the endpoint unreachable, publish exits 0 with status pending and writes one queue line. sync then uploads the file and empties the queue. A second sync of the same file makes no upload.
  • devops cleanup keeps a pending file.
  • At the merge, boto3 is pinned at the newest release that fixes the known security and bug issues and that passes the tests. No minimum release age applies.

Dependencies

Source: #4742

Alternatives check of 2026-11-20: in-use.
The repository already uses this tool.
Tool: boto3 (https://pypi.org/project/boto3), Apache-2.0, last activity 2026-11-20, maintained.
Reason: Searches found boto3, the S3 SDK the issue already names, covering the S3 calls, signing, upload metadata and presigning; no tool joins keyring credentials, content kinds, the pending queue, index pages or graceful store-down handling.

Covers:

  • S3 put, get, list, head and delete calls
  • Path-style SigV4 signing with a configurable region
  • Multipart uploads with metadata, Content-Type and presigned URLs

Lacks:

  • Keyring credential lookup and required endpoint settings
  • Content-kind table and immutable-path guard
  • Pending queue, offline publish and sync drain
  • Kind index pages, doctor canary and dry-run guard

Proposed design

Problem statement

devops-cli writes reports, sessions and studies only to local files. This change adds the devops store command group to publish and read them through boto3 with keyring credentials, a content-kind table over the platform buckets, a pending queue for a store that does not answer, kind index pages, a doctor canary, a pending-upload gauge and a devops workspace clean rule that keeps pending files. Live checks against the cluster store are deferred to a new issue that waits on dan-petty/homelab#98 and dan-petty/homelab#341.

Acceptance criteria

Requirement: Store command group

The CLI SHALL expose a devops store command group with the publish, sync, ls, get, url, presign and doctor subcommands.

Scenario: Help lists store subcommands

  • WHEN A user runs devops store --help.
  • THEN The output lists the seven subcommands and the command exits 0.

Requirement: Required store endpoint

The store commands MUST stop with a non-zero exit and an error that names store.s3_endpoint when the setting is unset.

Scenario: Unset endpoint

  • WHEN A user runs devops store publish with no store.s3_endpoint value.
  • THEN The command exits non-zero, its error code is CONFIGURATION_ERROR, and its text contains store.s3_endpoint.

Requirement: Required web base URL

url MUST stop with a non-zero exit and an error that names store.web_base_url when the setting is unset.

Scenario: Unset web base URL

  • WHEN A test runs url for a web kind with no store.web_base_url value.
  • THEN The command exits non-zero, its error code is CONFIGURATION_ERROR, and its text contains store.web_base_url.

Requirement: Content kind mapping

The store module SHALL resolve each content kind to its bucket, prefix, web or private visibility and immutable flag from one named table.

Scenario: Kind lookup

  • WHEN A test looks up the study kind.
  • THEN The result holds bucket reports-private, prefix studies/, private visibility and an immutable flag.

Requirement: Path-style SigV4 and region

The S3 client MUST use path-style addressing and SigV4 with the region from store.region, defaulting to us-east-1.

Scenario: Client configuration

  • WHEN A test builds the store client with store.region unset.
  • THEN The client config uses path-style addressing, SigV4 and region us-east-1.

Requirement: Keyring credentials

The store client MUST read its access key id and secret access key from the OS keyring through the shared credential seam.

Scenario: Credentials from keyring

  • WHEN A test sets store.access_key_id and store.secret_access_key in the keyring fake and sets different values in the environment.
  • THEN The client uses the keyring values and reads no environment variable.

Requirement: Publish an object

publish MUST upload a local file to the bucket and prefix of its content kind.

Scenario: Publish a study file

  • WHEN A test runs publish for a study file through the in-memory store fake.
  • THEN The fake records a PutObject for the study bucket and prefix and the command exits 0.

Requirement: Object Content-Type and checksum

Each uploaded object MUST carry a sha256 metadata value and a Content-Type from Python mimetypes.

Scenario: Upload a JSON file

  • WHEN A test uploads a .json file through the real store client with a botocore Stubber.
  • THEN The PutObject request holds the file checksum in sha256 metadata and application/json as Content-Type.

Requirement: Multipart part size

An upload larger than the multipart threshold MUST use 64 MiB parts.

Scenario: Large upload

  • WHEN A test uploads a file larger than the multipart threshold through the real store client with a botocore Stubber.
  • THEN Each UploadPart request declares a part size of 64 MiB, except the last part.

Requirement: Immutable path guard

A publish that changes an existing immutable path MUST fail unless the command receives --replace.

Scenario: Changed immutable object

  • WHEN A test publishes a different checksum to an immutable path without --replace through the in-memory store fake.
  • THEN The command exits non-zero with STORE_IMMUTABLE_PATH before the fake records a PutObject request.

Requirement: Immutable replace override

A publish with --replace MUST overwrite an existing immutable path.

Scenario: Replace an immutable object

  • WHEN A test publishes a different checksum to an immutable path with --replace through the in-memory store fake.
  • THEN The fake records a PutObject request and the command exits 0.

Requirement: Pending queue on store failure

When the store does not answer, publish MUST keep the local file, append one line to the pending queue under the resolved data directory, and return status pending with exit 0.

Scenario: Unreachable store

  • WHEN A test runs publish through the in-memory store fake, which raises a connection error.
  • THEN The file remains, the pending queue has one new JSON line, and the command exits 0 with status pending.

Requirement: Store answer is not pending

A store that answers with an error status MUST fail with STORE_ERROR and MUST NOT append a pending queue line.

Scenario: Store answers 500

  • WHEN A test runs publish through the in-memory store fake, which raises a 500 answer.
  • THEN The command exits non-zero with STORE_ERROR, and the pending queue is empty.

Requirement: Sync drains pending queue

sync MUST upload each queued file and remove its queue line after a successful upload.

Scenario: Drain pending queue

  • WHEN A test runs sync with one queued file through the in-memory store fake.
  • THEN The fake records the upload, the queue is empty, and the command exits 0.

Requirement: Repeat checksum skip

A repeat upload of the same checksum MUST count as sent and MUST make no PutObject request.

Scenario: Second sync of same checksum

  • WHEN A test syncs a file, queues the same file and checksum again, and syncs it through the in-memory store fake.
  • THEN The second sync records a HeadObject request, records no PutObject request, and exits 0.

Requirement: Kind index pages

publish MUST write index.html and index.json at the kind root from ListObjectsV2 plus the keys that the command just wrote.

Scenario: New window appears in index

  • WHEN A test publishes a new review window through the in-memory store fake whose ListObjectsV2 answer omits the new key.
  • THEN Both index objects contain the new key and the command exits 0.

Requirement: Dry-run network guard

Each store command MUST declare a request-plan dry-run class and MUST send no network request, read no keyring entry and write no queue line under --dry-run.

Scenario: Socket and keyring guard

  • WHEN A test runs each store command with --dry-run under refuse_requests and a keyring fake that records reads.
  • THEN No socket connection opens, no keyring entry is read, no queue line is written, and each command exits 0.

Requirement: Presign expiry limit

presign MUST reject an expiry longer than 7 days.

Scenario: Eight-day expiry

  • WHEN A test requests presign with an expiry of 8 days.
  • THEN The command exits non-zero and the fake records no request.

Requirement: Presign URL generation

presign MUST return a presigned URL for an expiry of at most 7 days.

Scenario: Seven-day expiry

  • WHEN A test requests presign with an expiry of 7 days through the in-memory store fake.
  • THEN The command returns a URL and exits 0.

Requirement: Web URL command

url MUST return the web URL for a key from store.web_base_url and the kind prefix.

Scenario: URL for a web kind

  • WHEN A test runs url for a key in a web kind.
  • THEN The command returns the expected URL and exits 0.

Requirement: Private kind URL refused

url MUST refuse a key in a private kind with a non-zero exit and MUST NOT return a web URL.

Scenario: URL for a private kind

  • WHEN A test runs url for a key in a private kind.
  • THEN The command exits non-zero with a typed error and prints no URL.

Requirement: List kind objects

ls MUST list objects under the prefix of a content kind.

Scenario: List study objects

  • WHEN A test runs ls for the study kind through the in-memory store fake.
  • THEN The output contains the stored key and the command exits 0.

Requirement: Download an object

get MUST download the named object to a local path.

Scenario: Get a stored file

  • WHEN A test runs get for a stored key through the in-memory store fake.
  • THEN The local file holds the object bytes and the command exits 0.

Requirement: Doctor canary

doctor MUST put, list, get, presign and delete a canary through store.s3_endpoint and through each --endpoint given.

Scenario: Canary through two endpoints

  • WHEN A test runs doctor --endpoint https://s3.example.com through the in-memory store fake, which records the endpoint of each call.
  • THEN The fake records the five canary calls against both endpoints and the command exits 0.

Requirement: Pending upload gauge

The store module MUST set the devops_cli_store_pending_uploads gauge to the number of queued uploads.

Scenario: Gauge after queue change

  • WHEN A test appends and drains one pending queue line.
  • THEN The gauge reads 1 after the append and 0 after the drain.

Requirement: Cleanup keeps pending files

devops workspace clean MUST leave the store directory and the pending queue untouched.

Scenario: Cleanup with pending file

  • WHEN A test writes a stale pending queue and a file it references under the resolved store/ directory and runs devops workspace clean.
  • THEN Both files remain and the command exits 0.

Requirement: Store error codes

The store commands MUST return stable typed error codes for configuration, immutable-path and store-answer failures.

Scenario: Error code table

  • WHEN A test triggers each configuration, immutable-path and store-answer failure through the in-memory store fake.
  • THEN Each failure returns CONFIGURATION_ERROR, STORE_IMMUTABLE_PATH or STORE_ERROR with a non-zero exit.

Requirement: Store command documentation

The generated CLI reference and docs/commands/store.md MUST list each devops store subcommand and its purpose.

Scenario: Generated docs

  • WHEN A user runs uv run devops ci docs.
  • THEN The docs check passes and the generated reference and docs/commands/store.md list one row for each of the seven subcommands.

Requirement: boto3 pin

The project MUST pin boto3 to one exact version, resolve that version in the lockfile, and take the newest release that passes the tests with no minimum release age.

Scenario: Dependency pin

  • WHEN A user runs uv run devops ci lockfile, uv run devops ci deps and uv run devops ci outdated.
  • THEN The lockfile and dependency checks pass, and ci outdated names no newer boto3 release.

Existing Tool Considered

boto3 (https://pypi.org/project/boto3, Apache-2.0, maintained) covers the S3 API calls, path-style SigV4, object metadata, Content-Type and presigned URLs. The alternatives check of 2026-11-20 in the issue body records in-use, and its block lists what boto3 lacks; devops-cli builds that glue. Cost: about 400 lines plus tests through the store seam and the botocore Stubber, about 600k tokens and 5 hours to build, and about 50k tokens a quarter to keep.

Key questions

  • Which open, maintained tool covers the S3 calls?: Use boto3 for the S3 API calls, path-style SigV4, object metadata, Content-Type and presigned URLs. Build the keyring, content-kind, queue, index, message, doctor, dry-run and cleanup glue in devops-cli. (best practice) [sources: https://github.com/boto/boto3, k8s/object-store/build-test/scripts.yaml:15, uv.lock:331]
    • Chosen: boto3. Apache-2.0 and maintained; the project already uses it in the object-store build test, and the alternatives check of 2026-11-20 records in-use.
    • Rejected: AWS CLI. No keyring lookup, pending queue or index pages; adds a second process per call.
    • Rejected: rclone. A second binary on each workstation for the same S3 calls; no keyring, pending queue or index pages.
    • Rejected: Custom S3 client. Reimplements maintained signing and multipart code that the project must keep.
  • Which boto3 release should the project pin?: Pin the newest boto3 release that fixes the known security and bug issues and passes the tests, with no minimum release age. The boto3 repository merged release-1.44.9 on 2026-11-21 (fetched 2026-11-22), newer than the 1.44.3 that uv.lock resolves, so add boto3==1.44.9 and update the lock. If the tests fail or a newer release appears at merge, pin that newest passing release. This replaces the issue's 1.43.118. (best practice) [sources: CONTRIBUTING.md:35, uv.lock:331, https://github.com/boto/boto3]
    • Chosen: Newest tested release (1.44.9 now). The owner rule of 2026-11-11 takes the newest release that passes the tests, and the boto3 repository shows release-1.44.9 merged on 2026-11-21.
    • Rejected: Keep the lock's 1.44.3. It is older than the 1.44.9 release branch and does not follow the newest-tested-release rule.
    • Rejected: Keep 1.43.118. It is older than the lock's 1.44.3 and does not follow the rule.
    • Rejected: Release at least 14 days old. The owner direction of 2026-11-11 removes a minimum release age for security and bug fixes.
  • How should the S3 client address and sign requests?: Use path-style addressing and SigV4. Take the region from store.region and default to us-east-1. (best practice) [sources: k8s/README.md:1195, k8s/README.md:1196, k8s/object-store/build-test/scripts.yaml:21, docs/adr/0034-the-object-store-is-seaweedfs-with-its-operator.md:31]
    • Chosen: Path-style SigV4. The project's object-store build test signs with aws:amz:us-east-1:s3 and addresses http://localhost:8333/build-test/<key>, with the bucket in the path; the SeaweedFS gateway is one host.
    • Rejected: Virtual-hosted SigV4. It needs one DNS name per bucket and does not match the one gateway endpoint.
    • Rejected: SigV2. Not the signing version that the store and the issue require.
  • How should the commands read credentials and the endpoint?: Declare store.access_key_id and store.secret_access_key in CREDENTIALS; the shared resolver reads the OS keyring first, then Vault, the environment and configuration. Add a StoreConfig with s3_endpoint, web_base_url and region (default us-east-1). Stop with ConfigurationError(key="store.s3_endpoint") when the endpoint is unset, and with ConfigurationError(key="store.web_base_url") when url has no web base URL. Use no default host. (best practice) [sources: src/devops_cli/config/env.py:49, src/devops_cli/config/env.py:73, src/devops_cli/security/secrets.py:324, src/devops_cli/exceptions/config.py:13, docs/ERRORS.md:46]
    • Chosen: Shared credential seam and settings. The project resolves every managed credential through one provider chain, and the issue requires keyring credentials with explicit settings.
    • Rejected: Environment variables only. The issue names the keyring, and environment-only secrets are visible to child processes.
    • Rejected: Plain config file. Stores secrets in a file, against the project's keyring rule.
  • How should the pending queue and store-down publish work?: Append one JSON object per line to resolve_store_path("store/pending.jsonl"), so the queue is under data.dir (default .data/store/pending.jsonl). On a connection or timeout failure, keep the local file, append one line, print a clear message, return status pending and exit 0. On a store answer with an error status, raise StoreError and write no queue line. sync uploads each line and removes it after success; it checks the object's sha256 metadata with HeadObject and skips PutObject when the checksum is equal. store/ stays outside PRUNED_SUBDIRECTORIES, so devops workspace clean keeps pending files. (best practice) [sources: ARCHITECTURE.md:226, src/devops_cli/core/repo.py:465, src/devops_cli/core/cleanup.py:32, src/devops_cli/core/cleanup.py:217, src/devops_cli/commands/workspace.py:286]
    • Chosen: JSONL queue with exit 0 pending. The issue names the path, the one-line write, the pending status and the graceful exit, and the project's shared-capability rule requires a local fallback.
    • Rejected: Fail non-zero with no queue. Does not meet the owner requirement to fail gracefully.
    • Rejected: SQLite queue. Adds a database and migration for a small append-only queue.
  • How should the index pages avoid a lagging listing?: Merge the ListObjectsV2 result with the keys that the command just wrote. Write index.html and index.json at the kind root. (best practice) [sources: k8s/README.md:1191, k8s/README.md:1197, k8s/README.md:1198]
    • Chosen: Merge listing and just-written keys. The build test measures up to 10 seconds before ListObjectsV2 through the other gateway lists a key that one gateway just wrote, so a listing alone can miss the new key.
    • Rejected: Listing only. A new key can be missing right after its publish.
    • Rejected: Just-written keys only. The index would lose older keys.
  • How should an immutable path change behave?: HeadObject the existing object and compare its sha256 metadata. If the checksum differs and --replace is absent, raise StoreImmutablePathError before any PutObject. With --replace, overwrite the path. If the checksum is equal, count the upload as sent and skip PutObject. (proposed)
    • Chosen: Refuse without --replace. The issue requires the refusal and the explicit override, and the checksum check makes a repeat publish idempotent.
    • Rejected: Always overwrite. Breaks the immutable contract.
    • Rejected: Always refuse. Leaves no recovery path for a corrected file.
  • How should uploads set the part size, Content-Type and checksum?: Use 64 MiB multipart parts and a 64 MiB multipart threshold. Set Content-Type from mimetypes.guess_type, and set a sha256 metadata value computed in one streaming pass over the file. (best practice) [sources: k8s/object-store/build-test/scripts.yaml:16, k8s/object-store/build-test/scripts.yaml:22, k8s/object-store/build-test/scripts.yaml:19, src/devops_cli/ai/analyze/scanner.py:189]
    • Chosen: 64 MiB, mimetypes and sha256. The issue sets these three upload rules, and the project already drives boto3's transfer manager through TransferConfig in the object-store build test.
    • Rejected: boto3 default part size and no checksum. More requests for large files and no repeat-upload check.
    • Rejected: Extension table. Duplicates the standard library mimetypes table.
  • What limits should presign and doctor use?: presign rejects an expiry longer than 7 days and returns a URL for an expiry of at most 7 days. doctor puts, lists, gets, presigns and deletes a canary through store.s3_endpoint and through each repeatable --endpoint given, so the cluster endpoint and https://s3.<domain> are both covered. (best practice) [sources: k8s/README.md:1157, k8s/README.md:1195, k8s/README.md:1135]
    • Chosen: 7-day presign and full canary. The issue sets the 7-day limit and the five canary calls, and the store uses SigV4, whose presigned URLs have the 7-day limit.
    • Rejected: No presign limit. The issue sets a limit.
    • Rejected: HEAD-only doctor. Does not test write, list or presign.
    • Rejected: Derive s3.<domain> from store.web_base_url. Guesses a host from an unrelated setting; a repeatable --endpoint is explicit and testable.
  • How should --dry-run and devops workspace clean treat the store?: Each store command declares @dry_run_class("request-plan") and implements the project's --dry-run request plan: no socket, no keyring read, no queue write, and a printed list of the requests a real run would send. devops workspace clean prunes only the six PRUNED_SUBDIRECTORIES; store/ is not one, so it keeps pending files and the files they reference. No cleanup code change is needed; a test asserts it. (best practice) [sources: ARCHITECTURE.md:170, src/devops_cli/dry_run/decorator.py:18, docs/TESTING.md:267, src/devops_cli/core/cleanup.py:32, src/devops_cli/core/cleanup.py:217]
    • Chosen: No request and keep pending files. The issue requires 0 network calls in a socket guard test and a cleanup rule that keeps a pending file, and the project's dry-run standard forbids a read too.
    • Rejected: Log-only dry run. Still sends requests.
    • Rejected: Clean all .data/store files. Removes queued files that sync still needs.
  • What should the pending-upload gauge be named?: Name it devops_cli_store_pending_uploads. Every instrument in the project's telemetry module uses the devops_cli_ prefix, and a gauge reaches Prometheus through one path. (best practice) [sources: src/devops_cli/telemetry/instruments.py:39, src/devops_cli/telemetry/instruments.py:49]
    • Chosen: devops_cli_store_pending_uploads. It follows the devops_cli_ namespace of every declared instrument.
    • Rejected: devops_store_pending_uploads. It lacks the project's namespace and would be the only instrument without it.
    • Rejected: No gauge. The issue asks for the gauge so an operator can see the queue depth.
  • Which command runs the cleanup that must keep pending files?: devops workspace clean, not devops cleanup. It prunes only reviews, analysis, logs, traces, benchmarks and cache; store/ is outside that list, so pending files stay. [sources: src/devops_cli/commands/workspace.py:286, src/devops_cli/core/cleanup.py:32, src/devops_cli/core/cleanup.py:217]
  • Where do the store command docs go?: Into the generated docs/CLI_REFERENCE.md and docs/commands/store.md, written by uv run devops docs generate. README.md links the reference and holds no generated command matrix. (best practice) [sources: docs/adr/0025-generated-documents-stay-in-git-and-the-project-brain-cites-them.md:95, README.md:42, README.md:165]
    • Chosen: Generated CLI reference and docs/commands/store.md. ADR 0025 moved the command matrix out of the README into the generated reference.
    • Rejected: README rows. The README no longer holds a generated command matrix.
    • Rejected: No docs. The project generates a page for each command group and checks it in CI.
  • How should url treat a private kind?: Refuse a key in a private kind with a non-zero exit and no web URL. url returns a web URL only for a web kind; presign is the command for a private object. (best practice) [sources: k8s/README.md:1138, openspec/specs/object-store/spec.md:92]
    • Chosen: Refuse a private kind. A web URL for a private object would expose a key that the kind marks private; the store's anonymous GET on reports-private is an operator grant, not a promise that the CLI should hand out.
    • Rejected: Return a web URL for a private kind. Leaks a private key through the files host.
    • Rejected: Return a presigned URL from url. Duplicates presign and hides the difference between a web URL and a temporary URL.
  • How should the tests fake S3?: Add one store seam: a StoreClient protocol with a boto3 implementation and an in-memory fake in tests/support/fakes/store.py. Command tests install the fake; a contract suite runs against the fake and the real boto3 client, using botocore.stub.Stubber for the exact requests of the real client. Do not add moto or reach the live store. (best practice) [sources: docs/adr/0007-tests-double-only-process-edges.md:10, docs/TESTING.md:73, docs/TESTING.md:288]
    • Chosen: Store seam with an in-memory fake, and Stubber in the contract suite. ADR 0007 requires one seam per edge and an in-memory fake, and the contract suite checks the real client's requests with the library's own Stubber.
    • Rejected: botocore Stubber for every test. It bypasses the project's seam and in-memory fake, and command tests would assert botocore request shapes instead of the command's behavior.
    • Rejected: moto. A new dev dependency that emulates the S3 server, more than the request assertions need.
    • Rejected: Live store. The live checks wait on dan-petty/homelab#98 and dan-petty/homelab#341 and are deferred to their own issue.
  • Which buckets and prefixes should the content kinds use?: Use the platform buckets that feat(k8s): apply store buckets, keys and rules from git #4756 made: the review-window kind uses reports, the study kind uses reports-private with prefix studies/, and a review session also uses reports-private with its own prefix. Add no bucket: the operator watches only object-store, and each bucket is a CR with a quota and a lifecycle rule. (best practice) [sources: k8s/README.md:1135, k8s/README.md:1138, k8s/README.md:1144, openspec/specs/object-store/spec.md:260]
    • Chosen: Use the existing platform buckets. reports and reports-private already exist with quotas and lifecycle rules, and the studies/ prefix already expires after 90 days.
    • Rejected: Add a bucket per content kind. Each bucket needs a CR, quota and lifecycle rule, and the operator watches only object-store.
    • Rejected: Put every kind in cache. Its lifecycle expires objects after 7 days.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Moved to new items

#6746

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/cli
    status/new
    value/high
    effort/high
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/cli. The (cli) scope of the title gives the scope.
    • Priority: P2-Medium. A new command group with multiple subcommands, a queue, and index pages, but one part of a larger tracker.
    • Value: High. Gives users a single CLI path to publish, read, and inspect content-store files.
    • Effort: High. Seven subcommands, a pending queue, index generation, keyring auth, and tests estimate about 5 hours.
    • Related: feat(roadmap): publish the project review and link it on GitHub #4733, which asks for a different change. Both touch the content store, but the candidate builds the store CLI while dan-petty/devops-cli#4733 uses it to publish a roadmap review.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Owner direction of 2026-11-11:

    not sure about the "at least two weeks old" rule, sometimes security updates and bugfixes need to be used within minues of their release, as long as the tooling supports that version, it is fine to update

    New rule: no minimum release age for dependencies, images, charts or tools. Pin the newest release that fixes the known security and bug issues and that the surrounding tools support (the tests pass).

    Body changes: the boto3 acceptance line now asks for the newest boto3 release that fixes the known issues and passes the tests, not a release that is 14 days old.

  6. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Alternatives check: partly

    Reason: Searches found no maintained tool that joins keyring credentials, a content-kind table, a local pending queue, index pages and graceful store-down messages; that whole need stays project-specific. boto3 (Apache-2.0, actively pushed) covers the S3 part of it, and the issue already names it as the dependency for the S3 calls, so it partly covers the need.

    Tool: boto3 (https://pypi.org/project/boto3)

    • License: Apache-2.0
    • Last activity: 2026-11-13
    • Maintained: yes

    Covers:

    • S3 API calls through botocore: put, list (ListObjectsV2), get, delete, multipart upload of large parts
    • Path-style SigV4 signing with a region taken from configuration (e.g. us-east-1)
    • Object metadata such as a sha256 value, and Content-Type from Python mimetypes
    • Presigned URL generation (the presign command and 7-day expiry)

    Lacks:

    • Keyring lookup of store.access_key_id / store.secret_access_key
    • The table of content kinds (bucket, prefix, web/private, immutable) and the changed-immutable-path refusal with --replace
    • The local pending queue (.data/store/pending.jsonl), the pending status, sync, and the repeat-checksum skip
    • index.html / index.json generation from ListObjectsV2 plus just-written keys
    • The graceful store-down message, the devops store command group, doctor canary, --dry-run socket guard and the devops cleanup keep-pending rule

    Tools considered:

    Searches run:

    • s5cmd S3 command line client, results: 5
    • S3 CLI upload with keyring credentials offline pending queue, results: 5
    • minio mc client S3 CLI, results: 5
    • boto3 python S3 library, results: 5
    • s5cmd github peak, results: 5
    • rclone S3 upload CLI, results: 5
    • rclone github repository, results: 5
    • tool to publish files to S3 bucket with retry queue and index page, results: 5

    Sources:

    Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.

  7. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    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.

  8. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: partly, tool https://pypi.org/project/boto3. A person decides what the new result means for the item.

    Searches (7)

    Tools considered:

    Searches run:

    • boto3 S3 presigned URL multipart upload metadata path-style SigV4, results: 5
    • rclone S3 keyring credentials offline pending upload queue index pages, results: 5
    • s5cmd S3 command line client features, results: 5
    • boto3 Python SDK for Amazon S3 official documentation, results: 5
    • rclone S3 remote documentation, results: 5
    • AWS CLI s3 presign maximum expiration 7 days, results: 5
    • S3 CLI offline pending upload queue keyring credentials content index, results: 5

    Sources:

  9. dan-petty commented on Nov 22, 2026

    @dan-petty
    OwnerAuthor

    Dependency correction (2026-11-22): #4756 closed with PR #6724, which made only the buckets reports, reports-private, cache and argo-artifacts, with no S3Identity and no key. Its operator watches only object-store and 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 in gitea. The backup buckets and writer keys of the platform namespaces now come with dan-petty/homelab#98 (External Secrets Operator copies each key from object-store). I changed the Dependencies section of this item to name it.

  10. added
    status/ready
    and removed
    status/new
    on Nov 22, 2026
  11. devops-cli-service commented on Nov 22, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See Moved to new items in the section Proposed design of the body.

  12. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 25, 2026
  13. removed
    status/in-review
    on Nov 25, 2026
  14. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor
  15. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-25 17:09 UTC

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

    effort/highpriority/p2-mediumscope/clisource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions