Skip to content

Dataplane PODs have a ServiceAccountToken mounted #4342

@hafe

Description

@hafe

Describe the bug
Dataplane PODs (nginx) gets a ServiceAccountToken created and mounted into the POD. That should not be needed. It decreases the security posture and is considered a bad practice.

To Reproduce
Just deploy "getting started" and verify that a ServiceAccount is created for each Gateway and that "automountServiceAccountToken" is set to true for the PODs.

Expected behavior

  • No ServiceAccount created
  • automountServiceAccountToken set to false

Your environment

  • NGF 2.2.1
  • kind
  • Kubernetes 1.34

Additional context

  • Security scanners will detect and report this

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/securityFor security best practicesbugSomething isn't workingcommunity

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions