Skip to content

Cloud-Native-Security/gitops-the-magickey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitOps — the magic key to cloud native security

This repository showcases how GitOps deployment can be scanned for security issues.

Including: The Helm Chart to be deployed The custom ArgoCD manifest

Relevant documentation:

This repository has been used in the following presentation at ArgoCon EU 2023: GitOps - The Magic Key to Cloud Native Security - Anais Urlichs, Aqua Security

Installing ArgoCD inside the Kuberneres cluster

Install ArgoCD inside of the cluster

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

Access the password for the UI

kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo

Port-forwards the ArgoCD service:

kubectl port-forward svc/argocd-server -n argocd 8000:443

Log into ArgoCD

argocd login localhost:8000

Once ArgoCD installed, the password can be updated with the following command:

argocd account update-password

Scanning the Helm manifest and other deployment resources

Scan the container image used:

trivy image anaisurlichs/cns-website:0.2.1

Scan the Helm Chart to be deployed:

trivy config ./manifests --severity MEDIUM

Run the container image

The container image can be run with the following command:

docker run -p 8080:80 anaisurlichs/cns-website:0.2.1

Scanning the custom ArgoCD Application Deployment

trivy config --policy ./policies --namespaces user ./argocd/application-deployment.yml

Installing the application through ArgoCD

kubectl apply -f argocd

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published