Skip to content

Commit 4e28f55

Browse files
authored
Merge pull request #7 from pangerlkr/claude/make-tool-production-ready
Make CTIAS Lab production-ready: Add configuration, validation, database, tests, and deployment docs
2 parents 557773d + 4465054 commit 4e28f55

File tree

14 files changed

+2296
-32
lines changed

14 files changed

+2296
-32
lines changed

.env.example

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# CTIAS Lab Environment Configuration
2+
# Copy this file to .env and update with your actual values
3+
4+
# Database Configuration
5+
DATABASE_URL=postgresql://ctias:ctias_secure_password_change_me@postgres:5432/ctias_lab
6+
POSTGRES_DB=ctias_lab
7+
POSTGRES_USER=ctias
8+
POSTGRES_PASSWORD=ctias_secure_password_change_me
9+
10+
# Redis Configuration
11+
REDIS_URL=redis://redis:6379/0
12+
REDIS_HOST=redis
13+
REDIS_PORT=6379
14+
15+
# JWT & Security
16+
JWT_SECRET=your_jwt_secret_key_change_me_minimum_32_characters
17+
JWT_ALGORITHM=HS256
18+
JWT_EXPIRATION_MINUTES=60
19+
20+
# API Configuration
21+
API_HOST=0.0.0.0
22+
API_PORT=8000
23+
API_WORKERS=4
24+
API_LOG_LEVEL=info
25+
26+
# Frontend Configuration
27+
REACT_APP_API_URL=http://localhost:8000
28+
29+
# Rate Limiting
30+
RATE_LIMIT_ENABLED=true
31+
RATE_LIMIT_PER_MINUTE=60
32+
33+
# CORS Configuration
34+
CORS_ORIGINS=http://localhost:3000,http://localhost:8000
35+
36+
# Environment
37+
ENVIRONMENT=development
38+
39+
# Logging
40+
LOG_LEVEL=info
41+
LOG_FORMAT=json
42+
43+
# Module Timeouts (seconds)
44+
MODULE_TIMEOUT=30
45+
46+
# External API Keys (for threat intelligence feeds)
47+
VIRUSTOTAL_API_KEY=
48+
ABUSEIPDB_API_KEY=
49+
SHODAN_API_KEY=
50+
51+
# Sentry Configuration (optional)
52+
SENTRY_DSN=
53+
54+
# Admin Configuration
55+
ADMIN_EMAIL=admin@example.com
56+
ADMIN_PASSWORD=changeme_secure_password

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,3 +205,32 @@ cython_debug/
205205
marimo/_static/
206206
marimo/_lsp/
207207
__marimo__/
208+
209+
# CTIAS Lab specific
210+
# Backups
211+
*.sql
212+
*.sql.gz
213+
/backups/
214+
215+
# Docker volumes
216+
postgres_data/
217+
218+
# Local development
219+
*.local
220+
.DS_Store
221+
222+
# Secrets and credentials
223+
secrets/
224+
*.pem
225+
*.key
226+
*.crt
227+
credentials.json
228+
229+
# Node modules
230+
node_modules/
231+
npm-debug.log*
232+
233+
# Java build
234+
*.class
235+
*.jar
236+
target/

0 commit comments

Comments
 (0)