Back to articles
Harbor Has a Free API: Enterprise Container Registry with Security Scanning
How-ToDevOps

Harbor Has a Free API: Enterprise Container Registry with Security Scanning

via Dev.to DevOpsAlex Spinov

Harbor is an open-source container registry that secures artifacts with policies and role-based access control, scans images for vulnerabilities, and signs images as trusted. What Is Harbor? Harbor is a CNCF graduated project that extends Docker Distribution with security, identity, and management features needed by enterprises. It manages container images, Helm charts, and OCI artifacts. Key Features: Vulnerability scanning (Trivy, Clair) Image signing and verification Role-based access control Image replication across registries Garbage collection Quota management Audit logging REST API v2.0 Installation wget https://github.com/goharbor/harbor/releases/download/v2.11.0/harbor-offline-installer-v2.11.0.tgz tar xzf harbor-offline-installer- * .tgz cd harbor cp harbor.yml.tmpl harbor.yml # Edit harbor.yml (set hostname, passwords) ./install.sh --with-trivy Harbor API import requests HARBOR = " https://harbor.example.com/api/v2.0 " AUTH = ( " admin " , " Harbor12345 " ) # List projects p

Continue reading on Dev.to DevOps

Opens in a new tab

Read Full Article
7 views

Related Articles