|
24 | 24 | REPO_ROOT = Path(__file__).resolve().parents[1] |
25 | 25 | sys.path.insert(0, str(REPO_ROOT)) |
26 | 26 |
|
27 | | -from agentgate.splunk_client import get_rest_client, get_service, rest # noqa: E402 |
| 27 | +from agentgate.splunk_client import get_service, rest # noqa: E402 |
28 | 28 |
|
29 | 29 | console = Console() |
30 | 30 | fake = Faker() |
|
172 | 172 | {"asset_id": "host:webfront01", "asset_type": "host", "compliance_tags": ["PCI"], "criticality": "high", "owner": "frontend"}, |
173 | 173 | {"asset_id": "user:svc_payment", "asset_type": "user", "compliance_tags": ["PCI"], "criticality": "high", "owner": "payments"}, |
174 | 174 | {"asset_id": "user:svc_hl7", "asset_type": "user", "compliance_tags": ["HIPAA"], "criticality": "high", "owner": "clinical"}, |
175 | | - {"asset_id": f"sourcetype:windows:security", "asset_type": "sourcetype", "compliance_tags": ["SOX", "PCI"], "criticality": "high", "owner": "soc"}, |
| 175 | + {"asset_id": "sourcetype:windows:security", "asset_type": "sourcetype", "compliance_tags": ["SOX", "PCI"], "criticality": "high", "owner": "soc"}, |
176 | 176 | ] |
177 | 177 |
|
178 | 178 |
|
@@ -223,7 +223,6 @@ def upsert_saved_search(service: Any, spec: dict[str, Any]) -> None: |
223 | 223 |
|
224 | 224 |
|
225 | 225 | def ensure_kv_collection(service: Any) -> None: |
226 | | - app = service.apps[DEMO_APP] # search app for visibility |
227 | 226 | collections = service.kvstore |
228 | 227 | if KV_COLLECTION in collections: |
229 | 228 | console.print(f" KV collection {KV_COLLECTION!r} already exists") |
@@ -364,7 +363,7 @@ def main() -> int: |
364 | 363 | if "\nAGENTGATE_HEC_TOKEN=\n" in (env_text + "\n") or env_text.rstrip().endswith("AGENTGATE_HEC_TOKEN="): |
365 | 364 | env_text = env_text.replace("AGENTGATE_HEC_TOKEN=", f"AGENTGATE_HEC_TOKEN={audit_token}") |
366 | 365 | env_path.write_text(env_text) |
367 | | - console.print(f" [green]wrote AGENTGATE_HEC_TOKEN to .env[/green]") |
| 366 | + console.print(" [green]wrote AGENTGATE_HEC_TOKEN to .env[/green]") |
368 | 367 |
|
369 | 368 | console.print("\n[bold]3. Saved searches[/bold]") |
370 | 369 | for spec in SAVED_SEARCHES: |
|
0 commit comments