Auth fetch verification (cavage) works now
All checks were successful
/ docker (push) Successful in 4m14s

- Verifying inbound requests signed with Cavage are now checked as
  expected
- Fixed a bug where the signature header is not generated correctly
- Extended config to include settings for what requests to verify
- Fixed new server in main not using internal port from config
This commit is contained in:
Melody Becker 2025-04-22 15:27:24 +02:00
parent 271acc8d29
commit 627926460c
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
8 changed files with 90 additions and 36 deletions

10
main.go
View file

@ -4,6 +4,7 @@ package main
import (
"embed"
"flag"
"fmt"
"path"
"time"
@ -163,6 +164,11 @@ func newServer() {
}()
}
log.Info().Msg("Starting public server")
public := webpublic.New(":8080", &defaultDuck)
public.Start()
public := webpublic.New(
fmt.Sprintf(":%v", config.GlobalConfig.General.PrivatePort),
&defaultDuck,
)
if err = public.Start(); err != nil {
log.Fatal().Err(err).Msg("Failed to start public server")
}
}