Skip to content

Commit 3fbd8d7

Browse files
committed
fix(kms): assert redacted backend diagnostics
1 parent d63454a commit 3fbd8d7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

dstack/kms/auth-eth-bun/index.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,9 @@ describe('API Compatibility Tests', () => {
323323
expect(data.isAllowed).toBe(false);
324324
expect(data.reason).toBe('authorization backend unavailable');
325325

326-
// Verify that console.error was called for real errors
327-
expect(consoleSpy).toHaveBeenCalledWith('error in KMS boot auth:', expect.any(Error));
326+
// Diagnostics identify the failing boundary without retaining backend details.
327+
expect(consoleSpy).toHaveBeenCalledWith('KMS authorization backend failed');
328+
expect(JSON.stringify(consoleSpy.mock.calls)).not.toContain('real error');
328329

329330
consoleSpy.mockRestore();
330331
});

0 commit comments

Comments
 (0)