Skip to content

fix: recover credentials a stacklet lost, without a reinstall - #65

Merged
arthware-dev merged 3 commits into
mainfrom
fix/memory-token-self-heal
Aug 4, 2026
Merged

fix: recover credentials a stacklet lost, without a reinstall#65
arthware-dev merged 3 commits into
mainfrom
fix/memory-token-self-heal

Conversation

@arthware-dev

Copy link
Copy Markdown
Contributor

Secrets minted by install-only hooks never came back once lost, so an
instance kept failing quietly and the only cure was re-running setup by
hand. Memory and docs now repair themselves on the next stack up, and
doctor reports what it cannot repair.

  • memory issues a vault write token when none is stored, not only when
    Forgejo rejects the one on file
  • docs re-checks its Paperless token every start and asks for a new one
    when it is refused
  • stacklets may declare required_secrets; doctor names any that are
    absent and points at stack setup <id>

🤖 Generated with Claude Code

An instance installed before the vault write token existed held none,
so every write answered "Forgejo credentials missing" and no restart
helped: the repair only ran once there was a remote to test, and a
missing token builds no remote. Now a missing token is minted on the
next `stack up memory`, the same cure a rejected one already got.
Secrets are minted once, during install, so a stacklet that starts
needing one later leaves every existing instance without it, silently.
Doctor knew only about containers and called such a stack healthy.
A stacklet now declares `required_secrets` in its manifest and doctor
names any that are absent, pointing at `stack setup <id>`.
The token was obtained during install and never again, so an instance
that lost one (a destroy cycle gives Paperless a new database) or was
installed before it was stored had no way back. Seeding skipped every
start without saying why and the archivist could not file anything.
Both hooks now share one path that re-checks the token on every
`stack up docs` and asks Paperless for a new one when it is refused.
@arthware-dev
arthware-dev merged commit 02ced1b into main Aug 4, 2026
1 check passed
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