Prepare verified laboratory 7 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:32:06 +03:00
parent 20afc2c790
commit eb1b5c7b84
677 changed files with 208256 additions and 64 deletions
+9
View File
@@ -0,0 +1,9 @@
import { createHash } from "node:crypto";
export function workerACL(password: string) {
const hash = createHash("sha256").update(password).digest("hex");
return `user worker on #${hash} ~attachment-jobs &* -@all +ping +hello +client|setinfo +xgroup|create +xreadgroup +xautoclaim +xack +xdel +xlen +xinfo|stream +xpending`;
}
export function publisherACL(password: string) {
const hash = createHash("sha256").update(password).digest("hex");
return `user publisher on #${hash} ~attachment-jobs &* -@all +ping +hello +client|setinfo +xadd`;
}