Skip to content

feat(remote): add remote.auth to use HTTP Header - #2976

Draft
vmaerten wants to merge 2 commits into
mainfrom
feat/remote-auth-headers
Draft

feat(remote): add remote.auth to use HTTP Header#2976
vmaerten wants to merge 2 commits into
mainfrom
feat/remote-auth-headers

Conversation

@vmaerten

Copy link
Copy Markdown
Member

No description provided.

…askfiles

Authenticating a remote Taskfile so far meant putting the credential in the
include URL, where it leaks into error messages and the confirmation prompt.
`remote.auth` configures free-form headers per host instead, so the URL stays
safe to commit. Values may reference environment variables with ${VAR}.

The headers are injected by a RoundTripper rather than set on the request:
that covers the HEAD probe RemoteExists issues before the GET, and keeps a
cross-host redirect from carrying the credentials. They are resolved when the
request is about to be made, so a cached or offline run does not require a
token it will never send.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant