-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
61c964b
to
7af9e7b
Compare
7af9e7b
to
360dcc3
Compare
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
7795a30
to
11b2423
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @arlimus
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 usingmondoo.space
connects to the currently configured spacemondoo.space.assets
enumerates assets in the spaceNote: This provider will be experimental for a bit, while we shape out its resources schema.