Skip to content

internal/compat: an export made by v0.1.2, and a test that it imports with its earlier secrets - #223

Merged
bashhack merged 2 commits into
mainfrom
compat-v0.1.2
Oct 21, 2026
Merged

bashhack merged 2 commits into
mainfrom
compat-v0.1.2

Conversation

@bashhack

Copy link
Copy Markdown
Owner

v0.1.2 is the first release whose encrypted exports hold earlier secrets (#222), so it adds its own time-capsule file, as AGENTS.md says.

  • testdata/v0.1.2/export.sesh, written by the released v0.1.2 (make.sh beside it remakes it from that binary): GitHub's password with two earlier ones, and a kubeconfig file whose earlier version had another name (old.yaml, now config). All made-up; the passwords are in the test; nothing personal (scanned).
  • TestExportV012 reads it as sesh import does, imports it into a new vault, and checks: GitHub's three versions in order; every earlier secret has when it was replaced and began; the file's earlier version, restored, comes back with its own name. Renaming the export's file_name field makes it fail.
  • Only the export's format changed in v0.1.2, so there's no new vault or sync folder.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@bashhack
bashhack merged commit 6f80f88 into main Oct 21, 2026
13 checks passed
@bashhack
bashhack deleted the compat-v0.1.2 branch October 21, 2026 03:27
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.

2 participants