Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GD-9068: Security improvements #97

Merged
merged 11 commits into from
May 20, 2024

Conversation

mihailradkov
Copy link
Contributor

GDB-9068: Update the admin user default details

  • Added security.admin for configuring the username and/or the password of the administrator user
  • Added security.users for inserting additional users into the default initial user.js configuration

GDB-9440: Add resource limits for all containers

  • Added default resource limits and requests for all init containers and provisioning jobs

GDB-9437: Enabled the Security Context by default

  • Enabled security context by default for all pods and containers
  • Added initContainerDataPermissions and proxy.initContainerDataPermissions for changing permissions in the storage volumes if needed
  • Updated the chart to require Kubernetes version 1.26+

Added configurations for extra PVC templates

  • Added extraVolumeClaimTemplates and proxy.extraVolumeClaimTemplates

Added support for emptyDir persistence

  • Moved persistence.volumeClaimTemplateSpec to persistence.volumeClaimTemplate.spec
  • Added persistence.emptyDir and proxy.persistence.emptyDir configurations for an emptyDir volume that will be used when the persistence is disabled
  • Added configurations for extra labels and annotations for all persistent volume claim templates: persistence.volumeClaimTemplate, proxy.persistence.volumeClaimTemplate  and import.volumeMount.volumeClaimTemplate

Additionally

  • Moved initContainers declaration to be before the actual containers in the pod
  • Set image digest by default
  • Enabled PodDisruptionBudget by default

- Added `security.admin` for configuring the username and/or the password of the administrator user
- Added `security.users` for inserting additional users into the default initial user.js configuration
Added default resource limits and requests for all init containers and provisioning jobs
- Enabled security context by default for all pods and containers
- Added `initContainerDataPermissions` and `proxy.initContainerDataPermissions` for changing permissions in the storage volumes if needed
- Updated the chart to require Kubernetes version 1.26+
- Added `extraVolumeClaimTemplates` and `proxy.extraVolumeClaimTemplates`
- Moved `persistence.volumeClaimTemplateSpec` to `persistence.volumeClaimTemplate.spec`
- Added `persistence.emptyDir` and `proxy.persistence.emptyDir` configurations for an
  emptyDir volume that will be used when the persistence is disabled
- Added configurations for extra `labels` and `annotations` for all persistent volume claim
  templates: `persistence.volumeClaimTemplate`, `proxy.persistence.volumeClaimTemplate`
  and `import.volumeMount.volumeClaimTemplate`
@mihailradkov mihailradkov requested a review from yaskoo May 15, 2024 07:07
values.yaml Outdated Show resolved Hide resolved
templates/graphdb/statefulset.yaml Outdated Show resolved Hide resolved
templates/proxy/statefulset.yaml Outdated Show resolved Hide resolved
values.yaml Show resolved Hide resolved
values.yaml Outdated Show resolved Hide resolved
@mihailradkov mihailradkov force-pushed the GDB-9068-security-improvements branch from 621d9f0 to 7794feb Compare May 20, 2024 05:33
@mihailradkov mihailradkov merged commit 55926c3 into GDB-9425-version-11 May 20, 2024
@mihailradkov mihailradkov deleted the GDB-9068-security-improvements branch May 20, 2024 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants