Skip to content

Exposing additional securityContext settings in parent values.yaml#3582

Merged
alles-klar merged 17 commits into
DefectDojo:devfrom
namloc2001:dev
Jan 18, 2021
Merged

Exposing additional securityContext settings in parent values.yaml#3582
alles-klar merged 17 commits into
DefectDojo:devfrom
namloc2001:dev

Conversation

@namloc2001

Copy link
Copy Markdown
Contributor

To enable postgresql to work with restricted SCC in OpenShift and setting some resource specifications too, to work with limit ranges.

Comment thread helm/defectdojo/values.yaml Outdated
@namloc2001

Copy link
Copy Markdown
Contributor Author

Wondering if any of you can please explain:

oc logs defect-dojo-defectdojo-celery-worker-78dbb86b48-2rxn2
uid=1000640000(1000640000) gid=0(root) groups=0(root),1000640000
Waiting for database to be reachable [06/Jan/2021 13:40:58] INFO [dojo.models:3474] enabling audit logging

[06/Jan/2021 13:41:00] INFO [dojo.models:3474] enabling audit logging
Running a worker with superuser privileges when the
worker accepts messages serialized with pickle is a very bad idea!

If you really want to continue then you have to set the C_FORCE_ROOT
environment variable (but please think about this before you do).

User information: uid=1000640000 euid=1000640000 gid=0 egid=0

I get this when running using OpenShift restricted SCC. I'm not sure where it thinks superuser privileges are coming from?

@alles-klar

Copy link
Copy Markdown
Contributor

Wondering if any of you can please explain:

oc logs defect-dojo-defectdojo-celery-worker-78dbb86b48-2rxn2
uid=1000640000(1000640000) gid=0(root) groups=0(root),1000640000
Waiting for database to be reachable [06/Jan/2021 13:40:58] INFO [dojo.models:3474] enabling audit logging

[06/Jan/2021 13:41:00] INFO [dojo.models:3474] enabling audit logging
Running a worker with superuser privileges when the
worker accepts messages serialized with pickle is a very bad idea!

If you really want to continue then you have to set the C_FORCE_ROOT
environment variable (but please think about this before you do).

User information: uid=1000640000 euid=1000640000 gid=0 egid=0

I get this when running using OpenShift restricted SCC. I'm not sure where it thinks superuser privileges are coming from?

I think it comes from gid=0 which means you belong to the root group. I have not yet found a good solution for it.

@madchap
madchap requested a review from ptrovatelli January 9, 2021 18:20
@namloc2001

namloc2001 commented Jan 16, 2021

Copy link
Copy Markdown
Contributor Author

@madchap @alles-klar @ptrovatelli regardless of the celery issue (which we have resolved in our environment by using the C_FORCE_ROOT env variable) can you please approve the other changes so that required configuration parameters for OpenShift are added to the chart?

As you can see, we have a separate ticket open to resolve the celery "superuser privilege" conversation (and I believe I've identified the bug).

@namloc2001

Copy link
Copy Markdown
Contributor Author

Added in the required rabbitmq KVs in values.yaml to utilise the podSecurityContext.enabled key added in Bitnami rabbitmq PR. This is needed to enable us to deploy to OpenShift via restricted SCC.

@madchap madchap left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am good with the PR. The Openshift specifics, I am not well versed into, but looks ok.

@alles-klar
alles-klar merged commit d33de33 into DefectDojo:dev Jan 18, 2021
@madchap madchap mentioned this pull request Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants