DEV Community

Cover image for Iron Bank: Secure Registries, Secure Containers
dejanualex
dejanualex

Posted on

Iron Bank: Secure Registries, Secure Containers

Iron Bank – DoD Centralized Artifacts Repository (DCAR)

Long story short...Iron Bank Centralized Artifacts Repository is a trusted repository management system to store U.S. Department of Defense artifacts. All artifacts stored in Iron Bank are hardened according to the Container Hardening Guide. DoD containers are OCI compliant and also have DoD-wide reciprocity across classifications.

Some of the main points that reduce the container's attack surface:

  • Image building must start with a trusted image with known content from a trusted source. container_Hardening_Guide
  • Use distroless images (which contain only application and its runtime dependencies, and don't include package managers/shells or any other programs you would expect to find in a standard Linux distribution). All distroless images are signed by cosign.
  • The container image must be built with a non-privileged user in the build file.

Without further ado, let's give it a try. Platform one provides two front-ends when it comes to user experience:

1) Iron Bank DCAR

IronBank repo

2) Harbor instance registry

Harbor

One of the most used base images is Alpine Linux (a security-oriented, lightweight Linux distribution),which is a "security-oriented, lightweight Linux distribution based on musl libc and busybox". Next I'll search for the official image:
docker search --format "{{.Name}}: {{.StarCount}}: {{.IsOfficial}}" alpine

docker alpine

The Docker Official Images are a curated set of Docker repositories hosted on Docker Hub. I'm going to use Snyk to scan the alpine image.

Snyk scan

The scan found 18 issues most of which are Low severity vulnerabilities.

Vulnerabilites

Now I'll scan ironbank's alpine image, and the result of the scan showed that accordingly to Snky's vulnerability database:

you are currently using the most secure version of the selected base image

IronBank alpine image

In conclusion I highly recommend Iron Bank container registry since is one of the central registries used by the U.S. Department of Defense, and is maintained by the Platform One team.

USA

Top comments (1)

Collapse
 
ezz444 profile image
EzzOps

how can I access Iron Bank DCAR?