all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to configure gitolite service?
@ 2023-12-05 11:56 Marek Paśnikowski
  2023-12-05 12:12 ` Julien Lepiller
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Paśnikowski @ 2023-12-05 11:56 UTC (permalink / raw)
  To: help-guix

Dear all.

I am in the process of setting up Gitolite.  My strategy is based on the principles of Test Driven Development.

Following the system reconfiguration errors, I have questions regarding the minimal required code:

(service gitolite-service-type
  (gitolite-configuration
    (admin-pubkey
      (plain-file "user.pub" "key" "mail"))))

1. Which system user does the .pub file correspond to - git or (in my case) marek? In other words, is the key owner the /git/ account which serves the Gitolite instance; or is it the remote administrator account which logs into the service?

If it is the /git/ user, how do I inject the private key into the server's profile?

2. Does the mail address correspond to the same account as above?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to configure gitolite service?
  2023-12-05 11:56 How to configure gitolite service? Marek Paśnikowski
@ 2023-12-05 12:12 ` Julien Lepiller
  2023-12-05 12:33   ` Marek Paśnikowski
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Lepiller @ 2023-12-05 12:12 UTC (permalink / raw)
  To: help-guix, Marek Paśnikowski

This is the public key that corresponds to the private key the admin uses to pull/push the configuration repo with:

git clone git@server:gitolite-admin

I don't understand why you talk about mail here, plain-file is a file-like object which creates a file in the store from a string. This is just the content of the pub key file. Here's what I use, where the pub key is available in the same directory as the guix configuration (typically, /etc/julien.pub):

(admin-pubkey (local-file "julien.pub"))

Le 5 décembre 2023 12:56:27 GMT+01:00, "Marek Paśnikowski" <marek@marekpasnikowski.pl> a écrit :
>Dear all.
>
>I am in the process of setting up Gitolite.  My strategy is based on the principles of Test Driven Development.
>
>Following the system reconfiguration errors, I have questions regarding the minimal required code:
>
>(service gitolite-service-type
>  (gitolite-configuration
>    (admin-pubkey
>      (plain-file "user.pub" "key" "mail"))))
>
>1. Which system user does the .pub file correspond to - git or (in my case) marek? In other words, is the key owner the /git/ account which serves the Gitolite instance; or is it the remote administrator account which logs into the service?
>
>If it is the /git/ user, how do I inject the private key into the server's profile?
>
>2. Does the mail address correspond to the same account as above?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to configure gitolite service?
  2023-12-05 12:12 ` Julien Lepiller
@ 2023-12-05 12:33   ` Marek Paśnikowski
  0 siblings, 0 replies; 3+ messages in thread
From: Marek Paśnikowski @ 2023-12-05 12:33 UTC (permalink / raw)
  To: julien, help-guix

Thank you.

I confused the last part of the SSH key file with how a PGP key has a corresponding email. 

I understand it now as the following:
The (plain-file ...) function is supposed to reflect the contents of the remote administrator's id_ed*.pub file.
I am not sure if the name files have to match too, but that is testable easily enough.

Email z Wtorek, 5 grudnia 2023 od Julien Lepiller:
> This is the public key that corresponds to the private key the admin uses to pull/push the configuration repo with:
> 
> git clone git@server:gitolite-admin
> 
> I don't understand why you talk about mail here, plain-file is a file-like object which creates a file in the store from a string. This is just the content of the pub key file. Here's what I use, where the pub key is available in the same directory as the guix configuration (typically, /etc/julien.pub):
> 
> (admin-pubkey (local-file "julien.pub"))
> 
> Le 5 décembre 2023 12:56:27 GMT+01:00, "Marek Paśnikowski" <marek@marekpasnikowski.pl> a écrit :
> >Dear all.
> >
> >I am in the process of setting up Gitolite.  My strategy is based on the principles of Test Driven Development.
> >
> >Following the system reconfiguration errors, I have questions regarding the minimal required code:
> >
> >(service gitolite-service-type
> >  (gitolite-configuration
> >    (admin-pubkey
> >      (plain-file "user.pub" "key" "mail"))))
> >
> >1. Which system user does the .pub file correspond to - git or (in my case) marek? In other words, is the key owner the /git/ account which serves the Gitolite instance; or is it the remote administrator account which logs into the service?
> >
> >If it is the /git/ user, how do I inject the private key into the server's profile?
> >
> >2. Does the mail address correspond to the same account as above?
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-05 12:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05 11:56 How to configure gitolite service? Marek Paśnikowski
2023-12-05 12:12 ` Julien Lepiller
2023-12-05 12:33   ` Marek Paśnikowski

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.