Skip to content

SecurityContext for Postgres Pods #1120

@BobyMCbobs

Description

@BobyMCbobs

Issue

Postgres shouldn't need to run as root in most cases and also doesn't need to have a writable filesystem.

What is the likelihood of running the Spilo and Pooler Pods with a Pod SecurityContext something like:

podSecurityContext:
  readOnlyRootFilesystem: true
  runAsUser: 101
  runAsGroup: 103
  allowPrivilegeEscalation: false

This will minimize on various risks of the Pod's lifecycle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions