Node-Red & Docker Swarm secrets

Hi,
Is there a way to define secrets for a node-red service running on docker swarm, and access it from the editor?
I want to manage my passwords for a project that way, but I don't know how to configure it in a way I could access it from inside the editor.

Thanks