cloudflare / cloudflare/cloudflared

💡Use `TUNNEL_TOKEN` for systemd service so that TOKEN is not visible on `ps`

Open
#1,237 0 comments 1 reaction 0 assignees View on GitHub
Priority: Normal Type: Feature Request
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.