Skip to content
New issue

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

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

Already on GitHub? # to your account

tsh aws prepends extra lines to stdout #44858

Closed
Dawnflash opened this issue Jul 31, 2024 · 1 comment
Closed

tsh aws prepends extra lines to stdout #44858

Dawnflash opened this issue Jul 31, 2024 · 1 comment
Labels
aws Used for AWS Related Issues. bug tsh tsh - Teleport's command line tool for logging into nodes running Teleport.

Comments

@Dawnflash
Copy link

Dawnflash commented Jul 31, 2024

Expected behavior:

tsh aws s3 ls (or any other AWS CLI command) returns only the output from AWS, eg.

2024-12-15 10:35:32 mybucket

Alternatively any extra lines from teleport should be printed to stderr.

Current behavior:

It returns 2 extra lines in stdout. This is very undesirable when piping forward.

Proxying connections to aws on 127.0.0.1:54277
To avoid port randomization, you can choose the listening port using the --port flag.
2024-12-15 10:35:32 mybucket

Additionally the --port flag referenced refers to the tsh proxy app command which is reused by the tsh aws command apparently and the flag is unusable with the tsh aws command so this is very confusing for the user that might attempt to run tsh aws --port 12345 s3 ls to try to remove the message and be met with "flag not defined". This could use some polishing.

Bug details:

  • Teleport version: v16.1.0
  • Recreation steps: run tsh aws <anything>
@Dawnflash Dawnflash added the bug label Jul 31, 2024
@zmb3 zmb3 added tsh tsh - Teleport's command line tool for logging into nodes running Teleport. aws Used for AWS Related Issues. labels Jul 31, 2024
@greedy52
Copy link
Contributor

fixed by #45159

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
aws Used for AWS Related Issues. bug tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

No branches or pull requests

3 participants