feat: add garage tooling
This commit is contained in:
+2
-2
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user