fix: normalizeUri SigV4 trailing slash + cleanup debug logs
Deploy FileDrop / deploy (push) Successful in 35s
Deploy FileDrop / deploy (push) Successful in 35s
This commit is contained in:
@@ -152,7 +152,6 @@ export const handleS3Request = async (
|
|||||||
const method = req.method;
|
const method = req.method;
|
||||||
const url = new URL(req.url);
|
const url = new URL(req.url);
|
||||||
const pathname = url.pathname;
|
const pathname = url.pathname;
|
||||||
if (pathname !== '/') console.error('S3_REQ:' + method + ' ' + pathname);
|
|
||||||
const { bucket, key } = virtualHostBucket
|
const { bucket, key } = virtualHostBucket
|
||||||
? {
|
? {
|
||||||
bucket: virtualHostBucket,
|
bucket: virtualHostBucket,
|
||||||
|
|||||||
@@ -329,7 +329,6 @@ export const verifySignature = async (
|
|||||||
const expectedSignature = await hmacHex(signingKey, stringToSign);
|
const expectedSignature = await hmacHex(signingKey, stringToSign);
|
||||||
|
|
||||||
if (!timingSafeCompare(expectedSignature, parsed.signature)) {
|
if (!timingSafeCompare(expectedSignature, parsed.signature)) {
|
||||||
console.error(`SIG: uri=${canonicalUri} signed=${parsed.signedHeaders}`);
|
|
||||||
return { isValid: false, credential: null, errorCode: 'SignatureDoesNotMatch' };
|
return { isValid: false, credential: null, errorCode: 'SignatureDoesNotMatch' };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user