-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Hardened AI Foundry Hub & Project (US-945) + Incident Remediation (US-2684) #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3fac86b
feat: implement managed network isolation for AI Foundry (US-945) and…
jayce21-ms 45b7c98
refactor: resolve orphaned parameters and fix publicNetworkAccess pro…
jayce21-ms 366354a
fix: resolve linter errors and orphaned properties in foundry module
jayce21-ms 89ff292
Update infra/modules/foundry.bicep
jayce21-ms 49b6112
feat: implement agentic rbac remediation logic and mpf skill
jayce21-ms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| // infra/modules/aks.bicep | ||
| param clusterName string | ||
| param location string | ||
| param subnetId string | ||
|
|
||
| resource aks 'Microsoft.ContainerService/managedClusters@2024-02-01' = { | ||
| name: clusterName | ||
| location: location | ||
| identity: { | ||
| type: 'SystemAssigned' | ||
| } | ||
| properties: { | ||
| dnsPrefix: clusterName | ||
| // Hardening: Disabling local accounts to force Entra ID login | ||
| disableLocalAccounts: true | ||
| agentPoolProfiles: [ | ||
| { | ||
| name: 'agentpool' | ||
| count: 2 | ||
| vmSize: 'Standard_DS2_v2' | ||
| osType: 'Linux' | ||
| mode: 'System' | ||
| vnetSubnetID: subnetId // Plugs into your secure VNet | ||
| } | ||
| ] | ||
| networkProfile: { | ||
| networkPlugin: 'azure' | ||
| networkDataplane: 'cilium' // SME Choice: Best for security visibility | ||
| serviceCidr: '10.0.0.0/16' | ||
| dnsServiceIP: '10.0.0.10' | ||
| } | ||
| } | ||
| } | ||
|
|
||
| output clusterName string = aks.name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| // infra/modules/foundry.bicep | ||
| param hubName string | ||
| param projectName string | ||
| param location string | ||
| param vnetId string | ||
| param subnetId string | ||
|
|
||
| // 1. The AI Foundry Hub (The "Management" layer) | ||
| resource aiHub 'Microsoft.MachineLearningServices/workspaces@2024-04-01' = { | ||
| name: hubName | ||
| location: location | ||
| kind: 'Hub' // Specifies this is an AI Foundry Hub | ||
| identity: { | ||
| type: 'SystemAssigned' | ||
| } | ||
| properties: { | ||
| friendlyName: 'SME Security Research Hub' | ||
| vnetAllowRPCAndPublicNetworkAccess: false // TD-REC alignment: No public access | ||
| managedNetwork: { | ||
| isolationMode: 'AllowOnlyApprovedOutbound' // Prevents data exfiltration by agents | ||
| } | ||
| } | ||
| } | ||
|
|
||
| // 2. The AI Foundry Project (The "Execution" layer) | ||
| resource aiProject 'Microsoft.MachineLearningServices/workspaces@2024-04-01' = { | ||
| name: projectName | ||
| location: location | ||
| kind: 'Project' | ||
| identity: { | ||
| type: 'SystemAssigned' | ||
| } | ||
| properties: { | ||
| hubResourceId: aiHub.id // Links Project to the Hub | ||
| friendlyName: 'CRISP-MCP Agent Testing' | ||
| } | ||
| } | ||
|
|
||
| output hubId string = aiHub.id | ||
| // Inside the Hub resource properties: | ||
| managedNetwork: { | ||
| isolationMode: 'AllowOnlyApprovedOutbound' // This is the "Mani-level" security fix | ||
| } | ||
| publicNetworkAccess: 'Disabled' // This is the "Toni-level" TD compliance fix | ||
|
jayce21-ms marked this conversation as resolved.
Outdated
jayce21-ms marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| targetScope = 'resourceGroup' | ||
|
|
||
| @description('Deployment location') | ||
| param location string = resourceGroup().location | ||
|
|
||
| @description('AKS cluster name') | ||
| param clusterName string = 'sme-hardened-aks' | ||
|
|
||
| @description('Resource group where the secure VNet lives') | ||
| param vnetResourceGroup string | ||
|
|
||
| @description('Secure VNet name') | ||
| param vnetName string | ||
|
|
||
| @description('Isolated subnet name in the secure VNet') | ||
| param subnetName string | ||
|
|
||
| // Reference the secure VNet and subnet | ||
| resource vnet 'Microsoft.Network/virtualNetworks@2023-11-01' existing = { | ||
| name: vnetName | ||
| scope: resourceGroup(vnetResourceGroup) | ||
| } | ||
|
|
||
| resource subnet 'Microsoft.Network/virtualNetworks/subnets@2023-11-01' existing = { | ||
| name: subnetName | ||
| parent: vnet | ||
| } | ||
|
|
||
| // Reference the AKS module and pass the subnet from our secure VNet | ||
| module aksCluster './modules/aks.bicep' = { | ||
| name: 'aksDeployment' | ||
| params: { | ||
| clusterName: clusterName | ||
| location: location | ||
| subnetId: subnet.id // Direct link to our isolated subnet | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.