Scope Management
Scopes control which GCP resources SmartSRE scans and what operations are permitted on those resources.
What Are Scopes?
A Scope is a filter that defines:
- What to scan — Which projects, regions, and services to include
- What operations are allowed — Which remediation actions can be executed
- Risk profile — How aggressively to act on findings
Creating a Scope
- Navigate to Settings → Scopes
- Click Create Scope
- Configure the scope:
- Name — Human-readable label (e.g., "Production Cloud Run")
- Service — Which GCP service to target
- Projects — Which projects to include
- Regions — Optionally limit to specific regions
- Click Create
Multi-Target Scopes
Scopes can target multiple combinations:
- Multiple projects for the same service
- Multiple regions within a project
- Multiple services (separate scope per service recommended)
Scope Policies
Allowed Operations
Restrict which operations SmartSRE can execute:
- Edit a scope
- Under Policy, configure Allowed Operations
- Select specific operations to allow (e.g.,
scale_memory,scale_cpu) - Operations not in the list will be blocked
If an operation is not in the allowed list, SmartSRE will:
- Still detect and report the finding
- Block execution of that specific fix
- Show a message explaining the blocking policy
Risk Profile Override
Override the tenant-wide risk profile for this scope:
- Edit a scope
- Under Policy, select Risk Profile
- Choose: Conservative, Balanced, or Aggressive
Scope Coverage
View which resources are covered by scopes:
- Navigate to Settings → Scopes
- Click the Coverage tab
- See breakdown by service:
- Covered — Resource matches at least one scope
- Uncovered — Resource exists but no scope matches
Team-Owned Scopes
Scopes can be assigned to teams for access control:
- Create a Team in Settings → Team
- When creating/editing a scope, select Owner Team
- Only team members can edit or delete that scope
Scheduler Configuration
Enable automated scans for a scope:
- Edit a scope
- Under Scheduler, toggle Enable Scheduled Scans
- Configure:
- Interval — How often to scan (e.g., every 6 hours)
- Time Window — Optional restriction (e.g., business hours only)
- Save the scope
Default Scopes
Set a scope as the default for a service:
- Navigate to Settings → Scopes
- Find the scope to make default
- Click the menu (⋮) and select Set as Default
The default scope is used when no scope is explicitly selected during a scan.
Best Practices
Separate Production and Non-Production
Create separate scopes for:
- Production (conservative risk profile, limited operations)
- Development (aggressive profile, all operations allowed)
Start Restrictive
Begin with only safe operations allowed:
- Cloud Run:
scale_memory,scale_cpu - GCS:
set_lifecycle_rule
Expand as you gain confidence.
Use Team Ownership
Assign scopes to the teams responsible for those resources.
Next Steps
- Risk Guardrails — Configure cost and impact limits
- Running Scans — Execute scans with scopes
- Team Management — Assign scopes to teams