Skip to content

Commit

Permalink
Update deps, make fmt, and pull in new mql
Browse files Browse the repository at this point in the history
A little bit of everything

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Jan 7, 2025
1 parent 13ee56d commit 67ed384
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 160 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ Azure Policy assignment
| scope | string | Policy scope |
| description | string | Policy description |
| enforcementMode | string | Policy enforcement Mode |
| parameters | dict | Policy parameters |
21 changes: 12 additions & 9 deletions docs/mql/resources/k8s-pack/k8s.node.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@ Kubernetes node

**Fields**

| ID | TYPE | DESCRIPTION |
| --------------- | ----------------- | ----------------------------------- |
| id | string | Mondoo ID for the Kubernetes object |
| uid | string | Kubernetes object UID |
| labels | map[string]string | Kubernetes labels |
| annotations | map[string]string | Kubernetes annotations |
| resourceVersion | string | Kubernetes resource version |
| name | string | Plural name of the resource |
| kind | string | Kubernetes object type |
| ID | TYPE | DESCRIPTION |
| --------------- | ----------------- | ------------------------------------ |
| id | string | Mondoo ID for the Kubernetes object |
| uid | string | Kubernetes object UID |
| labels | map[string]string | Kubernetes labels |
| annotations | map[string]string | Kubernetes annotations |
| resourceVersion | string | Kubernetes resource version |
| name | string | Plural name of the resource |
| kind | string | Kubernetes object type |
| created | time | Kubernetes object creation timestamp |
| nodeInfo | dict | Node configuration information |
| kubeletPort | int | Kubelet port |

**References**

Expand Down
16 changes: 9 additions & 7 deletions docs/mql/resources/network-pack/http.get.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ HTTP GET requests
**Init**

http.get(rawUrl string)
http.get(followRedirects bool)

**Fields**

| ID | TYPE | DESCRIPTION |
| ---------- | ----------------------------- | ---------------------------------------- |
| url | [url](url.md) | URL for this request |
| header | [http.header](http.header.md) | Header returned from this request |
| statusCode | int | Status returned from this request |
| version | string | Version of the HTTP request, (e.g., 1.1) |
| body | string | Body returned from this request |
| ID | TYPE | DESCRIPTION |
| --------------- | ----------------------------- | ---------------------------------------- |
| url | [url](url.md) | URL for this request |
| followRedirects | bool | Follow redirects |
| header | [http.header](http.header.md) | Header returned from this request |
| statusCode | int | Status returned from this request |
| version | string | Version of the HTTP request, (e.g., 1.1) |
| body | string | Body returned from this request |
18 changes: 9 additions & 9 deletions docs/platform/start/organize/workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Workspaces are ad hoc groups of assets you want to view together. You might have

Think of workspaces more as views rather than as structural divisions of your Mondoo organization. A single asset can be included in multiple workspaces.

For example, suppose your infrastructure includes an employee's macOS workstation, which has a *critical* risk rating. The workstation is in a single [space](/platform/start/organize/spaces), which is in a single [organization](/platform/start/organize/organizations). But it can appear in both a macOS devices workspace and a workspace that shows all critical assets.
For example, suppose your infrastructure includes an employee's macOS workstation, which has a _critical_ risk rating. The workstation is in a single [space](/platform/start/organize/spaces), which is in a single [organization](/platform/start/organize/organizations). But it can appear in both a macOS devices workspace and a workspace that shows all critical assets.

A space can contain an unlimited number of workspaces, and their purpose is entirely up to you. Their flexibility lets them meet your unique business needs.

Expand Down Expand Up @@ -44,12 +44,12 @@ You set up a workspace by defining qualifying conditions, attributes that assets

Mondoo currently supports these conditions for including assets in, or excluding assets from, a workspace:

| Condition | Example values |
|------------------|----------------------------------------------------------------------------------------------------------------------|
| Condition | Example values |
| ---------------- | --------------------------------------------------------------------------------------------------------------------- |
| Platform | Alpine Linux, Atlassian Jira, AWS S3 bucket, GitHub repository, Kubernetes pod, macOS, Slack team, Terraform plan ... |
| Platform version | 3, 4.5, 12.75 ... |
| Platform version | 3, 4.5, 12.75 ... |
| Risk rating | Critical, High, Medium, Low, None (fixed values) |
| Asset name | test, 2024, win, us-east-1, docker- ... |
| Asset name | test, 2024, win, us-east-1, docker- ... |

:::note

Expand Down Expand Up @@ -80,9 +80,9 @@ You can also combine conditions. These are examples of simple queries with multi
Mondoo workspaces support complex queries as well. For example, this query defines a workspace for viewing all older versions of three popular Linux distributions:

- (Is a Debian device and version is not 12)
and
and
- (Is a Fedora device and version is not 40 or 41)
and
and
- (Is a Red Hat (RHEL) device and is not version 9.5)

### Workspaces are dynamic
Expand Down Expand Up @@ -139,9 +139,9 @@ If you define more than one asset selection in a query (using the + ADD ASSET SE

e. Choose how to combine the conditions:

- To include assets only if they meet both conditions, select **AND**.
- To include assets only if they meet both conditions, select **AND**.

- To include assets that meet at least one condition, select **OR**.
- To include assets that meet at least one condition, select **OR**.

f. Choose the criteria, operator, and value for the condition.

Expand Down
Loading

0 comments on commit 67ed384

Please sign in to comment.