cloudflared-mirror/cmd/cloudflared/cliutil
Gonçalo Garcia 372a4b7079 TUN-10292: Add cloudflared management token command
Create new management token command to support different resource
permissions (logs, admin, host_details). This fixes failing component
tests that need admin-level tokens to access management endpoints.

- Add ManagementResource enum values: Admin, HostDetails
- Create cmd/cloudflared/management package with token command
- Extract shared utilities to cliutil/management.go (GetManagementToken, CreateStderrLogger)
- Refactor tail/cmd.go to use shared utilities
- Update component tests to use new command with admin resource

Closes TUN-10292
2026-03-05 16:31:24 +00:00
..
build_info.go TUN-8630: Check checksum of downloaded binary to compare to current for auto-updating 2024-09-11 16:00:00 -07:00
deprecated.go TUN-5164: Update README and clean up references to Argo Tunnel (using Cloudflare Tunnel instead) 2021-09-29 08:27:47 +00:00
errors.go TUN-3715: Only read config file once, right before invoking the command 2021-03-16 17:22:13 -05:00
handler.go TUN-4359: Warn about unused keys in 'tunnel ingress validate' 2021-05-13 02:05:19 +01:00
logger.go TUN-9371: Add logging format as JSON 2025-06-16 21:25:13 +00:00
management.go TUN-10292: Add cloudflared management token command 2026-03-05 16:31:24 +00:00