Skip to content

fix(k8s): refuse the project-review label on Service Jobs - #7548

Merged
dan-petty merged 2 commits into
mainfrom
fix/7402-refuse-project-review-service-job
Nov 28, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/7402-refuse-project-review-service-job

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The NetworkPolicies of dan-petty/homelab#276 let pods with app.kubernetes.io/name: devops-cli-job and app.kubernetes.io/component: project-review in namespace devops connect to Prometheus (TCP 9090) and Loki (TCP 3100), and Loki has no authentication (#7402). In k8s/devops/roadmap-service/admissionpolicy.yaml:259-268, the ValidatingAdmissionPolicy roadmap-service-jobs enforces app.kubernetes.io/component: roadmap-stage only for stage Jobs and accepts any other component value on non-stage Service Jobs, so ServiceAccount roadmap-service can create a Job whose pod carries project-review and reads cluster logs through Loki.

Closes #7402

Change: openspec/changes/archive/2026-11-28-7402-refuse-project-review-service-job/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 05:10
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 98a807201856ad6b46cb7c92c29a2eef2fe2ba77

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Plan Check skipped run
CodeQL success run
Changed-Test Independence success run
Test Job Duration skipped run
Dependency Freshness skipped run
Tests on Main skipped run
Changed-Test Independence (run 2 of 3) success run
Fail-to-Pass Check success run
Changed-Test Independence (run 1 of 3) success run
Tests & Coverage (shard 4 of 5) success run
Image Pins success run
Tests & Coverage (shard 1 of 5) success run
Tests & Coverage (shard 5 of 5) success run
Design Tokens success run
Tests & Coverage (shard 3 of 5) success run
Changed-Test Independence (run 3 of 3) success run
Runner Image success run
Service Image success run
Tests & Coverage (shard 2 of 5) success run
Semantic PR title success run
Static Analysis success run
Analyze (actions) success run
Analyze (python) success run

Fail-to-pass run: https://github.com/dan-petty/devops-cli/actions/runs/46110304327/job/140872116024

Skipped check: Plan Check
Skipped check: Test Job Duration
Skipped check: Dependency Freshness
Skipped check: Tests on Main

@dan-petty
dan-petty merged commit cba5b22 into main Nov 28, 2026
27 checks passed
@dan-petty
dan-petty deleted the fix/7402-refuse-project-review-service-job branch November 28, 2026 05:14
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.232.6](v0.232.5...v0.232.6)
(2026-11-28)


### Bug Fixes

* **k8s:** refuse the project-review label on Service Jobs
([#7548](#7548))
([cba5b22](cba5b22))

---
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>
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/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): refuse the project-review label on Service Jobs

1 participant