Skip to content

Commit

Permalink
fix: security
Browse files Browse the repository at this point in the history
  • Loading branch information
winggundamth committed Oct 31, 2024
1 parent 6d33226 commit ec49ec4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nonprd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ jobs:
tags: ${{ needs.setup.outputs.tags }}
labels: ${{ needs.setup.outputs.labels }}
# SECURITY VULNERABILITY
cache-to: type=registry,ref=${{ vars.IMAGE_NAME }}:buildcache-vuln,mode=max
cache-from: type=registry,ref=${{ vars.IMAGE_NAME }}:buildcache-vuln
# cache-to: type=registry,ref=${{ vars.IMAGE_NAME }}:buildcache,mode=max
# cache-from: type=registry,ref=${{ vars.IMAGE_NAME }}:buildcache
# cache-to: type=registry,ref=${{ vars.IMAGE_NAME }}:buildcache-vuln,mode=max
# cache-from: type=registry,ref=${{ vars.IMAGE_NAME }}:buildcache-vuln
cache-to: type=registry,ref=${{ vars.IMAGE_NAME }}:buildcache,mode=max
cache-from: type=registry,ref=${{ vars.IMAGE_NAME }}:buildcache
env:
DOCKER_BUILD_RECORD_UPLOAD: false

Expand Down
11 changes: 11 additions & 0 deletions iac/helm-values/opsta-line-bot-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,14 @@ volumes:
path: /tmp
size: 500Mi
storageClass: nfs
securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 65532
runAsGroup: 65532
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL
11 changes: 11 additions & 0 deletions iac/helm-values/opsta-line-bot-prd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,14 @@ volumes:
path: /tmp
size: 500Mi
storageClass: nfs
securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 65532
runAsGroup: 65532
seccompProfile:
type: RuntimeDefault
capabilities:
drop:
- ALL

0 comments on commit ec49ec4

Please sign in to comment.