Skip to content

Commit

Permalink
Enhances some ACL related logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Sep 20, 2024
1 parent 71e3690 commit b73c370
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/protocol/src/interaction/AccessControlManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,14 @@ export class AccessControlManager {
}

logger.notice(
`Failed access control check for ${endpoint.number}/${toHex(clusterId)} and fabricIndex ${session.associatedFabric.fabricIndex}, acl=`,
`Failed access control check for ${endpoint.number}/0x${toHex(clusterId)} and fabricIndex ${session.associatedFabric.fabricIndex}, acl=`,
this.#getAccessControlEntriesForFabric(session.associatedFabric),
"with ISD=",
this.#getIsdFromMessage(session),
"granted privileges=",
grantedPrivileges,
"not contains",
privilege,
);

return false;
Expand Down
4 changes: 4 additions & 0 deletions packages/protocol/src/session/case/CaseServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ export class CaseServer implements ProtocolHandler {
`session ${secureSession.id} resumed with ${messenger.getChannelName()} for Fabric ${NodeId.toHexString(
fabric.nodeId,
)}(index ${fabric.fabricIndex}) and PeerNode ${NodeId.toHexString(peerNodeId)}`,
"with CATs",
caseAuthenticatedTags,
);
resumptionRecord.resumptionId = resumptionId; /* Update the ID */

Expand Down Expand Up @@ -228,6 +230,8 @@ export class CaseServer implements ProtocolHandler {
`session ${secureSession.id} created with ${messenger.getChannelName()} for Fabric ${NodeId.toHexString(
fabric.nodeId,
)}(index ${fabric.fabricIndex}) and PeerNode ${NodeId.toHexString(peerNodeId)}`,
"with CATs",
caseAuthenticatedTags,
);
await messenger.sendSuccess();

Expand Down

0 comments on commit b73c370

Please sign in to comment.