We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent425f1e5 commit6234f72Copy full SHA for 6234f72
coderd/agentapi/audit.go
@@ -87,14 +87,17 @@ func (a *AuditAPI) ReportConnection(ctx context.Context, req *agentproto.ReportC
87
Log:a.Log,
88
Time:req.GetConnection().GetTimestamp().AsTime(),
89
OrganizationID:workspace.OrganizationID,
90
-UserID:workspace.OwnerID,// NOTE(mafredri): This may not be accurate if e.g. an owner is connecting.
91
RequestID:connectionID,
92
Action:action,
93
New:workspaceAgent,
94
Old:workspaceAgent,
95
IP:req.GetConnection().GetIp(),
96
Status:int(req.GetConnection().GetStatusCode()),
97
AdditionalFields:riBytes,
+
98
+// It's not possible to tell which user connected. Once we have
99
+// the capability, this may be reported by the agent.
100
+UserID:uuid.Nil,
101
})
102
103
return&emptypb.Empty{},nil