$ git commit --allow-empty -s -S -m 'Empty signed #4'You need a passphrase to unlock the secret key foruser: "Henrik Sköllermark (Gerrit test) <REPL...@kryo.se>"2048-bit RSA key, ID EF7309FF, created 2015-10-21[master bdb3156] Empty signed #4
$ git log -1 --show-signaturecommit bdb31560e2245683a235d6fb32f5f1050b7c922egpg: Signature made tor 14 jan 2016 21:33:49 CET using RSA key ID EF7309FFgpg: Good signature from "Henrik Sköllermark (Gerrit test) <REPLACED@kryo.se>"Author: Henrik Sköllermark <REPLACED@kryo.se>Date: Thu Jan 14 21:33:49 2016 +0100Empty signed #4Change-Id: I803d3c93d72fb963d919497c3f83afa8042ec376Signed-off-by: Henrik Sköllermark <REPLACED@kryo.se>
$ git push --signed origin HEAD:refs/publish/masterYou need a passphrase to unlock the secret key foruser: "Henrik Sköllermark (Gerrit test) <REPLACED@kryo.se>"2048-bit RSA key, ID EF7309FF, created 2015-10-21Counting objects: 1, done.Writing objects: 100% (1/1), 637 bytes | 0 bytes/s, done.Total 1 (delta 0), reused 0 (delta 0)remote: Processing changes: new: 1, refs: 1, doneremote:remote: New Changes:remote: http://127.0.0.1:8080/4 Empty signed #4remote:To ssh://la...@localhost.localdomain:29418/gpg-test* [new branch] HEAD -> refs/publish/master
To ssh://laban@localhost.localdomain:29418/gpg-test
* [new branch] HEAD -> refs/publish/master
When I visit the change in Gerrit I see "Owner: Henrik Sköllermark ?" and the question mark icon has the alt text "This patch set was created without a push certificate".Clearly I have signed the push, and the fact that Gerrit accepts the change at all is a proof of that since I have the setting "Require signed push: TRUE" in All-Projects. My idea is that Gerrit can't figure out that it's really me somehow. How does the signature validation work? I have GPG key with ID EF7309FF added to my "laban" account. The account's name is "Henrik Sköllermark" but my name in the GPG key is "Henrik Sköllermark (Gerrit test)". Could that cause some problems? The email address matches however.
Notes:* During initialization I chose to download and install "Bouncy Castle Crypto SSL v152"* During initialization I set the admin account's email address to my email address. I later added a bogus email to the admin account and removed my own email address from the admin account using the SSH command "set-account --delete-email" so that I was allowed to add my email address to the "laban" account instead.* My system in running Fedora 22Am I doing it wrong or is there a bug in this new feature?
On Thursday, January 14, 2016 at 10:34:18 PM UTC+1, Henrik Sköllermark wrote:Hi!First I want to shout out a big thanks to Dave Borowitz at Google for the GPG additions in 2.12!
To ssh://la...@localhost.localdomain:29418/gpg-test
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
One problem that I've found with current implementation is thatthe database type for PUSH_CERTIFICATE columnin PATCH_SETtable is too small. With this patch applied: [1], I got this error:too long certificate description: 729 allowed only 255 char longAfter changing the type of PUSH_CERTFICATE to CLOB, as it's thecase for ACCOUNT_SSH_KEYS.SSH_PUBLIC_KEY column, with:alter table PATCH_SETS modify PUSH_CERTFICATE clobI was able to upload signed push, and the verification just worked: [2].But If you were able to upload signed push, the database insert operationworked in your case? Can you check if the PUSH_CERTFICATE columnwas populated for your patch set, e.g.:select PUSH_CERTFICATE from PATCH_SETS where CHANGE_ID = XXX and PATCH_SET_ID = YYY;PUSH_CERTFICATE------------------------------certificate version 0.1pusher 42ABC...
My error log says nothing except that the PluginScanner seems to reload all my plugins every minute. I don't know if that's a known issue.
On Sat, Jan 16, 2016 at 3:13 PM, David Ostrovsky <david.o...@gmail.com> wrote:One problem that I've found with current implementation is thatthe database type for PUSH_CERTIFICATE columnin PATCH_SETtable is too small. With this patch applied: [1], I got this error:too long certificate description: 729 allowed only 255 char longAfter changing the type of PUSH_CERTFICATE to CLOB, as it's thecase for ACCOUNT_SSH_KEYS.SSH_PUBLIC_KEY column, with:alter table PATCH_SETS modify PUSH_CERTFICATE clobI was able to upload signed push, and the verification just worked: [2].But If you were able to upload signed push, the database insert operationworked in your case? Can you check if the PUSH_CERTFICATE columnwas populated for your patch set, e.g.:select PUSH_CERTFICATE from PATCH_SETS where CHANGE_ID = XXX and PATCH_SET_ID = YYY;PUSH_CERTFICATE------------------------------certificate version 0.1pusher 42ABC...Aha! The patch sets were created but the PUSH_CERTFICATE column (misspelled) is NULL for all my five patch sets on this test instance of Gerrit 2.12.I see that you have fixed this problem in Change #73879, which I just posted a review comment on. The solution doesn't work for me though.
Regards Henrik
On Tue, Jan 19, 2016 at 7:29 AM Henrik Sköllermark <la...@kryo.se> wrote:On Mon, Jan 18, 2016 at 10:32 PM, Henrik Sköllermark <la...@kryo.se> wrote:My error log says nothing except that the PluginScanner seems to reload all my plugins every minute. I don't know if that's a known issue.Since I think that is a quite severe problem, and I cannot see any previous reported problems, I documented the behavior in Issue 3821. If the error_log is flooded with plugin reloads, it's hard to see if you got other problems.This sounds like the same issue that Dariusz was fixing in [1]. We couldn't reproduce it on stable-2.12, and the fix was abandoned.
What Git client version are you using? In my case it is:$ git --versiongit version 2.6.2
Now I have finally setup a build environment with buck! No Eclipse yet though.On Tue, Jan 19, 2016 at 8:27 AM, David Ostrovsky <david.o...@gmail.com> wrote:
On Monday, January 18, 2016 at 10:32:38 PM UTC+1, Henrik Sköllermark wrote:Aha! The patch sets were created but the PUSH_CERTFICATE column (misspelled) is NULL for all my five patch sets on this test instance of Gerrit 2.12.I see that you have fixed this problem in Change #73879, which I just posted a review comment on. The solution doesn't work for me though.Yeah, I expected that, because in my case i had a SQL error, saying that thecolumn size is too small. So you might have something different. The easiestway would be to setup development environment and put a breakpoint. ButI've added this verbose output to ReceiveCommits, to see, if the negotiationbetween Git client and JGit was ok: [1]. Could you re-try signed push with thispatch applied?I have tried. I applied the patch and ran "buck build gerrit", copied buck-out/gen/gerrit/gerrit.war, ran java -jar gerrit.war init -d review in the same location as I have used before and chose to update review/bin/gerrit.war. Then I started Gerrit, but I see nothing in error_log when I push. :( So I have some build problems apparently. "git diff" shows that I have applied the patch correctly.