List of commits:
Subject Hash Author Date (UTC)
Be more explicit and specify exactly the ssh command instead of 'ssh ... totp' 3750e02fc5a0d75ba274c6ae9757e3d582348f51 Catalin(ux) M. BOIE 2019-10-25 02:54:52
Activating gzip compression in nginx sample file 60a153c84f1a8ee68c4008d2cb512d3016c50499 Catalin(ux) M. BOIE 2019-10-25 02:33:13
totp: urlencode parameters when calling qrencode 0b16e22978a8b5488e8f435a538dec07bb515476 Catalin(ux) M. BOIE 2019-10-19 03:53:20
/run/rocketgit-fpm/ -> /run to not create the dir 13ff6e91698260ba5a41591275fa915e33baebc9 Catalin(ux) M. BOIE 2019-10-01 16:08:43
Compute repo disk size only for not deleted repos 551d1798802853e5af1e12a1908cc10fbc432d17 Catalin(ux) M. BOIE 2019-09-30 22:08:27
git_log2listing big changes e91fdef76511d586af30a3aa4b44273a1203bd36 Catalin(ux) M. BOIE 2019-09-30 19:54:38
typo 0ef09cd6e02fa3bf79e0a26b887badc103b03d87 Catalin(ux) M. BOIE 2019-09-30 19:53:56
Some more error testing for http_confirm test 1f36b1f55465c57e935b830e456d8f8044ec17da Catalin(ux) M. BOIE 2019-09-30 19:53:38
fixes: ignore some errors 584eef4cbfb5427eaae34d72ea99b94ec4da29a4 Catalin(ux) M. BOIE 2019-09-30 19:52:45
cache: functional test for timeout acaeca2fbceb797b0fb58f1c05bdd8d1f9025f25 Catalin(ux) M. BOIE 2019-09-30 19:51:35
Fixed rg_git_merge because it was broken 797a976065420525f9f2c6a096ae306ffa5ed78d Catalin(ux) M. BOIE 2019-09-30 19:50:41
Disable GC when serving requests from web/fetch/push; we will do it from cron fd16c96f5f0a6d24e0c6aaf45c5a02833579667a Catalin(ux) M. BOIE 2019-09-30 19:48:49
git: fixes display of filenames which are not UTF-8 valid 83b6f641a547a4652aad6e921486d2b91cffdb9f Catalin(ux) M. BOIE 2019-09-30 19:46:07
rg_change_pass missed a log file name e49fc9f8c896414098713e418205d97b2e594c1f Catalin(ux) M. BOIE 2019-09-22 09:32:59
totp: remove a double DELETE sql query and invalidate cache after we remove the data from db ff22d7ddabc1c64a37fcb1749f54321974b0f8d3 Catalin(ux) M. BOIE 2019-09-22 09:28:30
selinux: added map (for packs) 911b2cffa2d754d466a31693af71d6c58639dd9d Catalin(ux) M. BOIE 2019-09-22 06:58:44
Do not allow : char in user name 460b846752c03368990b60efbbf12f74e229bda5 Catalin(ux) M. BOIE 2019-09-22 05:58:37
Do not allow : char in repo name b072ba3cd6c46e2ee7d07dc5890c8671d8462a09 Catalin(ux) M. BOIE 2019-09-22 05:56:56
Fix an XSS in repo description ee2d11f0b16b436d9e64a0c5ac57361d25e098e1 Catalin(ux) M. BOIE 2019-09-22 05:45:11
Do not allow a user name to start with minus; strlen -> mb_strlen 755f2a47e99dc3a56cee90b424ee8a9bd84236f8 Catalin(ux) M. BOIE 2019-09-22 05:07:01
Commit 3750e02fc5a0d75ba274c6ae9757e3d582348f51 - Be more explicit and specify exactly the ssh command instead of 'ssh ... totp'
Author: Catalin(ux) M. BOIE
Author date (UTC): 2019-10-25 02:54
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2019-10-25 02:54
Parent(s): 60a153c84f1a8ee68c4008d2cb512d3016c50499
Signing key:
Tree: ce2a16eb3b7104989c716b954c84e30b9a912024
File Lines added Lines deleted
inc/ssh.inc.php 4 1
inc/totp.inc.php 5 2
File inc/ssh.inc.php changed (mode: 100644) (index 67708ab..5459e59)
... ... function rg_ssh_totp_verify_ip($db, $uid, $ip)
152 152 */ */
153 153 function rg_ssh_totp($db, $ip, $uid, $paras) function rg_ssh_totp($db, $ip, $uid, $paras)
154 154 { {
155 global $rg_ssh_host;
156
155 157 rg_prof_start('ssh_totp'); rg_prof_start('ssh_totp');
156 158 rg_log_enter('ssh_totp ip=' . $ip . ' uid=' . $uid rg_log_enter('ssh_totp ip=' . $ip . ' uid=' . $uid
157 159 . ' paras=' . rg_array2string($paras)); . ' paras=' . rg_array2string($paras));
 
... ... function rg_ssh_totp($db, $ip, $uid, $paras)
173 175 echo 'or manually enter the following code: ' . $secret . ".\n"; echo 'or manually enter the following code: ' . $secret . ".\n";
174 176 echo 'To finish the enrollment you will have to confirm'; echo 'To finish the enrollment you will have to confirm';
175 177 echo ' it by running the following command:'; echo ' it by running the following command:';
176 echo ' ssh ... totp enroll <6_digits_code_generated_by_device>' . "\n";
178 echo ' ssh rocketgit@' . $rg_ssh_host
179 . ' totp enroll <6_digits_code_generated_by_device>' . "\n";
177 180 break; break;
178 181 } }
179 182
File inc/totp.inc.php changed (mode: 100644) (index 88f7afb..a7d5d1a)
... ... function rg_totp_list_ip($db, $uid)
627 627 */ */
628 628 function rg_totp_verify_ip($db, $uid, $ip) function rg_totp_verify_ip($db, $uid, $ip)
629 629 { {
630 global $rg_ssh_host;
631
630 632 rg_prof_start('totp_verify_ip'); rg_prof_start('totp_verify_ip');
631 633 rg_log_enter('totp_verify_ip ip=' . $ip); rg_log_enter('totp_verify_ip ip=' . $ip);
632 634
 
... ... function rg_totp_verify_ip($db, $uid, $ip)
657 659 } }
658 660
659 661 if (empty($ret['ip_list'])) if (empty($ret['ip_list']))
660 rg_totp_set_error('you have no IP validated;'
661 . ' run \'ssh ... totp\' for help');
662 rg_totp_set_error('you have no IPs validated;'
663 . ' run \'ssh rocketgit@' . $rg_ssh_host
664 . ' totp\' for help');
662 665
663 666 break; break;
664 667 } }
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main