nds-org / ndslabs

Main repository for the National Data Service Labs initiative.
http://www.nationaldataservice.org
BSD 3-Clause "New" or "Revised" License
8 stars 9 forks source link

Fix handling for defaultPath="/", configure apiserver loglevel at runtime #372

Closed bodom0015 closed 2 years ago

bodom0015 commented 2 years ago

Issues found during migration / testing of the TERRA-REF Workbench

A feature was added in ~2017 to mount the user's entire PVC into their workbench app (defaultPath = "/") eventually, defaultPath maps down to subPath in the Kubernetes volume spec

Sometime in ~2018, a vulnerability was discovered in Kubernetes that required subPath to be a relative path for security reasons. I suspect this this has been missed for so long because it is a unique edge case.

See https://opensource.ncsa.illinois.edu/jira/browse/NDS-970 See https://kubernetes.io/blog/2018/04/04/fixing-subpath-volume-vulnerability/