Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict auto-mount of service account token in service account #7606

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michalschott
Copy link

Fixes #N/A

Description
Kubernetes automatically mounts ServiceAccount credentials in each ServiceAccount. The ServiceAccount may be assigned roles allowing Pods to access API resources. Blocking this ability is an extension of the least privilege best practice and should be followed if Pods do not need to speak to the API server to function.

Obviously Karpenter relies on this, so token is mounted to it's pods (set on deployment level).

How was this change tested?
Custom EKS cluster

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@michalschott michalschott requested a review from a team as a code owner January 16, 2025 11:25
Copy link

netlify bot commented Jan 16, 2025

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit 040f47f
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/6788ec9bfdfa130008299b7c
😎 Deploy Preview https://deploy-preview-7606--karpenter-docs-prod.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant