Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927041 - [GURU] GURU Repository Access Request
Summary: [GURU] GURU Repository Access Request
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Access requests (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GURU project: Gentoo devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-15 00:21 UTC by kernaltrap
Modified: 2024-04-22 00:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
SSH pubkey (guru.pub,92 bytes, application/vnd.ms-publisher)
2024-03-15 18:05 UTC, kernaltrap
Details
OpenGPG pubkey (key.asc,1.72 KB, text/plain)
2024-03-18 19:44 UTC, kernaltrap
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kernaltrap 2024-03-15 00:21:23 UTC
Real name: Aiden Wingard
Preferred email address: kernaltrap@gmail.com
SSH key fingerprint (I think this is what's required): SHA256:eZS/RWeMFGe0G9GCTfu4+cezEGBuZyOLZjN7vEN2xQ8
Currently don't have a OpenPGP key.

I accept the GURU repository regulations.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-15 04:59:33 UTC
No, we need the public key (id_*.pub).
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-15 05:00:23 UTC
or `ssh-add -L`.
Comment 3 kernaltrap 2024-03-15 18:05:12 UTC
Created attachment 887705 [details]
SSH pubkey
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-15 18:37:27 UTC
Welcome!
Comment 5 kernaltrap 2024-03-15 19:32:45 UTC
I have tried to clone the guru repository, but I still don't have access. I have added the key I supplied to my Github account.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-16 09:02:08 UTC
Please paste the output of 'ssh -vvvv git@git.gentoo.org info'.
Comment 7 kernaltrap 2024-03-16 18:18:13 UTC
OpenSSH_9.7p1, OpenSSL 3.2.1 30 Jan 2024
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 47: Including file /etc/ssh/ssh_config.d/9999999gentoo-security.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/9999999gentoo-security.conf
debug3: /etc/ssh/ssh_config line 47: Including file /etc/ssh/ssh_config.d/9999999gentoo.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/9999999gentoo.conf
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/aiden/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/aiden/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug2: resolving "git.gentoo.org" port 22
debug3: resolve_host: lookup git.gentoo.org:22
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to git.gentoo.org [148.251.78.52] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: Connection established.
debug1: identity file /home/aiden/.ssh/id_rsa type -1
debug1: identity file /home/aiden/.ssh/id_rsa-cert type -1
debug1: identity file /home/aiden/.ssh/id_ecdsa type -1
debug1: identity file /home/aiden/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/aiden/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/aiden/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/aiden/.ssh/id_ed25519 type -1
debug1: identity file /home/aiden/.ssh/id_ed25519-cert type -1
debug1: identity file /home/aiden/.ssh/id_ed25519_sk type -1
debug1: identity file /home/aiden/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/aiden/.ssh/id_xmss type -1
debug1: identity file /home/aiden/.ssh/id_xmss-cert type -1
debug1: identity file /home/aiden/.ssh/id_dsa type -1
debug1: identity file /home/aiden/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.6
debug1: compat_banner: match: OpenSSH_9.6 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to git.gentoo.org:22 as 'git'
debug1: load_hostkeys: fopen /home/aiden/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: no algorithms matched; accept original
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-v00@openssh.com
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,ext-info-s,kex-strict-s-v00@openssh.com
debug2: host key algorithms: ecdsa-sha2-nistp256,ssh-ed25519,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes256-ctr,aes128-ctr,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes192-ctr
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes256-ctr,aes128-ctr,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes192-ctr
debug2: MACs ctos: hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
debug2: MACs stoc: hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: curve25519-sha256@libssh.org
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:0q8c/iVAqaL9klm7gymePHovFQjrX9DGWeY+x2/UAxM
debug2: ssh_krl_from_blob: bad KRL magic header
debug1: load_hostkeys: fopen /home/aiden/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: hostkeys_find_by_key_hostfile: trying user hostfile "/home/aiden/.ssh/known_hosts"
debug3: hostkeys_foreach: reading file "/home/aiden/.ssh/known_hosts"
debug3: hostkeys_find_by_key_hostfile: trying user hostfile "/home/aiden/.ssh/known_hosts2"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /home/aiden/.ssh/known_hosts2 does not exist
debug3: hostkeys_find_by_key_hostfile: trying system hostfile "/etc/ssh/ssh_known_hosts"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts does not exist
debug3: hostkeys_find_by_key_hostfile: trying system hostfile "/etc/ssh/ssh_known_hosts2"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts2 does not exist
The authenticity of host 'git.gentoo.org (148.251.78.52)' can't be established.
ED25519 key fingerprint is SHA256:0q8c/iVAqaL9klm7gymePHovFQjrX9DGWeY+x2/UAxM.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'git.gentoo.org' (ED25519) to the list of known hosts.
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: Sending SSH2_MSG_EXT_INFO
debug3: send packet: type 7
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug2: KEX algorithms: sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,kex-strict-c-v00@openssh.com
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug3: kex_input_ext_info: extension server-sig-algs
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-dss>
debug3: kex_input_ext_info: extension publickey-hostbound@openssh.com
debug1: kex_ext_info_check_ver: publickey-hostbound@openssh.com=<0>
debug3: kex_input_ext_info: extension ping@openssh.com
debug1: kex_ext_info_check_ver: ping@openssh.com=<0>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug3: kex_input_ext_info: extension server-sig-algs
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-dss>
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Will attempt key: /home/aiden/.ssh/id_rsa 
debug1: Will attempt key: /home/aiden/.ssh/id_ecdsa 
debug1: Will attempt key: /home/aiden/.ssh/id_ecdsa_sk 
debug1: Will attempt key: /home/aiden/.ssh/id_ed25519 
debug1: Will attempt key: /home/aiden/.ssh/id_ed25519_sk 
debug1: Will attempt key: /home/aiden/.ssh/id_xmss 
debug1: Will attempt key: /home/aiden/.ssh/id_dsa 
debug2: pubkey_prepare: done
debug1: Trying private key: /home/aiden/.ssh/id_rsa
debug3: no such identity: /home/aiden/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/aiden/.ssh/id_ecdsa
debug3: no such identity: /home/aiden/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /home/aiden/.ssh/id_ecdsa_sk
debug3: no such identity: /home/aiden/.ssh/id_ecdsa_sk: No such file or directory
debug1: Trying private key: /home/aiden/.ssh/id_ed25519
debug3: no such identity: /home/aiden/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: /home/aiden/.ssh/id_ed25519_sk
debug3: no such identity: /home/aiden/.ssh/id_ed25519_sk: No such file or directory
debug1: Trying private key: /home/aiden/.ssh/id_xmss
debug3: no such identity: /home/aiden/.ssh/id_xmss: No such file or directory
debug1: Trying private key: /home/aiden/.ssh/id_dsa
debug3: no such identity: /home/aiden/.ssh/id_dsa: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
git@git.gentoo.org: Permission denied (publickey)
Comment 8 kernaltrap 2024-03-16 18:32:14 UTC
figured this out on my own, i had to rename my keys. lol. but i cant commit because of gpg issues...

:3 ~/g/guru>pkgdev commit                                                                                                                     
error: gpg failed to sign the data:
gpg: keydb_search failed: Invalid argument
gpg: skipped "JamesIsWack <JamesIsWack@github.com>": Invalid argument
[GNUPG:] INV_SGNR 0 JamesIsWack <JamesIsWack@github.com>
[GNUPG:] FAILURE sign 134250544
gpg: signing failed: Invalid argument

fatal: failed to write commit object
:3 ~/g/guru[128]>
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-16 19:46:32 UTC
Sorry, I can only help with SSH.  GnuPG is a scary tool that we're happy when it works.
Comment 10 kernaltrap 2024-03-16 19:58:40 UTC
ah darn. hopefully i can figure this out.
Comment 11 kernaltrap 2024-03-17 18:38:07 UTC
i was able to get things somewhat working however i still cannot push commits.

:3 ~/g/guru[128]>git pull --rebase                                                                                                   10.62s (dev|?↑2↓27) 13:35
Enter passphrase for key '/home/aiden/.ssh/id_ed25519': 
Successfully rebased and updated refs/heads/dev.
:3 ~/g/guru>pkgdev push                                                                                                                16.215s (dev|?↑2) 13:35
net-proxy/ngrok-bin
  BadDescription: version 3.0.0: over 80 chars in length
  WhitespaceFound: version 3.0.0: ebuild has leading whitespace on lines: 19, 23
Enter passphrase for key '/home/aiden/.ssh/id_ed25519': 
Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 6 threads
Compressing objects: 100% (11/11), done.
Writing objects: 100% (11/11), 2.53 KiB | 2.53 MiB/s, done.
Total 11 (delta 3), reused 0 (delta 0), pack-reused 0 (from 0)
remote: FAIL: Unknown GIT_PUSH_CERT_STATUS
remote: Your push was not signed with a known key.
remote: You MUST use git push --signed with a known key.
remote: Known keys are the subkeys of all primary keys in LDAP.
remote: If you add a new (primary) key to LDAP, please ask Infra to sync gitolite.
remote: If you modified your key and uploaded to keyservers, please wait 4 hours for sync (SKS pool is slow, keys.gentoo.org pool is faster)
remote: If you haven't done either of these things, please see https://wiki.gentoo.org/wiki/Project:Gentoo-keys/Generating_GLEP_63_based_OpenPGP_keys#Next_steps
remote: git-receive-pack variables:
remote: GIT_PUSH_CERT=''
remote: GIT_PUSH_CERT_KEY=''
remote: GIT_PUSH_CERT_NONCE=''
remote: GIT_PUSH_CERT_NONCE_SLOP=''
remote: GIT_PUSH_CERT_NONCE_STATUS=''
remote: GIT_PUSH_CERT_SIGNER=''
remote: GIT_PUSH_CERT_STATUS=''
To git.gentoo.org:repo/proj/guru.git
 ! [remote rejected]     dev -> dev (pre-receive hook declined)
error: failed to push some refs to 'git.gentoo.org:repo/proj/guru.git'
:3 ~/g/guru[1]>
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-17 18:45:34 UTC
You need to do signed pushes.  I'm sure it's documented somewhere.
Comment 13 kernaltrap 2024-03-17 18:53:19 UTC
it is documented. Kangie made a writeup. i followed that and yet, this still doesnt work. i have uploaded my key to a keyserver and set the configs correctly. i will contact Kangie and ask him, maybe he knows a fix.
Comment 14 kernaltrap 2024-03-18 00:03:29 UTC
the issue has been resolved. thanks for the help Michal.
Comment 15 kernaltrap 2024-03-18 19:44:54 UTC
Created attachment 887889 [details]
OpenGPG pubkey

here is my new pubkey. had to update the email so it would show commits as being "verified" on Github.