feat: add garage tooling

This commit is contained in:
2026-08-30 18:51:19 +07:00 Unverified
parent 716246659c
commit 7f1d445981
7 changed files with 139 additions and 5 deletions
+2 -2
View File
@@ -225,7 +225,7 @@ async function reconcileKeys(
}
}
async function readKeyEnvironment(
export async function getS3Credentials(
claim: S3Claim,
): Promise<Record<string, string>> {
const deadline = Date.now() + SECRET_WAIT_TIMEOUT_MS;
@@ -297,7 +297,7 @@ export async function reconcileS3Claims(
const environmentsByKey = new Map<string, Record<string, string>>();
for (const claim of claims) {
if (environmentsByKey.has(claim.key)) continue;
environmentsByKey.set(claim.key, await readKeyEnvironment(claim));
environmentsByKey.set(claim.key, await getS3Credentials(claim));
}
return Object.fromEntries(