pganalyze / collector

pganalyze statistics collector for gathering PostgreSQL metrics and log data

Home Page:https://pganalyze.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Additional security settings for pganalyze collector

jawnsy opened this issue · comments

We've been using these settings successfully for quite some time, so I thought I'd contribute these upstream if it's of interest to you.

Container volumes/security context:

          volumeMounts:
            - mountPath: /tmp
              name: scratch
              subPath: tmp
          securityContext:
            allowPrivilegeEscalation: false
            capabilities:
              drop:
                - ALL
            readOnlyRootFilesystem: true
            runAsGroup: 1000
            runAsNonRoot: true
            runAsUser: 1000
            seccompProfile:
              type: RuntimeDefault

Pod security context:

      securityContext:
        runAsGroup: 65532
        runAsNonRoot: true
        runAsUser: 65532
        seccompProfile:
          type: RuntimeDefault
      volumes:
        - name: scratch
          emptyDir: {}
      enableServiceLinks: false

@jawnsy Thanks - those seem useful! Would your idea be to add them to Helm chart?

Yup, exactly. Happy to open a pull request!

@jawnsy Sounds good!