summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2025-02-04 14:20:06 -0600
committerNick Khyl <1761190+nickkhyl@users.noreply.github.com>2025-02-04 14:36:01 -0600
commit00fe8845b1e2f4ef5dedfe5989812d8beddfb1f9 (patch)
tree47bb6d403b3383aeac8c8cbb53cb363abf6792c2 /control/controlhttp/controlhttpserver/controlhttpserver.go
parent5ef934b62d1a8a4c81e4b167c36c9b8c7dd46463 (diff)
downloadtailscale-00fe8845b1e2f4ef5dedfe5989812d8beddfb1f9.tar.xz
tailscale-00fe8845b1e2f4ef5dedfe5989812d8beddfb1f9.zip
ipn/{ipnauth,ipnlocal,ipnserver}: move the AlwaysOn policy check from ipnserver to ipnauth
In this PR, we move the code that checks the AlwaysOn policy from ipnserver.actor to ipnauth. It is intended to be used by ipnauth.Actor implementations, and we temporarily make it exported while these implementations reside in ipnserver and in corp. We'll unexport it later. We also update [ipnauth.Actor.CheckProfileAccess] to accept an auditLogger, which is called to write details about the action to the audit log when required by the policy, and update LocalBackend.EditPrefsAs to use an auditLogger that writes to the regular backend log. Updates tailscale/corp#26146 Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions