Skip to content

Allow passing tunnel token via the file system. #645

Closed
@Cyb3r-Jak3

Description

@Cyb3r-Jak3

Describe the feature you'd like
I currently use named tunnels and run in docker containers. I would like to be able to use docker secrets with the containers. This is currently not possible because docker secrets are passed as a file and there is no way to read the file. It would be nice to be able to have --secret-file option, i.e. cloudflared tunnel run --token --secret-file or cloudflared tunnel run --token </path/to/token/file>.

Describe alternatives you've considered
Typically, you use cat in containers to read the files, but the rootless container does not have the cat executable so unable to use secrets that way

Additional context
Similar to #232.

I would be happy to work on this if it is something that is worth implementing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions