Skip to content

fix: clean up auth when deleting named contexts#436

Open
cotishq wants to merge 1 commit into
microcks:masterfrom
cotishq:fix/context-delete-named-context-auth-cleanup
Open

fix: clean up auth when deleting named contexts#436
cotishq wants to merge 1 commit into
microcks:masterfrom
cotishq:fix/context-delete-named-context-auth-cleanup

Conversation

@cotishq
Copy link
Copy Markdown
Contributor

@cotishq cotishq commented May 25, 2026

Description

  • Fixes named context deletion so cleanup uses the removed context's referenced user and server values instead of the context name.
  • Removes the associated auth entry when deleting a context, matching the expected cleanup behavior for credentials tied to that server.
  • Adds a regression test covering context --delete for a named context where contexts[].name differs from contexts[].user.

Screenshot

Screenshot From 2026-05-25 12-04-04

Related issue(s)

Fixes #427

Signed-off-by: cotishq <tanishqp101204@gmail.com>
@cotishq cotishq force-pushed the fix/context-delete-named-context-auth-cleanup branch from bcbd734 to 46a68ba Compare May 25, 2026 06:37
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

Successfully merging this pull request may close these issues.

bug: context --delete leaves stale auth tokens for named contexts

1 participant