Skip to content

[RFE] Better OpenShift Support #1575

Closed
Closed
@RyuunoAelia

Description

@RyuunoAelia

What is the motivation or use case for the change?
Right now, the documentation of the operator states that to run the operator on openshift you need to create a new SCC. The yaml of that SCC states that it applies to every single authenticated user (so serviceaccounts on any namespace). This will relax (arguable only a little bit) SCC for ALL namespaces on the whole cluster, which is not great if you mind security.

Describe the solution you'd like
A better approach would be to be able to run the operator without that SCC.
As far as images go, it should not be that hard for PostgreSQL. The official docker/library image added the possibility to run as an arbitrary UID while back with docker-library/postgres#448

Then you would need to make the spec.securityContext.fsGroup optional in the pods created by the operator.
Please tell us about your environment:

  • Operating System: any
  • Where is this running: anywhere
  • Storage being used: any (except hostPath)
  • Container Image Tag: any
  • PostgreSQL Version: any
  • Platform: OpenShift
  • Platform Version: OpenShift 3.11/4.x (OKD or OCP)

Additional context
I can probably help (reads write a PR) with the docker images.

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