forked from mtusi2026/mtusi2026lab7
Prepare verified laboratory 7 implementation and evidence
This commit is contained in:
@@ -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`;
|
||||
}
|
||||
Reference in New Issue
Block a user