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 13 times, most recently from e805230 to 9003bdb Compare November 11, 2025 16:21
@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
@SarahFrench SarahFrench self-assigned this Nov 12, 2025
Copy link
Member

@SarahFrench SarahFrench left a comment

Choose a reason for hiding this comment

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

Looks good to me, I've left some comments about moving where we test things and some thoughts about what code should be used to obtain a provider factory to match backend state file data (plus some nits).

@radeksimko radeksimko enabled auto-merge (squash) November 13, 2025 16:10
@radeksimko radeksimko force-pushed the radek/pss-init-migration branch from a56c80c to d6e63cd Compare November 17, 2025 14:59
Copy link
Member

@SarahFrench SarahFrench left a comment

Choose a reason for hiding this comment

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

Other than this last bit, this PR looks good to me: #37875 (comment)

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.

2 participants