Skip to content

Commit 77b2348

Browse files
Add documentation for JWT token for kernelci-pipeline
Co-authored-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Denys Fedoryshchenko <[email protected]>
1 parent 90b3d57 commit 77b2348

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

doc/install.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,21 @@ And several secrets:
2222
- name:`kci-api-jwt-early access` (or `kci-api-jwt-staging` for staging), key:`token` - contains the JWT token for the KernelCI API
2323

2424
This secrets is subject to change soon, to make it more consistent with the rest of the secrets.
25+
26+
## JWT secret for kernelci-pipeline API
27+
28+
The lava-callback provides an API to the kci-dev tool, providing endpoints for custom checkouts, patchset testing, job retries, etc.
29+
30+
## TOML
31+
32+
In the configuration file, you need to have the following section:
33+
```
34+
[jwt]
35+
secret = "ABCDEFGH..."
36+
```
37+
38+
## Generating tokens for user
39+
40+
You can use the `jwt_generator.py` script in the tools directory to generate user tokens.
41+
42+
`jwt_generator.py --secret ABCDEFGH... --email [email protected]`

0 commit comments

Comments
 (0)