| """ |
| Demo Scenarios for ARF 3.3.9 OSS vs Enterprise |
| Comprehensive scenarios showing the value of mechanical enforcement |
| """ |
|
|
| DEMO_SCENARIOS = { |
| "DROP DATABASE production": { |
| "action": "DROP DATABASE production CASCADE", |
| "context": "Environment: production, User: junior_dev, Time: 2AM, Backup: 24h old, Criticality: critical", |
| "description": "Irreversible deletion of production database" |
| }, |
| "DELETE FROM users WHERE status='active'": { |
| "action": "DELETE FROM users WHERE status = 'active'", |
| "context": "Environment: production, User: admin, Records: 50,000+, No backup, Criticality: high", |
| "description": "Mass deletion of active users" |
| }, |
| "GRANT admin TO new_user": { |
| "action": "GRANT admin_role TO new_user@company.com", |
| "context": "Environment: production, User: team_lead, New User: intern, No MFA, Criticality: medium", |
| "description": "Grant admin privileges to new user" |
| }, |
| "UPDATE transactions SET amount=amount*10": { |
| "action": "UPDATE transactions SET amount = amount * 10 WHERE date = '2024-01-15'", |
| "context": "Environment: production, User: finance_bot, Records: 10,000+, No rollback, Criticality: critical", |
| "description": "Massive transaction amount modification" |
| }, |
| "DEPLOY_TO production (no tests)": { |
| "action": "deploy_service payment_api:v2.0.0 to production with 100% rollout", |
| "context": "Environment: production, Tests: failed, Rollback: complex, Criticality: high", |
| "description": "Deploy untested version to production" |
| } |
| } |
|
|
| def get_scenario_context(scenario_name): |
| """Get context for a scenario""" |
| if scenario_name in DEMO_SCENARIOS: |
| return {"description": DEMO_SCENARIOS[scenario_name]["context"]} |
| return {"description": "Environment: production, User: developer"} |