Allow nodes to use SSH agent forwarding (#2145)
This commit is contained in:
parent
f3fca8302a
commit
07b596d3cc
|
@ -3,6 +3,7 @@
|
||||||
## Next
|
## Next
|
||||||
|
|
||||||
- Improved compatibilty of built-in DERP server with clients connecting over WebSocket.
|
- Improved compatibilty of built-in DERP server with clients connecting over WebSocket.
|
||||||
|
- Allow nodes to use SSH agent forwarding [#2145](https://github.com/juanfont/headscale/pull/2145)
|
||||||
|
|
||||||
## 0.23.0 (2024-09-18)
|
## 0.23.0 (2024-09-18)
|
||||||
|
|
||||||
|
|
|
@ -292,7 +292,7 @@ func (pol *ACLPolicy) CompileSSHPolicy(
|
||||||
Reject: false,
|
Reject: false,
|
||||||
Accept: true,
|
Accept: true,
|
||||||
SessionDuration: 0,
|
SessionDuration: 0,
|
||||||
AllowAgentForwarding: false,
|
AllowAgentForwarding: true,
|
||||||
HoldAndDelegate: "",
|
HoldAndDelegate: "",
|
||||||
AllowLocalPortForwarding: true,
|
AllowLocalPortForwarding: true,
|
||||||
}
|
}
|
||||||
|
@ -401,7 +401,7 @@ func sshCheckAction(duration string) (*tailcfg.SSHAction, error) {
|
||||||
Reject: false,
|
Reject: false,
|
||||||
Accept: true,
|
Accept: true,
|
||||||
SessionDuration: sessionLength,
|
SessionDuration: sessionLength,
|
||||||
AllowAgentForwarding: false,
|
AllowAgentForwarding: true,
|
||||||
HoldAndDelegate: "",
|
HoldAndDelegate: "",
|
||||||
AllowLocalPortForwarding: true,
|
AllowLocalPortForwarding: true,
|
||||||
}, nil
|
}, nil
|
||||||
|
|
|
@ -3323,7 +3323,7 @@ func TestSSHRules(t *testing.T) {
|
||||||
SSHUsers: map[string]string{
|
SSHUsers: map[string]string{
|
||||||
"autogroup:nonroot": "=",
|
"autogroup:nonroot": "=",
|
||||||
},
|
},
|
||||||
Action: &tailcfg.SSHAction{Accept: true, AllowLocalPortForwarding: true},
|
Action: &tailcfg.SSHAction{Accept: true, AllowAgentForwarding: true, AllowLocalPortForwarding: true},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SSHUsers: map[string]string{
|
SSHUsers: map[string]string{
|
||||||
|
@ -3334,7 +3334,7 @@ func TestSSHRules(t *testing.T) {
|
||||||
Any: true,
|
Any: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Action: &tailcfg.SSHAction{Accept: true, AllowLocalPortForwarding: true},
|
Action: &tailcfg.SSHAction{Accept: true, AllowAgentForwarding: true, AllowLocalPortForwarding: true},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Principals: []*tailcfg.SSHPrincipal{
|
Principals: []*tailcfg.SSHPrincipal{
|
||||||
|
@ -3345,7 +3345,7 @@ func TestSSHRules(t *testing.T) {
|
||||||
SSHUsers: map[string]string{
|
SSHUsers: map[string]string{
|
||||||
"autogroup:nonroot": "=",
|
"autogroup:nonroot": "=",
|
||||||
},
|
},
|
||||||
Action: &tailcfg.SSHAction{Accept: true, AllowLocalPortForwarding: true},
|
Action: &tailcfg.SSHAction{Accept: true, AllowAgentForwarding: true, AllowLocalPortForwarding: true},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SSHUsers: map[string]string{
|
SSHUsers: map[string]string{
|
||||||
|
@ -3356,7 +3356,7 @@ func TestSSHRules(t *testing.T) {
|
||||||
Any: true,
|
Any: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Action: &tailcfg.SSHAction{Accept: true, AllowLocalPortForwarding: true},
|
Action: &tailcfg.SSHAction{Accept: true, AllowAgentForwarding: true, AllowLocalPortForwarding: true},
|
||||||
},
|
},
|
||||||
}},
|
}},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue