Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v13] Add Headless Polling to Teleport Connect #28975

Merged

Conversation

* Add WatchPendingHeadlessAuthentications rpc.
* Fix headless authentication matching logic for watcher and add test.

* Move hasWatchPermissionForKind to a separate function.

* Clean up hasWatchPermissionForKind.

* Cleanup test code with suggestions from review.
* - Move tshd events client into the daemon service.

- Replace gatway cert reissuer with a more reusable retryWithRelogin
method.

* Resolve comments.
* Implement headless watcher backend for Teleport Connect.

* Add headless watcher to tshd daemon service.

* Add SendPendingHeadlessAuthentication rpc to tshd events service.

* Add UpdateHeadlessAuthenticationState rpc to the daemon service.

* Address comments.
* Reduce headless watcher max backoff period to 90s; Propogate watcher error properly; Don't retry on not implemented error.

* Stop watcher if it wasn't stopped already.
@Joerger Joerger force-pushed the joerger/v13/enable-headless-authentication-event-watching branch from 5cd5862 to 01764e4 Compare August 1, 2023 20:27
@Joerger Joerger changed the title [v13] Headless Polling [v13] Add Headless Polling to Teleport Connect Aug 1, 2023
@Joerger Joerger marked this pull request as ready for review August 2, 2023 01:00
@public-teleport-github-review-bot

@Joerger - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes.

@Joerger Joerger requested a review from ravicious August 2, 2023 01:10
@ravicious
Copy link
Member

Did you run into many conflicts when backporting this?

If there were any in lib/teleterm and web/packages/teleterm, I could take a quick look to double check them.

@Joerger
Copy link
Contributor Author

Joerger commented Aug 2, 2023

Did you run into many conflicts when backporting this?

If there were any in lib/teleterm and web/packages/teleterm, I could take a quick look to double check them.

Nothing that was not easy to resolve. I reviewed the code and re-tested to make sure it still works.

@Joerger Joerger requested a review from r0mant August 2, 2023 17:59
@Joerger Joerger added this pull request to the merge queue Aug 2, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 2, 2023
@Joerger Joerger added this pull request to the merge queue Aug 2, 2023
Merged via the queue into branch/v13 with commit dda59bd Aug 2, 2023
32 checks passed
@Joerger Joerger deleted the joerger/v13/enable-headless-authentication-event-watching branch August 2, 2023 18:50
@camscale camscale mentioned this pull request Aug 4, 2023
@fheinecke fheinecke mentioned this pull request Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants