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

Fix privileged flag #2225

Merged
merged 4 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Thanks, you're awesome :-) -->
#### Bugfixes

#### Added
* Added `container.privileged` to indicated whether a container was started in privileged mode. #2219
* Added `container.security_context.privileged` to indicated whether a container was started in privileged mode. #2219, #2225

#### Improvements

Expand Down
20 changes: 10 additions & 10 deletions docs/fields/field-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -1218,32 +1218,32 @@ type: long
// ===============================================================

|
[[field-container-privileged]]
<<field-container-privileged, container.privileged>>

a| Indicates whether the container is running in privileged mode.
[[field-container-runtime]]
<<field-container-runtime, container.runtime>>

type: bool
a| Runtime managing this container.

type: keyword



example: `docker`

| extended

// ===============================================================

|
[[field-container-runtime]]
<<field-container-runtime, container.runtime>>
[[field-container-security-context-privileged]]
<<field-container-security-context-privileged, container.security_context.privileged>>

a| Runtime managing this container.
a| Indicates whether the container is running in privileged mode.

type: bool

type: keyword



example: `docker`

| extended

Expand Down
10 changes: 5 additions & 5 deletions experimental/generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -944,17 +944,17 @@
description: The number of bytes received (gauge) on all network interfaces
by the container since the last metric collection.
default_field: false
- name: privileged
level: extended
type: bool
description: Indicates whether the container is running in privileged mode.
default_field: false
- name: runtime
level: extended
type: keyword
ignore_above: 1024
description: Runtime managing this container.
example: docker
- name: security_context.privileged
level: extended
type: bool
description: Indicates whether the container is running in privileged mode.
default_field: false
- name: data_stream
title: Data Stream
group: 2
Expand Down
2 changes: 1 addition & 1 deletion experimental/generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
8.10.0-dev+exp,true,container,container.name,keyword,extended,,,Container name.
8.10.0-dev+exp,true,container,container.network.egress.bytes,long,extended,,,The number of bytes sent on all network interfaces.
8.10.0-dev+exp,true,container,container.network.ingress.bytes,long,extended,,,The number of bytes received on all network interfaces.
8.10.0-dev+exp,true,container,container.privileged,bool,extended,,,Indicates whether the container is running in privileged mode.
8.10.0-dev+exp,true,container,container.runtime,keyword,extended,,docker,Runtime managing this container.
8.10.0-dev+exp,true,container,container.security_context.privileged,bool,extended,,,Indicates whether the container is running in privileged mode.
8.10.0-dev+exp,true,data_stream,data_stream.dataset,constant_keyword,extended,,nginx.access,The field can contain anything that makes sense to signify the source of the data.
8.10.0-dev+exp,true,data_stream,data_stream.namespace,constant_keyword,extended,,production,A user defined namespace. Namespaces are useful to allow grouping of data.
8.10.0-dev+exp,true,data_stream,data_stream.type,constant_keyword,extended,,logs,An overarching type for the data stream.
Expand Down
18 changes: 9 additions & 9 deletions experimental/generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1183,15 +1183,6 @@ container.network.ingress.bytes:
normalize: []
short: The number of bytes received on all network interfaces.
type: long
container.privileged:
dashed_name: container-privileged
description: Indicates whether the container is running in privileged mode.
flat_name: container.privileged
level: extended
name: privileged
normalize: []
short: Indicates whether the container is running in privileged mode.
type: bool
container.runtime:
dashed_name: container-runtime
description: Runtime managing this container.
Expand All @@ -1203,6 +1194,15 @@ container.runtime:
normalize: []
short: Runtime managing this container.
type: keyword
container.security_context.privileged:
dashed_name: container-security-context-privileged
description: Indicates whether the container is running in privileged mode.
flat_name: container.security_context.privileged
level: extended
name: security_context.privileged
normalize: []
short: Indicates whether the container is running in privileged mode.
type: bool
data_stream.dataset:
dashed_name: data-stream-dataset
description: "The field can contain anything that makes sense to signify the source\
Expand Down
18 changes: 9 additions & 9 deletions experimental/generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1562,15 +1562,6 @@ container:
normalize: []
short: The number of bytes received on all network interfaces.
type: long
container.privileged:
dashed_name: container-privileged
description: Indicates whether the container is running in privileged mode.
flat_name: container.privileged
level: extended
name: privileged
normalize: []
short: Indicates whether the container is running in privileged mode.
type: bool
container.runtime:
dashed_name: container-runtime
description: Runtime managing this container.
Expand All @@ -1582,6 +1573,15 @@ container:
normalize: []
short: Runtime managing this container.
type: keyword
container.security_context.privileged:
dashed_name: container-security-context-privileged
description: Indicates whether the container is running in privileged mode.
flat_name: container.security_context.privileged
level: extended
name: security_context.privileged
normalize: []
short: Indicates whether the container is running in privileged mode.
type: bool
group: 2
name: container
prefix: container.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,16 @@
}
}
},
"privileged": {
"type": "bool"
},
"runtime": {
"ignore_above": 1024,
"type": "keyword"
},
"security_context": {
"properties": {
"privileged": {
"type": "bool"
}
}
}
}
}
Expand Down
10 changes: 7 additions & 3 deletions experimental/generated/elasticsearch/legacy/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -560,12 +560,16 @@
}
}
},
"privileged": {
"type": "bool"
},
"runtime": {
"ignore_above": 1024,
"type": "keyword"
},
"security_context": {
"properties": {
"privileged": {
"type": "bool"
}
}
}
}
},
Expand Down
10 changes: 5 additions & 5 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -894,17 +894,17 @@
description: The number of bytes received (gauge) on all network interfaces
by the container since the last metric collection.
default_field: false
- name: privileged
level: extended
type: bool
description: Indicates whether the container is running in privileged mode.
default_field: false
- name: runtime
level: extended
type: keyword
ignore_above: 1024
description: Runtime managing this container.
example: docker
- name: security_context.privileged
level: extended
type: bool
description: Indicates whether the container is running in privileged mode.
default_field: false
- name: data_stream
title: Data Stream
group: 2
Expand Down
2 changes: 1 addition & 1 deletion generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
8.10.0-dev,true,container,container.name,keyword,extended,,,Container name.
8.10.0-dev,true,container,container.network.egress.bytes,long,extended,,,The number of bytes sent on all network interfaces.
8.10.0-dev,true,container,container.network.ingress.bytes,long,extended,,,The number of bytes received on all network interfaces.
8.10.0-dev,true,container,container.privileged,bool,extended,,,Indicates whether the container is running in privileged mode.
8.10.0-dev,true,container,container.runtime,keyword,extended,,docker,Runtime managing this container.
8.10.0-dev,true,container,container.security_context.privileged,bool,extended,,,Indicates whether the container is running in privileged mode.
8.10.0-dev,true,data_stream,data_stream.dataset,constant_keyword,extended,,nginx.access,The field can contain anything that makes sense to signify the source of the data.
8.10.0-dev,true,data_stream,data_stream.namespace,constant_keyword,extended,,production,A user defined namespace. Namespaces are useful to allow grouping of data.
8.10.0-dev,true,data_stream,data_stream.type,constant_keyword,extended,,logs,An overarching type for the data stream.
Expand Down
18 changes: 9 additions & 9 deletions generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1114,15 +1114,6 @@ container.network.ingress.bytes:
normalize: []
short: The number of bytes received on all network interfaces.
type: long
container.privileged:
dashed_name: container-privileged
description: Indicates whether the container is running in privileged mode.
flat_name: container.privileged
level: extended
name: privileged
normalize: []
short: Indicates whether the container is running in privileged mode.
type: bool
container.runtime:
dashed_name: container-runtime
description: Runtime managing this container.
Expand All @@ -1134,6 +1125,15 @@ container.runtime:
normalize: []
short: Runtime managing this container.
type: keyword
container.security_context.privileged:
dashed_name: container-security-context-privileged
description: Indicates whether the container is running in privileged mode.
flat_name: container.security_context.privileged
level: extended
name: security_context.privileged
normalize: []
short: Indicates whether the container is running in privileged mode.
type: bool
data_stream.dataset:
dashed_name: data-stream-dataset
description: "The field can contain anything that makes sense to signify the source\
Expand Down
18 changes: 9 additions & 9 deletions generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1482,15 +1482,6 @@ container:
normalize: []
short: The number of bytes received on all network interfaces.
type: long
container.privileged:
dashed_name: container-privileged
description: Indicates whether the container is running in privileged mode.
flat_name: container.privileged
level: extended
name: privileged
normalize: []
short: Indicates whether the container is running in privileged mode.
type: bool
container.runtime:
dashed_name: container-runtime
description: Runtime managing this container.
Expand All @@ -1502,6 +1493,15 @@ container:
normalize: []
short: Runtime managing this container.
type: keyword
container.security_context.privileged:
dashed_name: container-security-context-privileged
description: Indicates whether the container is running in privileged mode.
flat_name: container.security_context.privileged
level: extended
name: security_context.privileged
normalize: []
short: Indicates whether the container is running in privileged mode.
type: bool
group: 2
name: container
prefix: container.
Expand Down
10 changes: 7 additions & 3 deletions generated/elasticsearch/composable/component/container.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,16 @@
}
}
},
"privileged": {
"type": "bool"
},
"runtime": {
"ignore_above": 1024,
"type": "keyword"
},
"security_context": {
"properties": {
"privileged": {
"type": "bool"
}
}
}
}
}
Expand Down
10 changes: 7 additions & 3 deletions generated/elasticsearch/legacy/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -518,12 +518,16 @@
}
}
},
"privileged": {
"type": "bool"
},
"runtime": {
"ignore_above": 1024,
"type": "keyword"
},
"security_context": {
"properties": {
"privileged": {
"type": "bool"
}
}
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion schemas/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
The number of bytes (gauge) sent out on all network interfaces by the
container since the last metric collection.

- name: privileged
- name: security_context.privileged
type: bool
level: extended
short: Indicates whether the container is running in privileged mode.
Expand Down