Add a content security policy and expire mailed export links.
Responses had no CSP, the 48-hour download token never changed, and short share slugs could be guessed without a miss limit.
This commit is contained in:
1 parent
0fe2624002
commit
75649a9a42
18 files changed
+249
-19
No files matched your search
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "PublishedRule" ADD COLUMN "exportTokenVersion" INTEGER NOT NULL DEFAULT 0;
|
||||
@@ -101,6 +101,9 @@ model PublishedRule {
|
||||
/// Set when the 48-hour print follow-up has been sent, or when a Rule
|
||||
/// finished more than seven days before this mail existed and will not be sent.
|
||||
followUpEmailSentAt DateTime?
|
||||
/// Bumped when a share link is turned off or a reader is removed so mailed
|
||||
/// export links stop working.
|
||||
exportTokenVersion Int @default(0)
|
||||
|
||||
stakeholders RuleStakeholder[]
|
||||
uploads Upload[]
|
||||
|
||||
Reference in new issue
Block a user