forked from data-dot-all/dataall
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
827 share verify and reapply fix (data-dot-all#1062)
### Feature or Bugfix <!-- please choose --> - Feature ### Detail - Add Ability to Verify Health Status of Share Requests - Add Ability to Re-apply share request processing if in an unhealthy state ### Relates - data-dot-all#827 ### Security Please answer the questions below briefly where applicable, or write `N/A`. Based on [OWASP 10](https://owasp.org/Top10/en/). - Does this PR introduce or modify any input fields or queries - this includes fetching data from storage outside the application (e.g. a database, an S3 bucket)? - Is the input sanitized? - What precautions are you taking before deserializing the data you consume? - Is injection prevented by parametrizing queries? - Have you ensured no `eval` or similar functions are used? - Does this PR introduce any functionality or component that requires authorization? - How have you ensured it respects the existing AuthN/AuthZ mechanisms? - Are you logging failed auth attempts? - Are you using or adding any cryptographic features? - Do you use a standard proven implementations? - Are the used keys controlled by the customer? Where are they stored? - Are you introducing any new policies/roles/users? - Have you used the least-privilege principle? How? ### Pending TODO - [x] ECS Scheduled Task to Verify Shares - [x] Write Unit Tests - [x] Add Verify On Dataset Level for All Shared Items in Associated Share Objects ### Things to Consider - ECS Scheduled Task to be Weekly (default) - Open to discussion on if weekly is the best default schedule or if a different time range is better - Alternatively, can introducer a custom scheduler parameter in `config.json` - Currently shareitem health columns (`healthStatus`, `healthMessage`, `lastVerifiedTimestamp`) are a part of the same `share_object_item` table - makes it very easy to get the latest health of each share item - Take a look at the comment on [Issue 827](data-dot-all#827 (comment)) for more information about the lifecycle of these health columns / how they are updated - Alternatively, could create a new `share_object_item_health` table that tracks every verify attempt and a column in `share_object_item` to point to the primary key of the record in `share_object_item_health` with the latest health information (updated for each verification run) - would persist each verification run for auditability / traceability By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: dlpzx <[email protected]> Co-authored-by: Anushka Singh <[email protected]> Co-authored-by: mourya-33 <[email protected]> Co-authored-by: Tejas Rajopadhye <[email protected]> Co-authored-by: trajopadhye <[email protected]> Co-authored-by: Zilvinas Saltys <[email protected]> Co-authored-by: Mourya Darivemula <[email protected]> Co-authored-by: Sofia Sazonova <[email protected]> Co-authored-by: Sofia Sazonova <[email protected]> Co-authored-by: Balint David <[email protected]> Co-authored-by: Petros Kalos <[email protected]>
- Loading branch information
1 parent
7aef3ad
commit 45943a9
Showing
47 changed files
with
4,062 additions
and
1,899 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
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
Oops, something went wrong.