Skip to main content

max / makenotwork

962 B · 22 lines History Blame Raw
1 # ops-agent config for the Mac build host (mbp).
2 #
3 # The agent listens ONLY on the tailnet interface and authorizes every request
4 # by resolving the caller via `tailscale whois`, then running the step under
5 # `caller-grant ∩ this-host-grant`. Copy to ~/.config/ops-agent/config.toml.
6
7 # Bind the tailnet address (not 0.0.0.0) so the agent is unreachable off-tailnet.
8 # Replace with mbp's actual tailnet IP. 8765 mirrors the ACL example.
9 listen = "100.64.0.2:8765"
10
11 # What THIS host is allowed to do — the ceiling for every caller. The Mac signs.
12 [grant]
13 actuate = ["build", "sign", "notarize", "staple", "package"]
14 observe = ["build-log"]
15
16 # Callers this agent trusts. `identity` is a tailnet node name (e.g. `fw13`) or a
17 # tag (e.g. `tag:builder`). The effective grant is this list ∩ [grant] above.
18 [[allow]]
19 identity = "fw13" # the Sando/Bento daemon host
20 actuate = ["build", "sign", "notarize", "staple", "package"]
21 observe = ["build-log"]
22