-
Notifications
You must be signed in to change notification settings - Fork 449
Support GIT_ASKPASS_URL callback #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9cae624
Add a new authentiate method GIT_SYNC_AUTH_URL.
cydu-cloud 67a0788
Rename to GIT_ASKPASS_URL and also update related examples.
cydu-cloud 6c6c354
update docs from auth-url to askpass-url
cydu-cloud 1f67515
fix docs link
cydu-cloud 34daaef
update some docs to retrigger the scan
cydu-cloud c57553a
fix docs
cydu-cloud 31f276d
fix comments
cydu-cloud b0bdc02
manually merge https://github.com/kubernetes/git-sync/pull/217
cydu-cloud d8d9ff7
add e2e test for askpasswd_url
cydu-cloud 27864c3
Merge branch 'master' into master
cydu-cloud 0b0f0a6
use random port for nc
cydu-cloud 0851cc5
use free port
cydu-cloud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Using an Http Auth URL with git-sync | ||
|
|
||
| ## Step 1: Create a GIT_ASKPASS HTTP Service | ||
|
|
||
| The GIT ASKPASS Service is exposed via HTTP and provide the answer to GIT_ASKPASS. | ||
|
|
||
| Example of the service's output, see more at <https://git-scm.com/docs/gitcredentials> | ||
|
|
||
| ``` | ||
| username=xxx@example.com | ||
| password=ya29.mysecret | ||
| ``` | ||
|
|
||
| ## Step 2: Configure git-sync container | ||
|
|
||
| In your git-sync container configuration, specify the GIT_ASKPASS_URL | ||
|
|
||
| The credentials will pass in plain text, make sure the connection between git-sync | ||
| and GIT ASKPASS Service are secure. | ||
|
|
||
| See askpass_url e2e test as an example. | ||
|
|
||
| ```yaml | ||
| name: "git-sync" | ||
| ... | ||
| env: | ||
| - name: "GIT_SYNC_REPO", | ||
| value: "https://source.developers.google.com/p/[GCP PROJECT ID]/r/[REPO NAME]" | ||
| - name: "GIT_ASKPASS_URL", | ||
| value: "http://localhost:9102/git_askpass", | ||
| ``` |
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.