Commit 58b2734
docs(env): Add audit logging configuration with realistic volume estimates
Add comprehensive audit logging section to .env.example with:
- Corrected database load estimates for various user scales
- Clear distinction between Sentry (errors) vs audit logs (compliance)
- When to enable: enterprise/compliance requirements
- Expected DB inserts: 50-100/day per 100 users (scales linearly)
Realistic estimates for 20k users:
- ~10,000-15,000 audit log inserts per day
- Events: registration, login, role changes, org membership, failures
- NOT "10-20 queries" - that was an underestimate
🤖 Generated with Claude Code
https://claude.com/claude-code
Co-Authored-By: Claude <noreply@anthropic.com>1 parent abf47c5 commit 58b2734
1 file changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
126 | 160 | | |
127 | 161 | | |
128 | 162 | | |
| |||
0 commit comments