ci / test (pull_request) Successful in 56s
Server 27.1-rc.3 carries security batch 3 (seven advisories: OpenID Connect audience, opaque tokens, calendar expansion, IMAP, Sieve, bearer tokens over plain HTTP, provider responses). Console 27.1-rc.3 asks for an OpenID Connect provider's client ID as the audience, which that server checks. The webmail stays on 27.1-rc.1, its newest release candidate. The tarball checksums are the releases' SHA256SUMS, checked against the downloaded tarballs.
68 lines
3.0 KiB
Go
68 lines
3.0 KiB
Go
// SPDX-FileCopyrightText: 2026 Coffey Labs LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
// Package release is which version of the mail server this installer puts on
|
|
// a machine, as an image or as a binary, and what that binary must hash to.
|
|
//
|
|
// One version for both shapes, so a server moved from a container to the host
|
|
// is the same program, and the plan, the image tag and the download cannot
|
|
// name three different releases.
|
|
//
|
|
// A release candidate of the installer (v27.1-rc.1) pins the suite's release
|
|
// candidates; a final release pins final releases only. Downloading an RC
|
|
// installer is the opt-in: it is published as a pre-release, so
|
|
// releases/latest, and so a plain install, never reaches one.
|
|
package release
|
|
|
|
import "fmt"
|
|
|
|
// ServerVersion is the inbuxa-server release this installer installs.
|
|
const ServerVersion = "27.1-rc.3"
|
|
|
|
// ServerImage is that release as a container image.
|
|
const ServerImage = "registry.coffeylabs.org/inbuxa/inbuxa-server:" + ServerVersion
|
|
|
|
// ServerSHA256 is the SHA-256 of each architecture's release tarball, copied
|
|
// from the release's SHA256SUMS when the version was moved and checked here
|
|
// rather than fetched beside the download: a checksum that arrives with the
|
|
// file only proves the file arrived.
|
|
var ServerSHA256 = map[string]string{
|
|
"amd64": "23c9a1b50a0174c78130497a2a550ee4e8e74158e63b0ba01358078bfdafb4ff",
|
|
"arm64": "dbb4fe46cd271fb45026dff7b08adb70a4a319161c463eaa1b4af876636b97c6",
|
|
}
|
|
|
|
// ServerTarball is where the release's tarball for an architecture is.
|
|
func ServerTarball(arch string) string {
|
|
return fmt.Sprintf("https://git.coffeylabs.org/inbuxa/inbuxa-server/releases/download/v%s/inbuxa-linux-%s.tar.gz",
|
|
ServerVersion, arch)
|
|
}
|
|
|
|
// The console and the webmail as files, for host installs. Their releases
|
|
// attach these since inbuxa-admin #106 and inbuxa-webmail #68; a version
|
|
// with an empty checksum has none to install, and the host shape is
|
|
// unavailable until one does. INBUXA_CONSOLE_TARBALL and
|
|
// INBUXA_WEBMAIL_TARBALL name a local file instead, for testing.
|
|
const (
|
|
ConsoleVersion = "27.1-rc.3"
|
|
ConsoleSHA256 = "e9bce5e21bf5bcd2a8989f775996b28b1b1aa48aba66b40330bac8fb1076e5d7"
|
|
WebmailVersion = "27.1-rc.1" // its tag is inbuxa-v<this>
|
|
)
|
|
|
|
// WebmailSHA256 is the SHA-256 of each architecture's webmail tarball.
|
|
var WebmailSHA256 = map[string]string{
|
|
"amd64": "354cc1e3ee187f9ef2b4b9b618478aa7a2787b4137f5c8102b3d03d0607bd9e8",
|
|
"arm64": "e13ba2e68dc0c6c16df0fc07084562313020ef8367b2c3eea09b3bade43f47c0",
|
|
}
|
|
|
|
// ConsoleTarball is where the console's release tarball is.
|
|
func ConsoleTarball() string {
|
|
return fmt.Sprintf("https://git.coffeylabs.org/inbuxa/inbuxa-admin/releases/download/v%s/inbuxa-admin.tar.gz", ConsoleVersion)
|
|
}
|
|
|
|
// WebmailTarball is where the webmail's release tarball for an
|
|
// architecture is. Its tags are inbuxa-v<version>.
|
|
func WebmailTarball(arch string) string {
|
|
return fmt.Sprintf("https://git.coffeylabs.org/inbuxa/inbuxa-webmail/releases/download/inbuxa-v%s/inbuxa-webmail-linux-%s.tar.gz",
|
|
WebmailVersion, arch)
|
|
}
|