Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 3.27 KB

File metadata and controls

59 lines (40 loc) · 3.27 KB

DO - Container Registry

{% hint style="success" %} Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks
{% endhint %}

Basic Information

DigitalOcean Container Registry is a service provided by DigitalOcean that allows you to store and manage Docker images. It is a private registry, which means that the images that you store in it are only accessible to you and users that you grant access to. This allows you to securely store and manage your Docker images, and use them to deploy containers on DigitalOcean or any other environment that supports Docker.

When creating a Container Registry it's possible to create a secret with pull images access (read) over it in all the namespaces of Kubernetes clusters.

Connection

# Using doctl
doctl registry login

# Using docker (You need an API token, use it as username and as password)
docker login registry.digitalocean.com
Username: <paste-api-token>
Password: <paste-api-token>

Enumeration

# Get creds to access the registry from the API
doctl registry docker-config

# List
doctl registry repository list-v2

{% hint style="success" %} Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks
{% endhint %}