update default and example

This commit is contained in:
Jay Wren
2026-03-12 15:13:22 -04:00
parent 5870094e48
commit f7e4f05c3d
2 changed files with 10 additions and 1 deletions

View File

@@ -204,6 +204,12 @@ punchy:
# Trusted SSH CA public keys. These are the public keys of the CAs that are allowed to sign SSH keys for access.
#trusted_cas:
#- "ssh public key string"
# sandbox_dir restricts file paths for profiling commands (start-cpu-profile, save-heap-profile,
# save-mutex-profile) to the specified directory. Relative paths will be resolved within this directory,
# and absolute paths outside of it will be rejected. Default is /var/tmp/nebula-debug.
# The directory is NOT automatically created.
# Overriding this to "" is the same as "/" and will allow overwriting any path on the host.
#sandbox_dir: /var/tmp/nebula-debug
# EXPERIMENTAL: relay support for networks that can't establish direct connections.
relay:

5
ssh.go
View File

@@ -189,7 +189,10 @@ func configSSH(l *logrus.Logger, ssh *sshd.SSHServer, c *config.C) (func(), erro
}
func attachCommands(l *logrus.Logger, c *config.C, ssh *sshd.SSHServer, f *Interface) {
sandboxDir := c.GetString("sshd.sandbox_dir", "")
// sandboxDir defaults to a dir in temp. The intention is that end user will
// create this dir as needed. Overriding this config value to "" allows
// writing to anywhere in the system.
sandboxDir := c.GetString("sshd.sandbox_dir", "/var/tmp/nebula-debug")
ssh.RegisterCommand(&sshd.Command{
Name: "list-hostmap",