User specific configuration - env variables

Hi,
I was wondering if it is possible to set a user specific environment variables. I tried introducing kubernetes secret and then using it in the helm chart. What I hope to achieve is to have the value of MY_SECRET different for every user (users are represented by keys in the kubernetes-secret)

singleuser:
  extraEnv:
    MY_SECRET:
      valueFrom:
        secretKeyRef:
          name: kubernetes-secret
          key: $(JUPYTERHUB_USER)

However this doesn’t let me spawn any pods, I guess the cause is described in this issue Setting environment variables that depend on other environment variables using extraEnv · Issue #1255 · jupyterhub/zero-to-jupyterhub-k8s · GitHub. Since it is 4 years old, I was wondering if there is an easier way to set this up or do I have to go through the cmd modification way.

Cheers