-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #579 from unchainedshop/obfusicate-private-data
Remove private information from log
- Loading branch information
Showing
34 changed files
with
227 additions
and
142 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: 'Worker' | ||
description: Configure the Worker Module | ||
--- | ||
|
||
- blacklistedVariables: `Array<string>` provide a custom list of blacklisted variables, keys which are part of the blacklist will be obfuscated with `*****` in Work Queue API's and when publishing Events. | ||
|
||
Example custom configuration: | ||
|
||
``` | ||
const options = { | ||
modules: { | ||
worker: { | ||
blacklistedVariables: ['secret-key'] | ||
}, | ||
} | ||
}; | ||
``` | ||
|
||
By default those variables are filtered: | ||
- `password`, | ||
- `plainPassword`, | ||
- `newPlainPassword`, | ||
- `oldPlainPassword`, | ||
- `authorization`, | ||
- `secret`, | ||
- `accesskey`, | ||
- `accesstoken`, | ||
- `token` |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export type { Event } from './db/EventsCollection.js'; | ||
|
||
export { configureEventsModule } from './module/configureEventsModule.js'; |
4 changes: 2 additions & 2 deletions
4
packages/core-events/src/module/configureEventHistoryAdapter.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
export enum WorkerEventTypes { | ||
ADDED = 'added', | ||
ALLOCATED = 'allocated', | ||
DONE = 'done', | ||
FINISHED = 'finished', | ||
DELETED = 'deleted', | ||
RESCHEDULED = 'rescheduled', | ||
ADDED = 'WORK_ADDED', | ||
ALLOCATED = 'WORK_ALLOCATED', | ||
DONE = 'WORK_DONE', | ||
FINISHED = 'WORK_FINISHED', | ||
DELETED = 'WORK_DELETED', | ||
RESCHEDULED = 'WORK_RESCHEDULED', | ||
} | ||
|
||
// The difference between `done` and `finished` is, that work is `done` after | ||
// it was computed (no DB write, could be external) and `finished` after | ||
// the changes are written to the DB |
Oops, something went wrong.