Skip to content

Commit

Permalink
Merge pull request #733 from arunsworld/run-ui-as-non-root
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrevilain authored May 23, 2024
2 parents f831a02 + 6075308 commit 6b858c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/resource/ui/deployment_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ func (b *DeploymentBuilder) Update(object client.Object) error {
TerminationGracePeriodSeconds: ptr.To[int64](30),
DNSPolicy: corev1.DNSClusterFirst,
SchedulerName: corev1.DefaultSchedulerName,
SecurityContext: &corev1.PodSecurityContext{},
SecurityContext: &corev1.PodSecurityContext{
RunAsUser: ptr.To[int64](5000),
RunAsGroup: ptr.To[int64](5000),
RunAsNonRoot: ptr.To[bool](true),
},
},
}

Expand Down

0 comments on commit 6b858c0

Please sign in to comment.