microsoft / microsoft/virtualnodesOnAzureContainerInstances

[Security hardening] Replace default cluster-admin binding with least-privilege RBAC

Open
#117 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go Template
Stars
12
Forks
11
Avg merge
2d 17h
Merged PRs (30d)
7

Description

Summary

The VN2 Helm chart grants the VN2 infrastructure ServiceAccount the built-in
cluster-admin ClusterRole by default.

Although rbac.roleRef is configurable, the chart does not provide a dedicated
least-privilege ClusterRole for the core VN2 components.

Affected version

  • Chart: virtualnode-1.3410.26082101
  • Commit: 459ee5601f2bc730844b17063808076f42c80bb2

Evidence

Helm/virtualnode/values.yaml:

rbac:
  install: true
  serviceAccountName: virtual-node2-helm
  roleRef: cluster-admin


## Security impact

Compromise of a VN2 component using this ServiceAccount could provide full

administrative control of the Kubernetes cluster, including access to secrets,

workloads, and RBAC configuration.

## Expected behavior

The chart should create and bind a dedicated ClusterRole containing only the

permissions required by VN2. A default installation must not reference the

built-in `cluster-admin` role.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Helm/virtualnode/values.yaml and trace the chart's current RBAC configuration and binding. Identify the permissions required by the VN2 components, define a dedicated least-privilege ClusterRole, and verify that a default installation no longer references the built-in cluster-admin role.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes
Domain
infrastructure, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.