Skip to content

Export and import feeder identity from the Identity tile#29

Merged
d4rken merged 1 commit into
devfrom
feat/identity-export-import
May 18, 2026
Merged

Export and import feeder identity from the Identity tile#29
d4rken merged 1 commit into
devfrom
feat/identity-export-import

Conversation

@d4rken

@d4rken d4rken commented May 18, 2026

Copy link
Copy Markdown
Member

The Identity tile on the dashboard gains two actions: Export, which downloads the feeder's UUID + claim secret + claim version as a canonical apl-feed backup JSON file, and Import, which accepts the same envelope (paste it whole, or fill in the UUID + claim secret pair) and restores it onto this feeder.

Both flow through fixed-argv sudoers wrappers under /usr/local/lib/airplanes-webconfig/. Export invokes apl-feed backup - (stdout mode) so the JSON arrives without an intermediate file; import pipes the validated envelope through apl-feed restore /dev/stdin --force, which writes UUID first then secret with rollback semantics and restarts the feed and mlat daemons when the UUID actually changes.

The stdout mode for apl-feed backup is added in airplanes-live/feed#99; this PR's runtime path only works once that lands and is deployed.

@d4rken d4rken added the enhancement New feature or request label May 18, 2026
…/restore

Privileged wrappers under files/usr/local/lib/airplanes-webconfig invoke apl-feed backup - and apl-feed restore /dev/stdin --force. Dashboard gains Export (downloads the canonical backup JSON) and Import (paste JSON or type the UUID + claim secret pair).
@d4rken d4rken force-pushed the feat/identity-export-import branch from 021cf50 to 1893809 Compare May 18, 2026 22:05
@d4rken d4rken marked this pull request as ready for review May 18, 2026 22:06
@d4rken d4rken merged commit e2294e4 into dev May 18, 2026
8 checks passed
@d4rken d4rken deleted the feat/identity-export-import branch May 18, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant