[PR #24] [MERGED] store certs and sessions in db #173

Closed
opened 2026-02-17 17:06:21 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Drop-OSS/drop/pull/24
Author: @Huskydog9988
Created: 3/14/2025
Status: Merged
Merged: 4/3/2025
Merged by: @DecDuck

Base: developHead: db-store


📝 Commits (9)

  • 61764e8 store certs in db
  • cf0af15 store sessions in db
  • 88a5dc2 add migrations to store ca and session in db
  • 0f35d4a feat: cache for session store in db
  • 9dc35c8 Merge branch 'develop' into db-store
  • 756bf8f fix: add missing dev deps
  • 97043d6 fix: register page validation
  • a9d1a44 refactor: session handler
  • 81be7cc Merge remote-tracking branch 'origin/develop' into db-store

📊 Changes

19 files changed (+419 additions, -121 deletions)

View changed files

📝 nuxt.config.ts (+1 -1)
📝 package.json (+4 -1)
📝 pages/auth/register.vue (+1 -1)
prisma/migrations/20250314153636_store_ca_and_session_in_db/migration.sql (+17 -0)
📝 prisma/schema/auth.prisma (+19 -0)
📝 prisma/schema/user.prisma (+2 -1)
📝 server/api/v1/auth/signin/simple.post.ts (+18 -13)
📝 server/api/v1/client/auth/callback/index.get.ts (+4 -6)
📝 server/api/v1/client/auth/callback/index.post.ts (+2 -2)
📝 server/internal/acls/index.ts (+7 -5)
📝 server/internal/clients/ca-store.ts (+61 -0)
server/internal/session/db.ts (+69 -0)
📝 server/internal/session/index.ts (+77 -70)
📝 server/internal/session/memory.ts (+14 -6)
📝 server/internal/session/types.d.ts (+11 -4)
📝 server/plugins/ca.ts (+8 -5)
📝 server/plugins/redirect.ts (+2 -2)
server/tasks/cleanup/sessions.ts (+12 -0)
📝 yarn.lock (+90 -4)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Drop-OSS/drop/pull/24 **Author:** [@Huskydog9988](https://github.com/Huskydog9988) **Created:** 3/14/2025 **Status:** ✅ Merged **Merged:** 4/3/2025 **Merged by:** [@DecDuck](https://github.com/DecDuck) **Base:** `develop` ← **Head:** `db-store` --- ### 📝 Commits (9) - [`61764e8`](https://github.com/Drop-OSS/drop/commit/61764e81b8cb6b6575afb8f77fa974f77493593b) store certs in db - [`cf0af15`](https://github.com/Drop-OSS/drop/commit/cf0af15854247f0fca3fb3350896051068de5a33) store sessions in db - [`88a5dc2`](https://github.com/Drop-OSS/drop/commit/88a5dc2a58bb476c2664bb7deebd8ce1e1020d36) add migrations to store ca and session in db - [`0f35d4a`](https://github.com/Drop-OSS/drop/commit/0f35d4a445553eece813f107d8adfe8f2d14ba7e) feat: cache for session store in db - [`9dc35c8`](https://github.com/Drop-OSS/drop/commit/9dc35c80c5314a07f995b006ee5d5a7841d519b6) Merge branch 'develop' into db-store - [`756bf8f`](https://github.com/Drop-OSS/drop/commit/756bf8f93f5dcd3da9e1d3cec762e6e241ed00c0) fix: add missing dev deps - [`97043d6`](https://github.com/Drop-OSS/drop/commit/97043d6366f73df0a11a111d642f7551122b44d9) fix: register page validation - [`a9d1a44`](https://github.com/Drop-OSS/drop/commit/a9d1a442f675eb73c9cf1eec458f137320c9d1d4) refactor: session handler - [`81be7cc`](https://github.com/Drop-OSS/drop/commit/81be7ccf583fd83dc9a45b71b389cfc5a1f9fe97) Merge remote-tracking branch 'origin/develop' into db-store ### 📊 Changes **19 files changed** (+419 additions, -121 deletions) <details> <summary>View changed files</summary> 📝 `nuxt.config.ts` (+1 -1) 📝 `package.json` (+4 -1) 📝 `pages/auth/register.vue` (+1 -1) ➕ `prisma/migrations/20250314153636_store_ca_and_session_in_db/migration.sql` (+17 -0) 📝 `prisma/schema/auth.prisma` (+19 -0) 📝 `prisma/schema/user.prisma` (+2 -1) 📝 `server/api/v1/auth/signin/simple.post.ts` (+18 -13) 📝 `server/api/v1/client/auth/callback/index.get.ts` (+4 -6) 📝 `server/api/v1/client/auth/callback/index.post.ts` (+2 -2) 📝 `server/internal/acls/index.ts` (+7 -5) 📝 `server/internal/clients/ca-store.ts` (+61 -0) ➕ `server/internal/session/db.ts` (+69 -0) 📝 `server/internal/session/index.ts` (+77 -70) 📝 `server/internal/session/memory.ts` (+14 -6) 📝 `server/internal/session/types.d.ts` (+11 -4) 📝 `server/plugins/ca.ts` (+8 -5) 📝 `server/plugins/redirect.ts` (+2 -2) ➕ `server/tasks/cleanup/sessions.ts` (+12 -0) 📝 `yarn.lock` (+90 -4) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-17 17:06:21 -05:00
yindo closed this issue 2026-02-17 17:06:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Drop-OSS/drop#173