Skip to content

Conversation

@radeksimko
Copy link
Member

@radeksimko radeksimko commented Nov 5, 2025

This implements migration from an existing state_store to a "local" state (i.e. no state store, no backend).

I decided to remove the ProviderFactory abstraction layer because it was getting in the way of the migration related logic. In particular, when unsetting a state store, we can no longer rely on configuration driving the factory creation.

More importantly if/when we update the UI such that we no longer execute plugins straight after installing them we should be able to just rely on the lockfile "file cache" everywhere and then we can also get rid of the BackendOpts.Locks.

I would strongly recommend reviewing each of the two commits separately to avoid getting lost in the weeds large diffs.

Target Release

1.15.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

@radeksimko radeksimko added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Nov 5, 2025
@radeksimko radeksimko force-pushed the radek/pss-init-migration branch 12 times, most recently from a7c7f0a to e805230 Compare November 11, 2025 16:17
@radeksimko radeksimko force-pushed the radek/pss-init-migration branch from e805230 to 9003bdb Compare November 11, 2025 16:21
"[reset][green]\n\n"+
strings.TrimSpace(successStateStoreUnset), stateStoreType)))
case arguments.ViewJSON:
// TODO: Implement JSON output for ViewJSON
Copy link
Member Author

@radeksimko radeksimko Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I looked into this it made me wonder if we should finish #37840 first? 🤔

Admittedly none of the existing migrations have JSON output - so the other option is also ignoring it but I'm not sure it's the right option.

@radeksimko radeksimko marked this pull request as ready for review November 11, 2025 16:30
@radeksimko radeksimko requested a review from a team as a code owner November 11, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog-needed Add this to your PR if the change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant