Support N8N_RUNNERS_AUTH_TOKEN_FILE in n8nio/runners

The idea is:

The N8N_RUNNERS_AUTH_TOKEN_FILE environment variable should be supported for the n8nio/runners image in order to support docker/kubernetes secrets. This is supported in the main n8n image, but is useless if it is not also supported in the runner image.

For reference, I originally opened this as an bug on GitHub, but it was closed as a feature request and I was directed here instead: n8nio/runners does not support N8N_RUNNERS_AUTH_TOKEN_FILE · Issue #23709 · n8n-io/n8n · GitHub

My use case:

The following example should be able to work

services:
  n8n:
    image: n8nio/n8n:1.123.9
    ...

  task-runners:
    image: n8nio/runners:1.111.0
    container_name: n8n-runners
    secrets: [N8N_RUNNERS_AUTH_TOKEN]
    environment:
      - N8N_RUNNERS_TASK_BROKER_URI=http://n8n:5675
      - N8N_RUNNERS_AUTH_TOKEN_FILE=/run/secrets/N8N_RUNNERS_AUTH_TOKEN
    depends_on:
      - n8n

  db:
    ...  

secrets:
  N8N_RUNNERS_AUTH_TOKEN: { file: ./secrets/N8N_RUNNERS_AUTH_TOKEN }

I think it would be beneficial to add this because:

Support best practices for providing secrets in Kubernetes and Docker Compose

Any resources to support this?

Supported _FILE environment variables for the main image: Configuration methods | n8n Docs

Are you willing to work on this?

No, just bringing it up as an issue

+1 — Having _FILE supported on the n8n side but not on the runners side breaks the Docker/K8s secrets workflow. This should be consistent between the two images.