-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an audit event for creating provisioning tokens (#28769)
* Add a provision token creation event on the backend * Support provision token creation audit event on frontend * Modify the deprecated GenerateToken function Also: * Add some missing tests. * Add error logging in emitTokenEvent(). * Fix lint errors. * Fix import order * Address review comments * Fix final review comments, add docs * Fix the broken test * Revert "Fix the broken test" This reverts commit e1b8d2e. * Properly fix emitting duplicated events
- Loading branch information
Showing
15 changed files
with
1,701 additions
and
925 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Teleport API Protocol Buffers | ||
|
||
This folder contains Teleport API data structures and RPC declarations. Each time you modify any of the `.proto` files, you need to run `make grpc` to rebuild the autogenerated source files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,6 +148,7 @@ read [Exporting Teleport Audit Events](../management/export-audit-events.mdx). | |
| user.login | A user logged into web UI or via tsh. The following fields will be logged: `{"user": "[email protected]", "method": "local"}` . | | ||
| app.session.start | A user accessed an application | | ||
| app.session.chunk | A record of activity during an app session | | ||
| join_token.created | A new join token has been created. Adds the following fields: `{"roles": ["Node", "Db"], "join_method": "token"}` | | ||
|
||
## Recorded sessions | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.