From 664d0dfed573cfe63b6f86245af667ffea13a564 Mon Sep 17 00:00:00 2001 From: syui Date: Fri, 20 Jun 2025 03:15:18 +0000 Subject: [PATCH] =?UTF-8?q?bluecheck=20=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bluecheck.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/bluecheck.md b/bluecheck.md index 19a924f..4f8108e 100644 --- a/bluecheck.md +++ b/bluecheck.md @@ -1 +1,54 @@ -ozoneのbluecheckについてまとめる。 \ No newline at end of file +ozoneのbluecheckについてまとめる。 + +bluecheckという認証機能について、selfhostで試す方法を探しています。 + +- [bsky.social](https://bsky.social/xrpc/com.atproto.repo.listRecords?repo=bsky.app&collection=app.bsky.graph.verification) +- [syu.is](https://syu.is/xrpc/com.atproto.repo.listRecords?repo=ai.syu.is&collection=app.bsky.graph.verification) + +```sh +$ curl -sL "https://syu.is/xrpc/com.atproto.repo.listRecords?repo=ai.syu.is&collection=app.bsky.graph.verification"|jq ".records.[0]" +``` + +```json +{ + "uri": "at://did:plc:6qyecktefllvenje24fcxnie/app.bsky.graph.verification/3lnf7cgsi7s2b", + "cid": "bafyreihiy25idswtqnn3x24metot3k62wyfir5bjalddzr3lmyqtzknjpy", + "value": { + "$type": "app.bsky.graph.verification", + "handle": "syui.syu.is", + "subject": "did:plc:vzsvtbtbnwn22xjqhcu3vd6y", + "createdAt": "2025-04-21T00:00:00.323Z", + "displayName": "syui" + } +} +``` + +- https://github.com/bluesky-social/atproto/pull/3761/files +- https://github.com/bluesky-social/social-app/pull/8226 + +推測 + +- https://github.com/bluesky-social/atproto/blob/main/packages/pds/src/auth-verifier.ts + +```sh +host=syu.is +admin_password=xxx +url=https://${host}/xrpc/com.atproto.admin.updateSubjectStatus +json="{\"action\": \"com.atproto.admin.defs#authVerifier\", \"subject\": {\"$type\": \"com.atproto.admin.defs#repoRef\", \"did\": \"did:plc:example\"}}" +curl -X POST -u admin:${admin_password} -H "Content-Type: application/json" -d "$json" -sL $url +``` + +indigo-goatを使ってラベルを管理する方法です。 + +https://github.com/bluesky-social/atproto/discussions/3607 + +ozoneで管理されるようです。 + +```diff +# https://github.com/bluesky-social/atproto/blob/246562694fbc84dfcdace19c863f8fb2fe074739/packages/ozone/src/config/env.ts#L40-L44 +OZONE_VERIFIER_URL +OZONE_VERIFIER_DID +OZONE_VERIFIER_PASSWORD +OZONE_VERIFIER_ISSUERS_TO_INDEX +OZONE_VERIFIER_JETSTREAM_URL +``` \ No newline at end of file