I’m working with JupyterHub and Enterprise Gateway, and I’m encountering an issue where the KERNEL_USERNAME for remote kernels is always set to jovyan, regardless of the user who logs in via JupyterHub. I would like to ensure that the kernel uses the actual JupyterHub username (e.g., even), not a fixed one like jovyan.
Additionally, I aim to use the “authorized_users” field in kernel.json to control which users are authorized to use this kernel. However, no matter how I set it up, the kernel always seems to default to the jovyan user
Has anyone faced a similar issue and found a solution to dynamically assign KERNEL_USERNAME based on the JupyterHub login user, while also successfully using the authorized_users feature in kernel.json?
Need to add KERNEL_USERNAME: "{username}" into singleuser field in JupyterHub configuration! This will ensure that the JupyterHub user is passed correctly to the remote kernel pods