|
187 | 187 | <TextBlock x:Uid="PermissionsPage_TextBlock_14" Text="Exec policy" Style="{StaticResource BodyStrongTextBlockStyle}" |
188 | 188 | Margin="{StaticResource PermSectionHeaderMargin}"/> |
189 | 189 | <TextBlock x:Uid="PermissionsPage_TextBlock_17" |
190 | | - Text="Controls which executables agents can launch on this node. Allowlist entries match resolved executable paths." |
| 190 | + Text="Controls which executables the agent can launch on this node. The executable-path allowlist starts empty." |
191 | 191 | Style="{StaticResource CaptionTextBlockStyle}" |
192 | 192 | Foreground="{ThemeResource TextFillColorSecondaryBrush}" TextWrapping="Wrap" |
193 | 193 | Margin="4,0,4,4"/> |
|
203 | 203 | </Grid.ColumnDefinitions> |
204 | 204 | <StackPanel Grid.Column="0" VerticalAlignment="Center" Spacing="2"> |
205 | 205 | <TextBlock x:Uid="PermissionsPage_DefaultAction" Text="Default action" Style="{StaticResource BodyTextBlockStyle}"/> |
206 | | - <TextBlock x:Uid="PermissionsPage_WhatHappensWhenA" Text="What happens when a command doesn't match the allowlist below." |
| 206 | + <TextBlock x:Uid="PermissionsPage_WhatHappensWhenA" Text="What happens when a command doesn't match the executable-path allowlist below." |
207 | 207 | Style="{StaticResource CaptionTextBlockStyle}" |
208 | 208 | Foreground="{ThemeResource TextFillColorSecondaryBrush}" |
209 | 209 | TextWrapping="Wrap"/> |
|
218 | 218 | </Grid> |
219 | 219 | </Border> |
220 | 220 |
|
221 | | - <!-- Rules card --> |
| 221 | + <!-- Executable-path allowlist card --> |
222 | 222 | <Border Background="{ThemeResource CardBackgroundFillColorDefaultBrush}" |
223 | 223 | BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" |
224 | 224 | BorderThickness="1" CornerRadius="8"> |
225 | 225 | <StackPanel> |
226 | | - <!-- Card header: title + rule count badge + auto-save hint --> |
| 226 | + <!-- Card header: title + entry count badge + auto-save hint --> |
227 | 227 | <Grid Padding="16,12,16,12" ColumnSpacing="8"> |
228 | 228 | <Grid.ColumnDefinitions> |
229 | 229 | <ColumnDefinition Width="*"/> |
230 | 230 | <ColumnDefinition Width="Auto"/> |
231 | 231 | <ColumnDefinition Width="Auto"/> |
232 | 232 | </Grid.ColumnDefinitions> |
233 | 233 | <StackPanel Grid.Column="0" Spacing="2"> |
234 | | - <TextBlock x:Uid="PermissionsPage_TextBlock_28" Text="Rules" Style="{StaticResource BodyStrongTextBlockStyle}"/> |
235 | | - <TextBlock x:Uid="PermissionsPage_PatternsAreMatchedLeft" Text="Allowlist patterns match resolved executable paths. Use wildcards such as **/git.exe. Changes save automatically." |
| 234 | + <TextBlock x:Uid="PermissionsPage_TextBlock_28" Text="Executable-path allowlist" Style="{StaticResource BodyStrongTextBlockStyle}"/> |
| 235 | + <TextBlock x:Uid="PermissionsPage_PatternsAreMatchedLeft" Text="Allow Always creates an argument-bound entry for an eligible native .exe command. Entries added here are path-only and can allow matching executables with any arguments. Deny and Ask remain controlled by Default action. Changes save automatically." |
236 | 236 | Style="{StaticResource CaptionTextBlockStyle}" |
237 | 237 | Foreground="{ThemeResource TextFillColorSecondaryBrush}" |
238 | 238 | TextWrapping="Wrap"/> |
|
248 | 248 | Background="{ThemeResource ControlAltFillColorSecondaryBrush}" |
249 | 249 | CornerRadius="10" Padding="10,2" |
250 | 250 | VerticalAlignment="Center"> |
251 | | - <TextBlock x:Uid="PermissionsPage_0Rules" x:Name="RulesCountBadge" Text="0 rules" |
| 251 | + <TextBlock x:Uid="PermissionsPage_0Rules" x:Name="RulesCountBadge" Text="0 entries" |
252 | 252 | Style="{StaticResource CaptionTextBlockStyle}" |
253 | 253 | Foreground="{ThemeResource TextFillColorSecondaryBrush}"/> |
254 | 254 | </Border> |
255 | 255 | </Grid> |
256 | 256 |
|
257 | 257 | <Border Height="1" Background="{ThemeResource CardStrokeColorDefaultBrush}"/> |
258 | 258 |
|
259 | | - <!-- Empty state — visible when there are no rules --> |
| 259 | + <!-- Empty state — visible when there are no allowlist entries --> |
260 | 260 | <TextBlock x:Uid="PermissionsPage_NoRulesYetAdd" x:Name="RulesEmptyState" |
261 | | - Text="No rules yet. Add a pattern below to deny, allow, or ask for specific commands." |
| 261 | + Text="No executable-path allowlist entries. Approve an eligible native .exe command with Allow Always, or add a path-only pattern such as **/hostname.exe." |
262 | 262 | Style="{StaticResource CaptionTextBlockStyle}" |
263 | 263 | Foreground="{ThemeResource TextFillColorTertiaryBrush}" |
| 264 | + TextWrapping="Wrap" |
264 | 265 | HorizontalAlignment="Center" |
265 | 266 | Margin="16,20,16,20" |
266 | 267 | Visibility="Collapsed"/> |
267 | 268 |
|
268 | | - <!-- Rules list --> |
| 269 | + <!-- Allowlist entries --> |
269 | 270 | <ListView x:Name="PolicyRulesList" SelectionMode="None" |
270 | 271 | MaxHeight="320" |
271 | 272 | ItemContainerTransitions="{x:Null}"> |
|
305 | 306 | Padding="6" MinWidth="0" |
306 | 307 | AutomationProperties.Name="{Binding RemoveRuleAutomationName}" |
307 | 308 | AutomationProperties.AutomationId="{Binding RemoveRuleAutomationId}" |
308 | | - ToolTipService.ToolTip="Remove rule"> |
| 309 | + ToolTipService.ToolTip="Remove allowlist entry"> |
309 | 310 | <FontIcon Glyph="" FontSize="14" |
310 | 311 | Foreground="{ThemeResource TextFillColorSecondaryBrush}"/> |
311 | 312 | </Button> |
|
316 | 317 |
|
317 | 318 | <Border Height="1" Background="{ThemeResource CardStrokeColorDefaultBrush}"/> |
318 | 319 |
|
319 | | - <!-- Add rule row --> |
| 320 | + <!-- Add allowlist entry row --> |
320 | 321 | <Grid Padding="16,12,16,12" ColumnSpacing="8"> |
321 | 322 | <Grid.ColumnDefinitions> |
322 | 323 | <ColumnDefinition Width="*"/> |
323 | 324 | <ColumnDefinition Width="Auto"/> |
324 | | - <ColumnDefinition Width="Auto"/> |
325 | 325 | </Grid.ColumnDefinitions> |
326 | | - <TextBox Grid.Column="0" x:Uid="NewRulePattern" x:Name="NewRulePattern" |
327 | | - PlaceholderText="Executable path pattern (e.g. **/git.exe)" |
328 | | - FontFamily="Consolas"/> |
329 | | - <ComboBox Grid.Column="1" x:Uid="PermissionsPage_NewRuleAction" x:Name="NewRuleAction" |
330 | | - MinWidth="100" SelectedIndex="0"> |
331 | | - <ComboBoxItem x:Uid="PermissionsPage_ComboBoxItem_55" Content="Allow" Tag="allow"/> |
332 | | - </ComboBox> |
333 | | - <Button Grid.Column="2" x:Uid="PermissionsPage_Button_57" Content="Add" Click="OnAddRule"/> |
| 326 | + <StackPanel Grid.Column="0" Spacing="4"> |
| 327 | + <TextBox x:Uid="NewRulePattern" x:Name="NewRulePattern" |
| 328 | + PlaceholderText="Executable-path pattern (e.g. **/hostname.exe)" |
| 329 | + FontFamily="Consolas" |
| 330 | + AutomationProperties.AutomationId="NewExecAllowlistPatternTextBox"/> |
| 331 | + <TextBlock x:Uid="PermissionsPage_ExecAllowlistPatternValidation" |
| 332 | + x:Name="ExecAllowlistPatternValidation" |
| 333 | + Text="Enter an executable-path pattern such as **/hostname.exe. Basename or command-text patterns such as hostname are invalid." |
| 334 | + Style="{StaticResource CaptionTextBlockStyle}" |
| 335 | + Foreground="{ThemeResource SystemFillColorCriticalBrush}" |
| 336 | + TextWrapping="Wrap" |
| 337 | + Visibility="Collapsed" |
| 338 | + AutomationProperties.AutomationId="ExecAllowlistPatternValidation" |
| 339 | + AutomationProperties.LiveSetting="Assertive"/> |
| 340 | + </StackPanel> |
| 341 | + <Button Grid.Column="1" x:Uid="PermissionsPage_Button_57" Content="Add entry" |
| 342 | + Click="OnAddRule" |
| 343 | + AutomationProperties.AutomationId="AddExecAllowlistPatternButton"/> |
334 | 344 | </Grid> |
335 | 345 | </StackPanel> |
336 | 346 | </Border> |
|
0 commit comments