Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polykey",
"version": "2.3.3",
"version": "2.3.4",
"homepage": "https://polykey.com",
"author": "Matrix AI",
"contributors": [
Expand Down Expand Up @@ -122,7 +122,7 @@
"minimatch": "^10.0.1"
},
"devDependencies": {
"@matrixai/lint" : "^0.2.11",
"@matrixai/lint": "^0.2.11",
"@fast-check/jest": "^2.1.1",
"@swc/core": "1.3.82",
"@swc/jest": "^0.2.29",
Expand Down
1 change: 0 additions & 1 deletion src/PolykeyAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,6 @@ class PolykeyAgent {
port: optionsDefaulted.agentServicePort,
ipv6Only: optionsDefaulted.ipv6Only,
agentService: agentServerManifest({
audit: this.audit,
acl: this.acl,
db: this.db,
keyRing: this.keyRing,
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const config = {
* It is only incremented on breaking changes
* Use this to know if you must upgrade your service client
*/
networkVersion: 2,
networkVersion: 3,
/**
* Default provider configuration
* These are managed by Matrix AI and Polykey developers
Expand Down
3 changes: 0 additions & 3 deletions src/nodes/agent/callers/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { ClientManifest } from '@matrixai/rpc';
import nodesAuthenticateConnection from './nodesAuthenticateConnection.js';
import nodesAuditEventsGet from './nodesAuditEventsGet.js';
import nodesClaimsGet from './nodesClaimsGet.js';
import nodesClosestActiveConnectionsGet from './nodesClosestActiveConnectionsGet.js';
import nodesClosestLocalNodesGet from './nodesClosestLocalNodesGet.js';
Expand Down Expand Up @@ -40,7 +39,6 @@ type AgentClientManifestNodeManager = typeof manifestClientNodeManager &
const manifestClient = {
...manifestClientNodeConnectionManager,
...manifestClientNodeManager,
nodesAuditEventsGet,
nodesClaimNetworkSign,
nodesClaimNetworkVerify,
notificationsSend,
Expand All @@ -57,7 +55,6 @@ export {
manifestClientNodeConnectionManager,
manifestClientNodeManager,
nodesAuthenticateConnection,
nodesAuditEventsGet,
nodesClaimsGet,
nodesClosestActiveConnectionsGet,
nodesClosestLocalNodesGet,
Expand Down
2 changes: 2 additions & 0 deletions src/nodes/agent/handlers/NodesAuditEventsGet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import type { AuditEventId } from '../../../ids/index.js';
import { ServerHandler } from '@matrixai/rpc';
import * as auditUtils from '../../../audit/utils.js';

// This is currently not used until security is built into it. It will require some way to verify that the requesting
// node should have access to the information. For that we need a claim that we can verify.
/**
* Gets audit events from a node
*/
Expand Down
5 changes: 0 additions & 5 deletions src/nodes/agent/handlers/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { DB } from '@matrixai/db';
import type Logger from '@matrixai/logger';
import type KeyRing from '../../../keys/KeyRing.js';
import type Audit from '../../../audit/Audit.js';
import type Sigchain from '../../../sigchain/Sigchain.js';
import type ACL from '../../../acl/ACL.js';
import type NodeGraph from '../../../nodes/NodeGraph.js';
Expand All @@ -11,7 +10,6 @@ import type NotificationsManager from '../../../notifications/NotificationsManag
import type VaultManager from '../../../vaults/VaultManager.js';
import type { AgentClientManifest } from '../callers/index.js';
import NodesAuthenticateConnection from './NodesAuthenticateConnection.js';
import NodesAuditEventsGet from './NodesAuditEventsGet.js';
import NodesClaimsGet from './NodesClaimsGet.js';
import NodesClosestActiveConnectionsGet from './NodesClosestActiveConnectionsGet.js';
import NodesClosestLocalNodesGet from './NodesClosestLocalNodesGet.js';
Expand All @@ -28,7 +26,6 @@ import VaultsScan from './VaultsScan.js';
* Server manifest factory.
*/
const manifestServer = (container: {
audit: Audit;
db: DB;
sigchain: Sigchain;
nodeGraph: NodeGraph;
Expand All @@ -42,7 +39,6 @@ const manifestServer = (container: {
}) => {
return {
nodesAuthenticateConnection: new NodesAuthenticateConnection(container),
nodesAuditEventsGet: new NodesAuditEventsGet(container),
nodesClaimsGet: new NodesClaimsGet(container),
nodesClosestActiveConnectionsGet: new NodesClosestActiveConnectionsGet(
container,
Expand All @@ -65,7 +61,6 @@ export default manifestServer;

export {
NodesAuthenticateConnection,
NodesAuditEventsGet,
NodesClaimsGet,
NodesClosestActiveConnectionsGet,
NodesClosestLocalNodesGet,
Expand Down
2 changes: 1 addition & 1 deletion tests/nodes/agent/handlers/nodesAuditsGet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { RPCClient, RPCServer } from '@matrixai/rpc';
import * as tlsTestsUtils from '../../../utils/tls.js';
import * as testNodesUtils from '../../../nodes/utils.js';
import NodesAuditEventsGet from '#nodes/agent/handlers/NodesAuditEventsGet.js';
import { nodesAuditEventsGet } from '#nodes/agent/callers/index.js';
import nodesAuditEventsGet from '#nodes/agent/callers/nodesAuditEventsGet.js';
import * as nodesUtils from '#nodes/utils.js';
import KeyRing from '#keys/KeyRing.js';
import Audit from '#audit/Audit.js';
Expand Down