Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:34c5ijp7d4 is past its budget: trevato/forge: "password doors share the sign-in windows > the terminal sign-in refuses the right password after the wi… #4397
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/4365-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 2 commits fork
1 file
changed +8
−1
test/signin-password-doors.test.ts +8 −1
| @@ -80,7 +80,14 @@ describe("password doors share the sign-in windows", () => { | ||
| 80 | 80 | const made = (await forge()).app; |
| 81 | 81 | const session = new Session(made, { sshUsername: "pat", remoteAddress: "203.0.113.9" }); |
| 82 | 82 | for (let i = 0; i < TRIES; i++) { |
| 83 | const wrong = await session.signIn("pat", `wrong-${i}`); | |
| 83 | // The hash gate is process-wide: a busy machine, or a hash another | |
| 84 | // suite left running, can turn a guess away unhashed (and uncounted). | |
| 85 | // That is not the window under test, so ask again until it is checked. | |
| 86 | let wrong = await session.signIn("pat", `wrong-${i}`); | |
| 87 | for (let again = 0; !wrong.ok && wrong.error === "throttled" && again < 50; again++) { | |
| 88 | await Bun.sleep(100); | |
| 89 | wrong = await session.signIn("pat", `wrong-${i}`); | |
| 90 | } | |
| 84 | 91 | expect(wrong.ok ? "signed in" : wrong.error).toBe("bad_credentials"); |
| 85 | 92 | } |
| 86 | 93 | const right = await session.signIn("pat", PASSWORD); |
new above
offline