BigQuery Dataset should not be anonymously or publicly accessible
Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel,
n'hésitez pas à nous contacter.
Description
It is recommended that the IAM policy on BigQuery datasets does not allow anonymous or public access.
Rationale
Granting permissions to allUsers
or allAuthenticatedUsers
allows any user access to the dataset. Such access might not be desirable if sensitive data is being stored in the dataset. Therefore, ensure that anonymous or public access to a dataset is not allowed.
Impact
The dataset is publicly accessible. Explicit modification of IAM privileges would be necessary to make them publicly accessible.
- Go to BigQuery by visiting: https://console.cloud.google.com/bigquery.
- Select the dataset from Resources.
- Click Sharing near the right side of the window and select Permissions.
- Review each attached role.
- Click the delete icon for each member
allUsers
or allAuthenticatedUsers
. On
the popup, click Remove.
From Google Cloud Console
List the name of all datasets.
Retrieve each dataset details using the following command:
bq show --format=prettyjson PROJECT_ID:DATASET_NAME > PATH_TO_FILE
In the access section of the JSON file, update the dataset information to remove all
roles containing allUsers
or allAuthenticatedUsers
.
bq update --source PATH_TO_FILE PROJECT_ID:DATASET_NAME
References
- https://cloud.google.com/bigquery/docs/control-access-to-resources-iam