Skip to content

incus-user: Don't reset setup if user has access#2784

Merged
stgraber merged 1 commit intolxc:mainfrom
MarcosDaNight:issue/2524/incus-user-skip-reset
Dec 23, 2025
Merged

incus-user: Don't reset setup if user has access#2784
stgraber merged 1 commit intolxc:mainfrom
MarcosDaNight:issue/2524/incus-user-skip-reset

Conversation

@MarcosDaNight
Copy link
Copy Markdown
Contributor

Fixes #2524

As discussed in the issue, this prevents incus-user from resetting a user's configuration
if they already have a valid certificate and access to at least one project,
regardless of the project name.

Currently, incus-user might reset a user's setup if the project name
doesn't match the expected format. This change checks if the user
already has a valid certificate and access to at least one project
before attempting a reset.

Fixes lxc#2524

Signed-off-by: Marcos Guillermo <[email protected]>

cmd/incus-user: Don't reset setup if user has access

Currently, incus-user might reset a user's setup if the project name
doesn't match the expected format. This change checks if the user
already has a valid certificate and access to at least one project
before attempting a reset.

Fixes lxc#2524

Signed-off-by: Marcos Guillermo <[email protected]>
@stgraber stgraber changed the title cmd/incus-user: Don't reset setup if user has access incus-user: Don't reset setup if user has access Dec 23, 2025
@stgraber stgraber merged commit a8aa586 into lxc:main Dec 23, 2025
103 of 108 checks passed
@stgraber
Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Limit reset logic in incus-user to support more advanced environments

2 participants