Skip to content

Commit

Permalink
Add SSM Commands stdout/err to audit log (#41478)
Browse files Browse the repository at this point in the history
This PR adds two new fields to the SSMRun audit events:
-stdout
-stderr

This will help diagnose the failures of teleport installations in EC2
instances using SSM (EC2 Auto Discover).
  • Loading branch information
marcoandredinis committed May 22, 2024
1 parent e673722 commit 3d39b4b
Show file tree
Hide file tree
Showing 2 changed files with 1,006 additions and 904 deletions.
8 changes: 8 additions & 0 deletions api/proto/teleport/legacy/types/events/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5201,6 +5201,14 @@ message SSMRun {

// Region is the AWS region the command was ran in.
string Region = 7 [(gogoproto.jsontag) = "region"];

// StandardOutput contains the stdout of the executed command.
// Only the first 24000 chars are returned.
string StandardOutput = 8 [(gogoproto.jsontag) = "stdout"];

// StandardError contains the stderr of the executed command.
// Only the first 24000 chars are returned.
string StandardError = 9 [(gogoproto.jsontag) = "stderr"];
}

// CassandraSession is emitted when a Cassandra client sends
Expand Down
Loading

0 comments on commit 3d39b4b

Please sign in to comment.