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

[v15] Fix auto-update re-exec arguments modified by aliases #51183

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

vapopov
Copy link
Contributor

@vapopov vapopov commented Jan 17, 2025

Backport #50228 to branch/v15

changelog: Fixed client tools auto-updates executed by aliases (causes recursive alias error)

@github-actions github-actions bot added size/md tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport. labels Jan 17, 2025
* Fix auto-update re-exec arguments modified by aliases

* Make arguments to be required to set

* Restore progress bar show before request

* Improve integration tests to execute with `tsh` and `tctl`

Added a full-cycle integration test to verify client tools
auto-updates within a test cluster by modifying AutoUpdateConfig
and AutoUpdateVersion resources. The test executes the login
command using alias configurations to ensure no recursive
re-execution occurs.

The updater binary used in integration tests has been replaced
with the `Run` logic of tctl and tsh.

* Set generated test password by env variable instead of constant value

* Restore priority of env check over remote check

In case of double re-execution case we should stop second one to prevent loop re-execution
Drop localDir set during compilation
@vapopov vapopov force-pushed the vapopov/fix-autoupdate-re-exec-with-aliases-v15 branch from f79a589 to 23a0db4 Compare January 17, 2025 17:12
@vapopov vapopov added this pull request to the merge queue Jan 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 18, 2025
@vapopov vapopov added this pull request to the merge queue Jan 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 18, 2025
@vapopov vapopov added this pull request to the merge queue Jan 18, 2025
Merged via the queue into branch/v15 with commit 07e5f96 Jan 18, 2025
33 checks passed
@vapopov vapopov deleted the vapopov/fix-autoupdate-re-exec-with-aliases-v15 branch January 18, 2025 03:01
@camscale camscale mentioned this pull request Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport size/md tctl tctl - Teleport admin tool tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants