Skip to content

Commit 0a9b111

Browse files
committed
Added re-encrypting S3 files in UI
1 parent aaa7389 commit 0a9b111

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webroot/adm/cloud-encryption-key.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ <h3>Operations</h3>
2323
<li><a href="#" id="doMeta">Get Metadata</a></li>
2424
<li><a href="#" id="doList">List Cloud Encryption Keys</a></li>
2525
<li><a href="#" id="doRotate">Rotate Cloud Encryption Keys</a></li>
26+
<li><a href="#" id="doEncrypt">Re-encrypt All S3 Files</a></li>
2627
</ul>
2728

2829
<br>
@@ -182,6 +183,10 @@ <h3>Output</h3>
182183
doApiCall("POST", "/api/cloud-encryption-key/rotate", "#standardOutput", "#errorOutput");
183184
doList();
184185
});
186+
187+
$("#doEncrypt").on("click", () => {
188+
doApiCall("POST", "/api/encrypted-files/syncNow", "#standardOutput", "#errorOutput");
189+
});
185190
});
186191
</script>
187192
</body>

0 commit comments

Comments
 (0)