-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Raw socket forwarding #6003
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
Raw socket forwarding #6003
Conversation
b8722d2
to
abfefed
Compare
abfefed
to
ad589dd
Compare
This commit implements a new SSH provider in terms of ID and dialer functions and then implements the existing SSH provider using this. None of the SSH connection string parsing is updated to specifically support fraw mode. This will be handled in a follow-up commit. Signed-off-by: Brian Goff <[email protected]>
ad589dd
to
7b0eab6
Compare
Dialer func(context.Context) (net.Conn, error) | ||
} | ||
|
||
func newRawProvider(confs []rawConfig) (session.Attachable, error) { |
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.
If rawConfig
renamed to dialer as described in other comment then this can just be new SSHProvider
or newSocketProvider
.
1e36a0c
to
5944a97
Compare
In fraw mode it just does a raw proxy on the connection. There's no internal SSH agent or anything. Signed-off-by: Brian Goff <[email protected]>
This is not needed since we are not exporting the the underlying raw provider. Instead just convert the AgentConfig directly to a dialer. Signed-off-by: Brian Goff <[email protected]>
5944a97
to
c39de5e
Compare
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.
We might need to consider adding another entitlement for this in buildx bake
so, maybe instead of --allow ssh
, in case raw=true
then --allow socket
would be required.
No description provided.