Skip to content

Commit

Permalink
Merge pull request #37 from akto-api-security/feature/llm_sca
Browse files Browse the repository at this point in the history
add openAI key in variables
  • Loading branch information
shivam-rawat-akto authored Dec 23, 2024
2 parents eb14476 + ea8e6da commit c32407c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
20 changes: 20 additions & 0 deletions charts/source-code-analyser/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,25 @@ spec:

name: code-analysis-lsp-service

- env:
- name: CPG_SERVER_PORT
value: {{ quote .Values.source_code_analyser.codePropertyGraphJoern.env.port }}
image: {{ .Values.source_code_analyser.codePropertyGraphJoern.image.repository }}:{{ .Values.source_code_analyser.codePropertyGraphJoern.image.tag
| default .Chart.AppVersion }}
volumeMounts:
- name: source-code
mountPath: /data
args:
- joern
- --server
- --server-host
- 127.0.0.1
- --server-port
- {{ .Values.source_code_analyser.codePropertyGraphJoern.env.port | quote }}

name: code-property-graph-joern


- name: eclipse-jdtls
image: hotavneesh/eclipse-jdtls:latest
volumeMounts:
Expand All @@ -50,6 +69,7 @@ spec:
- extract
- --SOURCE_CODE_ANALYSER={{ .Values.source_code_analyser.codeAnalysisService.env.sourceCodeAnalyser | quote }}
- --PORT={{ .Values.source_code_analyser.codeAnalysisService.env.port | int }}
- --OPENAI_API_KEY={{ .Values.source_code_analyser.codeAnalysisService.env.openAIKey | quote }}

name: code-analysis-service

Expand Down
14 changes: 14 additions & 0 deletions charts/source-code-analyser/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ source_code_analyser:
sourceCodeAnalyser: "true"
port: 3001
llmToken: ""
openAIKey: ""
image:
repository: aktosecurity/akto-puppeteer-replay
tag: doom_latest
Expand All @@ -63,3 +64,16 @@ source_code_analyser:
limits:
cpu: 2
memory: "8Gi"
codePropertyGraphJoern:
env:
port: 8082
image:
repository: ghcr.io/joernio/joern
tag: master
resources:
requests:
cpu: 1
memory: "6Gi"
limits:
cpu: 2
memory: "8Gi"

0 comments on commit c32407c

Please sign in to comment.