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

Fix initKube: broadcast KubeReady event #9418

Merged
merged 6 commits into from
Dec 20, 2021

Conversation

smallinsky
Copy link
Contributor

@smallinsky smallinsky commented Dec 15, 2021

What

Add missing KubernetesReady broadcast event call - fix cert rotation when kube service is enabled.

Why:

If the kube service is running in the same process with auth and proxy services the TeleportReadyEvent is never broadcasted because it requires the KubernetesReady event to be broadcasted first

eventMapping.In = append(eventMapping.In, KubernetesReady)

Some teleport logic like cert rotation periodicSyncRotationState triggers only if teleport is in TeleporReady state.

process.WaitForEvent(process.ExitContext(), TeleportReadyEvent, eventC)

@smallinsky smallinsky force-pushed the smallinsky/broadcast_kube_ready_state branch from e2d1d0d to 1eac241 Compare December 15, 2021 12:32
@smallinsky smallinsky marked this pull request as ready for review December 15, 2021 12:48
Copy link
Collaborator

@r0mant r0mant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smallinsky Can you please add test coverage for this as well? We can do it in a follow PR though, so we can merge the fix first.

@smallinsky smallinsky force-pushed the smallinsky/broadcast_kube_ready_state branch 3 times, most recently from c07f825 to 7137e21 Compare December 16, 2021 12:13
@smallinsky smallinsky force-pushed the smallinsky/broadcast_kube_ready_state branch from e7888a8 to 809a37b Compare December 16, 2021 12:21
@smallinsky smallinsky enabled auto-merge (squash) December 20, 2021 16:00
@smallinsky smallinsky merged commit 95547a2 into master Dec 20, 2021
@smallinsky smallinsky deleted the smallinsky/broadcast_kube_ready_state branch December 20, 2021 19:42
zmb3 added a commit that referenced this pull request Jul 22, 2022
When desktop access is enabled, the TeleportReady event will not
be emitted until the WindowsDesktopReadyEvent is emitted, and it
turns out we have *never* emitted a WindowsDesktopReadyEvent.

This is likely due to desktop access being copied from kube access
since the very beginning. The same issue was recently fixed for
kube access in #9418.
zmb3 added a commit that referenced this pull request Jul 22, 2022
When desktop access is enabled, the TeleportReady event will not
be emitted until the WindowsDesktopReadyEvent is emitted, and it
turns out we have *never* emitted a WindowsDesktopReadyEvent.

This is likely due to desktop access being copied from kube access
since the very beginning. The same issue was recently fixed for
kube access in #9418.
zmb3 added a commit that referenced this pull request Jul 25, 2022
When desktop access is enabled, the TeleportReady event will not
be emitted until the WindowsDesktopReadyEvent is emitted, and it
turns out we have *never* emitted a WindowsDesktopReadyEvent.

This is likely due to desktop access being copied from kube access
since the very beginning. The same issue was recently fixed for
kube access in #9418.
zmb3 added a commit that referenced this pull request Jul 25, 2022
Ensure that the WindowsDesktopReady event is emitted

When desktop access is enabled, the TeleportReady event will not
be emitted until the WindowsDesktopReadyEvent is emitted, and it
turns out we have *never* emitted a WindowsDesktopReadyEvent.

This is likely due to desktop access being copied from kube access
since the very beginning. The same issue was recently fixed for
kube access in #9418.
zmb3 added a commit that referenced this pull request Jul 25, 2022
Ensure that the WindowsDesktopReady event is emitted

When desktop access is enabled, the TeleportReady event will not
be emitted until the WindowsDesktopReadyEvent is emitted, and it
turns out we have *never* emitted a WindowsDesktopReadyEvent.

This is likely due to desktop access being copied from kube access
since the very beginning. The same issue was recently fixed for
kube access in #9418.
zmb3 added a commit that referenced this pull request Jul 25, 2022
Ensure that the WindowsDesktopReady event is emitted

When desktop access is enabled, the TeleportReady event will not
be emitted until the WindowsDesktopReadyEvent is emitted, and it
turns out we have *never* emitted a WindowsDesktopReadyEvent.

This is likely due to desktop access being copied from kube access
since the very beginning. The same issue was recently fixed for
kube access in #9418.
zmb3 added a commit that referenced this pull request Jul 25, 2022
When desktop access is enabled, the TeleportReady event will not
be emitted until the WindowsDesktopReadyEvent is emitted, and it
turns out we have *never* emitted a WindowsDesktopReadyEvent.

This is likely due to desktop access being copied from kube access
since the very beginning. The same issue was recently fixed for
kube access in #9418.

Backports #14804
zmb3 added a commit that referenced this pull request Aug 4, 2022
Ensure that the WindowsDesktopReady event is emitted

When desktop access is enabled, the TeleportReady event will not
be emitted until the WindowsDesktopReadyEvent is emitted, and it
turns out we have *never* emitted a WindowsDesktopReadyEvent.

This is likely due to desktop access being copied from kube access
since the very beginning. The same issue was recently fixed for
kube access in #9418.
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.

3 participants