data-dot-all / dataall

A modern data marketplace that makes collaboration among diverse users (like business, analysts and engineers) easier, increasing efficiency and agility in data projects on AWS.
https://data-dot-all.github.io/dataall/
Apache License 2.0
235 stars 82 forks source link

Add permissions on list datasets for env group + cosmetic S3 Datasets #1718

Closed dlpzx closed 18 hours ago

dlpzx commented 3 days ago

Feature or Bugfix

Detail

For the listS3DatasetsOwnedByEnvGroup API call this PR introduces a permission check to evaluate if the user has LIST_ENVIRONMENT_DATASETS in the environment and on top of that it checks that the input groupUri is one of the groups of the user performing the call.

Relates

Security

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

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