aboutsummaryrefslogtreecommitdiffstats
path: root/lib/delegator.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-25 22:30:35 -0700
committerAdam Soltys <[email protected]>2026-08-25 22:30:35 -0700
commitbe1f54473273a97d5201948433a53216da26398f (patch)
tree69efeb04022c3c1e8ddcadd3a79e48fd2faef542 /lib/delegator.ts
parent13d906b4239e7520359df76943dece656e10e240 (diff)
downloadcoinos-server-be1f54473273a97d5201948433a53216da26398f.tar.gz
coinos-server-be1f54473273a97d5201948433a53216da26398f.zip
login: fail-open recaptcha verify on infrastructure errors
verifyRecaptcha failed closed on ANY error from the Google siteverify call, so a transient coinos<->Google network blip (or a Google slowdown) turned every non-admin login into a "failed captcha" 401 until connectivity recovered — a self-inflicted login outage from an external dependency. Distinguish a real verdict from an infrastructure failure: fail CLOSED only on a genuine success:false from Google; on a thrown error (network, timeout, 5xx) fail OPEN and log it. Reaching Google is not part of authentication — the password and the per-IP login rate limits still gate the request, and captcha is only bot-mitigation, so allowing a login through when the verifier is unreachable is the safer failure mode. Also bound the call with a 6s timeout so a slow verifier can't hang the login. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01XiwgmQKwKnRxUmVDd4xSf7
Diffstat (limited to 'lib/delegator.ts')
0 files changed, 0 insertions, 0 deletions
ormat' href='/coinos-ui.git/commit/doc/i18n.md?h=fee-slider&id=f6ff5156b66efbb51ba046e37de65b466585124a'>f6ff5156 ^
dcea0fdc ^
9849f6c4 ^
68e85acd ^
2c10b8f1 ^



c31388c1 ^
2c10b8f1 ^


c31388c1 ^
2c10b8f1 ^


f4dead26 ^
2c10b8f1 ^






c26e004f ^
2c10b8f1 ^


f6ff5156 ^
68e85acd ^








c31388c1 ^
68e85acd ^



2c10b8f1 ^
68e85acd ^









2c10b8f1 ^

f6ff5156 ^
68e85acd ^
c31388c1 ^
5cbe3e13 ^
ac08a7c8 ^
d2582a22 ^
ac08a7c8 ^















d2582a22 ^

ac08a7c8 ^


5cbe3e13 ^
68e85acd ^

f6ff5156 ^
68e85acd ^

c31388c1 ^
68e85acd ^

c31388c1 ^
68e85acd ^
f6ff5156 ^
2c10b8f1 ^


c26e004f ^


2c10b8f1 ^
c26e004f ^
2c10b8f1 ^
d9ef1034 ^
b74882b7 ^
46e33eb5 ^
c26e004f ^
2c10b8f1 ^
68e85acd ^
f6ff5156 ^
2c10b8f1 ^



c26e004f ^


2c10b8f1 ^



6e71d9bd ^
d9ef1034 ^
c31388c1 ^
2c10b8f1 ^

dcea0fdc ^


f6ff5156 ^

dcea0fdc ^


f6ff5156 ^
5cbe3e13 ^
c31388c1 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144