Skip to content

Commit

Permalink
Merge pull request #24 from eth-cscs/chart-update
Browse files Browse the repository at this point in the history
Update chart with security recommendations
  • Loading branch information
rsarm authored Aug 7, 2024
2 parents 2c76823 + 2bc517a commit d5c82f1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ apiVersion: v2
name: f7t4jhub
description: A Helm chart to Deploy JupyterHub with the FirecREST Spawner
type: application
version: 0.8.0
version: 0.8.1
appVersion: "4.1.5"
dependencies:
- name: f7t4jhub
version: 0.8.0
version: 0.8.1
repository: "file://./f7t4jhub"
- name: reloader
version: v1.0.51
Expand Down
2 changes: 1 addition & 1 deletion chart/f7t4jhub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: f7t4jhub
description: A Helm chart to Deploy JupyterHub with the FirecREST Spawner
type: application
version: 0.8.0
version: 0.8.1
appVersion: "4.1.5"
2 changes: 2 additions & 0 deletions chart/f7t4jhub/templates/deployment-hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ spec:
- name: hub
image: {{ .Values.hub.image }}
imagePullPolicy: Always
securityContext:
readOnlyRootFilesystem: true
command:
- "/bin/bash"
- "-c"
Expand Down
2 changes: 2 additions & 0 deletions chart/f7t4jhub/templates/deployment-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
- name: proxy
image: {{ .Values.proxy.image }}
imagePullPolicy: Always
securityContext:
readOnlyRootFilesystem: true
command:
- "configurable-http-proxy"
- "--ip=0.0.0.0"
Expand Down
4 changes: 4 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ reloader:
# Set to true to create a new service account for the reloader. If false, it will use an existing one.
create: false

# Ensures the reloader container's filesystem is mounted as read-only to enhance security.
securityContext:
readOnlyRootFilesystem: true

f7t4jhub:
setup:
# URL for the Firecrest service (replace with your own Firecrest URL)
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN . /opt/conda/bin/activate && \

RUN . /opt/conda/bin/activate && \
conda activate $__CONDA_ENV__ && \
pip install --no-cache jupyterhub==4.1.5 pyfirecrest==2.1.0 SQLAlchemy==1.4.52 oauthenticator==16.0.7
pip install --no-cache jupyterhub==4.1.5 pyfirecrest==2.1.0 SQLAlchemy==1.4.52 oauthenticator==16.3.1

COPY . firecrestspawner
RUN . /opt/conda/bin/activate && \
Expand Down
2 changes: 1 addition & 1 deletion requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytest==7.4.2
pytest_httpserver==1.0.10
werkzeug==3.0.1
werkzeug==3.0.3
pytest-asyncio==0.23.7
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jupyterhub==4.1.5
pyfirecrest==2.1.0
SQLAlchemy==1.4.52
oauthenticator==16.0.7
oauthenticator==16.3.1

0 comments on commit d5c82f1

Please sign in to comment.