Noovolari/leapp

Workspace does not save unused profile names

Opened this issue · 3 comments

Description:

Workspace does not save profile name of SSO Integration in Leapp Pro. Before upgrading to Pro the SSO entry profile names were persistently saved locally.

  1. Login into Workspace (Leapp pro)
  2. Login into an AWS SSO integration
  3. Right click on an entry of this active SSO integration
  4. Select Change -> Named Profile
  5. Set a name
  6. Click Manage Workspaces and Sync Workspace
  7. Login into the same AWS SSO integration -> profile name is "default" again

This happens also when you close the app after step 5 and restart it instead of doing step 6.

Details:

Leapp Version 0.20.0
SsmPluginVersion 1.2.398.0
Platform darwin
Awscli aws-cli/2.13.19 Python/3.11.5 Darwin/22.6.0 source/arm64 prompt/off

Thank you for reporting, Leapp Pro should be persisting all data including profile names for AWS SSO. We'll look into this to fix it.

@andreacavagna01 Update: I've just encountered that I can reproduce this without a SSO Integration like this:

I think as soon there is an unused profile on exit, it will be deleted.

Scenario 1:

  1. create a profile and don't assign it to a session
  2. exit leapp
  3. restart leapp
  4. the profile is gone

Scenario 2:

  1. (for an existing or new profile) remove it from all sessions
  2. exit leapp
  3. restart leapp
  4. the profile is gone

Details:

Leapp Version 0.23.0
SsmPluginVersion 1.2.398.0
Platform darwin
Awscli aws-cli/2.15.1 Python/3.11.6 Darwin/23.1.0 source/arm64 prompt/off

Thanks for the issue. We have faced this issue, and we are switching workspace and configurations in 2 different files to be modified separately. Also, having a way to remember sessions to not delete the previously saved information will be added soon!