16 Commits
Author SHA1 Message Date
raucao 023f5b39bf Fix strfry README and drop deployment specifics
CI / Test (pull_request) Successful in 43s
Release Drafter / Update release notes draft (pull_request) Successful in 3s
The new README described the directory as mostly Node ESM and called the
pre-existing Deno policies "legacy", even though ldap-policy.ts is a shared
module reused by the new member bridge and strfry-policy.ts is the members
relay's current write policy. It also baked in internal deployment details
(Chef, strfry-1, /etc/*.conf paths, the staging relay's ZeroTier IP).

Document every file with its correct runtime (Deno vs Node 24 LTS), drop the
"legacy" label, and genericize the deployment examples. Cross-link the README
from docs/dev/nostr.md, and replace the remaining internal host/IP references
in sync-policy.mjs and its test with neutral placeholders.
2026-11-18 13:51:48 +04:00
raucao 30ca91797e Make sync-policy source-verification only
CI / Test (pull_request) Successful in 42s
Drop the kind allowlist and event well-formedness checks from the
approved-content sync policy; content gating lives in the other
policies. The policy now only verifies type, sourceType, and
sourceInfo against STAGING_RELAY_URL.
2026-11-18 09:52:24 +04:00
raucao d2f410ad42 Add LDAP-only strfry policy for the member bridge
CI / Test (pull_request) Successful in 47s
The member bridge on the production relay is a strfry router stream group (dir = "down") that subscribes to the local submission relay and writes member-authored events into the production database. This policy is its pluginDown: it reuses ldap-policy.ts and accepts an event only when its author is an LDAP member (or a whitelisted pubkey).

Unlike strfry-policy.ts it does no hellthread/anti-duplication work and opens no Deno KV store, so it runs alongside the relay's own policy process without shared state.

Refs raucao/marco#97, kosmos/chef#705.
2026-11-18 00:31:39 +04:00
raucao 242577a6f6 Add strfry policies for the public submission relay and approved sync
CI / Test (pull_request) Successful in 49s
Adds the Node write policies used by the new public submission relay and by
the approved-content sync on the members relay, for raucao/marco#97.

submission-policy.mjs keeps the submission relay open to all authors while
applying the usual gates: a kind allowlist, content and tag bounds, per-IP and
per-author token buckets, a short-window content dedupe, and a hellthread
limit. It does not do membership checks or media analysis.

sync-policy.mjs is fail-closed: it accepts only events that arrived through
strfry sync from the exact staging relay URL, with an allowed kind. Everything
else, including a wrong source type or an unset STAGING_RELAY_URL, is rejected
and logged with observed-vs-expected source information.

Includes node:test coverage for both policies and a README documenting the
environment variables and how strfry invokes them. The existing Deno policies
are untouched.

Note: chef fetches these files from the live branch, so master must be merged
into live before the submission relay or approved sync is converged.
2026-11-17 14:12:19 +04:00
raucao 0d248ead04 Allow anyone to publish NIP-46 events
Release Drafter / Update release notes draft (pull_request) Failing after 3s
This turns our relay into a public remote-sign-in relay
2026-08-07 11:03:31 -06:00
raucao c1bac2625c Only log exception to stdout
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2025-05-21 16:42:49 +04:00
raucao c5c6765d67 Log LDAP exceptions
continuous-integration/drone/push Build is passing
2025-05-21 16:29:52 +04:00
raucao 29ff486683 Port strfry policies to @nostrify/policies
Use packages from JSR and adapt code for new policy APIs
2025-04-15 19:01:22 +04:00
raucao 7943da0f17 Add note 2024-08-09 12:34:10 +02:00
raucao 37c15c7a62 Check in deno lockfile
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
Release Drafter / Update release notes draft (pull_request) Successful in 6s
2024-06-20 15:51:40 +02:00
raucao 01ecea74ff Add pubkey whitelist to strfry policy
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
And allow the local akkounts instance to publish on the local relay
2024-06-20 15:28:17 +02:00
raucao 00b73b06d7 Remove obsolete variable
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-06-19 15:56:45 +02:00
raucao 0daac33915 Allow non-members to publish zap receipts for members
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2024-06-19 15:43:56 +02:00
raucao 61cb8f4941 Add script for syncing notes from remote relays
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Release Drafter / Update release notes draft (pull_request) Successful in 4s
2024-06-11 22:06:51 +02:00
raucao 2a675fd135 Hand LDAP config to policy from main policy file
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Deployments will differ in production. The policy itself just needs the
configs, but should not care where credentials are fetched from.
2024-06-09 23:15:56 +02:00
raucao c2c3ebc2e1 Add strfry policies and members-only LDAP policy
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
This will look up nostr pubkeys in the LDAP directory to allow or deny
publishing notes to the relay.
2024-06-09 22:49:44 +02:00