@vizamodo/aws-sts-core 0.3.49 → 0.3.50
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/dist/sts/issue.js +10 -1
- package/package.json +1 -1
package/dist/sts/issue.js
CHANGED
|
@@ -133,6 +133,10 @@ async function fetchCredentials(input) {
|
|
|
133
133
|
"X-Amz-X509": normalizedCert,
|
|
134
134
|
"Authorization": `${ALGORITHM} Credential=${certSerialDec}/${credentialScope}, SignedHeaders=${signedHeaders}, Signature=${signatureHex}`,
|
|
135
135
|
});
|
|
136
|
+
// 🔍 DEBUG signing output (temporary)
|
|
137
|
+
console.debug("[aws-debug] canonicalRequest", canonicalRequest);
|
|
138
|
+
console.debug("[aws-debug] stringToSign", stringToSign);
|
|
139
|
+
console.debug("[aws-debug] authorization", finalHeaders.get("Authorization"));
|
|
136
140
|
let res;
|
|
137
141
|
try {
|
|
138
142
|
res = await fetch(`https://${host}${PATH}`, {
|
|
@@ -146,7 +150,12 @@ async function fetchCredentials(input) {
|
|
|
146
150
|
throw new InternalError("aws_unreachable");
|
|
147
151
|
}
|
|
148
152
|
if (!res.ok) {
|
|
149
|
-
|
|
153
|
+
const text = await res.text().catch(() => "<no-body>");
|
|
154
|
+
console.error("[aws-rejected]", {
|
|
155
|
+
status: res.status,
|
|
156
|
+
body: text,
|
|
157
|
+
region,
|
|
158
|
+
});
|
|
150
159
|
throw new InternalError("aws_rejected");
|
|
151
160
|
}
|
|
152
161
|
const json = await res.json();
|