• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / stash
82%
master: 84%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.13.3
DEFAULT BRANCH: master
Repo Added 24 Nov 2025 02:23AM UTC
Files 17
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH persistent-sessions
branch: persistent-sessions
CHANGE BRANCH
x
Reset
  • persistent-sessions
  • api-list-keys
  • conflict-detection
  • dependabot/github_actions/actions/setup-go-6
  • feat-public-access
  • feat/git-ssh-key
  • feat/key-history
  • feat/rate-limiting
  • feat/selective-session-invalidation
  • feat/sighup-auth-reload
  • feat/syntax-highlighting
  • feat/value-validation
  • feature/auth-hot-reload
  • feature/cache-layer
  • feature/enum-types
  • feature/git-versioning
  • feature/granular-auth
  • feature/web-pagination
  • fix/git-concurrency-and-error-handling
  • fix/server-code-review-improvements
  • json-schema-validation
  • master
  • refactor/split-server-subpackages
  • refs/tags/v0.1.0
  • refs/tags/v0.1.1
  • refs/tags/v0.10.0
  • refs/tags/v0.10.1
  • refs/tags/v0.10.2
  • refs/tags/v0.10.3
  • refs/tags/v0.10.4
  • refs/tags/v0.11.0
  • refs/tags/v0.12.0
  • refs/tags/v0.12.1
  • refs/tags/v0.13.0
  • refs/tags/v0.13.1
  • refs/tags/v0.13.2
  • refs/tags/v0.13.3
  • refs/tags/v0.2.0
  • refs/tags/v0.2.1
  • refs/tags/v0.2.2
  • refs/tags/v0.3.0
  • refs/tags/v0.3.1
  • refs/tags/v0.4.0
  • refs/tags/v0.5.0
  • refs/tags/v0.6.0
  • refs/tags/v0.7.0
  • refs/tags/v0.7.1
  • refs/tags/v0.7.2
  • refs/tags/v0.7.3
  • refs/tags/v0.8.0
  • refs/tags/v0.8.1
  • refs/tags/v0.8.2
  • refs/tags/v0.9.0
  • refs/tags/v0.9.1
  • refs/tags/v0.9.2

04 Dec 2025 05:52AM UTC coverage: 82.389% (-0.2%) from 82.631%
19919183805

Pull #23

github

umputun
feat(auth): add persistent session storage in database

store sessions in database instead of memory so server reboots
will not invalidate user sessions. sessions table uses same database
as KV store with proper timezone handling (TIMESTAMPTZ for postgres,
text with timezone for sqlite).

changes:
- add SessionStore interface for session CRUD operations
- add sessions table with token, username, expires_at columns
- add background cleanup goroutine with configurable interval
- add context.Context to all store methods for proper cancellation
- use UTC consistently for session expiration checks
- add comprehensive tests for session persistence and timezone handling
Pull Request #23: feat(auth): add persistent session storage in database

175 of 203 new or added lines in 10 files covered. (86.21%)

3 existing lines in 2 files now uncovered.

2311 of 2805 relevant lines covered (82.39%)

89.46 hits per line

Relevant lines Covered
Build:
Build:
2805 RELEVANT LINES 2311 COVERED LINES
89.46 HITS PER LINE
Source Files on persistent-sessions
  • Tree
  • List 17
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
19919183805 persistent-sessions feat(auth): add persistent session storage in database store sessions in database instead of memory so server reboots will not invalidate user sessions. sessions table uses same database as KV store with proper timezone handling (TIMESTAMPTZ for ... Pull #23 04 Dec 2025 05:55AM UTC umputun github
82.39
See All Builds (195)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc