Skip to content

Commit f0dd738

Browse files
authored
feat(release): set acls to private for new uploads MONGOSH-2124 (#2447)
This commit adjusts our uploads to the new bucket to be private. Access to these buckets will come via CDN only, so it is unnecessarily to set ACLs.
1 parent ab06baf commit f0dd738

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

packages/build/src/download-center/artifacts.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export async function uploadArtifactToDownloadCenterNew(
4141

4242
await dlcenter.uploadAsset(
4343
`${ARTIFACTS_FOLDER}/${path.basename(filePath)}`,
44-
fs.createReadStream(filePath)
44+
fs.createReadStream(filePath),
45+
{
46+
acl: 'private',
47+
}
4548
);
4649
}

packages/build/src/download-center/config.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ export async function createAndPublishDownloadCenterConfig(
149149

150150
await dlcenterArtifactsNew.uploadAsset(
151151
JSON_FEED_ARTIFACT_KEY,
152-
JSON.stringify(newJsonFeed, null, 2)
152+
JSON.stringify(newJsonFeed, null, 2),
153+
{
154+
acl: 'private',
155+
}
153156
);
154157
}
155158

@@ -193,7 +196,10 @@ export async function updateJsonFeedCTA(
193196
await dlcenterArtifacts.uploadAsset(JSON_FEED_ARTIFACT_KEY, patchedJsonFeed);
194197
await dlcenterArtifactsNew.uploadAsset(
195198
JSON_FEED_ARTIFACT_KEY,
196-
patchedJsonFeed
199+
patchedJsonFeed,
200+
{
201+
acl: 'private',
202+
}
197203
);
198204
}
199205

0 commit comments

Comments
 (0)