Provide an endpoint that lists the download URL for your latest access server

Post Reply
thelamer
OpenVpn Newbie
Posts: 5
Joined: Tue Jan 29, 2019 6:38 am

Provide an endpoint that lists the download URL for your latest access server

Post by thelamer » Tue Jan 29, 2019 6:47 am

From your own upgrade guide:
look up the installation file on our software packages download page on our main website.
At a minimum can we get a json endpoint or key listing from your object storage and parse it ourselves ?

I went down the rabbit hole of hitting the AWS marketplace api for the version information but it is impossible to embed this in a Dockerfile as it requires authentication for rate limiting.

Even better would be real software repos for your debs and rpms on linux , the file structure is not too complex and really just needs proper folders and package references. There are multiple helper packages on both fronts that will work with your current hosting provider as it is just an http endpoint:
https://wiki.debian.org/DebianRepository/Setup

I am trying to ingest your latest version number and properly tag our docker images for LinuxServer.io. Right now we hard code it in the Dockerfile.

novaflash
I should be on the dev team.
Posts: 838
Joined: Fri Apr 13, 2012 8:43 pm

Re: Provide an endpoint that lists the download URL for your latest access server

Post by novaflash » Tue Jan 29, 2019 7:49 am

Actually both ideas are on the agenda, but it will be some time before they are implemented. By that I mean, both a fixed endpoint and a repo.

thelamer
OpenVpn Newbie
Posts: 5
Joined: Tue Jan 29, 2019 6:38 am

Re: Provide an endpoint that lists the download URL for your latest access server

Post by thelamer » Tue Jan 29, 2019 5:20 pm

What about a massive simplification for it's initial implementation?
When you upload a new version update a file in the root storage directory called latest.txt or latest.json that simply contains the version number or the number and a bit of metadata?

thelamer
OpenVpn Newbie
Posts: 5
Joined: Tue Jan 29, 2019 6:38 am

Re: Provide an endpoint that lists the download URL for your latest access server

Post by thelamer » Fri Feb 01, 2019 3:25 am

I want to point out that our image has close to 9 million pulls, it may not be the largest install base for this application, but surely it warrants some kind of collaboration.

All I am asking is if it possible to upload a text file that contains "2.6.1" at http://swupdate.openvpn.org/as/latest.txt . When you update, upload a new file with the version number.

Please let me know if something like this would be possible.

aptalca
OpenVpn Newbie
Posts: 1
Joined: Mon Jun 22, 2015 6:20 pm

Re: Provide an endpoint that lists the download URL for your latest access server

Post by aptalca » Mon Feb 04, 2019 9:44 pm

Just to add,

we maintain the docker image: https://hub.docker.com/r/linuxserver/openvpn-as

It has the highest number of pulls among the openvpn-as images on there. We are just trying to implement downstream automation via our jenkins.

Thanks

novaflash
I should be on the dev team.
Posts: 838
Joined: Fri Apr 13, 2012 8:43 pm

Re: Provide an endpoint that lists the download URL for your latest access server

Post by novaflash » Tue Feb 05, 2019 4:47 pm

It's implemented. Or at least the fixed 'latest' endpoint URL is.

thelamer
OpenVpn Newbie
Posts: 5
Joined: Tue Jan 29, 2019 6:38 am

Re: Provide an endpoint that lists the download URL for your latest access server

Post by thelamer » Fri Feb 08, 2019 4:35 am

novaflash wrote:
Tue Feb 05, 2019 4:47 pm
It's implemented. Or at least the fixed 'latest' endpoint URL is.
Can you elaborate on that ?

Do you have a specific link?

thelamer
OpenVpn Newbie
Posts: 5
Joined: Tue Jan 29, 2019 6:38 am

Re: Provide an endpoint that lists the download URL for your latest access server

Post by thelamer » Fri Feb 08, 2019 5:13 am

Nevermind Got it https://openvpn.net/downloads/openvpn-a ... amd_64.deb, cool we can read the 301 redirect and parse the value from there.

Consider this one resolved.

novaflash
I should be on the dev team.
Posts: 838
Joined: Fri Apr 13, 2012 8:43 pm

Re: Provide an endpoint that lists the download URL for your latest access server

Post by novaflash » Fri Feb 08, 2019 7:14 am

We're still going to do a repository, as that just makes eminently more sense. But this has been something we've wanted to do for a long time anyways, and now it's there. Glad to have been of assistance.

Post Reply