| Summary: | Projects of the same name share the same gpg key | ||
|---|---|---|---|
| Product: | [Community] Copr | Reporter: | Miroslav Suchý <msuchy> |
| Component: | backend | Assignee: | Miroslav Suchý <msuchy> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | clime, gholms |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | copr-keygen-1.66-1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-05 13:06:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Miroslav Suchý
2016-04-25 21:38:52 UTC
Notes for myself: The code reside on keygen in files: keygen/src/copr_keygen/logic.py in functions user_exists() and create_new_key() The interresting parts of log are on debug level. Se we should enable debug on dev instance and reproduce it there. I believe, this is the problem: [root@copr-keygen-dev gnupg][STG]# gpg2 --homedir . --list-keys frostyx#libreoffice.org gpg: WARNING: unsafe ownership on homedir '.' pub rsa2048/EBD2355E 2016-04-27 [SCEA] [expires: 2021-04-26] uid [ultimate] frostyx_libreoffice (None) <frostyx#libreoffice.org> [root@copr-keygen-dev gnupg][STG]# gpg2 --homedir . --list-keys rostyx#libreoffice.org gpg: WARNING: unsafe ownership on homedir '.' pub rsa2048/EBD2355E 2016-04-27 [SCEA] [expires: 2021-04-26] uid [ultimate] frostyx_libreoffice (None) <frostyx#libreoffice.org> For 'rostyx#libreoffice.org', it finds a key of frostyx#libreoffice.org. It works similarly e.g. for gpg2 --export rostyx#libreoffice.org. It will export the key for user frostyx (and project libreoffice). For exact matching, left and right angle brackets are needed around "email" (e.g. gpg2 --list-keys <email>). This has been missed in keygen/src/copr_keygen/logic.py. Fixed in commit c485d9c Package including this fix has been deployed on production instance of Copr. |