Skip to content

Conversation

@Primebrook
Copy link
Collaborator

@Primebrook Primebrook commented Feb 8, 2025

Summary

Building on #4, which introduced RustlerPrecompiled for fetching precompiled binaries, this PR adds the Exstatic.ReleaseHelper module to enable authenticated downloads from the Exstatic repo. Since Exstatic is private, direct public URLs are not an option. Instead, this module implements GitHub’s private asset download flow, for retrieving the NIF binaries.

I also added an up to date CHANGELOG.md in this PR.

Challenges with using RustlerPrecompiled for private GitHub releases

As discussed in philss/rustler_precompiled#65 (comment), fetching assets from private repositories requires an extra couple of steps because:

  • Direct downloads are not allowed (unlike public repos).
  • The download URL is dynamic – assets are stored in GitHub’s S3 backend, requiring a separate API request to retrieve a signed URL.
  • Requests must be authenticated – all API calls must include a GitHub Personal Access Token (PAT). For this, users must create and set the PAT in the env varEXSTATIC_GITHUB_TOKEN (I'll add this to the README in a follow up).

@Primebrook Primebrook changed the title Release Helper Enable RustlerPrecompiled to Fetch NIFs from a Private GitHub Repository Feb 8, 2025
@Primebrook Primebrook changed the title Enable RustlerPrecompiled to Fetch NIFs from a Private GitHub Repository Enable RustlerPrecompiled to Fetch NIFs from a Exstatic (private repo) Feb 8, 2025
@Primebrook Primebrook marked this pull request as ready for review February 8, 2025 19:31
@Primebrook Primebrook changed the title Enable RustlerPrecompiled to Fetch NIFs from a Exstatic (private repo) Enable RustlerPrecompiled to Fetch NIFs from Exstatic (private repo) Feb 8, 2025
@Primebrook Primebrook merged commit 4840a01 into main Feb 8, 2025
1 check passed
@Primebrook Primebrook deleted the downloading-private-assets branch February 8, 2025 19:33
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