Deploy main eacf1e7 to prod
check / check (push) Waiting to run

Replaces #559, which conflicted.

Model: opus-5-5
This commit is contained in:
2026-10-25 01:55:36 +00:00
parent 1647b43aa6
commit 537374e4cc
311 changed files with 35614 additions and 14120 deletions
+5 -7
View File
@@ -16,7 +16,6 @@ import (
"go.uber.org/fx"
"sneak.berlin/go/webhooker/internal/config"
"sneak.berlin/go/webhooker/internal/database"
"sneak.berlin/go/webhooker/internal/logger"
"sneak.berlin/go/webhooker/internal/reqtls"
)
@@ -80,7 +79,7 @@ type Params struct {
Config *config.Config
Database *database.Database
Logger *logger.Logger
Logger *slog.Logger
}
// Session manages encrypted session storage.
@@ -180,7 +179,7 @@ func New(
params Params,
) (*Session, error) {
s := &Session{
log: params.Logger.Get(),
log: params.Logger,
idleTimeout: params.Config.SessionIdleTimeout,
now: time.Now,
}
@@ -442,10 +441,9 @@ func (s *Session) Regenerate(
//
// Whichever comes first ends the session.
//
// A session that claims to be authenticated but carries no
// timestamps predates this check; it is treated as expired so the
// user re-authenticates rather than being granted an unbounded
// session.
// A session that claims to be authenticated but lacks the timestamp
// a deadline is measured from is treated as expired, so the user
// re-authenticates rather than being granted an unbounded session.
func (s *Session) expired(sess *sessions.Session) bool {
now := s.now()