cloudflare / cloudflare/cloudflared
💡Use `TUNNEL_TOKEN` for systemd service so that TOKEN is not visible on `ps`
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the feature you'd like**
Per title.
**Describe alternatives you've considered**
Are there any alternatives to solving this problem? If so, what was your experience with them?
**Additional context**
https://github.com/cloudflare/cloudflared/blob/f27418044ba359a17995166034d900c11aa50008/cmd/cloudflared/linux_service.go#L64
Can use `Environment=` directive.
Contributor guide
Research direction
Inspect cmd/cloudflared/linux_service.go around line 64, the entry point linked in the issue, and review how the systemd service is generated. Use the Environment= directive so the tunnel token is not exposed in the process arguments, then verify the resulting service behavior and that the token no longer appears in ps output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- devops, operating-systems
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100