Design: run AAQ scraper as an ArgoCD CronJob on the workloads cluster#44
Draft
aatchison wants to merge 17 commits into
Draft
Design: run AAQ scraper as an ArgoCD CronJob on the workloads cluster#44aatchison wants to merge 17 commits into
aatchison wants to merge 17 commits into
Conversation
Egress-IP-first scaffolding to move the scraper off GitHub Actions (blocked by the Fastly bot-challenge, #28) onto the workloads EKS cluster, sharing bitergia's static NAT egress IP for the Mozilla allowlist ask (#27). Plain-HTTP image, CSVs stay in git, fine-grained PAT for pushes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Two-phase, TDD where testable: Phase A (this repo) swaps sumo.py's Playwright engine for httpx behind the frozen SumoBrowser API, packages a browser-free arm64 image whose entrypoint clones/refreshes/commits, and builds it in CI; Phase B (platform-infrastructure) adds the Pulumi ECR+OIDC, the deploy manifests, and the ArgoCD app. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The sandbox default is Python 3.14, against which playwright's greenlet dependency has no wheel and fails to build, breaking `uv sync`/`uv run`. Pin to 3.12 (within requires-python >=3.10) so the mandated `uv run pytest` works. (greenlet/playwright are removed in the next task, but the pin keeps the toolchain reproducible regardless of the host default.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The CronJob commits the high-water mark to the repo each active run instead of the (unavailable) GitHub Actions cache. run_refresh.py's 26h lookback covers its initial absence, so no seed file is needed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pass the workflow_dispatch tag input via an env var instead of interpolating github.event.* into the run script, and validate its charset. Flagged HIGH (ci-cd-script-injection) by review; the job holds ECR-push OIDC creds. Behavior unchanged for the default git-<sha> path. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ss, read-only-FS workdir)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…oint verification Co-Authored-By: Claude Opus 4.8 (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.
What
Design spec (brainstorming output) for moving the scraper off GitHub Actions onto the workloads EKS cluster as an ArgoCD CronJob, sharing bitergia's static NAT egress IP so Mozilla can allowlist a single IP for both SUMO
/api/2/consumers.This PR is the design doc only — no implementation yet. It's here for review before I write the implementation plan.
docs/superpowers/specs/2026-07-13-k8s-argocd-scraper-deployment-design.mdKey decisions captured
mzla-eks-workloads01, eu-central-1), co-located with bitergia-deploy to share one egress IP.httpx, arm64, distroless/slim). Includes a modestsumo.pyrefactor dropping Playwright for plain HTTP, preserving the existingfetch_jsonretry/deferral contract.run_refresh.py, commits20*/back tomain..refresh-hwmmoves from the Actions cache into the repo.kitsune-api-watch.ymlunaffected.scrape.ymlstays live until cutover.Reviewer callouts
platform-infrastructure.Relates to #28, #27.
🤖 Generated with Claude Code