Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

InSpec add support for BigQuery Dataset #104

Merged
merged 1 commit into from
Feb 8, 2019
Merged

Conversation

modular-magician
Copy link
Owner

Signed-off-by: Modular Magician <magic-modules@google.com>
@@ -0,0 +1,53 @@
# frozen_string_literal: false
Copy link
Collaborator

Choose a reason for hiding this comment

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

I looked through inspec-gcp and there's currently 48 of these property files (51 after this commit).

Do these need to be separate files? It might be easier to parse (and no require logic!) just to inline these directly into the controls. The property files aren't shared between resources (they're namespaced separately), so there's no real gain to having them as separate files that I can see.

Copy link
Collaborator

Choose a reason for hiding this comment

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

They don't need to be separate files. I have a personal preference for having a single class in a file, but there is no technical reason they have to be separate. Do you believe it would make it easier to consolidate these within the resource?

I think it could be overwhelming on some of the larger, more nested resources.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I personally think it would be easier to manage the InSpec codebase at scale with just controls, as opposed to controls + property files.

If you think it'll be quick (and you have time), maybe mock something up so we can see what it'll look like?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Refactor of nested object structure happening in next PR due to unrelated namespacing issues, can explore there.

@slevenick slevenick merged commit e12467d into master Feb 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants