Skip to content

Commit

Permalink
added description and example configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
peters-david committed Jul 4, 2024
1 parent c0b1c5f commit 3e94cb8
Showing 1 changed file with 134 additions and 0 deletions.
134 changes: 134 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,137 @@ code. Pull requests are only accepted when no linting errors occur.
docker run --rm -v .:/src ricardobchaves6/python-lint-image:1.4.0 pycodestyle /src
```

## Configuration Files

### configurations.json

General configurations including `auth_mode`, `oidc_auto_onboard` and more oidc settings.

```json
{
"setting": "value"
}
```

### project-members.json

A list of projects and team members with their respective roles.

```json
[
{
"project_name": "Project 1",
"admin": [],
"developer": [],
"guest": [],
"maintainer": []
}
]
```

### projects.json

A list of projects and metadata.

```json
[
{
"project_name": "Project 1",
"metadata": {
"public": true,
"auto_scan": true
},
"storage_limit": -1
}
]
```

### purge-jobs.json

All purge jobs and their schedule.

```json
[
{
"paramters": {
"audit_retention_hour": 720,
"dry_run": false,
"include_operations": "create,delete,pull"
},
"schedule": {
"cron": "0 0 0 * * *",
"type": "daily"
}
}
]
```

### registries.json

All information about registries.

```json
[
{
"name": "registry.io",
"url": "https://registry.io",
"type": "docker-registry",
"description": "Example docker registry."
}
]
```

### robots.json

Configuration of robot accounts and their permissions.

```json
[
{
"name": "example-robot",
"duration": "-1",
"description": "Example robot.",
"disable": false,
"level": "system",
"permissions": [
{
"kind": "project",
"namespace": "*",
"access": [
{
"resource": "repository",
"action": "list"
}
]
}
]
}
]
```

### webhooks.json

Definition of webhooks.

```json
[
{
"project_name": "Project 1",
"policies": [
"name": "ms-teams",
"description": "Sends scan results to MS-Teams",
"event_types": [
"SCANNING_COMPLETED"
],
"targets": [
{
"type": "http",
"address": "https://harbor-ms-teams-forwarder.url.com"
}
],
"enabled": true
}
}
]
```

0 comments on commit 3e94cb8

Please sign in to comment.