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

Checking if the all the logging sink buckets is in Europe #432

Open
clintoncwolfe opened this issue Nov 21, 2022 · 0 comments
Open

Checking if the all the logging sink buckets is in Europe #432

clintoncwolfe opened this issue Nov 21, 2022 · 0 comments

Comments

@clintoncwolfe
Copy link
Contributor

@vb-git14 commented on Tue Aug 23 2022

Hi All,

I am new to inspec and am writing a few tests on for my Infra Compliance on GCP. There are a few cases that require combination of a few things like checking if the bucket used in the sink for cloud logging is regional and in Europe. I have been trying something in the below direction, but with little success:

control "ABC" do
impact 1.0
google_logging_project_sinks(project: "project").names.each do |sink_name|
describe google_logging_project_sink(project: "project", name: sink_name).where(destination: "storage.googleapis.com") do |destination_name|
describe google_storage_bucket(name: 'destinaation_name') do
its('location'){ should be_in ['EU'] }
end
end
end

Any help will be much appreciated.

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

No branches or pull requests

1 participant