querysub 0.566.0 → 0.567.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/appSecrets.ts +1 -1
- package/package.json +1 -1
package/appSecrets.ts
CHANGED
|
@@ -24,7 +24,7 @@ export const getCloudflareCreds = lazy(async (): Promise<{ key: string; email: s
|
|
|
24
24
|
/** Serves the secret keys sliftutils' getSecret expects, reading them the way querysub already does: backblaze creds off disk (getBackblazePath), cloudflare creds from the keys archives bucket (with its local file fallback). */
|
|
25
25
|
export async function getAppSecret(key: string): Promise<string | undefined> {
|
|
26
26
|
// Import query sub so our logs go to our actual log server. Otherwise we won't know if we get any errors.
|
|
27
|
-
|
|
27
|
+
Querysub;
|
|
28
28
|
if (key.startsWith("backblaze.json.")) {
|
|
29
29
|
let creds = JSON.parse(fs.readFileSync(getBackblazePath(), "utf8")) as { applicationKeyId?: string; applicationKey?: string };
|
|
30
30
|
if (key === "backblaze.json.applicationKeyId") return creds.applicationKeyId;
|