Recently I setup split-gpg following the docs. However, I recognized some level of disparity between what the docs say and the way qubesOS works today.
- When I do
qubes-gpg-client -K
on a qube of mine for the purposes of reaching the gpg backend qube, I get TWO confirmation dialogs instead of the documentation’s singular one. The first one that pops-up is following:
In the above conf dialog, I simply click on the Target: box, hit down arrow key, and select by gpg backend qube, and hit Enter. This confirms my desire to allow the red qube to reach the black (offline) qube for the GPG operations.
But after that, I get a follower conf dialog which is the one that’s visible in the Split-GPG doc of QubesOS website:
Here, I, once again, have to click “Yes” in order to get the split-gpg operation go through. This seems redundant, because, if I don’t allow the first confirmation box, I don’t get to the second one anyways. Furthermore, the thing that makes the second confirmation dialog doubly-redundant is that even if the second one claims that “allow now and for the following 5 minutes” I get the first dialog box each and everytime I try to use qubes-gpg-client
command on the split-gpg client qube (which is what I like, btw, I like to be visibly asked for confirmation each and everytime a qube of mine wants to reach the split-gpg backend.)
-
The docs mentions modifying the file
/etc/qubes-rpc/policy/qubes.Gpg
. However, QubesOS 4.2’s UI doesn’t seem to use that file? Q Menu → Cogwheel icon → Qubes Tools → Qubes Global Config → Split GPG: Select Enabled. This creates a file in dom0,/etc/qubes/policy.d/50-config-splitgpg.policy
. So, the doc seems to mention some older directory location for this file? -
When I manually edit the file in dom0
/etc/qubes/policy.d/50-config-splitgpg.policy
and insert in it a singular line:
qubes.Gpg * <GPG-CLIENT-QUBE> <GPG-BACKEND-QUBE> ask target=<GPG-BACKEND-QUBE>
I get the working behavior which is very similar to what I already have with Split-SSH config which is nice and good (what I want). However, upon visiting the Q Menu → Cogwheel icon → Qubes Tools → Qubes Global Config → Split GPG window, I see the error: Some policy rules cannot be parsed. They are correct but are too complicated for this tool to handle. These rules will be discarded on save. The following rules were affected.
Well, I don’t want my rules to be discarded, and I don’t see them being discarded, I guess this is because upon seeing this message I immediately leave the Split GPG window without clicking on Apply button?
All these 3 points are confusing to me as a first time user of split-gpg config. Any comments about these points? Is there something wrong with my split-gpg setup that makes me shoot myself on my own foot?