[WIP] Add AKS module to Azure provider - #4
Conversation
Agent-Logs-Url: https://github.com/austinsonger/the-grabber/sessions/b02481d8-2f74-4289-b261-b1b86d69071a Co-authored-by: austinsonger <26654315+austinsonger@users.noreply.github.com>
|
@copilot Resolves MErge Conflicts |
|
@codex[agent] Resolves MErge Conflicts |
|
@austinsonger The model is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it. You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
To use Codex here, create a Codex account and connect to github. |
|
@austinsonger The model is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it. You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
4 similar comments
|
@austinsonger The model is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it. You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@austinsonger The model is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it. You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@austinsonger The model is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it. You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@austinsonger The model is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it. You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@copilot Resolves MErge Conflicts |
|
@codex[agent] Resolves MErge Conflicts |
|
@austinsonger The model is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it. You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
To use Codex here, create a Codex account and connect to github. |
|
@austinsonger The model is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it. You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
1 similar comment
|
@austinsonger The model is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it. You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@austinsonger The model is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it. You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
1 similar comment
|
@austinsonger The model is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it. You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@austinsonger The model is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it. You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
There was a problem hiding this comment.
Pull request overview
Introduces an initial multi-cloud “providers” layer with an Azure provider (feature-gated) and several Azure collectors (AKS, ACR, App Service, Defender, Key Vault, Policy, NSG, Monitor Alerts), plus config and evidence enum extensions to start supporting non-AWS sources.
Changes:
- Adds an
azureCargo feature with optional Azure SDK dependencies and a newsrc/providers/module tree. - Implements multiple Azure
CsvCollector/JsonCollectormodules and anAzureProviderFactoryto construct them. - Extends config/evidence enums to include Azure/GCP concepts (provider tag + new
EvidenceSourcevariants).
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| Cargo.toml | Adds azure feature and Azure SDK optional dependencies. |
| src/main.rs | Declares mod providers; to include the new providers module. |
| src/providers/mod.rs | Adds CloudProvider enum and feature-gated provider submodules. |
| src/providers/gcp/mod.rs | Adds a stub GCP provider module. |
| src/providers/azure/mod.rs | Declares Azure collector submodules. |
| src/providers/azure/factory.rs | Adds AzureProviderFactory to build selected Azure collectors. |
| src/providers/azure/aks.rs | Adds AKS collector using Azure ARM REST API via azure_core. |
| src/providers/azure/acr.rs | Adds ACR collector (currently has compile-time issues). |
| src/providers/azure/app_service.rs | Adds App Service collector. |
| src/providers/azure/defender.rs | Adds Defender for Cloud assessments collector. |
| src/providers/azure/key_vault.rs | Adds Key Vault JSON collector. |
| src/providers/azure/policy.rs | Adds Policy compliance JSON collector. |
| src/providers/azure/nsg.rs | Adds NSG + rules CSV collector. |
| src/providers/azure/monitor_alerts.rs | Adds Monitor metric alert rules CSV collector. |
| src/evidence.rs | Adds Azure/GCP EvidenceSource variants. |
| src/app_config.rs | Adds provider plus Azure account fields (tenant/subscription). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| /// Cloud provider for this account entry. Defaults to `aws`. | ||
| #[serde(default = "default_provider")] | ||
| pub provider: CloudProvider, |
Cargo.tomlsrc/providers/mod.rs(CloudProvider enum)src/providers/azure/mod.rs(module declarations)src/providers/gcp/mod.rs(stub)src/providers/azure/factory.rs(AzureProviderFactory)src/providers/azure/aks.rs(AKS CsvCollector)src/providers/azure/acr.rs(ACR CsvCollector)src/providers/azure/app_service.rs(App Service CsvCollector)src/providers/azure/defender.rs(Defender CsvCollector)src/providers/azure/key_vault.rs(Key Vault JsonCollector)src/providers/azure/policy.rs(Policy JsonCollector)src/providers/azure/nsg.rs(NSG CsvCollector)src/providers/azure/monitor_alerts.rs(Monitor Alerts CsvCollector)src/evidence.rs(add Azure/GCP EvidenceSource variants)src/app_config.rs(add Azure fields)src/main.rs(addmod providers;)cargo check --features azurepassescargo build(no features) passes (regression check)Original prompt
}
git add src/providers/azure/aks.rs src/providers/azure/mod.rs \ src/providers/azure/factory.rs git commit -m "feat(azure): add AKS CsvCollector (maps to EKS)"Task 10:
acr— Azure Container RegistryMaps to: AWS ECR (
CsvCollector)Files:
src/providers/azure/acr.rssrc/providers/azure/mod.rssrc/providers/azure/factory.rsUses
azure_mgmt_containerregistry.src/providers/azure/acr.rsStep 2: Add
pub mod acr;tosrc/providers/azure/mod.rsStep 3: Wire into
AzureProviderFactory::csv_collectors()git add src/providers/azure/acr.rs src/providers/azure/mod.rs \ src/providers/azure/factory.rs gi... </details> <!-- START COPILOT CODING AGENT SUFFIX --> Created from [VS Code](https://code.visualstudio.com/docs/copilot/copilot-coding-agent).