Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

925 datasets auto approval #988

Merged

Conversation

SofiaSazonova
Copy link
Contributor

Feature or Bugfix

  • Feature

Detail

  • AutoApprove property was added to UI and API
  • If it is True, then the sharing request is approved right after submission

Relates

#925

Security

Please answer the questions below briefly where applicable, or write N/A. Based on
OWASP 10.

  • 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)? Yes
    • Is the input sanitized? No
    • What precautions are you taking before deserializing the data you consume? Default deserialiser is used
    • Is injection prevented by parametrizing queries? YES
    • Have you ensured no eval or similar functions are used? N/A
  • Does this PR introduce any functionality or component that requires authorization? No
    • 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? No
    • 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? No
    • Have you used the least-privilege principle? How?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Sofia Sazonova and others added 6 commits January 16, 2024 14:08
@noah-paige noah-paige linked an issue Jan 19, 2024 that may be closed by this pull request
@noah-paige
Copy link
Contributor

One thought - do we want to expose the value of autoApprove flag somewhere on the dataset overview

@SofiaSazonova
Copy link
Contributor Author

One thought - do we want to expose the value of autoApprove flag somewhere on the dataset overview

I thought about it. From my POV auto-approval is close to confidentiality. But it seems that confidentiality is not exposed anywhere in views. Happy to discuss

@noah-paige
Copy link
Contributor

noah-paige commented Jan 22, 2024

One thought - do we want to expose the value of autoApprove flag somewhere on the dataset overview

I thought about it. From my POV auto-approval is close to confidentiality. But it seems that confidentiality is not exposed anywhere in views. Happy to discuss

I think we do expose confidentiality as Classification in the Dataset Overview Tab under the Governance & Classification Card

I think we can also expose autoApprove values for the dataset in the same Card

UPDATE: Finished testing and everything working as expected! I am inclined to expose autoApprove value in dataall/frontend/src/modules/Datasets/components/DatasetGovernance.js but open to other ides if people think differently - from there can approve and merge

@noah-paige
Copy link
Contributor

noah-paige commented Jan 22, 2024

Tested in AWS:

  • CICD Pipeline Succeeds

With an existing dataset:

  • Create Share Request
  • Approve Share Request
  • Revoke Share and Update Dataset to AutoApprove True
  • Create Share and Auto Approved

With a new dataset:

  • Create Dataset with AutoApprove False
  • Create Share Request
  • Approve Share Request

With an imported dataset

  • Create Dataset with AutoApprove True
  • Create Share Request and Auto Approved

@SofiaSazonova
Copy link
Contributor Author

One thought - do we want to expose the value of autoApprove flag somewhere on the dataset overview

I thought about it. From my POV auto-approval is close to confidentiality. But it seems that confidentiality is not exposed anywhere in views. Happy to discuss

I think we do expose confidentiality as Classification in the Dataset Overview Tab under the Governance & Classification Card

I think we can also expose autoApprove values for the dataset in the same Card

UPDATE: Finished testing and everything working as expected! I am inclined to expose autoApprove value in dataall/frontend/src/modules/Datasets/components/DatasetGovernance.js but open to other ides if people think differently - from there can approve and merge

Done

@noah-paige
Copy link
Contributor

noah-paige commented Jan 23, 2024

Verified - showing Auto-Approval flags part of Dataset Overview now

Copy link
Contributor

@noah-paige noah-paige left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Approving

@noah-paige noah-paige merged commit 5e14fef into data-dot-all:main Jan 23, 2024
8 checks passed
@SofiaSazonova SofiaSazonova deleted the 925-datasets-auto-approval branch October 3, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-approval for datasets
2 participants