Commit graph

3 commits

Author SHA1 Message Date
Edoardo Spadolini 64ed94f602
Split ssh_port into ssh_port_v2, k8s_port (#25987)
Same goes for foo_sessions in UserActivityReport.
2023-05-11 10:36:39 +00:00
Edoardo Spadolini 2966be6a57
Tweak protogen to not change protos from cloud (#24688)
* Tweak protogen to not change protos from cloud

* Use strategy: all whenever possible
2023-04-18 14:22:12 +00:00
Edoardo Spadolini c296b77734
usagereporter: on-prem dial home (#23916)
* Fix prehog protos package name

* sync prehog/v1alpha/teleport.proto from cloud

* AggregatingUsageReporter

* graceful stopping

* alerts WIP

* Split reporter and submitter

* batch_uuid

* Naming

* more naming

* Move backend stuff in a "service" object

* Return the correct err from gracefulstop

* Tweak alert link

* Better field comments

* payloadContext rather than a manual type assertion

* Rework reporter logic

* Close the base context at the end of run

* Use the count parameter in listUserActivityReports

* Use ttl parameter in createUserActivityReportsLock

* service tests

* submitter test

* reporter test

* Document GracefulStopper.GracefulStop

* Fix errorf/warnf that don't need formatting

* Add debug line on a successful report

* fix license

* sync prehog proto from cloud

* Only send non-nil events through test channel

This fixes a hang/data race, as we effectively "send" a nil event
whenever the ticker hits

* Docs and variable names

* Add some debug info to the lock and the alert

* Sync prehog protos from cloud

This includes a move to prehog.v1 for the new rpc and messages

* mechanical: rename imports of prehog/v1alpha

This renames imports of ".../prehog/v1alpha" from prehogv1a to prehogv1,
and imports of ".../prehog/v1alpha/prehogv1alphaconnect" from prehogv1c
to prehogv1ac, to avoid confusion with imports of the newly added
".../prehog/v1" and ".../prehog/v1/prehogv1connect".

* Merge remote-tracking branch 'origin/master' into espadolini/usagereporter-onprem
2023-04-05 19:24:32 +00:00