Commit 6607254
fix(gateway): skip backend self-pairing for auth.mode=none on loopback
The cron rejection is actually in shouldSkipBackendSelfPairing, not
evaluateMissingDeviceIdentity. When auth.mode=none, authMethod is
"none" which matches neither token/password nor device-token, so the
backend self-pairing skip never triggers. The cron client provides
device identity, passes the device-identity gate, but then fails at
the pairing step with "pairing required".
Add usesNoAuth to the skip condition: when the gateway is explicitly
configured with no auth, its own backend services on loopback should
not require pairing. The isGatewayBackendClient + isLocalClient +
!hasBrowserOriginHeader guards are sufficient.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b26e669 commit 6607254
2 files changed
Lines changed: 30 additions & 1 deletion
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
127 | 150 | | |
128 | 151 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
84 | | - | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| |||
0 commit comments