Carry netbird-vnc policies over the component network map

This commit is contained in:
Viktor Liu
2026-07-30 10:43:26 +02:00
parent abe8bc1b53
commit 05a75d80eb
5 changed files with 260 additions and 203 deletions

View File

@@ -251,6 +251,8 @@ func (e *componentEncoder) encodePolicyRule(pol *types.Policy, r *types.PolicyRu
DestinationGroupIds: e.groupPublicXids(r.Destinations),
AuthorizedUser: r.AuthorizedUser,
AuthorizedGroups: e.encodeAuthorizedGroups(r.AuthorizedGroups),
SessionPubKey: r.SessionPubKey,
SessionDisplayName: r.SessionDisplayName,
SourceResource: e.resourceToProto(r.SourceResource),
DestinationResource: e.resourceToProto(r.DestinationResource),
SourcePostureCheckIds: e.postureCheckSeqs(pol.SourcePostureChecks),