MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / writeMigratedSecrets

Function writeMigratedSecrets

apps/local/src/db/v1-v2-migration.ts:1343–1352  ·  view source on GitHub ↗
(input: {
  readonly fileValues: Record<string, string>;
  readonly keychainValues: ReadonlyArray<{ readonly id: string; readonly value: string }>;
})

Source from the content-addressed store, hash-verified

1341};
1342
1343const writeMigratedSecrets = async (input: {
1344 readonly fileValues: Record<string, string>;
1345 readonly keychainValues: ReadonlyArray<{ readonly id: string; readonly value: string }>;
1346}): Promise<void> => {
1347 const newKeychain = makeKeychainProvider(keychainBaseServiceName());
1348 for (const entry of input.keychainValues) {
1349 await Effect.runPromise(newKeychain.set!(entry.id as never, entry.value));
1350 }
1351 writeFlatAuthFile(resolveFileAuthPath(), input.fileValues);
1352};
1353
1354interface MigrationExpectedCounts {
1355 readonly integrations: number;

Callers 1

insertPlanFunction · 0.85

Calls 4

makeKeychainProviderFunction · 0.85
keychainBaseServiceNameFunction · 0.85
writeFlatAuthFileFunction · 0.85
resolveFileAuthPathFunction · 0.85

Tested by

no test coverage detected