Add node registration claim transport
This commit is contained in:
parent
b8680e82e1
commit
27cd1645da
8 changed files with 369 additions and 25 deletions
|
|
@ -21,6 +21,7 @@ import { importKnowledgeFolder } from './folder-import.js';
|
|||
import { DomainAccessOrchestrator } from '../../guanghu-knowledge-base/server/domain-access-orchestrator.js';
|
||||
import { TrustedSignerSnapshotLoader } from '../../guanghu-knowledge-base/server/trusted-signer-snapshot.js';
|
||||
import { NodeRegistrationSnapshotLoader } from '../../guanghu-knowledge-base/server/node-registration-snapshot.js';
|
||||
import { HttpNodeRegistrationClaimSource } from '../../guanghu-knowledge-base/server/node-registration-client.js';
|
||||
|
||||
// ─── 配置 ───
|
||||
|
||||
|
|
@ -336,6 +337,8 @@ const nodeRegistrationSnapshots = new NodeRegistrationSnapshotLoader({
|
|||
},
|
||||
});
|
||||
|
||||
const nodeRegistrationClaims = new HttpNodeRegistrationClaimSource();
|
||||
|
||||
const domainAccessOrchestrator = new DomainAccessOrchestrator(
|
||||
trustedSignerSnapshots,
|
||||
nodeRegistrationSnapshots,
|
||||
|
|
@ -357,13 +360,7 @@ const domainAccessOrchestrator = new DomainAccessOrchestrator(
|
|||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
async read() {
|
||||
// Current REPO-012 does not yet register a node-registration endpoint.
|
||||
// Keep this transport absent until that public registry and service exist.
|
||||
return null;
|
||||
},
|
||||
},
|
||||
nodeRegistrationClaims,
|
||||
{
|
||||
async read() {
|
||||
// 当前灯塔尚未发布签名运行体交接端点。保持关闭,不从账号身份推导运行体权限。
|
||||
|
|
|
|||
Loading…
Reference in a new issue