Noovolari / leapp

Leapp is the DevTool to access your cloud
https://www.leapp.cloud/
Mozilla Public License 2.0
1.6k stars 146 forks source link

Leapp cli 0.1.63 cannot start chained-role sessions on Apple Silicon #537

Closed Pat-Ayres closed 6 months ago

Pat-Ayres commented 6 months ago

Describe the bug On leapp cli versions 0.1.62 and 0.1.63 I am unable to start chained iam role sessions.

Coming from this thread in the slack. I don't see any github issues reported, so I'm opening one to track this bug. My situation is slightly different as I have not upgraded Leapp desktop to 0.25.x yet. I started experiencing this bug after upgrading the cli from 0.1.61 to version 0.1.63.

From the testing I have done so far, I am able to start a session with provider type AWS Single Sign-On, but a session with provider type IAM Role Chained fails with this error output:

 ›   Error: stream.pipe is not a function
 ›     Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.

Leapp Version

To Reproduce Steps to reproduce the behavior:

  1. create a chained iam role session
  2. use the cli to start the chained role session: leapp session start --sessionId $id

Expected behavior leapp session start starts a chained iam role session without erroring

Desktop (please complete the following information):

Additional context I have tried uninstalling the leapp cli via brew brew uninstall leapp-cli and installing older versions via npm. npm i -g @noovolari/leapp-cli@0.1.62 has the same stream.pipe error.

Current Workaround: npm i -g @noovolari/leapp-cli@0.1.61 is working for me with leapp desktop version 0.24.4

Pat-Ayres commented 6 months ago

This issue is now resolved with Desktop version 0.25.2 combined with cli version 0.1.64