Skip to content

test(k8s): Run Crawl4AI refusal check with internal URLs allowed #4018

Open

Description

@devops-cli-service

Split from #3894.

Problem The live check of #3894 must fail on a Crawl4AI start that allows internal URLs. That run proves the check can fail. The runner has no Kubernetes token, so no job can restart the Deployment with the override. A person with cluster write must run it. ## Why it is deferred It needs a person with cluster write and a temporary change of the running Deployment. The proposal of #3894 cannot deliver it. ## Acceptance criteria - A person starts Crawl4AI with CRAWL4AI_ALLOW_INTERNAL_URLS=true on the digest that #3894 names. - Every route returns 200 with a body for each internal target, and the person records the output. - The person restores the Deployment to the pinned environment and confirms that the pod is ready. - The pull request comment quotes the output and the module of #3894 links it.

Proposed design

Problem statement

The refusal check of #3894 must fail when Crawl4AI allows internal URLs. That failing run proves that the check can fail. The runner pod holds no Kubernetes token, so no roadmap job can change the running Deployment. A person with cluster write must run the check with the override, record the output and restore the Deployment.

Acceptance criteria

Requirement: Override start

A person with cluster write SHALL start Crawl4AI with CRAWL4AI_ALLOW_INTERNAL_URLS=true and wait for the rollout.

Scenario: Pod runs with the override

  • WHEN the person runs kubectl set env deployment/crawl4ai CRAWL4AI_ALLOW_INTERNAL_URLS=true and kubectl rollout status deployment/crawl4ai
  • THEN kubectl rollout status deployment/crawl4ai exits 0 and kubectl exec deploy/crawl4ai -- printenv CRAWL4AI_ALLOW_INTERNAL_URLS prints true

Requirement: Failing check output

The refusal check MUST exit non-zero while the override is active and each internal target answers 200 with a body.

Scenario: Every route allows an internal target

  • WHEN the person runs uv run devops k8s crawl4ai-check against the Deployment that holds the override
  • THEN the command exits non-zero and its output shows status 200 with a body for each internal target

Requirement: Deployment restore

The person SHALL remove the override and return the Deployment to its pinned environment.

Scenario: Pinned environment returns

  • WHEN the person runs kubectl set env deployment/crawl4ai CRAWL4AI_ALLOW_INTERNAL_URLS- and kubectl rollout status deployment/crawl4ai
  • THEN kubectl rollout status deployment/crawl4ai exits 0 and kubectl exec deploy/crawl4ai -- printenv CRAWL4AI_ALLOW_INTERNAL_URLS exits non-zero with no value

Requirement: Pending a person after the merge

The person MUST post the output of the failing run as a comment on issue #4018.

Scenario: The negative proof is on record

Existing Tool Considered

No alternatives check has run. kubectl (Apache-2.0, maintained by the Kubernetes project) covers the override, the rollout wait and the environment read with kubectl set env, kubectl rollout status and kubectl exec ... printenv. The assertion is the project's own command, uv run devops k8s crawl4ai-check. The item writes no code, so its build cost is 0 tokens, and the run takes about 30 minutes of one person's time.

Key questions

  • Who can apply the override on the live cluster?: A person with cluster write. The runner pod holds no Kubernetes token, so no roadmap job can change the running Deployment. [sources: CONTEXT.md]
  • Which tool applies and removes the override?: kubectl set env applies and removes the variable, and kubectl rollout status waits for each rollout. A kubectl exec read of the pod environment confirms each state before the next step. (best practice) [sources: .claude/settings.json:40, CONTEXT.md]
    • Chosen: kubectl set env on the live Deployment. It applies and removes the override with one command each and leaves no commit in a repository.
    • Rejected: Kustomize patch in the environment tree. devops-cli holds no environment tree, so the patch would change dan-petty/homelab and leave a revert commit.
    • Rejected: Cluster Job that runs the check. The runner pod holds no Kubernetes token, so it cannot change the Deployment.
  • Which command runs the refusal check of test(k8s): live check that Crawl4AI refuses internal URLs #3894?: uv run devops k8s crawl4ai-check. Its tests are tests/commands/k8s/test_k8s_crawl4ai_check.py. [sources: tests/commands/k8s/test_k8s_crawl4ai_check.py]
  • Where does the record of the run live, and which command reads it?: A comment on issue test(k8s): Run Crawl4AI refusal check with internal URLs allowed #4018. The project reads it with devops gh issue view 4018 --comments, because AGENTS.md forbids bare gh. (best practice) [sources: AGENTS.md]

Fit

Fits in one pull request.

Suspected block

A person with cluster write must run the override on the live cluster, record the output and restore the Deployment.

Dependencies

#3894

Activity

  1. added
    source/agent
    type/test
    scope/k8s
    status/new
    value/medium
    effort/low
    on Nov 7, 2026
  2. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    ContributorAuthor

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

    • Type: type/test. The test prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P3-Low. The run is manual and one-off. It does not block other work.
    • Value: Medium. The run proves that the security check can fail and is not always green.
    • Effort: Low. One person starts the pod with one override, records the output and restores the Deployment.
    • Related: test(k8s): live check that Crawl4AI refuses internal URLs #3894, which asks for a different change. Both items test the Crawl4AI internal-URL refusal. Item 3894 adds the check and the candidate proves that the check can fail.
  3. added
    priority/p3-low
    on Nov 7, 2026
  4. changed the title [-]test(k8s): run the Crawl4AI refusal check with CRAWL4AI_ALLOW_INTERNAL_URLS=true[/-] [+]test(k8s): Run Crawl4AI refusal check with internal URLs allowed[/+] on Nov 7, 2026
  5. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    ContributorAuthor

    The job shortened the title of this item. The summary had 69 characters, and the limit is 60. The type and the scope stay.

    • Before: test(k8s): run the Crawl4AI refusal check with CRAWL4AI_ALLOW_INTERNAL_URLS=true
    • After: test(k8s): Run Crawl4AI refusal check with internal URLs allowed
    • Source of the summary: the background model
  6. devops-cli-service commented on Nov 9, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 6121d09 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Who runs the override on the cluster? (a person decides)
  7. dan-petty commented on Nov 14, 2026

    @dan-petty
    Owner

    Cannot build as written by an agent: the acceptance criteria require a person with cluster write to start Crawl4AI with CRAWL4AI_ALLOW_INTERNAL_URLS=true, record every route's response, restore the Deployment and confirm the pod. The runner has no Kubernetes token (the issue says so), and a person must run it. It also waits on #3894 for the digest and the live check. Return until a cluster owner runs the override and posts the output.

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

    @devops-cli-service
    ContributorAuthor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  9. devops-cli-service commented on Nov 23, 2026

    @devops-cli-service
    ContributorAuthor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

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/lowpriority/p3-lowscope/k8ssource/agentstatus/newtype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions