Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

[7.x] [elasticsearch]: optionally disable SA token automount (#1300)#1394

Merged
jmlrt merged 2 commits intoelastic:7.xfrom
jmlrt:backport/7.x/pr-1300
Oct 12, 2021
Merged

[7.x] [elasticsearch]: optionally disable SA token automount (#1300)#1394
jmlrt merged 2 commits intoelastic:7.xfrom
jmlrt:backport/7.x/pr-1300

Conversation

@jmlrt
Copy link
Copy Markdown
Member

@jmlrt jmlrt commented Oct 7, 2021

Backports the following commits to 7.x:

ES has no direct interaction with the Kubernetes API, and as such, it
does not need a mounted service account token in its pods. By disabling
this automount, potential attackers cannot access the API on
behalf/through the Pod.

This commit allows users to opt out on SA token automount. It leaves the
current behaviour unchanged, to avoid breaking things.

Signed-off-by: Jorik Jonker <jorik.jonker@eu.equinix.com>
@jmlrt jmlrt added the backport label Oct 7, 2021
@jmlrt
Copy link
Copy Markdown
Member Author

jmlrt commented Oct 7, 2021

jenkins test this please

2 similar comments
@jmlrt
Copy link
Copy Markdown
Member Author

jmlrt commented Oct 11, 2021

jenkins test this please

@jmlrt
Copy link
Copy Markdown
Member Author

jmlrt commented Oct 12, 2021

jenkins test this please

@jmlrt
Copy link
Copy Markdown
Member Author

jmlrt commented Oct 12, 2021

jenkins test this please

@jmlrt jmlrt merged commit a8d5ee2 into elastic:7.x Oct 12, 2021
@jmlrt jmlrt deleted the backport/7.x/pr-1300 branch October 12, 2021 15:11
@jmlrt jmlrt mentioned this pull request Mar 8, 2022
@jmlrt jmlrt mentioned this pull request Apr 21, 2022
This was referenced Sep 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants