Skip to content

Security Attributes for Nginx Ingress #4290

Closed Answered by vepatel
3rk1n asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @3rk1n, from you problem statement I understand that this is a security recommendation from Microsoft Azure Defender but Ingress Controller needs credentials to access the K8s API in order to function.

So the behaviour you're seeing after setting automountServiceAccountToken: false is completely expected. Our recommendation would be either:

  • Ignore this particular security recommendation and use rbac security measures to prevent unwanted access OR
  • Set automountServiceAccountToken: false and then immediately manually configure the API access token.

See: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vepatel
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants