Monorepo for Tangled tangled.org

moving repos between knots #267

Open zenfyr.dev
Open opened by zenfyr.dev

hellooo, this might have been explained somewhere before, but it doesn't seem possible to move repos between knots and have them show up on the appview.

i've tried editing the record to point to a different knot and calling the knot's xrpc to create the repo, both of which work fine, and the repo seems to be active on the knot, but the appview still keeps pointing to the old knot. i've ended up just creating a new repo with a different record rid.

this is planned!

stuffs needed to support this:

  • #account event in knotstream to track repository status in that service (not user account, repository account)
  • more stable knotstream listening. It will break quite easily with current way. We can use part of knotmirror implementation to improve this.

Right now, as far as I understand, the knot from pure AT Protocol standpoint is "the PDS hosting the DID of the repo". Hypothetically, what would change if I were to migrate that DID to another PDS (i.e. another knot)? …can I even do this, since I clearly do not remember getting the private part of the rotation key (i.e. the knot is most likely holding one for me using its signing key as a rotation key on all created repos)?

Because if I were to change the PDS for this DID, move all the data, and assume Tangled doesn't cache it anywhere, that should be it. I don't see the knot itself referenced in the records anywhere for the single repo I currently own. I didn't notice the knot field, but I suspect I could update it?… Though the above issue suggests something may retain a stale mapping somewhere.

Possibly related: apparently both reference implementations for knots don't support explicit did:plc in sh.tangled.repo.create (they want to own the DID? i.e. we may need a different method for migrating from another knot) but they support did:web, so theoretically this trick may or may not work with a did:web repo if it's just pointed at another knot.

https://witchsky.app/profile/did:plc:5zmnhqlectis4gsqqe3zgezj/post/3mryouduyx22d

ok this is now technically possible! just needs some UI to support moving repositories from one knot to another.

Sign up or Sign in to add to the discussion.