-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(security events): add the session.destroy security event
Because: - we want to know when a user signs out of a session This commit: - adds the 'session.destroy' security event - updates the inactive account deletion script to query for the event
- Loading branch information
Showing
9 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
packages/db-migrations/databases/fxa/patches/patch-161-162.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SET NAMES utf8mb4 COLLATE utf8mb4_bin; | ||
|
||
CALL assertPatchLevel('161'); | ||
|
||
INSERT INTO securityEventNames(name) VALUES ('session.destroy'); | ||
|
||
UPDATE dbMetadata SET value = '162' WHERE name = 'schema-patch-level'; |
3 changes: 3 additions & 0 deletions
3
packages/db-migrations/databases/fxa/patches/patch-162-161.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- DELETE FROM securityEventNames WHERE name='session.destroy'; | ||
|
||
-- UPDATE dbMetadata SET value = '161' WHERE name = 'schema-patch-level'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"level": 161 | ||
"level": 162 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters