2018-07-25 11:46:09 +02:00
|
|
|
{
|
|
|
|
"users":[
|
|
|
|
{
|
|
|
|
"name":"user1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user3"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user4"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user5"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"admin":[
|
|
|
|
{
|
|
|
|
"name":"user1",
|
|
|
|
"has_admin":true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user2",
|
|
|
|
"has_admin":true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"endpoint":[
|
|
|
|
{
|
|
|
|
"url":"http://url",
|
|
|
|
"name":"endpoint1",
|
2019-05-30 09:59:09 +02:00
|
|
|
"user":"admin",
|
2019-10-29 11:18:05 +01:00
|
|
|
"pass":"Harbor12345",
|
|
|
|
"insecure":true,
|
|
|
|
"type":"harbor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"url":"https://hub.docker.com",
|
|
|
|
"name":"endpoint2",
|
|
|
|
"user":"",
|
|
|
|
"pass":"",
|
|
|
|
"insecure":false,
|
|
|
|
"type":"docker-hub"
|
|
|
|
}
|
2018-07-25 11:46:09 +02:00
|
|
|
],
|
|
|
|
"replicationrule":[
|
|
|
|
{
|
|
|
|
"project":"project1",
|
|
|
|
"endpoint":"endpoint1",
|
|
|
|
"trigger":"Manual",
|
2019-10-29 11:18:05 +01:00
|
|
|
"rulename":"rulename",
|
|
|
|
"is_src_registry":false,
|
|
|
|
"dest_namespace":"rule1-namespace",
|
|
|
|
"trigger_type":"event_based",
|
|
|
|
"cron":"",
|
|
|
|
"deletion":true,
|
|
|
|
"enabled":true,
|
|
|
|
"override":true,
|
|
|
|
"name_filters":"namefilter1",
|
|
|
|
"tag_filters":"tagfilter1"
|
2018-07-25 11:46:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"project":"library",
|
2019-10-29 11:18:05 +01:00
|
|
|
"endpoint":"endpoint2",
|
2018-07-25 11:46:09 +02:00
|
|
|
"trigger":"Manual",
|
2019-10-29 11:18:05 +01:00
|
|
|
"rulename":"rulelibrary",
|
|
|
|
"endpoint_type":"harbor",
|
|
|
|
"is_src_registry":true,
|
|
|
|
"dest_namespace":"rule2-namespace",
|
|
|
|
"trigger_type":"scheduled",
|
|
|
|
"cron":"6 7 8 * * *",
|
|
|
|
"deletion":false,
|
|
|
|
"enabled":true,
|
|
|
|
"override":true,
|
|
|
|
"name_filters":"namefilter2",
|
|
|
|
"tag_filters":"tagfilter2"
|
|
|
|
}
|
|
|
|
],
|
2020-05-08 05:52:42 +02:00
|
|
|
"interrogation_services":{
|
|
|
|
"cron":"0 0 0 6 3 0"
|
|
|
|
},
|
2019-10-29 11:18:05 +01:00
|
|
|
"configuration":{
|
2018-07-25 11:46:09 +02:00
|
|
|
"authmode":"Database",
|
|
|
|
"projectcreation":"everyone",
|
|
|
|
"selfreg":false,
|
|
|
|
"emailsetting":{
|
|
|
|
"emailserver":"emailserver",
|
|
|
|
"emailport":"2220",
|
|
|
|
"emailuser":"emailuser",
|
|
|
|
"emailfrom":"emailfrom",
|
|
|
|
"emailssl":false,
|
|
|
|
"verifycert":false
|
|
|
|
},
|
|
|
|
"token":"40",
|
2020-05-08 05:52:42 +02:00
|
|
|
"robot_token":"31",
|
2018-07-25 11:46:09 +02:00
|
|
|
"readonly":false,
|
|
|
|
"scanall":{
|
|
|
|
"type":"none",
|
|
|
|
"param":{
|
|
|
|
"daily":0
|
|
|
|
}
|
|
|
|
},
|
2019-10-29 11:18:05 +01:00
|
|
|
"deployment_security":{
|
|
|
|
"cve":[
|
|
|
|
{
|
|
|
|
"id":"CVE-2019-12904"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id":"CVE-2011-3389"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id":"CVE-2018-12886"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id":"CVE-2019-3844"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"never_expires":false,
|
|
|
|
"expires_at":"2572969600"
|
|
|
|
},
|
|
|
|
"webhooks_enabled":true,
|
2018-07-25 11:46:09 +02:00
|
|
|
"syslabel":[
|
|
|
|
{
|
|
|
|
"name":"label1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"label2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"label3"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"label4"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"label5"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"label6"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"projects":[
|
|
|
|
{
|
|
|
|
"name":"project1",
|
2019-01-16 06:39:36 +01:00
|
|
|
"has_image":true,
|
2018-07-25 11:46:09 +02:00
|
|
|
"accesslevel":"public",
|
|
|
|
"repocounts":2,
|
|
|
|
"repo":[
|
|
|
|
{
|
|
|
|
"name":"busybox",
|
|
|
|
"tag":"latest",
|
2019-09-24 12:35:19 +02:00
|
|
|
"signed":"false"
|
2018-07-25 11:46:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"alpine",
|
|
|
|
"tag":"latest",
|
2019-09-24 12:35:19 +02:00
|
|
|
"signed":"true"
|
2018-07-25 11:46:09 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"member":[
|
|
|
|
{
|
|
|
|
"name":"user1",
|
|
|
|
"role":1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user2",
|
|
|
|
"role":2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user3",
|
|
|
|
"role":3
|
|
|
|
}
|
|
|
|
],
|
2019-10-29 11:18:05 +01:00
|
|
|
"count_limit":1234,
|
|
|
|
"storage_limit":53687091200,
|
|
|
|
"storage_limit_for_verify":50,
|
|
|
|
"storage_unit_for_verify":"GB",
|
2018-07-25 11:46:09 +02:00
|
|
|
"replications":{
|
|
|
|
"rulename":"ruleproject1",
|
|
|
|
"endpointname":"endpoint1",
|
|
|
|
"trigger":"Manual"
|
|
|
|
},
|
|
|
|
"labels":[
|
|
|
|
{
|
|
|
|
"name":"proj1label1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"proj1label2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"proj1label3"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"logs":[
|
|
|
|
{
|
|
|
|
"name":"admin",
|
|
|
|
"operation":"create"
|
|
|
|
}
|
|
|
|
],
|
2019-10-29 11:18:05 +01:00
|
|
|
"robot_account":[
|
|
|
|
{
|
|
|
|
"name":"robot0",
|
|
|
|
"access": [
|
|
|
|
{
|
|
|
|
"action": "pull"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "push"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2020-01-10 07:40:02 +01:00
|
|
|
"tag_retention_rule":{
|
|
|
|
"repository_patten":"*photon*",
|
|
|
|
"tag_decoration":"*v1.*",
|
|
|
|
"latestPushedK":666,
|
|
|
|
"cron":"0 0 0 1 8 0"
|
|
|
|
},
|
|
|
|
"tag_immutability_rule":{
|
|
|
|
"repo_decoration":"repoMatches",
|
|
|
|
"tag_decoration":"excludes",
|
|
|
|
"repo_pattern":"*alpine*",
|
|
|
|
"tag_pattern":"*v1.2*"
|
|
|
|
},
|
2019-10-29 11:18:05 +01:00
|
|
|
"webhook":{
|
|
|
|
"address":"https://1.1.1.1",
|
|
|
|
"skip_cert_verify":true,
|
|
|
|
"auth_header":"aaa",
|
|
|
|
"enabled":true
|
|
|
|
},
|
2018-07-25 11:46:09 +02:00
|
|
|
"configuration":{
|
2019-09-24 12:35:19 +02:00
|
|
|
"public":"true",
|
2018-07-25 11:46:09 +02:00
|
|
|
"enable_content_trust":"true",
|
2019-10-29 11:18:05 +01:00
|
|
|
"auto_scan":"true",
|
|
|
|
"prevent_vul":"true",
|
|
|
|
"severity":"high",
|
2020-06-22 04:34:03 +02:00
|
|
|
"reuse_sys_cve_allowlist":"false",
|
2019-10-29 11:18:05 +01:00
|
|
|
"deployment_security":{
|
|
|
|
"cve":[
|
|
|
|
{
|
|
|
|
"id":"CVE-2019-111"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id":"CVE-2011-2222"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id":"CVE-2018-33333"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id":"CVE-2019-44444"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"never_expires":false,
|
|
|
|
"expires_at":"2572969600"
|
|
|
|
}
|
2018-07-25 11:46:09 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"project2",
|
2019-01-16 06:39:36 +01:00
|
|
|
"has_image":false,
|
2018-07-25 11:46:09 +02:00
|
|
|
"accesslevel":"public",
|
|
|
|
"repocounts":2,
|
|
|
|
"repo":[
|
|
|
|
{
|
|
|
|
"name":"busybox",
|
|
|
|
"tag":"latest",
|
2019-09-24 12:35:19 +02:00
|
|
|
"signed":"false"
|
2018-07-25 11:46:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"alpine",
|
|
|
|
"tag":"latest",
|
2019-09-24 12:35:19 +02:00
|
|
|
"signed":"true"
|
2018-07-25 11:46:09 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"member":[
|
|
|
|
{
|
|
|
|
"name":"user1",
|
|
|
|
"role":1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user2",
|
|
|
|
"role":2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"user3",
|
|
|
|
"role":3
|
|
|
|
}
|
|
|
|
],
|
2019-10-29 11:18:05 +01:00
|
|
|
"count_limit":-1,
|
|
|
|
"storage_limit":32985348833280,
|
|
|
|
"storage_limit_for_verify":30,
|
|
|
|
"storage_unit_for_verify":"TB",
|
2018-07-25 11:46:09 +02:00
|
|
|
"replications":{
|
|
|
|
"rulename":"rulename1",
|
|
|
|
"endpointname":"endpoint1",
|
|
|
|
"trigger":"Manual"
|
|
|
|
},
|
|
|
|
"labels":[
|
|
|
|
{
|
|
|
|
"name":"proj2label1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"proj2label2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"proj2label3"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"logs":[
|
|
|
|
{
|
|
|
|
"name":"admin",
|
|
|
|
"operation":"create"
|
|
|
|
}
|
|
|
|
],
|
2019-10-29 11:18:05 +01:00
|
|
|
"robot_account":[
|
|
|
|
{
|
|
|
|
"name":"robot1",
|
|
|
|
"access": [
|
|
|
|
{
|
|
|
|
"action": "pull"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"action": "push"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"robot2",
|
|
|
|
"access": [
|
|
|
|
{
|
|
|
|
"action": "pull"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name":"robot3",
|
|
|
|
"access": [
|
|
|
|
{
|
|
|
|
"action": "push"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2020-01-10 07:40:02 +01:00
|
|
|
"tag_retention_rule":{
|
|
|
|
"repository_patten":"*centos*",
|
|
|
|
"tag_decoration":"*latest",
|
|
|
|
"latestPushedK":999,
|
|
|
|
"cron":"0 0 0 1 6 0"
|
|
|
|
},
|
|
|
|
"tag_immutability_rule":{
|
|
|
|
"repo_decoration":"repoExcludes",
|
|
|
|
"tag_decoration":"matches",
|
|
|
|
"repo_pattern":"*buxybox*",
|
|
|
|
"tag_pattern":"*v3*"
|
|
|
|
},
|
2019-10-29 11:18:05 +01:00
|
|
|
"webhook":{
|
2020-01-10 07:40:02 +01:00
|
|
|
"address":"https://2.2.2.2",
|
|
|
|
"skip_cert_verify":false,
|
|
|
|
"auth_header":"bbb",
|
|
|
|
"enabled":false
|
2019-10-29 11:18:05 +01:00
|
|
|
},
|
2018-07-25 11:46:09 +02:00
|
|
|
"configuration":{
|
2019-09-24 12:35:19 +02:00
|
|
|
"public":"false",
|
|
|
|
"enable_content_trust":"false",
|
2019-10-29 11:18:05 +01:00
|
|
|
"auto_scan":"false",
|
|
|
|
"prevent_vul":"true",
|
|
|
|
"severity":"medium",
|
2020-06-22 04:34:03 +02:00
|
|
|
"reuse_sys_cve_allowlist":"true",
|
2019-10-29 11:18:05 +01:00
|
|
|
"deployment_security":{
|
|
|
|
"cve":[
|
|
|
|
]
|
|
|
|
}
|
2018-07-25 11:46:09 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2020-06-22 04:34:03 +02:00
|
|
|
}
|