(arr)
| 728 | This authenticates a remote purely by the secret token — independent of |
| 729 | tailnet identity — so a remote reaching us over Tailscale node-sharing or |
| 730 | Funnel (a separate tailnet) can still push a file to our inbox. The token |
| 731 | grants exactly one thing: POST /api/mesh/files/push. Constant-time compared. |
| 732 | """ |
| 733 | import hmac |
| 734 | auth = request.headers.get('Authorization', '') |
| 735 | if not auth.startswith('Bearer '): |
| 736 | return False |
| 737 | presented = auth[7:].strip() |
| 738 | if not presented: |
no outgoing calls
no test coverage detected