Skip to content

Commit 5439f0a

Browse files
feat(tf): add public IDs of Packit tokens (#1008)
feat(tf): add public IDs of Packit tokens Reviewed-by: Laura Barcziová Reviewed-by: Maja Massarini Reviewed-by: Matej Focko Reviewed-by: Jan Havlín
2 parents b6eed41 + 36c6d49 commit 5439f0a

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

docs/configuration/upstream/tests.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,36 @@ execute:
511511

512512
Packit Service communicates with Testing Farm via its [API][testing-farm-api].
513513

514+
### Public IDs of Packit tokens (for using secrets)
515+
516+
For the encryption of secrets to be used by Packit-triggered tests, you need to
517+
encrypt the secrets with our public token ID and the git repo from which tests
518+
are going to be triggered. Below is an enumeration of our public IDs:
519+
520+
- Public ranch: `0cfc00a8-94d7-4408-babc-4d0bc43821ea`
521+
- RH-internal ranch
522+
- Packit Production: `ea2a89aa-6a78-40e0-906e-140f623c45b0`
523+
- Packit Stage: `c91ea8cc-d8f6-4b83-a80c-fefd45ff25e4`
524+
525+
:::tip
526+
527+
In case of any discrepancies, you should still be able to see the public ID and
528+
the git repo passed by Packit by triggering the TF run via Packit, and opening
529+
the original API request by Packit from the TF artifacts page.
530+
531+
:::
532+
533+
For the details on how to configure the secrets, please see the Testing Farm
534+
[documentation](https://docs.testing-farm.io/Testing%20Farm/0.1/test-request.html#secrets-in-repo-config).
535+
536+
:::warning
537+
538+
If you wish to utilize secrets in tests when submitting pull requests from
539+
forks, you need to encrypt the secrets for each of the forks that will trigger
540+
the tests.
541+
542+
:::
543+
514544
## Issues & RFEs
515545

516546
If you have found an issue or have an RFE, you can file an [issue in nucleus project][issues].

0 commit comments

Comments
 (0)