Skip to content

Start the portal with a backup key in the image check - #5

Merged
SamuelJennings merged 2 commits into
mainfrom
fix/image-check-backup-key
Nov 2, 2026
Merged

SamuelJennings merged 2 commits into
mainfrom
fix/image-check-backup-key

Conversation

@fairdm-bot

@fairdm-bot fairdm-bot Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Summary

The image workflow fails for every portal on FairDM 0.3 or later. The check starts the image in production, and FairDM refuses to start there without BACKUP_PUBLIC_KEY (fairdm.E700), so the portal exits before it answers.

Changes

The start step generates an OpenPGP key for the run and passes its public half as BACKUP_PUBLIC_KEY. The key is never stored and never encrypts anything.

Verification

A key generated with these commands passes manage.py check --deploy on a portal image built on FairDM 0.4.1, with neither fairdm.E700 nor fairdm.E701 reported. This workflow itself runs only once a portal calls it, so it is proved by the portal's next image check after a tag.

fairdm-bot Bot added 2 commits November 2, 2026 17:41
FairDM 0.3 refuses to start in production without BACKUP_PUBLIC_KEY, so the image check
failed for every portal on it. The check now makes a key for the run.
@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@SamuelJennings
SamuelJennings merged commit 9edb27a into main Nov 2, 2026
12 checks passed
@SamuelJennings
SamuelJennings deleted the fix/image-check-backup-key branch November 2, 2026 16:57
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