Add tracking of worker used for injection (#3204)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2023-05-05 09:22:54 -04:00
1 parent 8b8b665483
commit bbe9719e19
7 files changed
+198 -1

No files matched your search

@@ -922,6 +922,9 @@ func (s Service) AuthorizeSession(ctx context.Context, req *pbs.AuthorizeSession
DynamicCredentials: dynCreds,
StaticCredentials: staticCreds,
}
if protoWorker != nil {
sessionComposition.ProtocolWorkerId = protoWorker.GetPublicId()
}
sess, err := session.New(sessionComposition)
if err != nil {
return nil, err