Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add codeberg to update mirrors #93

Open
maltfield opened this issue Jan 2, 2025 · 0 comments
Open

Add codeberg to update mirrors #93

maltfield opened this issue Jan 2, 2025 · 0 comments

Comments

@maltfield
Copy link
Member

maltfield commented Jan 2, 2025

Problem

Currently our in-app updates need to be able to access one of four websites:

  1. repo.buskill.in
  2. repo.michaelaltfield.net
  3. github.com
  4. gitlab.com
  • UPGRADE_MIRRORS = [
    'https://raw.githubusercontent.com/BusKill/buskill-app/master/updates/v1/meta.json',
    'https://gitlab.com/buskill/buskill-app/-/raw/master/updates/v1/meta.json',
    'https://repo.buskill.in/buskill-app/v1/meta.json',
    'https://repo.michaelaltfield.net/buskill-app/v1/meta.json',
    ]

If all 4 of those sites went down, BusKill wouldn't be able to update itself.

Note that the software verifies signatures, randomizes the domains in the mirror list, and automatically tries all the mirrors if it fails. So we don't actually have to trust the publishing infrastructure, and only one mirror needs to be reachable.

Solution

We can further make this more resilient by adding a new contender to the forge space: Codeberg

How?

It's pretty simple to implement:

  1. Copy the contents of gitlab to codeberg https://gitlab.com/buskill/buskill-app/
  2. Update this repo's src/packages/buskill/__init__.py file to include the repo's raw download URL for the updates/v1/meta.json file
  3. Update our documentation's Update updates repo metadat section to include updating this file on the codeberg repo https://docs.buskill.in/buskill-app/en/stable/software_dev/release.html#update-updates-repo-metadata
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

No branches or pull requests

1 participant