mouuff / go-rocket-update

Easy to use and modular library to make self updating golang programs
Other
100 stars 10 forks source link

[Feature Request] GitHub API Tokens For Private Repos #28

Closed FM1337 closed 1 year ago

FM1337 commented 1 year ago

Title should be self-explanatory but just in case:

I'd like to see the ability to provide an auth/api token for the updater, to allow it to download new releases from private github repositories.

mouuff commented 1 year ago

Hello, I think that should be possible. However, for security reasons it would be a terrible idea to put the private key inside the program you are shipping. So to make it work, the user will have to do some configuration first, so that your self updating program can find the key (from a file or from the PATH for example). Did you think of that?

mouuff commented 1 year ago

I have looked into it a little bit, actually we might be able to do this with OAuth, but then that means we will have to prompt the user to logging to check for updates.

mouuff commented 1 year ago

Closing due to inactivity