This folder holds the Cloudflare Tunnel credential for the public edge of an
ENV=prod image (apps/12-cloudflared.yaml and manifests/cloudflared/).
It is read-if-present. Without it, the cloudflared Deployment stays down
harmlessly and nothing else is affected. An ENV=test image prunes the
cloudflared app at build time and never consults this folder.
The Deployment supports ONE auth style today: the token tunnel.
-
Token tunnel. Put the dashboard-issued tunnel token in
tunnel-token(single line, no newline).hugmesh-go-live plan --provider cloudflare-tunnel --token-file FILEstores a copy at/etc/hugmesh/keys/cloudflared/tunnel-tokenon the node (--keys-dirchanges the base). No script reads this file. keys-provision does not touchcloudflared/, and nothing else copies it to Vault. An operator must store the token in Vault atsecret/<brand>/cloudflared, propertytunnel_token. Thecloudflared-tunnel-tokenExternalSecret turns it into theTUNNEL_TOKENenv the Deployment reads. -
Named tunnel + credentials.json (NOT wired). The ExternalSecret reads only
tunnel_token, nocredentials_jsonproperty exists, and the Deployment mounts only thecloudflared-configConfigMap. The commentedtunnel:/credentials-file:keys inmanifests/cloudflared/configmap.yamlare a placeholder for future work.
tunnel-token (SECRET — gitignored) the Cloudflare tunnel token
credentials.json (SECRET — gitignored) named-tunnel credentials (unused, see above)
tunnel-token.example committed placeholder showing the expected format
The repo .gitignore ignores keys-template/cloudflared/tunnel-token and
credentials.json. Only the .example placeholder is committed. NEVER commit a
real token.