updats
This commit is contained in:
@@ -1331,7 +1331,7 @@ export async function getSecretValueViaAlibabaCloudInstanceIdentity(
|
|||||||
mode?: AlibabaCloudInstanceIdentityMode,
|
mode?: AlibabaCloudInstanceIdentityMode,
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
const pkcs7 = await fetchAlibabaCloudInstanceIdentityV1(
|
const pkcs7 = await fetchAlibabaCloudInstanceIdentityV1(
|
||||||
"hatter.ink",
|
"hatter.ink:/secret/get.json",
|
||||||
mode,
|
mode,
|
||||||
);
|
);
|
||||||
const httpSecretResponse = await fetchDataWithTimeout(
|
const httpSecretResponse = await fetchDataWithTimeout(
|
||||||
@@ -1409,7 +1409,7 @@ export async function assumeRoleByKeyViaAlibabaCloudInstanceIdentity(
|
|||||||
mode?: AlibabaCloudInstanceIdentityMode,
|
mode?: AlibabaCloudInstanceIdentityMode,
|
||||||
): Promise<StsToken> {
|
): Promise<StsToken> {
|
||||||
const pkcs7 = await fetchAlibabaCloudInstanceIdentityV1(
|
const pkcs7 = await fetchAlibabaCloudInstanceIdentityV1(
|
||||||
"/cloud/alibaba_cloud/assume_role_by_key.json",
|
"hatter.ink:/cloud/alibaba_cloud/assume_role_by_key.json",
|
||||||
mode,
|
mode,
|
||||||
);
|
);
|
||||||
const httpAssumeRoleResponse = await fetchDataWithTimeout(
|
const httpAssumeRoleResponse = await fetchDataWithTimeout(
|
||||||
|
|||||||
@@ -163,11 +163,11 @@
|
|||||||
"openclaw-secret.ts": {
|
"openclaw-secret.ts": {
|
||||||
"script_name": "openclaw-secret.ts",
|
"script_name": "openclaw-secret.ts",
|
||||||
"script_length": 2750,
|
"script_length": 2750,
|
||||||
"script_sha256": "c43de9ceccac25bf3dbdb2a9e88dadeb3b0d1ea2ff5d365183041338ec9cebde",
|
"script_sha256": "3c78adfd56c5121106b28c2a7f013415ad59e44423bbc1a55f5e6b4277272b3a",
|
||||||
"script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/openclaw-secret.ts",
|
"script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/openclaw-secret.ts",
|
||||||
"single_script_file": true,
|
"single_script_file": true,
|
||||||
"publish_time": 1772860170553,
|
"publish_time": 1772860170553,
|
||||||
"update_time": 1773496786102
|
"update_time": 1773499265096
|
||||||
},
|
},
|
||||||
"post-note.ts": {
|
"post-note.ts": {
|
||||||
"script_name": "post-note.ts",
|
"script_name": "post-note.ts",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
getSecretValue,
|
getSecretValue,
|
||||||
log,
|
log,
|
||||||
stdinToArrayBuffer,
|
stdinToArrayBuffer,
|
||||||
} from "https://script.hatter.ink/@55/deno-commons-mod.ts";
|
} from "https://script.hatter.ink/@59/deno-commons-mod.ts";
|
||||||
import {parseArgs} from "jsr:@std/cli/parse-args";
|
import {parseArgs} from "jsr:@std/cli/parse-args";
|
||||||
|
|
||||||
// specification: https://docs.openclaw.ai/gateway/secrets
|
// specification: https://docs.openclaw.ai/gateway/secrets
|
||||||
|
|||||||
Reference in New Issue
Block a user