From bc7a7182d6ce43872231675d5479e0b89047239a Mon Sep 17 00:00:00 2001 From: Steve McMaster Date: Fri, 9 Jan 2026 15:17:26 -0500 Subject: [PATCH] Finally, hopefully, fix the randomly breaking permissions nonsense --- base.tf.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base.tf.j2 b/base.tf.j2 index 135d3e6..3aecaf4 100644 --- a/base.tf.j2 +++ b/base.tf.j2 @@ -458,8 +458,9 @@ resource "kubernetes_deployment" "main" { spec { {% block kubernetes_pod_main_security_context %} security_context { - run_as_user = "{{ coder_user_uid }}" - fs_group = "{{ coder_user_gid }}" + run_as_user = "{{ coder_user_uid }}" + fs_group = "{{ coder_user_gid }}" + fs_group_change_policy = "OnRootMismatch" } {% endblock %}