Skip to content

Commit

Permalink
update user source for non-interactive k8s session listing
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenGravy committed Nov 20, 2024
1 parent 4cbca51 commit 23bb109
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function makeDesktopRecording({

function makeSshOrKubeRecording({
participants,
kubernetes_users,
user,
time,
session_start,
session_stop,
Expand All @@ -90,8 +90,8 @@ function makeSshOrKubeRecording({
// For Kubernetes sessions, put the full pod name as 'hostname'.
if (proto === 'kube') {
hostname = `${kubernetes_cluster}/${kubernetes_pod_namespace}/${kubernetes_pod_name}`;
// For non-interactive k8s sessions the user participants are in kubernetes_users
if (!interactive) userParticipants = kubernetes_users;
// For non-interactive k8s sessions the participant is the Teleport user running the command
if (!interactive) userParticipants = [user];
}

// Description set to play for interactive so users can search by "play".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test('fetch session recordings, response formatting', async () => {
playable: false,
recordingType: 'k8s',
sid: '456b933c-4ec4-59f1-862c-90ca9f7648b1',
users: 'wov@esde.ro',
users: 'onuweeme@wiuke.mh',
},
],
startKey: '',
Expand Down

0 comments on commit 23bb109

Please sign in to comment.