-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(agent): privileged flag for Sysdig Agent (#1743)
Co-authored-by: Marco Vito Moscaritolo <[email protected]>
- Loading branch information
1 parent
1627aa9
commit 14e85ea
Showing
10 changed files
with
246 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
suite: Testing Security Context Constraint | ||
templates: | ||
- securitycontextconstraint.yaml | ||
|
||
capabilities: | ||
apiVersions: | ||
- security.openshift.io/v1 | ||
|
||
kubernetesProvider: | ||
scheme: | ||
"v1/Node": | ||
gvr: | ||
version: "v1" | ||
resource: "nodes" | ||
namespaced: false | ||
objects: | ||
- apiVersion: v1 | ||
kind: Node | ||
metadata: | ||
name: fakenode | ||
status: | ||
nodeInfo: | ||
osImage: fake-os-image | ||
|
||
tests: | ||
- it: Testing that SCS is not created if not enabled | ||
set: | ||
scc: | ||
create: false | ||
asserts: | ||
- hasDocuments: | ||
count: 0 | ||
|
||
- it: Testing that SCS is created when required | ||
set: | ||
scc: | ||
create: true | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: SecurityContextConstraints | ||
|
||
- it: Testing that SCS capabilities are empty by default | ||
set: | ||
scc: | ||
create: true | ||
asserts: | ||
- isEmpty: | ||
path: allowedCapabilities | ||
|
||
- it: Testing that SCS capabilities are empty when privileged is true | ||
set: | ||
privileged: true | ||
image: | ||
tag: '13.3.0' | ||
ebpf: | ||
enabled: true | ||
scc: | ||
create: true | ||
asserts: | ||
- isEmpty: | ||
path: allowedCapabilities | ||
|
||
- it: Testing that SCS capabilities are not empty when privileged is false | ||
set: | ||
privileged: false | ||
image: | ||
tag: '13.3.0' | ||
ebpf: | ||
enabled: true | ||
scc: | ||
create: true | ||
asserts: | ||
- isNotEmpty: | ||
path: allowedCapabilities |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,9 @@ | |
} | ||
} | ||
} | ||
}, | ||
"privileged": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"$defs": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ apiVersion: v2 | |
name: sysdig-deploy | ||
description: A chart with various Sysdig components for Kubernetes | ||
type: application | ||
version: 1.58.0 | ||
version: 1.59.0 | ||
maintainers: | ||
- name: AlbertoBarba | ||
email: [email protected] | ||
|
@@ -26,7 +26,7 @@ dependencies: | |
- name: agent | ||
# repository: https://charts.sysdig.com | ||
repository: file://../agent | ||
version: ~1.26.0 | ||
version: ~1.27.0 | ||
alias: agent | ||
condition: agent.enabled | ||
- name: common | ||
|