Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckNoPublicAccess = rules.Register( rules.Rule{ AVDID: "AVD-GCP-0046", Provider: provider.GoogleProvider, Service: "bigquery", ShortCode: "no-public-access", Summary: "BigQuery datasets should only be accessible within the organisation", Impact: "Exposure of sensitive data to the public iniernet", Resolution: "Configure access permissions with higher granularity", Explanation: `Using 'allAuthenticatedUsers' provides any GCP user - even those outside of your organisation - access to your BigQuery dataset.`, Links: []string{}, Terraform: &rules.EngineMetadata{ GoodExamples: terraformNoPublicAccessGoodExamples, BadExamples: terraformNoPublicAccessBadExamples, Links: terraformNoPublicAccessLinks, RemediationMarkdown: terraformNoPublicAccessRemediationMarkdown, }, Severity: severity.Critical, }, func(s *state.State) (results rules.Results) { for _, dataset := range s.Google.BigQuery.Datasets { for _, grant := range dataset.AccessGrants { if grant.SpecialGroup.EqualTo(bigquery.SpecialGroupAllAuthenticatedUsers) { results.Add( "Dataset grants access to all authenticated GCP users.", grant.SpecialGroup, ) } else { results.AddPassed(&grant) } } } return }, )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.