Skip to content

Add legacy storage compatibility, migration, and legacy CLI#20

Merged
kemsta merged 3 commits into
masterfrom
pr/legacy-storage-compat
Mar 26, 2026
Merged

Add legacy storage compatibility, migration, and legacy CLI#20
kemsta merged 3 commits into
masterfrom
pr/legacy-storage-compat

Conversation

@kemsta

@kemsta kemsta commented Mar 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a read-only legacy v1 filesystem backend
  • add storage-agnostic PKI snapshot/export-import migration support
  • add a dedicated migrator CLI submodule
  • add a legacy-compatible CLI submodule on top of the current PKI API
  • add storage ownership validation via optional storage interfaces

Details

  • legacy v1 PKIs can now be opened via pki.NewWithLegacyFSRO(...)
  • mutating operations on legacy storage return storage.ErrReadOnly
  • PKI migration now works through ExportSnapshot, streamed ExportPairs, and ImportSnapshot
  • copy-based migration CLI lives under cmd/go-easyrsa-migrate
  • legacy command UX compatibility CLI lives under cmd/go-easyrsa-legacy-cli
  • storage backends can optionally implement ownership validation and pki.New(...) will enforce it when available

Validation

  • go test ./...
  • cd cmd/go-easyrsa-migrate && go test ./...
  • cd cmd/go-easyrsa-legacy-cli && go test ./...

@kemsta kemsta merged commit 25e7e83 into master Mar 26, 2026
20 checks passed
@kemsta kemsta deleted the pr/legacy-storage-compat branch March 26, 2026 12:51
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.

1 participant