helm firewall demo - michaelmworthington/codesamples GitHub Wiki

Introduction

This page walks through the steps to set up NXRM and a Helm Docker container to test Helm Firewall using https://kubernetes-charts.storage.googleapis.com/

See the official docs at  https://help.sonatype.com/repomanager3/formats/helm-repositories

Table of Contents

Prerequisites

  • IQ Server installed and running
  • NXRM 3 installed and running and configured with the IQ Server
  • Docker for Mac installed and running

Step 1. Create a new Proxy Repository in NXRM

Use https://kubernetes-charts.storage.googleapis.com/ as the Remote URL. Accept default values for the remainder of the settings.

Step 2. Enable Firewall for the New Proxy Repo

Step 3. Run the Docker Image in Interactive Mode

docker run -it --rm dtzar/helm-kubectl

Step 4. Use the helm command line to set up the repo sources

helm repo add nexusrepo http://host.docker.internal:8083/nexus/repository/helm-kubernetes-charts.storage.googleapis.com/ --username admin --password admin123

Step 5. Use helm to Install a package

helm fetch nexusrepo/mysql

Observe the inbound requests to NXRM in the request.log file:

172.19.0.1 - admin [13/Nov/2020:00:58:09 -0500] "GET /nexus/repository/helm-kubernetes-charts.storage.googleapis.com/index.yaml HTTP/1.1" 200 - 8370715 9620 "Helm/3.4.0" [qtp493982847-365] host=host.docker.internal:8083 forwarded-proto=- forwarded-host=- forwarded-port=- forwarded-server=- "new-forwarded=-" "RUT=-" "foo=-"
172.19.0.1 - admin [13/Nov/2020:00:59:41 -0500] "GET /nexus/repository/helm-kubernetes-charts.storage.googleapis.com/mysql-1.6.8.tgz HTTP/1.1" 200 - 11597 10463 "Helm/3.4.0" [qtp493982847-292] host=host.docker.internal:8083 forwarded-proto=- forwarded-host=- forwarded-port=- forwarded-server=- "new-forwarded=-" "RUT=-" "foo=-"

Step 6. Browse the Proxy Repo

Step 7. Go to the Firewall Report

Repo List

IQ Server Report

Step 8. Test Quarantine

Not Supported

Step 9. Notes

The NXRM Tree View shows the Quarantined component:

Not Supported

You can view the component information panel (CIP) right in NXRM

Not supported

⚠️ **GitHub.com Fallback** ⚠️