Skip to content

Check for auth version incompatibility (kube)#35025

Closed
bernardjkim wants to merge 1 commit intomasterfrom
bernard/auth-version-check-kube
Closed

Check for auth version incompatibility (kube)#35025
bernardjkim wants to merge 1 commit intomasterfrom
bernard/auth-version-check-kube

Conversation

@bernardjkim
Copy link
Copy Markdown
Contributor

Paired with #34917

Currently, the teleport-upgrader is allowed to upgrade a Teleport agent to a newer major version than the control plane, making it incompatible with the control plane.

Context

The reason we did not have this check in the first place is because this can allow the agent to become bricked. If the agent is upgraded to a broken version that cannot communicate with the auth server, the agent would no longer automatically update and be stuck in that state.

We have decided to make this change as a temporary solution so that we can make progress in this issue https://github.com/gravitational/cloud/issues/6773. Once we're in a stable state, we'll rework the auto upgrades to be more compatible with the version/upgrade management of Teleport Cloud.

@github-actions
Copy link
Copy Markdown
Contributor

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

assertErr: require.NoError,
},
}
// Doing the real test
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Doing the real test

return nil, trace.Wrap(err)
}

log.Info("Verify new version candidate is compatible with the auth server version")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we add the versions as fields to the log message?

return nil, trace.Wrap(err)
}

log.Info("Verify new version candidate is compatible with the auth server version")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here: adding the versions to the log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants