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

Business solution to host your own OpenVPN server with web management interface and bundled clients.
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.

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
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.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

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: 12
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

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
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.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

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.

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
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.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

aptalca
OpenVpn Newbie
Posts: 12
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 » Thu Mar 14, 2019 7:05 pm

@novaflash

Just noticed that the latest url contains "amd_64" as with all previous releases, both latest and versioned. But the versioned urls for 2.7.2 contain "amd64" (previous versions used "amd_64"). This threw our builder off. Can you comment on whether it was an intentional change and we should expect that structure moving forward or it was a simple oversight for this time?

Here are the urls we are seeing:
https://openvpn.net/downloads/openvpn-a ... amd_64.deb
https://swupdate.openvpn.org/as/openvpn ... .amd64.deb
https://swupdate.openvpn.org/as/openvpn ... amd_64.deb

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
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 » Thu Mar 14, 2019 7:16 pm

Sorry about that, but that's how our build system produces it now. So from now on it should be the new format.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
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 » Wed Mar 20, 2019 5:22 pm

You know what, we talked it over internally and we're going to stick to the old format. Sorry for any inconvenience.

Oh, and a repository is being made at the moment, so in the near future, we will be offering it on a repository. Much better that way.
I'm still alive, just posting under the openvpn_inc alias now as part of a larger group.

Post Reply