Skip to content

Commit 360f685

Browse files
author
mojib
committed
docs: harbor
1 parent 58748e5 commit 360f685

2 files changed

Lines changed: 47 additions & 20 deletions

File tree

docs/services/assets/sso.png

-19.1 KB
Loading

docs/services/harbor/index.md

Lines changed: 47 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,66 @@
1-
# Harbor
1+
# Harbor Registry — Push Image Guide
22

3-
Harbor is an open source registry that secures artifacts with policies and role-based access control, ensures images are scanned and free from vulnerabilities.
3+
## Overview
44

5-
This is a small guide for quick access to harbor docker image storage.
5+
[Harbor](https://goharbor.io/) is an open-source container registry that provides:
66

7-
## harbor instance deployment
8-
TODO
7+
- **Role-Based Access Control (RBAC)**
8+
- **Integration with SSO / OIDC** (via Keycloak)
9+
- **Vulnerability scanning** and secure artifact storage
10+
11+
This guide shows you how to get started with Harbor, create your account via SSO, and push Docker images to your assigned project.
12+
13+
---
14+
15+
## 1. Getting a Harbor Account
16+
17+
1. Go to the **Harbor Web Interface**:
18+
[https://harbor.<your_domain>](https://harbor.<your_domain>)
19+
20+
2. **Log in via SSO** (Keycloak OIDC) using your CyVerse Austria credentials.
921

10-
## harbor account
1122
![sso-account](../assets/sso.png)
12-
To have a Harbor account created, you need to login via SSO, which in our case is configured through Keycloak-OIDC.
1323

14-
Once you login via SSO, you will have a project and role automatically assigned.
24+
3. After your first login, your **Harbor account** is automatically provisioned:
25+
- You’ll automatically get your designated **role** within that project (e.g. *Developer*, *Maintainer*).
26+
---
1527

28+
## 2. Docker Login & Using Harbor
1629

17-
## docker login and push
18-
Once your account is created and configured in a project, you will need to use it to authenticate via docker.
30+
Once your account is ready, follow these steps to log in and push your images.
1931

20-
```
32+
### Step 1: Log in via Docker CLI
33+
34+
```bash
2135
docker login harbor.<your_domain>
2236
```
2337

24-
![modal](../assets/user_modal.png)
25-
After this you will be prompted to enter Username and password. In the **Harbor** browser page go to your user (top right) -> User profile. The password would be the **CLI Secret**. Copy that to clipboard.
38+
You’ll be prompted for **username** and **password**.
2639

27-
Then:
40+
* Username:** Your Harbor username (same as your Keycloak username)
2841

29-
```
42+
* **Password:** Use your CLI secret (not your Keycloak password)
43+
44+
To find your CLI secret:
45+
46+
* Log into the Harbor UI
47+
48+
* Click your **user profile** (top right corner)
49+
50+
* Go to User Profile → **CLI Secret**
51+
52+
* Copy and use it when prompted for your password
53+
54+
55+
### Step 2: Tag Your Image
56+
57+
Replace the placeholders with your project and image name:
58+
59+
```bash
3060
docker tag <your_image> harbor.<your_domain>/<your_project>/<image_name>:<tag>
3161
```
3262

33-
```
63+
### Step 3: Push Your Image
64+
```bash
3465
docker push harbor.<your_domain>/<your_project>/<image_name>:<tag>
3566
```
36-
37-
Check in the Harbor website whether your image was pushed correctly to the desired project.
38-
39-
**Note**: Additional docs for docker authentication https://docs.docker.com/desktop/setup/sign-in/

0 commit comments

Comments
 (0)