Skip to content

Commit

Permalink
Cnapp 8963 add provider support azure organization management merge (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
netanelst authored Aug 20, 2024
1 parent def5ab0 commit cb9554a
Show file tree
Hide file tree
Showing 15 changed files with 1,868 additions and 566 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@ jobs:
AWS_ORG_ROLE_ARN: ${{ secrets.AWS_ORG_ROLE_ARN }}
AWS_ORG_SECRET: ${{ secrets.AWS_ORG_SECRET }}
AWS_ORG_STACK_SET_ARN: ${{ secrets.AWS_ORG_STACK_SET_ARN }}
AZURE_ORG_MGMT_GROUP_ID: ${{ secrets.AZURE_ORG_MGMT_GROUP_ID }}
AZURE_ORG_TENANT_ID: ${{ secrets.AZURE_ORG_TENANT_ID }}
run: go test -v -timeout 5400s ./...
81 changes: 41 additions & 40 deletions dome9/common/resourcetype/resource_type.go
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
package resourcetype

// dome9 Types
const (
CloudAccountAlibaba = "dome9_cloudaccount_alibaba"
CloudAccountAWS = "dome9_cloudaccount_aws"
CloudAccountAzure = "dome9_cloudaccount_azure"
CloudAccountGCP = "dome9_cloudaccount_gcp"
CloudAccountOCI = "dome9_cloudaccount_oci"
CloudAccountOCITempData = "dome9_cloudaccount_oci_temp_data"
CloudAccountKubernetes = "dome9_cloudaccount_kubernetes"
IPList = "dome9_iplist"
ContinuousCompliancePolicy = "dome9_continuous_compliance_policy"
ContinuousComplianceNotification = "dome9_continuous_compliance_notification"
Notification = "dome9_notification"
Integration = "dome9_integration"
RuleSet = "dome9_ruleset"
CloudAccountAWSSecurityGroup = "dome9_aws_security_group"
CloudAccountAWSSecurityGroupRule = "dome9_cloud_security_group_rule"
Role = "dome9_role"
OrganizationalUnit = "dome9_organizational_unit"
CloudAccountAzureSecurityGroup = "dome9_azure_security_group"
AttachIAMSafeToAwsCloudAccount = "dome9_attach_iam_safe"
User = "dome9_user"
IAMSafeEntity = "dome9_iam_safe_entity"
ServiceAccount = "dome9_service_account"
AwsUnifiedOnboardingUpdateVersionStackConfig = "dome9_aws_unified_onboarding_update_version_stack_config"
AwsUnifiedOnboarding = "dome9_aws_unified_onboarding"
AdmissionControlPolicy = "dome9_admission_control_policy"
Assessment = "dome9_assessment"
ImageAssurancePolicy = "dome9_image_assurance_policy"
VulnerabilityPolicy = "dome9_vulnerability_policy"
AwpAwsOnboardingData = "dome9_awp_aws_onboarding_data"
AwpAwsOnboarding = "dome9_awp_aws_onboarding"
AWSOrganizationOnboarding = "dome9_aws_organization_onboarding"
AWSOrganizationOnboardingManagementStack = "dome9_aws_organization_onboarding_management_stack"
AWSOrganizationOnboardingMemberAccountConfig = "dome9_aws_organization_onboarding_member_account_configuration"
AwpAzureOnboardingData = "dome9_awp_azure_onboarding_data"
AwpAzureOnboarding = "dome9_awp_azure_onboarding"
)
package resourcetype

// dome9 Types
const (
CloudAccountAlibaba = "dome9_cloudaccount_alibaba"
CloudAccountAWS = "dome9_cloudaccount_aws"
CloudAccountAzure = "dome9_cloudaccount_azure"
CloudAccountGCP = "dome9_cloudaccount_gcp"
CloudAccountOCI = "dome9_cloudaccount_oci"
CloudAccountOCITempData = "dome9_cloudaccount_oci_temp_data"
CloudAccountKubernetes = "dome9_cloudaccount_kubernetes"
IPList = "dome9_iplist"
ContinuousCompliancePolicy = "dome9_continuous_compliance_policy"
ContinuousComplianceNotification = "dome9_continuous_compliance_notification"
Notification = "dome9_notification"
Integration = "dome9_integration"
RuleSet = "dome9_ruleset"
CloudAccountAWSSecurityGroup = "dome9_aws_security_group"
CloudAccountAWSSecurityGroupRule = "dome9_cloud_security_group_rule"
Role = "dome9_role"
OrganizationalUnit = "dome9_organizational_unit"
CloudAccountAzureSecurityGroup = "dome9_azure_security_group"
AttachIAMSafeToAwsCloudAccount = "dome9_attach_iam_safe"
User = "dome9_user"
IAMSafeEntity = "dome9_iam_safe_entity"
ServiceAccount = "dome9_service_account"
AwsUnifiedOnboardingUpdateVersionStackConfig = "dome9_aws_unified_onboarding_update_version_stack_config"
AwsUnifiedOnboarding = "dome9_aws_unified_onboarding"
AdmissionControlPolicy = "dome9_admission_control_policy"
Assessment = "dome9_assessment"
ImageAssurancePolicy = "dome9_image_assurance_policy"
VulnerabilityPolicy = "dome9_vulnerability_policy"
AwpAwsOnboardingData = "dome9_awp_aws_onboarding_data"
AwpAwsOnboarding = "dome9_awp_aws_onboarding"
AWSOrganizationOnboarding = "dome9_aws_organization_onboarding"
AzureOrganizationOnboarding = "dome9_azure_organization_onboarding"
AWSOrganizationOnboardingManagementStack = "dome9_aws_organization_onboarding_management_stack"
AWSOrganizationOnboardingMemberAccountConfig = "dome9_aws_organization_onboarding_member_account_configuration"
AwpAzureOnboardingData = "dome9_awp_azure_onboarding_data"
AwpAzureOnboarding = "dome9_awp_azure_onboarding"
)
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,9 @@ const (
AwsOrganizationOnboardingEnvVarSecret = "AWS_ORG_SECRET"
AwsOrganizationOnboardingEnvVarStackSetArn = "AWS_ORG_STACK_SET_ARN"
)

// Azure organization onboarding environment variable
const (
CloudAccountOrgAzureEnvVarManagementGroupId = "AZURE_ORG_MGMT_GROUP_ID"
CloudAccountOrgAzureEnvVarTenantId = "AZURE_ORG_TENANT_ID"
)
Loading

0 comments on commit cb9554a

Please sign in to comment.