feat: App-Version 0.9.1 + Modulversionsnummern
- version.go: AppVersion + Modules-Map (pro Modul interne Versionsnummer) - GET /api/version: liefert App- und Modulversionen (ohne Auth) - archivmail version: zeigt App- und Modulversionen in CLI - version-Konstante aus cmd_import.go entfernt (war falsche Stelle) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,6 @@ import (
|
||||
"github.com/archivmail/pkg/mailparser"
|
||||
)
|
||||
|
||||
const version = "1.0.0"
|
||||
|
||||
type importResult struct {
|
||||
Status string `json:"status"`
|
||||
|
||||
@@ -51,7 +51,10 @@ func main() {
|
||||
runMigrateTenants(os.Args[2:])
|
||||
return
|
||||
case "version":
|
||||
fmt.Printf("archivmail %s\n", version)
|
||||
fmt.Printf("archivmail %s\n", AppVersion)
|
||||
for mod, ver := range Modules {
|
||||
fmt.Printf(" %-14s %s\n", mod, ver)
|
||||
}
|
||||
return
|
||||
case "help", "--help", "-h":
|
||||
printHelp()
|
||||
@@ -172,6 +175,7 @@ func main() {
|
||||
Secret: jwtSecret,
|
||||
}
|
||||
srv := api.New(apiCfg, mailStore, idx, authMgr, users, audlog, logger)
|
||||
srv.SetVersion(AppVersion, Modules)
|
||||
|
||||
bind := cfg.API.Bind
|
||||
if bind == "" {
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package main
|
||||
|
||||
// AppVersion ist die semantische Versionsnummer der Anwendung.
|
||||
// Format: MAJOR.MINOR.PATCH
|
||||
// MAJOR: Breaking changes / große Architekturänderungen
|
||||
// MINOR: Neue Features / Module
|
||||
// PATCH: Bugfixes / Security-Fixes
|
||||
const AppVersion = "0.9.1"
|
||||
|
||||
// Modules enthält die internen Versionsnummern der einzelnen Module.
|
||||
// Format: MAJOR.MINOR — wird erhöht wenn das Modul geändert oder neu erstellt wird.
|
||||
// MAJOR: Interface-Änderungen, Breaking changes innerhalb des Moduls
|
||||
// MINOR: Neue Funktionen, Bugfixes, Security-Patches
|
||||
var Modules = map[string]string{
|
||||
"storage": "1.4", // message-id dedup vorbereitet, verify_ok/verified_at
|
||||
"smtpd": "1.2", // IP-Allowlist fail-closed, Domain→Tenant-Routing
|
||||
"imapserver": "1.1", // Read-Only IMAP4rev1, Multi-Tenant-Isolation
|
||||
"auth": "1.3", // JWT, bcrypt cost 12, TOTP
|
||||
"audit": "1.1", // PostgreSQL append-only, QueryFilter
|
||||
"index": "1.0", // Xapian-Wrapper, Async-Worker, Tenant-Index
|
||||
"api": "1.6", // SEC-29 Rollen-Trennung, domain_auditor
|
||||
"userstore": "1.3", // domain_auditor Rolle, bcrypt, LDAP-Auth
|
||||
"imap": "1.2", // IMAP-Sync, Scheduler, POP3
|
||||
"labelstore": "1.0", // Labels, Tenant-Isolation
|
||||
"tenantstore":"1.1", // Multi-Tenancy, Quotas
|
||||
"ldapconfig": "1.1", // Pro-Mandant LDAP, TLS
|
||||
"mailparser": "1.1", // RFC-2822, MIME, MessageID-Extraktion
|
||||
}
|
||||
Reference in New Issue
Block a user