-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabricks.yml
More file actions
201 lines (155 loc) · 5.23 KB
/
Copy pathdatabricks.yml
File metadata and controls
201 lines (155 loc) · 5.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
bundle:
name: sla-security-agent
variables:
app_name:
description: Nome do Databricks App do S.L.A
default: agent-sla-security
experiment_id:
description: ID do experimento MLflow do S.L.A
default: "2273192686195635"
resources:
apps:
agent_sla_security:
name: ${var.app_name}
description: >-
Agente do S.L.A para consultar capturas de rede,
analisar tráfego e apoiar investigações de segurança.
source_code_path: ./app/agent-openai-agents-sdk
compute_size: MEDIUM
config:
command:
- uv
- run
- start-app
env:
- name: MLFLOW_TRACKING_URI
value: databricks
- name: MLFLOW_REGISTRY_URI
value: databricks-uc
- name: API_PROXY
value: http://localhost:8000/invocations
- name: CHAT_APP_PORT
value: "3000"
- name: CHAT_PROXY_TIMEOUT_SECONDS
value: "300"
- name: MLFLOW_EXPERIMENT_ID
value_from: experiment
- name: LLM_ENDPOINT
value_from: llm
resources:
- name: experiment
experiment:
experiment_id: ${var.experiment_id}
permission: CAN_EDIT
- name: llm
serving_endpoint:
name: databricks-qwen3-next-80b-a3b-instruct
permission: CAN_QUERY
- name: capture_summary
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_capture_summary
permission: EXECUTE
- name: top_destination_ports
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_top_destination_ports
permission: EXECUTE
- name: top_endpoints
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_top_endpoints
permission: EXECUTE
- name: top_dns_queries
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_top_dns_queries
permission: EXECUTE
- name: protocol_summary
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_protocol_summary
permission: EXECUTE
- name: top_flows
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_top_flows
permission: EXECUTE
- name: tcp_flags_summary
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_tcp_flags_summary
permission: EXECUTE
- name: security_findings
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_security_findings
permission: EXECUTE
- name: packet_length_summary
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_packet_length_summary
permission: EXECUTE
- name: packet_length_distribution
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_packet_length_distribution
permission: EXECUTE
- name: traffic_direction_summary
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_traffic_direction_summary
permission: EXECUTE
- name: latest_capture_pair
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_latest_capture_pair
permission: EXECUTE
- name: capture_comparison
uc_securable:
securable_type: FUNCTION
securable_full_name: workspace.security_agent.get_capture_comparison
permission: EXECUTE
jobs:
sla_ingestion:
name: sla-security-ingestion
queue:
enabled: true
trigger:
pause_status: UNPAUSED
file_arrival:
url: /Volumes/workspace/security_agent/sla_raw/incoming/
min_time_between_triggers_seconds: 300
wait_after_last_change_seconds: 120
tasks:
- task_key: refresh_sla_tables
notebook_task:
notebook_path: ./jobs/refresh_sla_tables.py.ipynb
max_retries: 1
timeout_seconds: 900
sla_evaluation:
name: sla-security-evaluation
parameters:
- name: experiment_id
default: ${var.experiment_id}
tasks:
- task_key: evaluate_agent
notebook_task:
notebook_path: ./tests/evaluate_agent.py.ipynb
environment_key: evaluation_environment
max_retries: 0
timeout_seconds: 1800
environments:
- environment_key: evaluation_environment
spec:
environment_version: "5"
targets:
dev:
mode: development
default: true
prod:
mode: production
resources:
apps:
agent_sla_security:
name: ${var.app_name}