Cloudflare Tunnel: Hide Cloudflare token from the process argument #2919
Labels
area:deployment
related to how uptime kuma can be deployed
feature-request
Request for new features to be added
security
🏷️ Feature Request Type
Other
🔖 Feature description
When I run uptime-kuma in a Docker container and set up Cloudflare tunnel, the token is exposed outside the container and any random process running on the host machine can get it in plaintext, for example with a simple
ps -aux
:This defeats the purpose of mechanisms such as Docker secrets, Kubernetes Secrets etc.., and I suppose the Cloudflare token should be treated as sensitive data because it effectively controls what's hosted on the website.
So in this feature request, I suggest to consider a different method to pass the token to cloudflared.
✔️ Solution
Environment variables are currently the recommended best practice in Docker(?), so this could be used to invoke cloudflared:
env TUNNEL_TOKEN=token_goes_here cloudflared tunnel run
The token is no longer exposed in the process list:
❓ Alternatives
Use a config file, it's apparently possible but I haven't looked into it.
Or keep things as is, if the current situation does not present a problem?
📝 Additional Context
No response
The text was updated successfully, but these errors were encountered: