openfused 0.3.18 → 0.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +6 -7
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -635,12 +635,11 @@ program
635
635
  const reg = registry.resolveRegistry(opts.registry);
636
636
  try {
637
637
  const manifest = await registry.discover(name, reg);
638
- // Auto-import key (untrusted) + add as peer so future `openfuse sync` can
639
- // deliver replies and pull context. Key is deliberately NOT trusted — the user
640
- // must explicitly `openfuse key trust <name>` after out-of-band verification.
641
- // NOTE: manifest data comes from the registry and is attacker-controlled.
642
- // The endpoint URL is stored as-is; a malicious entry could point at an internal
643
- // service. Sync will pull from it — consider validating URL scheme/host.
638
+ // Auto-import key + add as peer. Keys discovered from openfused.net DNS
639
+ // are auto-trusted: the registry verified the Ed25519 signature before
640
+ // creating the TXT record, and DNSSEC is enabled on the zone. Keys from
641
+ // self-hosted domains remain untrusted (user must verify out-of-band).
642
+ const dnsDiscovered = !name.includes(".") || name.endsWith(".openfused.net");
644
643
  let config = await store.readConfig();
645
644
  if (!config.keyring.some((e) => e.signingKey === manifest.publicKey)) {
646
645
  config.keyring.push({
@@ -649,7 +648,7 @@ program
649
648
  signingKey: manifest.publicKey,
650
649
  encryptionKey: manifest.encryptionKey,
651
650
  fingerprint: manifest.fingerprint,
652
- trusted: false,
651
+ trusted: dnsDiscovered,
653
652
  added: new Date().toISOString(),
654
653
  });
655
654
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfused",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "The file protocol for AI agent context. Encrypted, signed, peer-to-peer.",
5
5
  "license": "MIT",
6
6
  "type": "module",