Skip to content

feat(k8s): add the Crawl4AI token to the cluster secrets - #3937

Merged
dan-petty merged 3 commits into
mainfrom
feat/3882-crawl4ai-cluster-row
Nov 7, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/3882-crawl4ai-cluster-row

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Add the keyring credential crawl4ai.api_token and two cluster Secret entries from it: CRAWL4AI_API_TOKEN in Secret devops/crawl4ai, and DEVOPS_CLI_CRAWL4AI_API_TOKEN in Secret devops/devops-cli. The push makes the token once when the keyring has none. The change creates no Secret: a person runs devops k8s push-secrets. Crawl4AI listens beyond loopback only when the token is set. The restart of deployment/crawl4ai comes with its manifest (#3884).

Closes #3882

Change: openspec/changes/archive/2026-11-07-3882-crawl4ai-token-secret/
Elapsed: 4.93s

Add credential crawl4ai.api_token and the rows devops/crawl4ai and DEVOPS_CLI_CRAWL4AI_API_TOKEN of devops/devops-cli, from one keyring value.
@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence for the pull request.

Tests first: the new rows and keys in tests/k8s/test_cluster_secret_plan.py failed on the base (the table test and the credential test), then passed with the change. tests/invariants/test_k8s_manifests.py (README rows, env keys, Argo CD ignore list) and tests/commands/test_config_audit_keys.py (24 keys, crawl4ai.api_token listed) pass. tests/k8s/test_cluster_secret_push.py::test_the_crawl4ai_token_is_made_once_for_both_secrets_and_reaches_no_output shows one generated token in both Secrets, and the token (plain and base64) in no argument, log record or output, with and without --dry-run.

Full uv run devops ci after the last code change: all 25 checks pass, including the new test files. The test row took 11m 44s, over the 5-minute budget (known, #3593).

One difference from the text of #3882: the row devops/crawl4ai restarts no workload. test_every_restart_target_is_a_manifest_workload_or_helm_release refuses deployment/crawl4ai until a manifest holds it, so #3884 adds the restart with the Deployment.

During the first CI run, a test failed because my branch name held the word "token" (#3638, already open). I renamed the branch.

Pending a person: review the diff in tuicr, then run devops k8s push-secrets --only devops/crawl4ai --only devops/devops-cli to create the Secrets.

@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 04:57
@dan-petty
dan-petty merged commit 5e6eb59 into main Nov 7, 2026
24 checks passed
@dan-petty
dan-petty deleted the feat/3882-crawl4ai-cluster-row branch November 7, 2026 11:45
dan-petty pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.78.0](v0.77.2...v0.78.0)
(2026-11-07)


### Features

* **k8s:** add the Crawl4AI token to the cluster secrets
([#3937](#3937))
([5e6eb59](5e6eb59))
* **research:** list every pin of the project
([#3945](#3945))
([cb65daa](cb65daa)),
closes [#3896](#3896)


### Bug Fixes

* **roadmap:** a fix step edits only the paths the plan names
([#3944](#3944))
([7745fa8](7745fa8))
* **roadmap:** read only the marked code spans of a plan
([#3912](#3912))
([72c52c6](72c52c6))
* **service:** the request budget counts only what GitHub counts
([#3946](#3946))
([b3f8793](b3f8793))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Nov 7, 2026
Adds the Crawl4AI page-text service to the devops stack: Deployment,
Service and NetworkPolicies in k8s/devops/crawl4ai/, on the pinned
release 0.9.5. Only the roadmap-service pods may call it, and its egress
reaches public ports 80 and 443 only. A new bearer token restarts the
pod. A CI job reports vulnerabilities of the pinned image without
failing the pull request. The service answers the client of #3943 and
the token row of #3937. No Ingress or route names it.

Closes #3884

Change: `openspec/changes/archive/2026-11-07-3884-crawl4ai-manifests/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): add the Crawl4AI token to the cluster secrets

1 participant