Update security context to allow frontend pod to start #6

Merged
konrad merged 2 commits from r1cebank/helm-chart:main into main 2023-05-04 21:39:43 +00:00
Contributor

Changes:

  • Updated the pod security context for frontend to run as nginx user
  • Updated documentation with correct database type for postgresql
Changes: * Updated the pod security context for frontend to run as nginx user * Updated documentation with correct database type for postgresql
r1cebank added 1 commit 2023-04-30 17:15:36 +00:00
continuous-integration/drone/pr Build is passing Details
29190213e5
update security context to allow frontend pod to start
Owner

@vlasov-y can you take a look?

@vlasov-y can you take a look?
Owner
Relevant forum discussion: https://community.vikunja.io/t/helm-chart-frontend-pod-does-not-start-because-of-permission-issues-in-raspberry-pie-4-k3s/1286/15
Member

@vlasov-y can you take a look?

will review, sure.

> @vlasov-y can you take a look? will review, sure.
vlasov-y requested review from vlasov-y 2023-05-02 09:36:39 +00:00
vlasov-y requested changes 2023-05-02 09:38:49 +00:00
@ -62,3 +62,3 @@
database:
# Use PostgreSQL database anyway
type: postgresql
type: postgres
Member

According to this documentation paragraph , it has to be postgres, not postgresql. @konrad which value is corrent one?

According to [this](https://vikunja.io/docs/config-options/#type) documentation paragraph , it has to be `postgres`, not `postgresql`. @konrad which value is corrent one?
Owner

postgres is correct.

`postgres` is correct.
Member

Okay, then this line is to be reverted @r1cebank

Okay, then this line is to be reverted @r1cebank
Author
Contributor

postgres is the correct value, if i use postgresql the api will fail to start saying unknown database type. why it needs to be reverted?

the current documentation is using 'postgresql' which is incorrect, thats why I made the update to correct it

postgres is the correct value, if i use postgresql the api will fail to start saying unknown database type. why it needs to be reverted? the current documentation is using 'postgresql' which is incorrect, thats why I made the update to correct it
Member

Aaa, you are right :) I somewhy misunderstood the diff and thought that you change postgres to postgresql XD Sorry

Aaa, you are right :) I somewhy misunderstood the diff and thought that you change `postgres` to `postgresql` XD Sorry
Author
Contributor

Haha no worries, I was a bit confused thought I missed something 🤣

Haha no worries, I was a bit confused thought I missed something 🤣
vlasov-y marked this conversation as resolved
values.yaml Outdated
@ -40,2 +40,4 @@
securityContext:
allowPrivilegeEscalation: true
runAsUser: 101 #nginx
Member

Change #nginx to # nginx please

Change `#nginx` to `# nginx` please
r1cebank marked this conversation as resolved
Member

@r1cebank I have tried deploy frontend with values below and it works nice. I do not see a reason to set allowPrivilegeEscalation=true

  securityContext:
    allowPrivilegeEscalation: false
    runAsUser: 101
    capabilities:
      drop:
      - ALL
      add:
      - NET_BIND_SERVICE
@r1cebank I have tried deploy frontend with values below and it works nice. I do not see a reason to set allowPrivilegeEscalation=true ```yaml securityContext: allowPrivilegeEscalation: false runAsUser: 101 capabilities: drop: - ALL add: - NET_BIND_SERVICE ```
r1cebank requested review from vlasov-y 2023-05-02 16:12:50 +00:00
r1cebank added 1 commit 2023-05-02 16:14:11 +00:00
continuous-integration/drone/pr Build is passing Details
a74e546e5d
Address comments
Member

Now it looks good to me @r1cebank 😃
Approving

FYI @konrad

Now it looks good to me @r1cebank 😃 Approving FYI @konrad
vlasov-y approved these changes 2023-05-03 07:32:43 +00:00
konrad merged commit f9b22567c9 into main 2023-05-04 21:39:43 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/helm-chart#6
No description provided.