-
Notifications
You must be signed in to change notification settings - Fork 164
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
feat: add wiz manifests #8679
Open
vinaythupili
wants to merge
39
commits into
dev
Choose a base branch
from
vthupili
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: add wiz manifests #8679
Changes from 14 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
ec72710
feat: add wiz manifests
de2a398
feat: update permissions for sensor
a5b89dc
feat: add wiz manifests
c307aaf
feat: add wiz manifests
0cdad7a
Update secrets namespace + cleanup trailing curly brackets
zaklawrencea 500acb7
fix: minor changes
38944d1
Merge branch 'vthupili' of https://github.com/zalando-incubator/kuber…
4fda53d
fix: minor changes
a65b322
enable wiz to exclude from node ready event
eb25c7f
Fix typos
katyanna ebb156a
Fix missing }
katyanna 3630e94
Update cluster/manifests/deletions.yaml
demonCoder95 dfdffc5
Minor fixes
aa8ddc6
Minor fixes
38e467d
Minor fixes
63ca7d7
Merge branch 'dev' into vthupili
e773b9a
restructure
9854e09
Merge branch 'dev' into vthupili
73ce47e
remove imagepull secrets
a2aef3f
remove imagepull secrets
9e6fc8b
add limits for broker
b8f3a59
add limits for broker
6b0b73e
restructure
c176b5b
update image Tags
0dc9cbe
update image Tags
24babce
minor fix to secret
a800342
minor
711cb87
Merge branch 'dev' into vthupili
2bdfaa1
minor fix secret
c20f7af
minor
026d2fe
rename sensor ds file name
0e919db
add nodeselector to all worker nodes
fe51b45
update DS tolerations
02fd3fa
update tolerations
af52b16
update tolerations
8967144
Merge branch 'dev' into vthupili
8770794
reorder the wiz resources in deletions.yaml
41affbb
update image tags
b5ec8ec
Merge branch 'dev' into vthupili
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: wiz |
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,20 @@ | ||
{{ if eq .Cluster.ConfigItems.wiz_enable_runtime_monitoring_daemonset "true"}} | ||
--- | ||
# Source: wiz-kubernetes-integration/charts/wiz-kubernetes-connector/templates/service-account-cluster-reader.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: wiz-cluster-reader | ||
labels: | ||
helm.sh/chart: wiz-broker-2.1.0 | ||
application: "wiz" | ||
component: "connector" | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: readonly # readonly role created by default in out kubernetes environment | ||
subjects: | ||
- kind: ServiceAccount | ||
name: wiz-cluster-reader | ||
namespace: "wiz" | ||
{{end}} |
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,72 @@ | ||
{{ if eq .Cluster.ConfigItems.wiz_enable_runtime_monitoring_daemonset "true"}} | ||
--- | ||
# Source: wiz-kubernetes-integration/charts/wiz-kubernetes-connector/charts/wiz-broker/templates/wiz-broker-deployment.yaml | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: wiz-connector-agent | ||
namespace: "wiz" | ||
labels: | ||
helm.sh/chart: wiz-broker-2.1.0 | ||
application: "wiz" | ||
component: "connector" | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
application: "wiz" | ||
component: "connector" | ||
template: | ||
metadata: | ||
labels: | ||
helm.sh/chart: wiz-broker-2.1.0 | ||
application: "wiz" | ||
component: "connector" | ||
spec: | ||
serviceAccountName: wiz-broker | ||
securityContext: | ||
runAsNonRoot: true | ||
runAsUser: 1000 | ||
volumes: | ||
- name: connector-data | ||
secret: | ||
secretName: wiz-connector-connector | ||
items: | ||
- key: connectorData | ||
path: data | ||
containers: | ||
- name: wiz-broker | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
runAsNonRoot: true | ||
runAsUser: 1000 | ||
image: "container-registry-test.zalando.net/secops-systems/wiz-broker:latest" | ||
imagePullPolicy: IfNotPresent | ||
volumeMounts: | ||
- name: connector-data | ||
mountPath: /etc/connectorData | ||
readOnly: true | ||
args: | ||
- /etc/connectorData/data | ||
env: | ||
- name: LOG_LEVEL | ||
value: info | ||
- name: WIZ_ENV | ||
value: | ||
demonCoder95 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: WIZ_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: wiz-api-token | ||
key: clientId | ||
- name: WIZ_CLIENT_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: wiz-api-token | ||
key: clientToken | ||
- name: TARGET_IP | ||
value: kubernetes.default.svc.cluster.local | ||
- name: TARGET_PORT | ||
value: "443" | ||
resources: | ||
null | ||
{{end}} |
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,145 @@ | ||
{{ if eq .Cluster.ConfigItems.wiz_enable_runtime_monitoring_daemonset "true"}} | ||
--- | ||
# Source: wiz-kubernetes-integration/charts/wiz-kubernetes-connector/templates/job-create-connector.yaml | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: wiz-kubernetes-connector-create-connector | ||
namespace: "wiz" | ||
labels: | ||
helm.sh/chart: wiz-broker-2.1.0 | ||
application: "wiz" | ||
component: "connector" | ||
spec: | ||
ttlSecondsAfterFinished: 60 | ||
manualSelector: true | ||
selector: | ||
matchLabels: | ||
application: "wiz" | ||
component: "connector" | ||
backoffLimit: 1 | ||
template: | ||
metadata: | ||
labels: | ||
helm.sh/chart: wiz-kubernetes-connector-3.1.1 | ||
app.kubernetes.io/name: wiz-kubernetes-connector | ||
app.kubernetes.io/instance: wiz-connector | ||
app.kubernetes.io/version: "2.5" | ||
app.kubernetes.io/managed-by: Helm | ||
demonCoder95 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
spec: | ||
serviceAccountName: wiz-auto-modify-connector | ||
restartPolicy: "Never" | ||
securityContext: | ||
runAsNonRoot: true | ||
runAsUser: 1000 | ||
containers: | ||
- name: wiz-connector-creator | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
runAsNonRoot: true | ||
runAsUser: 1000 | ||
image: "container-registry-test.zalando.net/secops-systems/wiz-broker:latest" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need to use the latest build instead of |
||
imagePullPolicy: IfNotPresent | ||
command: | ||
- "wiz-broker" | ||
args: | ||
- create-kubernetes-connector | ||
- --api-server-endpoint | ||
- "https://kubernetes.default.svc.cluster.local" | ||
- --secrets-namespace | ||
- "wiz" | ||
- --service-account-token-secret-name | ||
- "wiz-cluster-reader-token" | ||
- --output-secret-name | ||
- "wiz-connector-connector" | ||
- --is-on-prem=true | ||
- --service-type | ||
- "Kubernetes" | ||
- --wait=true | ||
env: | ||
- name: LOG_LEVEL | ||
value: info | ||
- name: WIZ_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: wiz-api-token | ||
key: clientId | ||
optional: false | ||
- name: WIZ_CLIENT_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: wiz-api-token | ||
key: clientToken | ||
optional: false | ||
- name: WIZ_ENV | ||
value: | ||
resources: | ||
null | ||
--- | ||
# Source: wiz-kubernetes-integration/charts/wiz-kubernetes-connector/templates/job-delete-connector.yaml | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: wiz-kubernetes-connector-delete-connector | ||
namespace: "wiz" | ||
labels: | ||
helm.sh/chart: wiz-broker-2.1.0 | ||
application: "wiz" | ||
component: "connector" | ||
spec: | ||
ttlSecondsAfterFinished: 60 | ||
manualSelector: true | ||
selector: | ||
matchLabels: | ||
application: "wiz" | ||
component: "connector" | ||
backoffLimit: 1 | ||
template: | ||
metadata: | ||
labels: | ||
helm.sh/chart: wiz-broker-2.1.0 | ||
application: "wiz" | ||
component: "connector" | ||
spec: | ||
serviceAccountName: wiz-auto-modify-connector | ||
restartPolicy: "Never" | ||
securityContext: | ||
runAsNonRoot: true | ||
runAsUser: 1000 | ||
containers: | ||
- name: wiz-connector-delete | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
runAsNonRoot: true | ||
runAsUser: 1000 | ||
image: "container-registry-test.zalando.net/secops-systems/wiz-broker:latest" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need to use latest build before merging instead of |
||
imagePullPolicy: IfNotPresent | ||
command: ["/bin/sh", "-c"] | ||
args: | ||
- > | ||
wiz-broker delete-kubernetes-connector | ||
--input-secrets-namespace | ||
"wiz" | ||
--input-secret-name | ||
"wiz-connector-connector" | ||
|| true | ||
env: | ||
- name: LOG_LEVEL | ||
value: info | ||
- name: WIZ_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: wiz-api-token | ||
key: clientId | ||
optional: false | ||
- name: WIZ_CLIENT_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: wiz-api-token | ||
key: clientToken | ||
optional: false | ||
- name: WIZ_ENV | ||
value: "" | ||
demonCoder95 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
resources: | ||
null | ||
{{end}} |
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,43 @@ | ||
{{ if eq .Cluster.ConfigItems.wiz_enable_runtime_monitoring_daemonset "true"}} | ||
--- | ||
# Source: wiz-kubernetes-integration/charts/wiz-kubernetes-connector/templates/service-account-modify-connector.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: wiz-auto-modify-connector | ||
namespace: "wiz" | ||
labels: | ||
helm.sh/chart: wiz-broker-2.1.0 | ||
application: "wiz" | ||
component: "connector" | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
resourceNames: ["wiz-connector-connector"] | ||
verbs: ["update", "get"] | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
resourceNames: | ||
- "wiz-api-token" | ||
- "wiz-cluster-reader-token" | ||
verbs: ["get"] | ||
--- | ||
# Source: wiz-kubernetes-integration/charts/wiz-kubernetes-connector/templates/service-account-modify-connector.yaml | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: wiz-auto-modify-connector | ||
namespace: "wiz" | ||
labels: | ||
helm.sh/chart: wiz-broker-2.1.0 | ||
application: "wiz" | ||
component: "connector" | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: wiz-auto-modify-connector | ||
subjects: | ||
- kind: ServiceAccount | ||
name: wiz-auto-modify-connector | ||
namespace: "wiz" | ||
{{end}} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
latest
tag will not work in production. So, we definitely need to fix this to the latest build version before merging. It's fine for testing.