Hello,
I am currently trying to setup my restic backup so that it can upload the backup to my home server via cloudflare tunnels.
In order to do so, I need to use Cloudflare Service Tokens ( Service tokens · Cloudflare Zero Trust docs ). However, I don’t see an option to add the token as a header to the restic command.
Is there any way to do this with restic or resticprofile?
You’ll have to provide a few more details to give us a chance to help. What backend are you even trying to use?
Hi, sorry for not providing enough information.
I am using rest since this is what I am running on my home server (the one behind cloudflare tunnels).
I would like to keep it this way, but theoretically I can change it to whatever is needed.
Currently only basic auth and TLS client certs are supported on the restic side. Please add your use case to Allow sending custom HTTP headers for backup to rest server · Issue #5439 · restic/restic · GitHub .
@Ancient77 I wanted the same thing, so here it is. GitHub - Casada94/restic: Fast, secure, efficient backup program · GitHub I dont currently plan to get it pushed upstream but I do plan on keeping it relative up to date
Small caution if you use a fork for this: for a backup tool I would pin the exact build and test a full restore before trusting it, especially when auth/header handling is changed. If you want to stay close to upstream today, the safer options still look like basic auth or mTLS in front of rest-server, or adding the use case to the upstream custom-headers issue.