mirror of
https://github.com/Nezumi-2711/google-drive-s3.git
synced 2026-09-22 05:31:47 +00:00
Improve security
This commit is contained in:
+2
-1
@@ -14,6 +14,7 @@ const ENV = {
|
||||
GOOGLE_REFRESH_TOKEN: "test-refresh-token",
|
||||
AUTH_KV: createMockKV(),
|
||||
FOLDER_CACHE: createMockKV(),
|
||||
ALLOWED_BUCKETS: "test-bucket,empty-bucket,my-bucket",
|
||||
};
|
||||
|
||||
const CTX = {
|
||||
@@ -222,7 +223,7 @@ describe("S3 API Server with Google Drive Backend", () => {
|
||||
|
||||
const command = new GetObjectCommand({
|
||||
Bucket: "my-bucket",
|
||||
Key: "test.png",
|
||||
Key: "my-bucket/test.png",
|
||||
});
|
||||
|
||||
const url = await getSignedUrl(s3, command, { expiresIn: 3600 });
|
||||
|
||||
Reference in New Issue
Block a user