| sidebar_position | 4 |
|---|---|
| title | Git Push with Nostr |
| description | Set up Nostr-authenticated git push |
Use your Nostr identity to push to JSS repositories.
- JSS running with
--gitenabled - Node.js installed
npm install -g git-credential-nostrgit-credential-nostr generateOutput:
Generated new Nostr keypair:
Private key: a1b2c3...
Public key: d4e5f6...
WebID: did:nostr:d4e5f6...
Setup:
git config --global nostr.privkey a1b2c3...
git config --global credential.helper nostr
git config --global nostr.privkey <your-private-key>cd myrepo
git-credential-nostr acl > .acl
git add .acl
git commit -m "Add ACL"This creates an ACL with:
- Your Nostr identity as owner (full access)
- Public read access (for
git clone)
git push origin mainThe credential helper automatically generates a NIP-98 token. JSS verifies the signature and allows the push.
- Git requests credentials
git-credential-nostrgenerates a NIP-98 event (kind 27235)- Token sent as Basic Auth password
- JSS verifies Nostr signature
- Push proceeds if ACL allows