-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Specifications for specific intents
- Loading branch information
1 parent
62ff799
commit 91f9e12
Showing
6 changed files
with
153 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2023 Authors of Nimbus | ||
|
||
apiVersion: intent.security.nimbus.com/v1 | ||
kind: SecurityIntent | ||
metadata: | ||
name: [intent-name] | ||
namespace: [intent-namespace] | ||
spec: | ||
selector: | ||
match: | ||
any: | ||
- resources: | ||
names: [target-name] | ||
kinds: [target-kind] | ||
namespaces: [target-namespace] | ||
matchLabels: | ||
[key: value] | ||
cel: | ||
- xxxx | ||
intent: | ||
group: core | ||
ID: protectFile | ||
params: | ||
- path: /etc/shadow | ||
- AllowBinary: | ||
- /free5gc/webconsole | ||
- /free5gc/webApp |
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,28 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2023 Authors of Nimbus | ||
|
||
apiVersion: intent.security.nimbus.com/v1 | ||
kind: SecurityIntent | ||
metadata: | ||
name: [intent-name] | ||
namespace: [intent-namespace] | ||
spec: | ||
selector: | ||
match: | ||
any: | ||
- resources: | ||
names: [target-name] | ||
kinds: [target-kind] | ||
namespaces: [target-namespace] | ||
matchLabels: | ||
[key: value] | ||
cel: | ||
- xxxx | ||
intent: | ||
group: core | ||
ID: protectPort # will generate rules for all protocols | ||
params: | ||
- port: 5000 | ||
- AllowBinary | ||
- /free5gc/webconsole | ||
- /free5gc/webapp |
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,25 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2023 Authors of Nimbus | ||
|
||
apiVersion: intent.security.nimbus.com/v1 | ||
kind: SecurityIntent | ||
metadata: | ||
name: [intent-name] | ||
namespace: [intent-namespace] | ||
spec: | ||
selector: | ||
match: | ||
any: | ||
- resources: | ||
names: [target-name] | ||
kinds: [target-kind] | ||
namespaces: [target-namespace] | ||
matchLabels: | ||
[key: value] | ||
cel: | ||
- xxxx | ||
intent: | ||
group: core | ||
ID: ownerOnly # The executable in the path can be invoked by ownerOnly | ||
params: | ||
- path: /home/5gc/myexec |
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,25 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2023 Authors of Nimbus | ||
|
||
apiVersion: intent.security.nimbus.com/v1 | ||
kind: SecurityIntent | ||
metadata: | ||
name: [intent-name] | ||
namespace: [intent-namespace] | ||
spec: | ||
selector: | ||
match: | ||
any: | ||
- resources: | ||
names: [target-name] | ||
kinds: [target-kind] | ||
namespaces: [target-namespace] | ||
matchLabels: | ||
[key: value] | ||
cel: | ||
- xxxx | ||
intent: | ||
group: core | ||
ID: blockAsset # Nobody can access below paths | ||
params: | ||
- path: /home/5gc/ |
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,23 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2023 Authors of Nimbus | ||
|
||
apiVersion: intent.security.nimbus.com/v1 | ||
kind: SecurityIntent | ||
metadata: | ||
name: [intent-name] | ||
namespace: [intent-namespace] | ||
spec: | ||
selector: | ||
match: | ||
any: | ||
- resources: | ||
names: [target-name] | ||
kinds: [target-kind] | ||
namespaces: [target-namespace] | ||
matchLabels: | ||
[key: value] | ||
cel: | ||
- xxxx | ||
intent: | ||
group: core | ||
ID: blockRawSocket # No raw sockets can be accessed |
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,24 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Copyright 2023 Authors of Nimbus | ||
|
||
apiVersion: intent.security.nimbus.com/v1 | ||
kind: SecurityIntent | ||
metadata: | ||
name: [intent-name] | ||
namespace: [intent-namespace] | ||
spec: | ||
selector: | ||
match: | ||
any: | ||
- resources: | ||
names: [target-name] | ||
kinds: [target-kind] | ||
namespaces: [target-namespace] | ||
matchLabels: | ||
[key: value] | ||
cel: | ||
- xxxx | ||
intent: | ||
group: oran/core | ||
ID: protectFile, protectPort, ownerOnly, blockAsset, blockRawsocket | ||
params: |