concourse / concourse-chart

Helm chart to install Concourse
Apache License 2.0
145 stars 176 forks source link

Add securityContext to concourse-web initContainer #331

Closed funkypenguin closed 11 months ago

funkypenguin commented 1 year ago

Signed-off-by: David Young davidy@funkypenguin.co.nz

Existing Issue

Fixes # .

Why do we need this PR?

In the concourse-web pod, the primary container supports a user-configurable securityContext. However, the "migration" initContainer does not, which causes automated security assessement tools (in my case, Fairwinds Polaris) to fail the entire pod.

Changes proposed in this pull request

This PR simply adds the same securityContext used for the concourse-web primary containier, to the migration initContainer

Contributor Checklist

Reviewer Checklist

This section is intended for the core maintainers only, to track review progress. Please do not fill out this section.

  • [ ] Code reviewed
  • [ ] Topgun tests run
  • [ ] Back-port if needed
  • [ ] Is the correct branch targeted? (master or dev)