managarten/services/mana-core-auth/src
Till JS e64c298cec refactor(auth,planta): optimize storage usage
mana-core-auth:
- Replace manual key generation (Date.now) with generateUserFileKey()
- Replace manual validateFileSize with maxSizeBytes in upload()
- Remove OnModuleInit — init storage directly in constructor
- Add upload hooks for structured logging
- Remove redundant getPublicUrl() fallback chain (presigned URL for 1 year)
- Add deleteAllUserAvatars() for account deletion
- Simplify getAvatarUploadUrl() using storage.getPublicUrl()

planta:
- Replace createStorageClient() with manual config by createPlantaStorage()
- Replace manual uuid + path construction with generateUserFileKey()
- Remove uuid dependency for key generation
- Add maxSizeBytes validation (20MB)
- Add cacheControl header (immutable, 1 year)
- Add upload hooks for structured logging
- Add error handling in deletePhoto()
- Add deleteAllUserPhotos() for account deletion
- Make getPhotoUrl() synchronous (was async unnecessarily)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 20:59:14 +01:00
..
__tests__/utils perf(auth): replace bcrypt with bcryptjs (pure JS, no native build tools) 2026-03-20 19:46:16 +01:00
admin feat(gdpr): add DSGVO improvements for self-service data page 2026-02-13 13:43:23 +01:00
ai 🐛 fix(auth): remove type-only import of ConfigService in AiService 2025-12-04 19:08:37 +01:00
analytics fix(mana-core-auth): complete production readiness with test fixes 2026-02-01 14:18:58 +01:00
api-keys feat(auth): add audit logging, account lockout, and API key rate limiting 2026-03-19 22:09:58 +01:00
auth perf(auth): replace bcrypt with bcryptjs (pure JS, no native build tools) 2026-03-20 19:46:16 +01:00
common ♻️ refactor(credits): simplify credit system by removing free credits and B2B 2026-02-16 11:54:32 +01:00
config ♻️ refactor(credits): simplify credit system by removing free credits and B2B 2026-02-16 11:54:32 +01:00
credits ♻️ refactor(credits): simplify credit system by removing free credits and B2B 2026-02-16 11:54:32 +01:00
db feat(auth): add audit logging, account lockout, and API key rate limiting 2026-03-19 22:09:58 +01:00
email feat(gdpr): add DSGVO improvements for self-service data page 2026-02-13 13:43:23 +01:00
feedback Fix wrong type 2025-12-04 23:25:25 +01:00
gifts perf(auth): replace bcrypt with bcryptjs (pure JS, no native build tools) 2026-03-20 19:46:16 +01:00
health 🐛 fix(matrix-mana-bot): resolve QEMU emulation failure in CI 2026-02-01 13:59:04 +01:00
me feat(gdpr): add DSGVO improvements for self-service data page 2026-02-13 13:43:23 +01:00
metrics feat(calendar): add Playwright E2E tests for web app 2026-03-17 13:08:09 +01:00
security feat(auth): add audit logging, account lockout, and API key rate limiting 2026-03-19 22:09:58 +01:00
settings feat(onboarding): add Matrix onboarding bot for profile setup 2026-02-14 12:42:41 +01:00
storage refactor(auth,planta): optimize storage usage 2026-03-20 20:59:14 +01:00
stripe 💳 feat(stripe): add SEPA Direct Debit payment option 2026-02-16 12:05:19 +01:00
subscriptions 💳 feat(stripe): add SEPA Direct Debit payment option 2026-02-16 12:05:19 +01:00
tags feat: major update with network graphs, themes, todo extensions, and more 2025-12-10 02:37:46 +01:00
app.module.ts feat(auth): add audit logging, account lockout, and API key rate limiting 2026-03-19 22:09:58 +01:00
main.ts fix(auth): remove conflicting JSON body parser middleware 2026-02-16 14:30:06 +01:00