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

Token is not properly invalidated when using a custom SSH key. #347

Open
FleetAdmiralButter opened this issue Apr 26, 2024 · 0 comments
Open

Comments

@FleetAdmiralButter
Copy link

Describe the bug
The Lagoon CLI continues to authenticate using the already cached token even when a custom SSH key is specified using the --ssh-key flag.

To Reproduce
Steps to reproduce the behavior:

  1. Run any command that interacts with the Lagoon API so that a token is retrieved and cached.
  2. Confirm the current user using whoami.
  3. Run whoami again, but with the --ssh-key flag pointing to a private key associated with a different Lagoon account.

Expected behavior
The details of the account associated with the SSH key passed in is returned. Instead, the cached token is used to authenticate, returning incorrect account details.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS
@FleetAdmiralButter FleetAdmiralButter changed the title Token is not properly invalidated with using a custom SSH key. Token is not properly invalidated when using a custom SSH key. Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant