You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RHTAS Console is a Go-based RESTful API server, providing functionality for signing and verifying software artifacts using Cosign, interacting with Sigstore's Rekor transparency log, and managing trust configurations with TUF and Fulcio. This repository serves as the backend for the RHTAS Console application, with plans to potentially add a frontend in the future.
3
+
The RHTAS Console is a Go-based RESTful API server, providing functionality for verifying software artifacts, interacting with Rekor transparency log, and managing trust configurations with TUF and Fulcio. This repository serves as the backend for the RHTAS Console application, which now includes a [frontend interface](https://github.com/securesign/rhtas-console-ui).
4
4
5
5
## Features
6
6
7
-
-**Artifact management**: Sign and verify artifacts (e.g., container images, files, SBOMs) using Cosign.
- Optional: [rekor-cli](https://docs.sigstore.dev/rekor/installation/) and [cosign](https://docs.sigstore.dev/cosign/installation/) for testing Rekor and Cosign interactions
24
23
25
24
### Steps
26
25
@@ -82,8 +81,7 @@ The backend exposes the following RESTful endpoints, as defined in the OpenAPI s
82
81
| GET |`/healthz`| Retrieves the current health status of the server. |
83
82
| GET |`/swagger-ui`| Serves the Swagger User Interface. |
84
83
| GET |`/rhtas-console.yaml`| Returns the project OpenAPI spec file. |
85
-
| POST |`/api/v1/artifacts/sign`| Signs an artifact using Cosign. |
86
-
| POST |`/api/v1/artifacts/verify`| Verifies an artifact using Cosign. |
84
+
| POST |`/api/v1/artifacts/verify`| Verifies an artifact. |
87
85
| GET |`/api/v1/artifacts/{artifact}/policies`| Retrieves policies and attestations for an artifact. |
88
86
| GET |`/api/v1/artifacts/image`| Retrieves metadata for a container image by full reference URI. |
89
87
| GET |`/api/v1/rekor/entries/{uuid}`| Retrieves a Rekor transparency log entry by UUID. |
@@ -94,35 +92,175 @@ The backend exposes the following RESTful endpoints, as defined in the OpenAPI s
94
92
| GET |`/api/v1/trust/target`| Retrieves a specific TUF target. |
95
93
| GET |`/api/v1/trust/targets/certificates`| Retrieves certificates for TUF targets. |
96
94
97
-
#### Example: Sign an artifact
95
+
#### Example: Verify an artifact
98
96
99
-
To sign a container image using Cosign (keyless signing with OIDC token):
97
+
To verify an OCI image:
100
98
99
+
100
+
- Using `ociImage`:
101
101
```bash
102
-
curl -X POST http://localhost:8080/api/v1/artifacts/sign \
102
+
curl -X POST http://localhost:8080/api/v1/artifacts/verify \
0 commit comments