Skip to content
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

Feat/gpg agent forwarding #599

Merged
merged 30 commits into from
Oct 27, 2023
Merged

Conversation

89luca89
Copy link
Contributor

@89luca89 89luca89 commented Aug 9, 2023

This PR Will

  • migrate to our ssh server library github.com/loft-sh/ssh
  • add reverse-forward-ports to ssh command
  • add gpg-agent-forwarding to up command

Before merging I'd like to have feedbacks from non-linux users, as I've been able to test this only on a series of linux machines

Fixes #580
Resolves ENG-1809

@89luca89 89luca89 marked this pull request as draft August 9, 2023 13:58
@89luca89 89luca89 force-pushed the feat/gpg_agent_forwarding branch from 176e7cd to 6357fbe Compare August 9, 2023 14:30
cmd/up.go Outdated Show resolved Hide resolved
cmd/up.go Outdated Show resolved Hide resolved
cmd/up.go Outdated Show resolved Hide resolved
pkg/ssh/forward.go Outdated Show resolved Hide resolved
pkg/ssh/forward.go Outdated Show resolved Hide resolved
@89luca89 89luca89 requested a review from FabianKramm August 10, 2023 11:57
@89luca89 89luca89 force-pushed the feat/gpg_agent_forwarding branch 9 times, most recently from 5d28694 to 3c98f78 Compare August 11, 2023 11:37
@89luca89 89luca89 marked this pull request as ready for review August 11, 2023 13:15
@89luca89
Copy link
Contributor Author

Tested working on Macos also 👍

pkg/ssh/forward.go Outdated Show resolved Hide resolved
pkg/ssh/forward.go Show resolved Hide resolved
cmd/ssh.go Outdated Show resolved Hide resolved
cmd/ssh.go Outdated Show resolved Hide resolved
cmd/ssh.go Outdated Show resolved Hide resolved
cmd/ssh.go Outdated Show resolved Hide resolved
cmd/ssh.go Show resolved Hide resolved
cmd/agent/workspace/setup_gpg.go Show resolved Hide resolved
@89luca89 89luca89 requested a review from pbialon September 26, 2023 08:44
cmd/agent/workspace/setup_gpg.go Outdated Show resolved Hide resolved
cmd/ssh.go Outdated Show resolved Hide resolved
cmd/agent/workspace/setup_gpg.go Show resolved Hide resolved
cmd/ssh.go Outdated Show resolved Hide resolved
vendor/github.com/loft-sh/ssh/tcpip.go Show resolved Hide resolved
vendor/github.com/loft-sh/ssh/streamlocal.go Show resolved Hide resolved
vendor/github.com/loft-sh/ssh/streamlocal.go Show resolved Hide resolved
vendor/github.com/loft-sh/ssh/streamlocal.go Show resolved Hide resolved
vendor/github.com/loft-sh/ssh/streamlocal.go Show resolved Hide resolved
cmd/ssh.go Outdated Show resolved Hide resolved
pkg/ssh/forward.go Show resolved Hide resolved
cmd/ssh.go Show resolved Hide resolved
cmd/ssh.go Outdated Show resolved Hide resolved
cmd/ssh.go Outdated Show resolved Hide resolved
Copy link
Member

@FabianKramm FabianKramm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@89luca89 can we add a unit or e2e test for this? Since this is something thats default disabled and we have changes on the roadmap for the underlying ssh connection, we need to make sure those future changes are not breaking this

@89luca89
Copy link
Contributor Author

@89luca89 can we add a unit or e2e test for this? Since this is something thats default disabled and we have changes on the roadmap for the underlying ssh connection, we need to make sure those future changes are not breaking this

👍 sure thing

@FabianKramm
Copy link
Member

FabianKramm commented Oct 23, 2023

Besides that it looks good, but we need a rebase here, as soon as we have the test / rebased, we can merge. Also please make sure we squash this and don't merge 30 commits

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
@89luca89 89luca89 force-pushed the feat/gpg_agent_forwarding branch 11 times, most recently from 1c28f53 to 18edd1f Compare October 25, 2023 10:59
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
@89luca89 89luca89 force-pushed the feat/gpg_agent_forwarding branch from 18edd1f to 127db61 Compare October 25, 2023 11:09
@89luca89 89luca89 requested a review from FabianKramm October 25, 2023 11:51
@FabianKramm FabianKramm merged commit a94e5b4 into loft-sh:main Oct 27, 2023
3 checks passed
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.

Request: sync gpg signing keys in addition to git & docker credentials
4 participants