Skip to content

Commit

Permalink
Adds Clair updates and 2 API calls (#777)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Smith <stevsmit@stevsmit.remote.csb>
  • Loading branch information
stevsmit and Steven Smith authored Aug 28, 2023
1 parent 7ef4c4a commit bc8b5a0
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/master.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ include::modules/api-superuser-getServiceKey.adoc[leveloffset=+3]
include::modules/api-superuser-getRepoBuildStatusSuperUser.adoc[leveloffset=+3]
include::modules/api-superuser-getRepoBuildSuperUser.adoc[leveloffset=+3]
include::modules/api-superuser-getRepoBuildLogsSuperUser.adoc[leveloffset=+3]
include::modules/api-superuser-getRegistrySize.adoc[leveloffset=+3]
include::modules/api-superuser-postRegistrySize.adoc[leveloffset=+3]

include::modules/api-tag.adoc[leveloffset=+2]
include::modules/api-tag-restoreTag.adoc[leveloffset=+3]
Expand Down
51 changes: 51 additions & 0 deletions modules/api-superuser-getRegistrySize.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@

= getRegistrySize


[discrete]
== GET /api/v1/superuser/registrysize/

**Authorizations: **oauth2_implicit (**super:user**)

[discrete]
== Path parameters

[options="header", width=100%, cols=".^2a,.^3a,.^9a,.^4a"]
|===
|Type|Name|Description|Schema
|path|**namespace** +
_required_||string
|===


[discrete]
== Request body schema (application/json)

Description of a image registry size

[options="header", width=100%, cols=".^3a,.^9a,.^4a"]
|===
|Name|Description|Schema
|*size_bytes** +
_optional_|Number of bytes the organization is allowed|integer

|*last_ran* | |integer

|*queued* | |boolean

|*running* | |boolean
|===

[discrete]
== Responses

[options="header", width=100%, cols=".^2a,.^14a,.^4a"]
|===
|HTTP Code|Description|Schema
|201|CREATED|
|400|Bad Request|&lt;&lt;_apierror,ApiError&gt;&gt;
|401|Session required|&lt;&lt;_apierror,ApiError&gt;&gt;
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

51 changes: 51 additions & 0 deletions modules/api-superuser-postRegistrySize.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@

= postRegistrySize


[discrete]
== POST /api/v1/superuser/registrysize/

**Authorizations: **oauth2_implicit (**super:user**)

[discrete]
== Path parameters

[options="header", width=100%, cols=".^2a,.^3a,.^9a,.^4a"]
|===
|Type|Name|Description|Schema
|path|**namespace** +
_required_||string
|===


[discrete]
== Request body schema (application/json)

Description of a image registry size

[options="header", width=100%, cols=".^3a,.^9a,.^4a"]
|===
|Name|Description|Schema
|*size_bytes** +
_optional_|Number of bytes the organization is allowed|integer

|*last_ran* | |integer

|*queued* | |boolean

|*running* | |boolean
|===

[discrete]
== Responses

[options="header", width=100%, cols=".^2a,.^14a,.^4a"]
|===
|HTTP Code|Description|Schema
|201|CREATED|
|400|Bad Request|&lt;&lt;_apierror,ApiError&gt;&gt;
|401|Session required|&lt;&lt;_apierror,ApiError&gt;&gt;
|403|Unauthorized access|&lt;&lt;_apierror,ApiError&gt;&gt;
|404|Not found|&lt;&lt;_apierror,ApiError&gt;&gt;
|===

12 changes: 12 additions & 0 deletions modules/rn_3_90.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ For more information, see the link:https://access.redhat.com/support/policy/upda

The following updates have been made to {productname}:

[id="rn-clair-47-enhancements"]
=== Clair 4.7 enhancements

Clair 4.7 was released as part of {productname} 3.9, and includes support for the following features:

* Native support for indexing Golang modules and RubeGems in container images.
* Change to link:OSV.dev[OSV.dev] as the vulnerability database source for any programming language package managers.
** This includes popular sources like GitHub Security Advisories or PyPA.
** This allow offline capability.
* Use of pyup.io for Python and CRDA for Java is suspended.
* Clair now supports Java, Golang, Python, and Ruby dependencies.

[id="single-site-georepl-removal"]
=== Removal of a single site in a geo-replicated environment

Expand Down

0 comments on commit bc8b5a0

Please sign in to comment.