git: support for token authentication#1533
Merged
tonistiigi merged 1 commit intomoby:masterfrom Jun 19, 2020
Merged
Conversation
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
chris-crone
approved these changes
Jun 18, 2020
| cmd.Env = []string{ | ||
| "PATH=" + os.Getenv("PATH"), | ||
| "GIT_TERMINAL_PROMPT=0", | ||
| // "GIT_TRACE=1", |
Collaborator
There was a problem hiding this comment.
nit: Remove commented env var.
Member
Author
There was a problem hiding this comment.
Left this in intentionally to show how to add more debug. Ideally, this would be configurable. Some places like this (eg. container logs and scheduler traces) are behind env vars but would prefer something more generic like GODEBUG
AkihiroSuda
approved these changes
Jun 19, 2020
This was referenced Jul 10, 2020
thaJeztah
added a commit
to thaJeztah/cli
that referenced
this pull request
Jul 28, 2020
full diff: moby/buildkit@df35e98...4d1f260 - moby/buildkit#1551 session: track sessions with a group construct - moby/buildkit#1534 secrets: allow providing secrets with env - moby/buildkit#1533 git: support for token authentication - moby/buildkit#1549 progressui: fix logs time formatting Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
thaJeztah
added a commit
to thaJeztah/cli
that referenced
this pull request
Jul 28, 2020
full diff: moby/buildkit@df35e98...4d1f260 - moby/buildkit#1551 session: track sessions with a group construct - moby/buildkit#1534 secrets: allow providing secrets with env - moby/buildkit#1533 git: support for token authentication - moby/buildkit#1549 progressui: fix logs time formatting Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
thaJeztah
added a commit
to thaJeztah/cli
that referenced
this pull request
Jul 28, 2020
full diff: moby/buildkit@df35e98...4d1f260 - moby/buildkit#1551 session: track sessions with a group construct - moby/buildkit#1534 secrets: allow providing secrets with env - moby/buildkit#1533 git: support for token authentication - moby/buildkit#1549 progressui: fix logs time formatting Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
thaJeztah
added a commit
to thaJeztah/cli
that referenced
this pull request
Sep 9, 2020
full diff: moby/buildkit@df35e98...4d1f260 - moby/buildkit#1551 session: track sessions with a group construct - moby/buildkit#1534 secrets: allow providing secrets with env - moby/buildkit#1533 git: support for token authentication - moby/buildkit#1549 progressui: fix logs time formatting Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
docker-jenkins
pushed a commit
to docker-archive/docker-ce
that referenced
this pull request
Sep 11, 2020
full diff: moby/buildkit@df35e98...4d1f260 - moby/buildkit#1551 session: track sessions with a group construct - moby/buildkit#1534 secrets: allow providing secrets with env - moby/buildkit#1533 git: support for token authentication - moby/buildkit#1549 progressui: fix logs time formatting Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 7edc00d8088795798ae4e82d2e529a9829acfe72 Component: cli
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow git to authorize with a http token. The value is pulled in with secrets. The secret names are configurable in LLB. Default names are
GIT_AUTH_HEADERandGIT_AUTH_HEADER.<host>for raw authorization header andGIT_AUTH_TOKENandGIT_AUTH_TOKEN.<host>for thex-access-tokenstyle basic auth value that github uses. Not sure if this is the best approach but want to make this simple to use for the default case. Could also add some hardcoded logic for common hosts like github/bitbucket.Signed-off-by: Tonis Tiigi tonistiigi@gmail.com