aboutsummaryrefslogtreecommitdiff
path: root/docs/bsky/didweb/README.md
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-11-25 14:35:35 -0500
committerXe Iaso <me@xeiaso.net>2024-11-25 14:35:35 -0500
commitcdba95496fd16baca8b6bcd7bb03302b73813dc1 (patch)
tree7b784a27ccdeba389da1b301ba2952796917e146 /docs/bsky/didweb/README.md
parent26a583da49b53045f17bec1260aeb1803cda6760 (diff)
downloadx-cdba95496fd16baca8b6bcd7bb03302b73813dc1.tar.xz
x-cdba95496fd16baca8b6bcd7bb03302b73813dc1.zip
docs/bsky: add didweb notes
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'docs/bsky/didweb/README.md')
-rw-r--r--docs/bsky/didweb/README.md71
1 files changed, 71 insertions, 0 deletions
diff --git a/docs/bsky/didweb/README.md b/docs/bsky/didweb/README.md
new file mode 100644
index 0000000..a7523be
--- /dev/null
+++ b/docs/bsky/didweb/README.md
@@ -0,0 +1,71 @@
+# Setting up a Bluesky did:web account
+
+- PDS provisioning
+ - `civo sshkey create`
+ - Terraform to create instance
+ - Find ubuntu diskimage
+ - Create instance
+ - Install Docker and Docker Compose
+ - Setup rclone for backups
+ - Set AWS route53 zone
+ - `engram.within.website`
+- Install PDS
+ - curl2bash
+ - manually patched script to support ubuntu 24.04
+ - root is a reserved username, okay
+- Test login
+ - Can't verify email address
+- Making did:web account hosting stuff
+ - Point cetacean.club to Tigris
+ - tigris bucket
+ - Route 53 doesn't allow CNAME at the apex domain
+ - Had to use the DNS provider to get the IP addresses of Tigris
+ - Nope, tigris wants a CNAME, failing to the.cetacean.club
+- did:web account
+ - generate privkey / pubkey
+ - put in 1password
+ - generate did.json
+ - upload to tigris
+ - I put the DID document in the wrong place
+ - fuck I needed to do this:
+ ```sh
+ aws s3 cp did.json s3://the.cetacean.club/.well-known/did.json
+ ```
+ - Create invite code with pdsadmin
+ - Sign up
+ ```json
+ {
+ "level": 50,
+ "time": 1732561457309,
+ "pid": 7,
+ "hostname": "engram",
+ "name": "xrpc-server",
+ "status": 400,
+ "message": "External handle did not resolve to DID",
+ "msg": "error in xrpc method com.atproto.server.createAccount"
+ }
+ ```
+ - add DNS and HTTP verification
+ ```hcl
+ resource "aws_route53_record" "_atproto_the_cetacean_club" {
+ zone_id = data.aws_route53_zone.cetacean_club.zone_id
+ name = "_atproto.${tigris_bucket.the-cetacean.bucket}"
+ type = "TXT"
+ ttl = "3600"
+ records = ["did=did:web:the.cetacean.club"]
+ }
+ ```
+ HTTP:
+ ```
+ did:web:the.cetacean.club
+ ```
+ Then:
+ ```
+ aws s3 cp atproto-did s3://the.cetacean.club/.well-known/atproto-did
+ ```
+ - how to verify/activate your account
+ - register account
+ - set token in environment
+ - Get reccomended did credentials .verificationMethods.atproto
+ - s/did:key://
+ - Put in did.json .verificationMethod[0].publicKeyMultibase