Page MenuHomePhabricator

toolforge: k8s-status: prevent it from accessing some information
Closed, ResolvedPublicSecurity

Description

The Toolforge k8s-status tool can expose via anon web interface some information that may be considered sensitive.

The observer role for k8s-status allows it to read pods/status, which may contain an exit message produced by the user, see reference https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#containerstateterminated-v1-core

Examples of user-triggered workloads that may allow this info leak:

  • build service pipelines
  • all other cluster pods

Related: https://wikitech.wikimedia.org/wiki/Portal:Toolforge/Admin/Maintenance#wmcs-k8s-enable-cluster-monitor

Reduce k8s-status permissions to it cannot expose this information.

Details

Risk Rating
Low
Author Affiliation
WMF Technology
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Hide some pod informationtoolforge-repos/k8s-status!2taavitaavi/podsmain
Customize query in GitLab

Event Timeline

aborrero renamed this task from toolforge: k8s-status: prevent it from exposing toolforge build service pipeline information to toolforge: k8s-status: prevent it from accessing some information.Sep 14 2023, 10:51 AM
aborrero updated the task description. (Show Details)
aborrero claimed this task.

resolved for now.

resolved for now.

Anything keeping this task from being made public? I'm not seeing anything obvious...

Anything keeping this task from being made public? I'm not seeing anything obvious...

Not that I'm aware of. Please make it public, I don't know off hand which button to click.

sbassett changed the visibility from "Custom Policy" to "Public (No Login Required)".Sep 5 2024, 3:09 PM
sbassett changed the edit policy from "Custom Policy" to "All Users".
sbassett changed Risk Rating from N/A to Low.
sbassett moved this task from Watching to Our Part Is Done on the Security-Team board.