From 89b548a3c78a2710608d6d8964b4cb824104eace Mon Sep 17 00:00:00 2001 From: Prince Chaddha Date: Mon, 23 Dec 2024 14:49:56 +0530 Subject: [PATCH 1/4] updated tags and profile name --- .../alibaba/actiontrail/multi-region-logging-disabled.yaml | 2 +- cloud/alibaba/aliyun-code-env.yaml | 4 ++-- cloud/alibaba/ecs/os-patches-outdated.yaml | 2 +- cloud/alibaba/ecs/unattached-disk-encryption-disabled.yaml | 2 +- .../ecs/unattached-vminstance-encryption-disabled.yaml | 2 +- cloud/alibaba/ecs/unrestricted-rdp-access.yaml | 2 +- cloud/alibaba/ecs/unrestricted-ssh-access.yaml | 2 +- cloud/alibaba/ram/custom-ram-policy-admin-priv.yaml | 2 +- cloud/alibaba/ram/max-password-retry-disabled.yaml | 2 +- cloud/alibaba/ram/mfa-console-password-disabled.yaml | 2 +- .../ram/password-policy-expiration-unconfigured.yaml | 2 +- cloud/alibaba/ram/password-policy-length-unconfigured.yaml | 2 +- .../alibaba/ram/password-policy-lowercase-unconfigured.yaml | 2 +- cloud/alibaba/ram/password-policy-num-unconfigured.yaml | 2 +- cloud/alibaba/ram/password-policy-reuse-enabled.yaml | 2 +- cloud/alibaba/ram/password-policy-symbol-unconfigured.yaml | 2 +- .../alibaba/ram/password-policy-uppercase-unconfigured.yaml | 2 +- cloud/alibaba/rds/encryption-intransit-disabled.yaml | 2 +- cloud/alibaba/rds/log-connections-disabled.yaml | 2 +- cloud/alibaba/rds/log-disconnections-disabled.yaml | 2 +- cloud/alibaba/rds/log-duration-disabled.yaml | 2 +- cloud/alibaba/rds/mssql-audit-disabled.yaml | 2 +- cloud/alibaba/rds/mysql-audit-disabled.yaml | 2 +- cloud/alibaba/rds/postgresql-audit-disabled.yaml | 2 +- cloud/alibaba/rds/rds-audit-disabled.yaml | 2 +- cloud/alibaba/rds/transparent-encryption-disabled.yaml | 2 +- .../security-center/scheduled-vulnscan-disabled.yaml | 2 +- .../security-center/security-notification-disabled.yaml | 2 +- cloud/alibaba/security-center/security-plan-disabled.yaml | 2 +- cloud/alibaba/vpc/vpc-flow-disabled.yaml | 2 +- .../{aliyun-cloud-config.yml => alibaba-cloud-config.yml} | 6 +++--- 31 files changed, 34 insertions(+), 34 deletions(-) rename profiles/{aliyun-cloud-config.yml => alibaba-cloud-config.yml} (78%) diff --git a/cloud/alibaba/actiontrail/multi-region-logging-disabled.yaml b/cloud/alibaba/actiontrail/multi-region-logging-disabled.yaml index 112a565c899..fd4a7a28646 100644 --- a/cloud/alibaba/actiontrail/multi-region-logging-disabled.yaml +++ b/cloud/alibaba/actiontrail/multi-region-logging-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,actiontrail + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,actiontrail variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/aliyun-code-env.yaml b/cloud/alibaba/aliyun-code-env.yaml index 4edae15b8ec..d331da5e90c 100644 --- a/cloud/alibaba/aliyun-code-env.yaml +++ b/cloud/alibaba/aliyun-code-env.yaml @@ -1,4 +1,4 @@ -id: aliyun-code-env +id: alibaba-cloud-code-env info: name: Aliyun Cloud Environment Validation @@ -10,7 +10,7 @@ info: - https://github.com/aliyun/aliyun-cli metadata: max-request: 2 - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ecs/os-patches-outdated.yaml b/cloud/alibaba/ecs/os-patches-outdated.yaml index 9a7a709aabd..c33d635f924 100644 --- a/cloud/alibaba/ecs/os-patches-outdated.yaml +++ b/cloud/alibaba/ecs/os-patches-outdated.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,ecs + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,ecs variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ecs/unattached-disk-encryption-disabled.yaml b/cloud/alibaba/ecs/unattached-disk-encryption-disabled.yaml index 6d04b0e0596..0e2e833e161 100644 --- a/cloud/alibaba/ecs/unattached-disk-encryption-disabled.yaml +++ b/cloud/alibaba/ecs/unattached-disk-encryption-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,ecs + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,ecs variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ecs/unattached-vminstance-encryption-disabled.yaml b/cloud/alibaba/ecs/unattached-vminstance-encryption-disabled.yaml index 5128f5b469d..957d15442e7 100644 --- a/cloud/alibaba/ecs/unattached-vminstance-encryption-disabled.yaml +++ b/cloud/alibaba/ecs/unattached-vminstance-encryption-disabled.yaml @@ -13,7 +13,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,ecs + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,ecs variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ecs/unrestricted-rdp-access.yaml b/cloud/alibaba/ecs/unrestricted-rdp-access.yaml index f1020df91f9..b63342c18c9 100644 --- a/cloud/alibaba/ecs/unrestricted-rdp-access.yaml +++ b/cloud/alibaba/ecs/unrestricted-rdp-access.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,ecs + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,ecs variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ecs/unrestricted-ssh-access.yaml b/cloud/alibaba/ecs/unrestricted-ssh-access.yaml index b730aa6aee8..63fbbc00885 100644 --- a/cloud/alibaba/ecs/unrestricted-ssh-access.yaml +++ b/cloud/alibaba/ecs/unrestricted-ssh-access.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,ecs + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,ecs variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ram/custom-ram-policy-admin-priv.yaml b/cloud/alibaba/ram/custom-ram-policy-admin-priv.yaml index 14a59228d03..2545ff48bd4 100644 --- a/cloud/alibaba/ram/custom-ram-policy-admin-priv.yaml +++ b/cloud/alibaba/ram/custom-ram-policy-admin-priv.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-ram + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-ram variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ram/max-password-retry-disabled.yaml b/cloud/alibaba/ram/max-password-retry-disabled.yaml index 678cd2073c8..aaccf4e4a38 100644 --- a/cloud/alibaba/ram/max-password-retry-disabled.yaml +++ b/cloud/alibaba/ram/max-password-retry-disabled.yaml @@ -11,7 +11,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-ram + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-ram variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ram/mfa-console-password-disabled.yaml b/cloud/alibaba/ram/mfa-console-password-disabled.yaml index 5bb11933280..ed4fed2d4f4 100644 --- a/cloud/alibaba/ram/mfa-console-password-disabled.yaml +++ b/cloud/alibaba/ram/mfa-console-password-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-ram + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-ram variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ram/password-policy-expiration-unconfigured.yaml b/cloud/alibaba/ram/password-policy-expiration-unconfigured.yaml index fcf1aad213a..e76e7f1b55e 100644 --- a/cloud/alibaba/ram/password-policy-expiration-unconfigured.yaml +++ b/cloud/alibaba/ram/password-policy-expiration-unconfigured.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-ram + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-ram variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ram/password-policy-length-unconfigured.yaml b/cloud/alibaba/ram/password-policy-length-unconfigured.yaml index 20828c6b57d..84321514dde 100644 --- a/cloud/alibaba/ram/password-policy-length-unconfigured.yaml +++ b/cloud/alibaba/ram/password-policy-length-unconfigured.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-ram + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-ram variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ram/password-policy-lowercase-unconfigured.yaml b/cloud/alibaba/ram/password-policy-lowercase-unconfigured.yaml index f70d48f1772..b3715920876 100644 --- a/cloud/alibaba/ram/password-policy-lowercase-unconfigured.yaml +++ b/cloud/alibaba/ram/password-policy-lowercase-unconfigured.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-ram + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-ram variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ram/password-policy-num-unconfigured.yaml b/cloud/alibaba/ram/password-policy-num-unconfigured.yaml index df3f437c2e5..41627d7f2fe 100644 --- a/cloud/alibaba/ram/password-policy-num-unconfigured.yaml +++ b/cloud/alibaba/ram/password-policy-num-unconfigured.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-ram + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-ram variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ram/password-policy-reuse-enabled.yaml b/cloud/alibaba/ram/password-policy-reuse-enabled.yaml index 37e61ec06c8..0c96c54587d 100644 --- a/cloud/alibaba/ram/password-policy-reuse-enabled.yaml +++ b/cloud/alibaba/ram/password-policy-reuse-enabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-ram + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-ram variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ram/password-policy-symbol-unconfigured.yaml b/cloud/alibaba/ram/password-policy-symbol-unconfigured.yaml index b8e07553170..8fbab0859a4 100644 --- a/cloud/alibaba/ram/password-policy-symbol-unconfigured.yaml +++ b/cloud/alibaba/ram/password-policy-symbol-unconfigured.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-ram + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-ram variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/ram/password-policy-uppercase-unconfigured.yaml b/cloud/alibaba/ram/password-policy-uppercase-unconfigured.yaml index c906d8919ae..ad36f43af70 100644 --- a/cloud/alibaba/ram/password-policy-uppercase-unconfigured.yaml +++ b/cloud/alibaba/ram/password-policy-uppercase-unconfigured.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-ram + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-ram variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/rds/encryption-intransit-disabled.yaml b/cloud/alibaba/rds/encryption-intransit-disabled.yaml index f2103c74c03..9fe1088e921 100644 --- a/cloud/alibaba/rds/encryption-intransit-disabled.yaml +++ b/cloud/alibaba/rds/encryption-intransit-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-rds + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-rds variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/rds/log-connections-disabled.yaml b/cloud/alibaba/rds/log-connections-disabled.yaml index 5fd8eba0c27..5690b4071f5 100644 --- a/cloud/alibaba/rds/log-connections-disabled.yaml +++ b/cloud/alibaba/rds/log-connections-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 2 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-rds + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-rds variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/rds/log-disconnections-disabled.yaml b/cloud/alibaba/rds/log-disconnections-disabled.yaml index 6e99fdf8302..8f90226df1c 100644 --- a/cloud/alibaba/rds/log-disconnections-disabled.yaml +++ b/cloud/alibaba/rds/log-disconnections-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-rds + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-rds variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/rds/log-duration-disabled.yaml b/cloud/alibaba/rds/log-duration-disabled.yaml index c178e274ac0..7c3658095e0 100644 --- a/cloud/alibaba/rds/log-duration-disabled.yaml +++ b/cloud/alibaba/rds/log-duration-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 2 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-rds + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-rds variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/rds/mssql-audit-disabled.yaml b/cloud/alibaba/rds/mssql-audit-disabled.yaml index 7abce71bcdf..674729464df 100644 --- a/cloud/alibaba/rds/mssql-audit-disabled.yaml +++ b/cloud/alibaba/rds/mssql-audit-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 2 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-rds + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-rds variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/rds/mysql-audit-disabled.yaml b/cloud/alibaba/rds/mysql-audit-disabled.yaml index 654f6dbd024..0960336e38d 100644 --- a/cloud/alibaba/rds/mysql-audit-disabled.yaml +++ b/cloud/alibaba/rds/mysql-audit-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 2 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-rds + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-rds variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/rds/postgresql-audit-disabled.yaml b/cloud/alibaba/rds/postgresql-audit-disabled.yaml index c25c3a412be..a9c6cd6dc0f 100644 --- a/cloud/alibaba/rds/postgresql-audit-disabled.yaml +++ b/cloud/alibaba/rds/postgresql-audit-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 2 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-rds + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-rds variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/rds/rds-audit-disabled.yaml b/cloud/alibaba/rds/rds-audit-disabled.yaml index eb8e9ffc484..8ff56417de0 100644 --- a/cloud/alibaba/rds/rds-audit-disabled.yaml +++ b/cloud/alibaba/rds/rds-audit-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 2 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-rds + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-rds variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/rds/transparent-encryption-disabled.yaml b/cloud/alibaba/rds/transparent-encryption-disabled.yaml index 65532d57b9c..ec0317f8227 100644 --- a/cloud/alibaba/rds/transparent-encryption-disabled.yaml +++ b/cloud/alibaba/rds/transparent-encryption-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 2 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-rds + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-rds variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/security-center/scheduled-vulnscan-disabled.yaml b/cloud/alibaba/security-center/scheduled-vulnscan-disabled.yaml index 25f3b1b74d7..77613e9820d 100644 --- a/cloud/alibaba/security-center/scheduled-vulnscan-disabled.yaml +++ b/cloud/alibaba/security-center/scheduled-vulnscan-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,security-center + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,security-center variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/security-center/security-notification-disabled.yaml b/cloud/alibaba/security-center/security-notification-disabled.yaml index 456a1b571a5..51ed1f1f81a 100644 --- a/cloud/alibaba/security-center/security-notification-disabled.yaml +++ b/cloud/alibaba/security-center/security-notification-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,security-center + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,security-center variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/security-center/security-plan-disabled.yaml b/cloud/alibaba/security-center/security-plan-disabled.yaml index 48af65c461e..d8997d3700e 100644 --- a/cloud/alibaba/security-center/security-plan-disabled.yaml +++ b/cloud/alibaba/security-center/security-plan-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,security-center + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,security-center variables: region: "cn-hangzhou" diff --git a/cloud/alibaba/vpc/vpc-flow-disabled.yaml b/cloud/alibaba/vpc/vpc-flow-disabled.yaml index 641e1c4ca69..28735e1937c 100644 --- a/cloud/alibaba/vpc/vpc-flow-disabled.yaml +++ b/cloud/alibaba/vpc/vpc-flow-disabled.yaml @@ -12,7 +12,7 @@ info: metadata: max-request: 1 verified: true - tags: cloud,devops,aliyun,alibaba,aliyun-cloud-config,alibaba-vpc + tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config,alibaba-vpc variables: region: "cn-hangzhou" diff --git a/profiles/aliyun-cloud-config.yml b/profiles/alibaba-cloud-config.yml similarity index 78% rename from profiles/aliyun-cloud-config.yml rename to profiles/alibaba-cloud-config.yml index c83237142c0..9ac523f1239 100644 --- a/profiles/aliyun-cloud-config.yml +++ b/profiles/alibaba-cloud-config.yml @@ -6,15 +6,15 @@ # This profile is focused on identifying misconfigurations and vulnerabilities in aliyun ACLs. Proper configuration of ACLs is crucial for securing aliyun resources and ensuring that only authorized entities have access. # # Included Templates: -# This configuration references specific templates tagged with 'aliyun-cloud-config' to cover comprehensive scanning of aliyun ACLs. +# This configuration references specific templates tagged with 'alibaba-cloud-config' to cover comprehensive scanning of aliyun ACLs. # # Running this profile # You can run this profile using the following command: -# nuclei -profile aliyun-cloud-config +# nuclei -profile alibaba-cloud-config code: true # enable code templates tags: - - aliyun-cloud-config # filter templates with "aliyun-cloud-config" tags + - alibaba-cloud-config # filter templates with "alibaba-cloud-config" tags var: - region=cn-hangzhou # template input for "region" variable From 5eba789ce967334c8714e15a4f92fb32caf95084 Mon Sep 17 00:00:00 2001 From: Prince Chaddha Date: Mon, 23 Dec 2024 14:51:29 +0530 Subject: [PATCH 2/4] updated file name --- .../alibaba/{aliyun-code-env.yaml => alibaba-cloud-code-env.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename cloud/alibaba/{aliyun-code-env.yaml => alibaba-cloud-code-env.yaml} (100%) diff --git a/cloud/alibaba/aliyun-code-env.yaml b/cloud/alibaba/alibaba-cloud-code-env.yaml similarity index 100% rename from cloud/alibaba/aliyun-code-env.yaml rename to cloud/alibaba/alibaba-cloud-code-env.yaml From 8997241dc4d5f43c396bb2c922ae2575ce21f0f7 Mon Sep 17 00:00:00 2001 From: Dhiyaneshwaran Date: Mon, 23 Dec 2024 14:56:37 +0530 Subject: [PATCH 3/4] added ossutil --- cloud/alibaba/alibaba-cloud-code-env.yaml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/cloud/alibaba/alibaba-cloud-code-env.yaml b/cloud/alibaba/alibaba-cloud-code-env.yaml index d331da5e90c..16074508799 100644 --- a/cloud/alibaba/alibaba-cloud-code-env.yaml +++ b/cloud/alibaba/alibaba-cloud-code-env.yaml @@ -9,15 +9,17 @@ info: reference: - https://github.com/aliyun/aliyun-cli metadata: - max-request: 2 + max-request: 3 + verified: true tags: cloud,devops,aliyun,alibaba,alibaba-cloud-config variables: region: "cn-hangzhou" -flow: code(1) && code(2) +flow: code(1) && code(2) && code (3) self-contained: true + code: - engine: - sh @@ -49,8 +51,18 @@ code: words: - "jq is installed" + - engine: + - sh + - bash + source: | + ossutil --version >/dev/null 2>&1 && echo "ossutil is installed." || echo "ossutil is not installed." + + matchers: + - type: word + words: + - "ossutil is installed" + extractors: - type: dsl dsl: - - '"Aliyun CLI is properly configured for account \"" + account + "\" and all the necessary tools required are installed"' -# digest: 4a0a00473045022100cef41c277f557c5c47985c8dbb8c631377535b96487c987174156c8387fa145402207be4372c14784ddedac10ec8bdb623a02ac17dd481fc9e8fdfa21adf0a1032b7:922c64590222798bb761d5b6d8e72950 \ No newline at end of file + - '"Aliyun CLI is properly configured for account \"" + account + "\" and all the necessary tools required are installed."' From 298ab4f2e34f9b08ccf188faef3441adb1452617 Mon Sep 17 00:00:00 2001 From: Dhiyaneshwaran Date: Mon, 23 Dec 2024 15:03:12 +0530 Subject: [PATCH 4/4] Update alibaba-cloud-code-env.yaml --- cloud/alibaba/alibaba-cloud-code-env.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/alibaba/alibaba-cloud-code-env.yaml b/cloud/alibaba/alibaba-cloud-code-env.yaml index 16074508799..14e01b9f266 100644 --- a/cloud/alibaba/alibaba-cloud-code-env.yaml +++ b/cloud/alibaba/alibaba-cloud-code-env.yaml @@ -1,7 +1,7 @@ id: alibaba-cloud-code-env info: - name: Aliyun Cloud Environment Validation + name: Alibaba Cloud Environment Validation author: DhiyaneshDK severity: info description: |