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

⭐ add the mondoo provider (experimental) #4460

Merged
merged 3 commits into from
Jul 31, 2024
Merged

Conversation

arlimus
Copy link
Member

@arlimus arlimus commented Jul 31, 2024

Start a provider that interacts with the Mondoo service. Yes, this is a separate provider, since a lot of these concepts are in a separate domain (e.g. we don't need to understand orgs and spaces in cnquery/cnspec). This keeps the project nice and open source while also showing how to work with other upstream APIs.

To use, make sure you have credentials configured in your config to interact with the Mondoo service API.

> cnquery shell mondoo

This gives access to a few resources (would love to know what else we can add!)

  • mondoo.agent to inspect the current agent you are using
  • mondoo.space connects to the currently configured space
  • mondoo.space.assets enumerates assets in the space

Note: This provider will be experimental for a bit, while we shape out its resources schema.

@arlimus arlimus force-pushed the dom/mondoo-provider branch 2 times, most recently from 61c964b to 7af9e7b Compare July 31, 2024 12:02
Copy link
Contributor

github-actions bot commented Jul 31, 2024

Test Results

3 080 tests  ±0   3 079 ✅ ±0   1m 26s ⏱️ -1s
  370 suites +6       1 💤 ±0 
   28 files   +1       0 ❌ ±0 

Results for commit 11b2423. ± Comparison against base commit bcd79f5.

♻️ This comment has been updated with latest results.

@arlimus arlimus force-pushed the dom/mondoo-provider branch from 7af9e7b to 360dcc3 Compare July 31, 2024 12:17
@arlimus arlimus changed the title ⭐ add the mondoo provider ⭐ add the mondoo provider (experimental) Jul 31, 2024
Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Great addition @arlimus

"go.mondoo.com/mondoo-go"
)

func (m *mqlMondooSpace) assets() ([]any, error) {
Copy link
Member

Choose a reason for hiding this comment

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

In future version we may be able to combine that with the logic with have for terraform https://github.com/mondoohq/terraform-provider-mondoo/blob/main/internal/provider/gql.go

providers/mondoo/resources/mondoo.lr.manifest.yaml Outdated Show resolved Hide resolved
providers/mondoo/resources/mondoo.lr.manifest.yaml Outdated Show resolved Hide resolved
providers/mondoo/resources/mondoo.lr.manifest.yaml Outdated Show resolved Hide resolved
providers/mondoo/resources/mondoo.lr.manifest.yaml Outdated Show resolved Hide resolved
providers/mondoo/resources/mondoo.lr.manifest.yaml Outdated Show resolved Hide resolved

This comment has been minimized.

@chris-rock chris-rock force-pushed the dom/mondoo-provider branch from 7795a30 to 11b2423 Compare July 31, 2024 12:41
Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Thank you @arlimus

@chris-rock chris-rock merged commit fce45b0 into main Jul 31, 2024
15 checks passed
@chris-rock chris-rock deleted the dom/mondoo-provider branch July 31, 2024 12:45
@github-actions github-actions bot locked and limited conversation to collaborators Jul 31, 2024
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.

2 participants