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

Insecure connection handling #38

Merged
merged 17 commits into from
Nov 11, 2024
Merged

Conversation

surya9839
Copy link
Contributor

No description provided.

Copy link

@achrefbensaad achrefbensaad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Facing this issue when running the helm chart
image

Copy link

@achrefbensaad achrefbensaad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Squash all commits and resolve the conflict

@surya9839
Copy link
Contributor Author

@achrefbensaad there was issue with the image as changes were not pushed with this tag ,no changes are required in repo.
i have updated image with the same tag .

curl_command.sh Outdated Show resolved Hide resolved
@achrefbensaad
Copy link

Please squash before merging

@SujithKasireddy SujithKasireddy merged commit fa61f4c into main Nov 11, 2024
3 checks passed
DelusionalOptimist added a commit to DelusionalOptimist/accuknox-jobs that referenced this pull request Nov 15, 2024
This reverts commit fa61f4c.

Signed-off-by: Rudraksh Pareek <[email protected]>
Comment on lines -13 to -15
{{- if or (or (contains "master" .Values.toolConfig.nodeType) (contains "controlplane" .Values.toolConfig.nodeType)) (or (contains "master" .Values.toolConfig.targets) (contains "controlplane" .Values.toolConfig.targets)) }}
{{- include "masterConfig" .Values.toolConfig | trim | nindent 10 }}
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please bring this config back. It is needed for GKE compatibility.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove binary file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove binary file

Comment on lines -16 to +14
{{- if .Values.imagePullSecrets.name }}
imagePullSecrets:
- name: {{ .Values.imagePullSecrets.name }}
{{- end }}
containers:
- image: "{{ .Values.accuknoxJob.image.repository }}:{{ .Values.accuknoxJob.image.tag }}"
- image: accuknox/accuknox-job:latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The configurable image and registry secret is a feature. Please don't remove it.

Comment on lines -28 to -35
valueFrom:
secretKeyRef:
key: AUTH_TOKEN
{{- if (.Values.accuknox.secretName | empty) }}
name: cis-k8s-job-auth-token
{{- else }}
name: {{ .Values.accuknox.secretName }}
{{- end }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for removing this?

Comment on lines -50 to -52
- image: "{{ .Values.kubeBench.image.repository }}:{{ .Values.kubeBench.image.tag }}"
command:
{{- include "cmd" .Values.toolConfig | trim | nindent 13 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an intended feature. Please don't remove this.

Comment on lines -44 to +48
value: {{ .Values.accuknox.clusterId }}
value: {{ .Values.accuknox.clusterID }}
- name: TENANT_ID
value: {{ .Values.accuknox.tenantId | quote}}
value: {{ .Values.accuknox.tenantID | quote}}
- name: URL
value: {{ .Values.accuknox.url }}
value: {{ .Values.accuknox.URL }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix values.

name: kube-bench
volumeMounts:
{{- include "volumeMounts" .Values.toolConfig | trim | nindent 13 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intended feature. Please don't remove.

hostPID: true
restartPolicy: Never
volumes:
{{- include "volumes" .Values.toolConfig | trim | nindent 11 }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't remove this.

COPY curl_command.sh .

# Grant execute permissions to the scripts
RUN chmod +x entrypoint.sh curl_command.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this RUN step.
On your local system run:

chmod +x entrypoint.sh curl_command.sh
git add entrypoint.sh curl_command.sh

@DelusionalOptimist
Copy link
Contributor

PR reverted. PTAL at the added comments and recreate after testing on local.
cc @SujithKasireddy @surya9839

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants