feat: add encryptedKey column to Credential table for calendar integrations (#27154)
Adds encrypted credential storage using a new keyring system: - New `encryptedKey` column with AES-256-GCM encryption - Decryption in getCalendarsEvents with fallback to legacy `key` - buildCredentialCreateData service for credential creation - Phase 1: Google Calendar only, other integrations follow
This commit is contained in:
1 parent
80e4b1af1f
commit
fc9c26e8dd
36 files changed
+308
-34
No files matched your search
@@ -10,6 +10,7 @@ type MockCredential = {
|
||||
userId: number | null;
|
||||
user: { email: string; name: string | null } | null;
|
||||
key: { access_token: string };
|
||||
encryptedKey: string | null;
|
||||
invalid: boolean | null;
|
||||
teamId: number | null;
|
||||
team: { name: string } | null;
|
||||
@@ -28,6 +29,7 @@ const createMockCredential = (overrides: Partial<MockCredential> = {}): MockCred
|
||||
team: null,
|
||||
user: { email: "[email protected]", name: "Test User" },
|
||||
key: { access_token: "mock_token_123" },
|
||||
encryptedKey: null,
|
||||
delegationCredentialId: "delegation-123",
|
||||
appId: "google-calendar",
|
||||
invalid: false,
|
||||
|
||||
Reference in new issue
Block a user