Merge pull request #21681 from overleaf/jpa-back-fill-file-hash

[history-v1] add script for back filling hash into project file-tree

GitOrigin-RevId: 70ab8c72f3eea1062708e4471b4ad1c60317ad26
This commit is contained in:
Jakob Ackermann
2024-11-15 15:45:04 +01:00
committed by Copybot
parent 2de0cf7c14
commit cf2591c95d
22 changed files with 2363 additions and 12 deletions
@@ -201,6 +201,7 @@ class PerProjectEncryptedS3Persistor extends S3Persistor {
// Do not overwrite any objects if already created
ifNoneMatch: '*',
ssecOptions: await this.#getCurrentKeyEncryptionKey(projectFolder),
contentLength: 32,
}
)
return new SSECOptions(dataEncryptionKey)
@@ -404,6 +405,7 @@ class CachedPerProjectEncryptedS3Persistor {
* @param {Object} opts
* @param {string} [opts.contentType]
* @param {string} [opts.contentEncoding]
* @param {number} [opts.contentLength]
* @param {'*'} [opts.ifNoneMatch]
* @param {SSECOptions} [opts.ssecOptions]
* @param {string} [opts.sourceMd5]