RNS Logo

rns.recipes

◈ 9ce92808be498e9e05590ff27cbfdfe4

What are rngit identities ?

Started by Tukan 8dab5fc052de8a96... ·

Tukan 8dab5fc052de8a96...
#1

When doing rngit --print-identity it returns different hashes :

 

Git Peer Identity
Repository Node Identity
Repositories Destination

 

What are they ?

 

And more precisely, which one of those should I use to create a repo with rngit create rns://

 

Thanks.
Tukan.

bergie f9477df559d52317...
#2

Peer identity is your identity as an rngit client, so that's what you'd give permissions to on a remote rngit server.

 

Node identity is if you're hosting rngit repositories.

burger ace748e1c4e3fd4e...
#3

git peer is what you authenticate with when you push/pull/clone from an rngit server
Repository node identity is the identity for the "rngit server"
repositories destination is what is used to pull push clone to an rngit server
nomad network is your website.

 

 

tldr you need the repositories destination

Tukan 8dab5fc052de8a96...
#4

Thanks for your answers.

 

Let me make sure I understand :

 

  • I need to give permissions on the rngit node that hosts the repositories to the rngit clients, identified with their "Git Peer Identity".

 

  • From an authenticated rngit client, I can rngit create rns://Repositories Destination/<group>/<repo>

 

Is that right ?

 

Thanks.
Tukan.

Tukan 8dab5fc052de8a96...
#5

Following those steps, I always get :

 

Requesting path... Could not resolve path to <be1b587e1ff92af7dd1cd94f7a5ff003>

 

Something odd ...

Tukan 8dab5fc052de8a96...
#6

(that's the actual Repositories Destination)

burger ace748e1c4e3fd4e...
#7

#4,

 

yes, thats how it should be.

 

 

#5

 

uh..
thats not supposed to happen..
if i look at the manual, thats exactly what you should do
also, it should be rns://repositoriesdestination/repogroup/reponame
repogroup shall be defined in thy rngit config file.
alternatively, read the manual here> https://reticulum.network/manual/git.html

Tukan 8dab5fc052de8a96...
#8

thanks burger, I've been reading the manual quite a lot and could not make it work, that's why I'm asking here.

 

But now that I'm more confident about the command syntax I can start again. Thanks.

burger ace748e1c4e3fd4e...
#9

Tukan wrote:

thanks burger, I've been reading the manual quite a lot and could not make it work, that's why I'm asking here.

But now that I'm more confident about the command syntax I can start again. Thanks.

 

no problemo!
also,i have a lot of storage, i can mirror some git repos if you want

Tukan 8dab5fc052de8a96...
#10

well that's very kind of you. The repo I want to store is just 1 nomadnet micron file so it's not really a storage issue.

 

But I would like to learn how to make this work properly though ...

 

If you have or happen to know of a public rngit, I would like the address so I can try to connect to it as a test.

adept 2db1af96591ae4eb...
edited #11

The Git Peer Identity is the identity of your git node.
It is used to identify yourself to allow processes, which are not allowed for other identities.

 

mine is be1bd050dd9ef74615220e9bb146681f

 

So in the ~/.rngit/config, it looks like this for example:
public = r:all, w:be1bd050dd9ef74615220e9bb146681f, c:be1bd050dd9ef74615220e9bb146681f
internal = rw:be1bd050dd9ef74615220e9bb146681f

 

The Repository Node Identity is the identity of your nomadnetwork node for this git repository.
Not using this actively.

 

The Repositories Destination is the destination of your git node.
It is used to find your git node.
'git clone rns://REPOSITORIES_DESTINATION/public/myrepo'

 

The Nomad Network Destination is the destination of the nomadnetwork page, if activated.
You can browse it using nomadnet.
NN_DESTINATION:/page/index.mu

 

described it here: 31098a73fe6ffec780cb9d9c2c3a9be7:/page/experiences/rngit.mu

Tukan 8dab5fc052de8a96...
#12

Thanks a lot for your help !

 

Still trying :)

Tukan 8dab5fc052de8a96...
#13

After reconfiguring, I could finally create my repo with rngit create !

 

Thanks everyone.

Tukan 8dab5fc052de8a96...
#14

But ... the repo is there but when I do git clone rns://Repositories Destination/<group>/<repo> I get :

 

Cloning into '<repo>'...
Link established with remote
git-remote-rns failed: Fetch failed for batch: Could not fetch refs

 

Any idea what I can do ? I don't even have the repo on my system, it's the first clone.

 

Post a Reply

Supports Markdown: **bold**, *italic*, `code`, ```code blocks```, [links](url)

Log in to upload images

Quote
Copied to clipboard