#9633 git push to fork on src.fedoraproject.org not permitted
Closed: Fixed 3 years ago by pingou. Opened 3 years ago by rhasti.

Describe what you would like us to do:


Hello,

Created a fork [https://src.fedoraproject.org/fork/rhasti/rpms/libwacom] for libwacom .
Made some changes and and tried to push changes back. For authentication data i used username rhasti and a API Key from the project that has "Commit to a git repository via http(s)" permissions.

libwacom]$ git push --set-upstream origin add_yoga6
Password for 'https://rhasti@src.fedoraproject.org':
fatal: Authentication failed for 'https://src.fedoraproject.org/forks/rhasti/rpms/libwacom.git/'

Can you please help me with troubleshooting this issue?

Regards,
Joe

When do you need this to be done by? (2021/02/25)



I can reproduce, investigating

Metadata Update from @pingou:
- Issue assigned to pingou

3 years ago

Alright, so the issue is that the API token sent is being capture by the OIDC/oauth2 set-up which refuses it (for the obvious reason that this token isn't an oauth2 token).

In other words, fedpkg push works but git push doesn't atm

Metadata Update from @humaton:
- Issue tagged with: high-trouble, medium-gain, ops

3 years ago

Have been following https://docs.pagure.org/pagure/usage/ .

I just tried with fedpkg but got no permission to pull from there. Probably because i am not a packager.

[joe@flummi la]$ cat ~/.fedora.upn
rhasti
[joe@flummi la]$ klist
Ticket cache: KCM:1000
Default principal: rhasti@FEDORAPROJECT.ORG

Valid starting Expires Service principal
02/08/21 15:11:50 02/09/21 15:11:42 krbtgt/FEDORAPROJECT.ORG@FEDORAPROJECT.ORG
renew until 02/15/21 15:11:42
[joe@flummi la]$ fedpkg clone forks/rhasti/rpms/libwacom
Cloning into 'libwacom'...
rhasti@pkgs.fedoraproject.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Could not execute clone: Failed to execute command.

Metadata Update from @smooge:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: src.fp.o

3 years ago

Thank you pingou, i got my change committed. Really cool infrastructure. Takes some time to get familiar with it. :)

Glad you got it working :)

Let us know if you need anything else!

Metadata Update from @pingou:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata
Boards 1
ops Status: Done