Some checks failed
Build and Deploy LittleShop / Build TeleBot Docker Image (push) Failing after 11s
Build and Deploy LittleShop / Build LittleShop Docker Image (push) Failing after 15s
Build and Deploy LittleShop / Deploy to Production VPS (Manual Only) (push) Has been skipped
Build and Deploy LittleShop / Deploy to Pre-Production (CT109) (push) Has been skipped
Major Feature Additions: - Customer management: Full CRUD with data export and privacy compliance - Payment management: Centralized payment tracking and administration - Push notification subscriptions: Manage and track web push subscriptions Security Enhancements: - IP whitelist middleware for administrative endpoints - Data retention service with configurable policies - Enhanced push notification security documentation - Security fixes progress tracking (2025-11-14) UI/UX Improvements: - Enhanced navigation with improved mobile responsiveness - Updated admin dashboard with order status counts - Improved product CRUD forms - New customer and payment management interfaces Backend Improvements: - Extended customer service with data export capabilities - Enhanced order service with status count queries - Improved crypto payment service with better error handling - Updated validators and configuration Documentation: - DEPLOYMENT_NGINX_GUIDE.md: Nginx deployment instructions - IP_STORAGE_ANALYSIS.md: IP storage security analysis - PUSH_NOTIFICATION_SECURITY.md: Push notification security guide - UI_UX_IMPROVEMENT_PLAN.md: Planned UI/UX enhancements - UI_UX_IMPROVEMENTS_COMPLETED.md: Completed improvements Cleanup: - Removed temporary database WAL files - Removed stale commit message file 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
namespace LittleShop.Configuration;
|
|
|
|
/// <summary>
|
|
/// Configuration options for GDPR data retention enforcement
|
|
/// </summary>
|
|
public class DataRetentionOptions
|
|
{
|
|
public const string SectionName = "DataRetention";
|
|
|
|
/// <summary>
|
|
/// Enable automatic data retention enforcement
|
|
/// </summary>
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Time of day to run cleanup (24-hour format, e.g., "02:00" for 2 AM)
|
|
/// </summary>
|
|
public string CleanupTime { get; set; } = "02:00";
|
|
|
|
/// <summary>
|
|
/// Interval in hours to check for data retention (default: 24 hours)
|
|
/// </summary>
|
|
public int CheckIntervalHours { get; set; } = 24;
|
|
|
|
/// <summary>
|
|
/// Default retention period in days for active customers (default: 730 days = 2 years)
|
|
/// </summary>
|
|
public int DefaultRetentionDays { get; set; } = 730;
|
|
|
|
/// <summary>
|
|
/// Retention period in days after customer requests deletion (default: 30 days)
|
|
/// </summary>
|
|
public int DeletionGracePeriodDays { get; set; } = 30;
|
|
|
|
/// <summary>
|
|
/// Maximum number of customers to process per cleanup run (prevent long-running jobs)
|
|
/// </summary>
|
|
public int MaxCustomersPerRun { get; set; } = 100;
|
|
|
|
/// <summary>
|
|
/// Enable dry-run mode (log what would be deleted without actually deleting)
|
|
/// </summary>
|
|
public bool DryRunMode { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Enable admin notification before deletion (requires notification service)
|
|
/// </summary>
|
|
public bool NotifyAdminBeforeDeletion { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Days before deletion to send admin notification
|
|
/// </summary>
|
|
public int NotificationDaysBeforeDeletion { get; set; } = 7;
|
|
}
|