diff options
| author | Mario Minardi <mario@tailscale.com> | 2025-07-14 12:54:31 -0600 |
|---|---|---|
| committer | Mario Minardi <mario@tailscale.com> | 2025-07-14 12:54:31 -0600 |
| commit | 9f25b7dcca37b141724c28439044e58d5f10f847 (patch) | |
| tree | 8ddbb89b70024af55dd1472977d58d94e53c5d7e | |
| parent | fc5050048ee9c71dcdeb232d3a38f068072f489f (diff) | |
| download | tailscale-mpminardi/policy-debugging.tar.xz tailscale-mpminardi/policy-debugging.zip | |
Temp for debuggingmpminardi/policy-debugging
Signed-off-by: Mario Minardi <mario@tailscale.com>
| -rw-r--r-- | ssh/tailssh/tailssh.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ssh/tailssh/tailssh.go b/ssh/tailssh/tailssh.go index b249a1063..2c0f7804b 100644 --- a/ssh/tailssh/tailssh.go +++ b/ssh/tailssh/tailssh.go @@ -620,6 +620,9 @@ func (c *conn) evaluatePolicy() (_ *tailcfg.SSHAction, localUser string, acceptE if !ok { return nil, "", nil, noPolicy } + polJSON, _ := json.Marshal(pol) + fmt.Println("evaluatePolicy: ", string(polJSON)) + return c.evalSSHPolicy(pol) } |
