-
Notifications
You must be signed in to change notification settings - Fork 153
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
Modified to use Git with PAT #4571
Merged
+157
−2
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
0ff6e9e
fix to read PAT settings from file
136ba0d
piped
9f46a5b
include PAT information in URL
59e710a
fix: modification of conditional branching
sZma5a 723ff96
fix: corrected error in error message
sZma5a 7f8fb16
fix: integration of mask function
529386a
fix: make validation test
8edb406
fix: function name
249f169
fix: rename function for validation PAT
0e1eb27
fix: fix test code as pointed out in the review
7cf87be
feat: add explan
4e69f72
fix: change required in documentation
sZma5a 882f671
fix: change return value
sZma5a 4e2eb55
fix: add test case
sZma5a 71cc28f
fix: fix test
sZma5a 077646a
fix: PipedGit struct to use password
sZma5a 42d59a0
fix to read PAT settings from file
63da02b
piped
9f16b6c
fix: integration of mask function
013c2d6
fix: make validation test
5540763
fix: function name
32691b0
fix: rename function for validation PAT
2d4e2a2
fix: fix test
sZma5a 6b2bb7a
fix: PipedGit struct to use password
sZma5a 00d7ac2
Fix Git authentication configuration
sZma5a e04a498
Update password authentication configuration
sZma5a e1b258e
Fix error variable name
sZma5a 7ac74e9
Fix rename password
sZma5a 43b09c5
Refactor includePasswordAuthRemote function
sZma5a 9c7df14
Update password authentication in clone test
sZma5a c7f5816
fix: delete PasswordAuth
5a29e38
fix: remove unused PasswordAuth field and refactor password authentic…
46567d7
Remove unnecessary print statement in Validate function
080c051
fix: fix code for rebase
2d562e6
fix: remove unused GitPasswordAuth configuration
6e268e3
feat: add password decoding for password in includePasswordRemote fun…
04b8f02
fix: refactor Git password authentication method
f371e09
fix: update password encoding in TestCloneUsingPassword
8378040
Update docs/content/en/docs-dev/user-guide/managing-piped/configurati…
sZma5a d2eaab3
Update pkg/config/piped.go
sZma5a 9130a30
[wip] delete password
3c9d5d2
[wip] not tested - change token to args from url
2f5906b
Fix commented out test case
sZma5a 9b9da4d
Refactor authentication in git client
sZma5a a93d94b
feat: add password decoding function and replace Password string
sZma5a 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 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 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 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 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 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first, thank you for investigating and the fix 🙏 I don't know such an option! It's so helpful 👍
noted: https://git-scm.com/docs/git-config#Documentation/git-config.txt-httpextraHeader
I tried the expected command with a private repo
git -c http.extraHeader="Authorization: Basic <base64 encoded value of username:password>" clone https://github.com/ffjlabo-playground/git-test.git
on mac.I encountered the behaviors written below. Does below also reproduce on your machine? Could you try it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry...
It worked when we looked into it before, but we will look into it again and verify.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Don't worry! I think this is a challenging. I'm so helpful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sZma5a ! Do you have any updates on the above? If you want some helps, feel free to ping me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ffjlabo
Sorry for the delay.
Regarding git, I was able to perform a clone using PAT in my environment with the following command.
In addition, the Golang code that was tested is shown below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked with the below command and succeeded in cloning the repository.
When I removed the
-n
option from echo as below, I got the same error with @ffjlabo.So, I think that @ffjlabo appended the
\n
to the password before encoding it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to be late 🙏
It's my fault, as Wrashi-san says. The command worked as expected.
Thank you!
BTW, there are some fixed points in this comment, so plz check it🙏
#4571 (review)