Commit a912d85e authored by Emanuele Aina's avatar Emanuele Aina Committed by Frédéric Dalleau

README: Document how to register secret tokens

Describe how to set up shared secret tokens to authenticate LAVA
callback submissions.
Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 20e706bb
Pipeline #4794 passed with stage
in 1 minute and 24 seconds
......@@ -145,3 +145,15 @@ To see what happens:
```
journalctl -ef -b -u apertis-qa-report
```
## Registering secret tokens
The application uses shared secrets to authenticate legitimate LAVA callback submissions.
To set up a new shared secret you need to:
1. create a new token in the LAVA UI (`API``Authentication Tokens`) for the user
submitting the `notify` callback, using the name set in the
`notify``callback``token` property of the LAVA job definition YAML
1. export the value generated by LAVA to the `./secrets/token` file in the
working directory of the application
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment