Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
toshiyamamoto committed May 31, 2020
1 parent e2a0d02 commit 8124549
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion signature-server/sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,19 @@ To store a signature, a HTTP PUT method is used. The target URI is the form

> `/staging/`_registry_`/`_namespaces_`/`_name_`@`_digest-algo_`=`_digest-value_`/signature-`_index_
The target is protected by OpenShift OAuth proxy. A bearer token is required to authenticate and authorize a request. The token needs to be granted accessing a secret and web resources. For Kabanero either using kabanero-operator service account or use image-signer sample service account which is available in this repository.
The target is protected by OpenShift OAuth proxy. A bearer token is required to authenticate and authorize requests. The token needs to be granted to store ImageSignature. Following shows the required role.
```
- apiGroups:
- ''
- image.openshift.io
resources:
- imagesignatures
verbs:
- create
- delete
```

For Kabanero either using kabanero-operator service account or use image-signer sample service account which is available in this repository.

The following shows an example by using curl when a signature of which name is signature-1 is for the image `mynamespace/busybox@sha256:817a12c32a39bbe394944ba49de563e085f1d3c5266eb8e9723256bc4448680e` which is stored in a registry `registry.example.com:5000` and a url of a look aside signature store is `signatures-server-icp4app-security.apps.myocp.example.com`
You need to modify existing Tekton tasks to add the code to put a generated signature to the signature server.
Expand Down

0 comments on commit 8124549

Please sign in to comment.