Commit Graph

1265 Commits (81f2efb96b1e3cad4132c31030519b3877acc465)

Author SHA1 Message Date
sundowndev 8e7af5891a refactor: do not break on output error 2021-09-07 15:41:54 +02:00
sundowndev 8036b7a702 feat: allow multiple output flags 2021-09-07 15:41:54 +02:00
Elie f2097d6c58
Merge branch 'main' into add_scan_err_details 2021-09-07 14:18:35 +02:00
Elie 750854c35f
Fix crash in output when source is nil 2021-09-07 13:47:13 +02:00
Elie 1336c4db9e
Merge branch 'main' into fix/mapOrdering 2021-09-07 13:12:30 +02:00
Elie 3b89590409
Add original error message for scan errors 2021-09-06 17:00:38 +02:00
sundowndev 1dd056625b chore: fix ordering inconsistency in tests 2021-09-03 17:54:26 +02:00
Martin Guibert ad20e37796 add newline to the output of gen driftignore 2021-09-02 18:18:06 +02:00
sundowndev 380ad8fe17 refactor: remove options in output struct 2021-09-01 10:39:17 +02:00
William Beuil ea7a9c1b54
Should read terraform config file 2021-08-30 17:51:35 +02:00
Elie d6a88f8d00
Add google acceptance test 2021-08-30 14:12:04 +02:00
Elie 42118e268e
Add google_storage_bucket 2021-08-30 14:12:03 +02:00
Elie edcacf6903
Merge pull request #944 from cloudskiff/update_terraform_exec
Update terraform version in acc tests
2021-08-26 15:58:04 +02:00
Elie 70c95e84af
Update terraform version in acc tests 2021-08-26 14:04:23 +02:00
sundowndev 3d491aaaa6 refactor: handle no iac source for drifts 2021-08-26 12:12:29 +02:00
sundowndev 87c6ca6dc1 feat: add iac source for missing resources 2021-08-26 11:40:50 +02:00
sundowndev 5792a274c7 feat: add iac source to drifts in html output 2021-08-26 11:38:42 +02:00
Oren Leung 64f292a0ad fixed formatting 2021-08-25 23:07:05 -04:00
Oren Leung 52be747148
Merge branch 'main' into feat/iac_source_deleted 2021-08-25 22:58:34 -04:00
Oren Leung ecd0184d77 feat: add iac source to drift in console output 2021-08-25 22:56:32 -04:00
Oren Leung 67f58b7a3e feat: add iac source to drift in console output 2021-08-25 22:32:15 -04:00
sundowndev 5f72640db0 refactor: normalize resource method names 2021-08-25 14:38:51 +02:00
sundowndev 16c889c93b fix: html output
display drifts even when coverage is 100
2021-08-24 11:41:45 +02:00
Elie fb21e81746
Merge branch 'main' into fix/jsonHTML 2021-08-23 16:25:49 +02:00
sundowndev 271385878d fix: json diff in html output 2021-08-23 16:17:01 +02:00
sundowndev f789beb487 test: add missing mock assertions 2021-08-23 13:56:01 +02:00
sundowndev e4ab0cee01 test: add assertions on alerter mock 2021-08-23 13:56:01 +02:00
sundowndev fbd4f6e75b refactor: html output style
improve responsive
2021-08-23 11:25:17 +02:00
sundowndev a0f15997e9 feat: embed html assets 2021-08-19 12:07:19 +02:00
Elie 8bc135ce7c
Remove useless details fetchers 2021-08-09 17:15:35 +02:00
Elie dada7a4b50
Remove `Resource` interface 2021-08-09 16:03:04 +02:00
Elie a8f9b1764e
Merge pull request #908 from cloudskiff/better_generic_detail_fetcher
Allow to customize read attributes in detail fetcher
2021-08-04 14:36:39 +02:00
Elie c1ea0a8067
Add source in JSON output 2021-08-04 14:29:48 +02:00
Elie 18b8f897f1
Allow to customize read attributes in detail fetcher 2021-08-04 14:23:49 +02:00
sundowndev 4e3d35297c refactor: fix lint errors 2021-08-04 11:08:08 +02:00
sundowndev f239459470 test: resource error handling 2021-08-03 15:01:20 +02:00
sundowndev e7c93cb501 refactor: remote access denied alerts 2021-08-03 12:34:36 +02:00
Elie 85870c88f6
Group changes by IaC source in console output 2021-08-02 15:43:12 +02:00
sundowndev de5a7237cb refactor: add comments about handled errors 2021-08-02 15:25:27 +02:00
sundowndev a31f71fca8 refactor: simplify code 2021-08-02 14:19:27 +02:00
sundowndev 9ea358fbae fix: handle access denied exceptions on resource details fetching 2021-08-02 14:19:27 +02:00
Martin c553682cfe
Merge branch 'main' into fea/retry_acc_test_destroy 2021-07-30 18:11:02 +02:00
Martin Guibert d556ae2142 add retry for destroy on some acceptancy tests 2021-07-30 17:33:41 +02:00
Elie 82b8c1c80b
Add resource source for terraform state 2021-07-30 17:22:21 +02:00
Elie 94da3ba25d
Merge branch 'main' into ignore_enumeration 2021-07-30 16:16:23 +02:00
Elie eb152a122b
enforce AZ to something predictible for acc tests 2021-07-30 09:29:33 +02:00
Martin Guibert 20c6597704 remove duplicated bloc 2021-07-29 13:59:35 +02:00
Martin Guibert 89d34eb96a add provider name and update tests 2021-07-29 11:57:07 +02:00
William Beuil 41dc957098
Update html assets 2021-07-29 10:40:18 +02:00
Martin Guibert fac05b70c3 show provider version in json and html report 2021-07-28 17:36:56 +02:00
Elie 0069de3972
Fix tag Name not displayed in deep mode 2021-07-27 10:44:52 +02:00
Elie 1663f0a5bd
Ignore terminated instance from enumeration 2021-07-27 10:27:34 +02:00
Martin Guibert b34d876fb9 catch queue non existent on policy enumeration 2021-07-26 19:16:08 +02:00
Elie 4b7c87468f
Handle prefix list ids in aws_route 2021-07-26 17:02:03 +02:00
Elie af824199d9
Ignore resource prior to scan 2021-07-26 16:23:26 +02:00
Elie 4c824fb8ad
Move driftignore init outside driftctl 2021-07-26 14:27:07 +02:00
Elie c735d1f1ad
Remove dead code since deep mode refactoring is complete 2021-07-26 12:09:52 +02:00
William Beuil 456f40abb2
Fix aws_instance acc test 2021-07-26 10:57:21 +02:00
Elie 6c20e1d404
Fix SQS queue policy crash 2021-07-23 10:43:18 +02:00
Elie 91a0418137
Add deep mode flag 2021-07-22 16:44:13 +02:00
Elie 90807932e0
Merge branch 'main' into fix/sqs_queue_race 2021-07-22 14:19:07 +02:00
Martin Guibert a33df6467b fix crash when sqs queue is just deleted and still appears in listing 2021-07-22 14:10:10 +02:00
Martin Guibert bcc56d0b6c enrich iam_role_policy for aws_default middleware 2021-07-22 14:04:18 +02:00
Elie 2745d44160
Merge pull request #870 from cloudskiff/fix/sgrule
Fix defaults sgrule middleware to be deep mode compliant
2021-07-22 13:19:54 +02:00
William Beuil 1a08192941
Dereference vpc_id 2021-07-22 13:09:56 +02:00
William Beuil 9e193a5d95
Fix defaults sgrule middleware to be deep mode compliant 2021-07-22 12:46:20 +02:00
Elie 7ba5c32972
Merge branch 'main' into issue_811_unify_cli_wording 2021-07-22 10:37:25 +02:00
Elie dc6b9dc6aa
Merge pull request #863 from cloudskiff/fea/enrich_ig_route
enrich internet gateway and route to use in default igw route middleware
2021-07-22 10:31:34 +02:00
Louis TOUSSAINT 0a35855a8a Issue 811: Update cli wording 2021-07-21 18:17:56 +02:00
sundowndev e5ffc68091 refactor: rename result.golden.json files to results.golden.json 2021-07-21 16:31:18 +02:00
sundowndev 2344bc3335 refactor: remove empty results.golden.json files 2021-07-21 16:08:27 +02:00
sundowndev 25d7d4a647 refactor: return empty results goldenfiles 2021-07-21 15:13:12 +02:00
Martin Guibert 617b094ee1 enrich internet gateway and route to use in default igw route middleware 2021-07-21 11:04:18 +02:00
Elie 751a836993
Merge pull request #862 from cloudskiff/enrich_aws_nat_gw_eip_assoc
Add `allocation_id` to `nat_gw` and `eip_assoc`
2021-07-20 18:35:51 +02:00
Elie 0bb7acd3db
Merge pull request #851 from cloudskiff/enrich_aws_iam_role
Add path to `iam_role` in enumerator
2021-07-20 18:23:44 +02:00
Elie c28943eab4
Merge pull request #861 from cloudskiff/fix/htmlRoundFloat
Fix rounding issue in html output
2021-07-20 18:21:34 +02:00
Elie 2a497b8a8b
Merge branch 'main' into enrich_aws_nat_gw_eip_assoc 2021-07-20 18:21:06 +02:00
Elie f363461641
Merge branch 'main' into fix/sgrulesDetailsFetcher 2021-07-20 17:54:09 +02:00
Elie 5880f641c5
Add allocation_id to nat_gw and eip_assoc 2021-07-20 17:51:51 +02:00
sundowndev 83129d3845 fix: rounding issue in html output 2021-07-20 17:28:58 +02:00
Elie 2ac36fd416
Merge pull request #853 from cloudskiff/enrich_aws_route
Add origin to `aws_route` in enumerator
2021-07-20 14:27:48 +02:00
Louis TOUSSAINT d6c3140f11 Issue 693: Change html report input wording 2021-07-19 18:45:23 +02:00
sundowndev bc017f087c fix: sgrules details fetcher 2021-07-19 17:55:59 +02:00
Elie bcc2271046
Merge branch 'main' into enrich_aws_sqs_queue_policy 2021-07-19 13:54:04 +02:00
Elie 34de289bd4
Add policy to aws_sqs_queue_policy enumerator 2021-07-19 11:45:26 +02:00
Elie bcbea5f770
Add origin to `aws_route` in enumerator 2021-07-16 14:30:19 +02:00
Elie 686b9de52f
Add type to route53_records 2021-07-16 14:24:05 +02:00
Elie 94d449b544
Add path to iam_role in enumerator 2021-07-16 11:48:03 +02:00
sundowndev 6f92c68af9 fix: security group rule enumerator 2021-07-16 11:03:22 +02:00
sundowndev e27a5564fd refactor: remove usage of flatmap pkg 2021-07-15 17:36:34 +02:00
sundowndev da937e2781 refactor: delete unused test function 2021-07-15 17:34:07 +02:00
sundowndev 321c898638 chore: fix lint errors 2021-07-15 17:34:07 +02:00
sundowndev 5ef67beed5 refactor: add security group rule details fetcher 2021-07-15 17:34:07 +02:00
sundowndev 2595164dac fix: security group rule enumerator 2021-07-15 17:34:07 +02:00
sundowndev b0cf6f0593 test: ec2 scanner 2021-07-15 17:34:07 +02:00
sundowndev c393cf5a7d refactor: split security group rule supplier 2021-07-15 17:34:07 +02:00
Elie 2ef7060eb2
Merge branch 'main' into feat/memstore 2021-07-15 11:34:16 +02:00
sundowndev 5b151557c3 refactor: split iam role policy supplier 2021-07-13 15:17:10 +02:00
Louis TOUSSAINT c37498e9dc Issue 727: Split iam user policy attachment 2021-07-13 15:01:31 +02:00
Elie f2e95423b5 Split aws_iam_role_policy_attachment 2021-07-13 14:54:32 +02:00
Elie bbfde71109
Fix ipv6 route detail retrieval 2021-07-13 14:17:54 +02:00
sundowndev f8466b6d53 test(acc): pin provider versions 2021-07-12 17:55:26 +02:00
sundowndev ea0afacd74 test(acc): use proper provider version 2021-07-12 17:31:06 +02:00
sundowndev 9810160d6a chore: fix lint errors 2021-07-12 16:20:55 +02:00
sundowndev 169f1c37a5 refactor: split iam access key supplier 2021-07-12 16:18:26 +02:00
sundowndev aebdbc688a refactor: simplify memstore testing 2021-07-12 15:48:14 +02:00
sundowndev b0b9d13b38 test: driftctl 2021-07-12 15:48:14 +02:00
sundowndev b8ff26a44d refactor: simplify code 2021-07-12 15:48:14 +02:00
sundowndev 3c2694a897 test(cmd): add assertions on store 2021-07-12 15:48:14 +02:00
sundowndev 904e7b38f3 refactor: simplify code 2021-07-12 15:48:14 +02:00
sundowndev 4625be141b refactor: simplify code 2021-07-12 15:48:14 +02:00
sundowndev d1ed5e18d9 feat: implement memestore pkg 2021-07-12 15:48:14 +02:00
sundowndev 58eb8f037b chore: fix lint errors 2021-07-12 15:43:02 +02:00
sundowndev f6eb9a8c05 refactor: split iam role supplier 2021-07-12 15:41:58 +02:00
Elie 0614d72c4f
Merge branch 'main' into refact/ec2_instance_details_fetcher 2021-07-12 15:27:39 +02:00
Elie c42269283d
Split aws_ecr_repository 2021-07-12 14:56:46 +02:00
sundowndev 0f757a6b33 refactor: remove unnecessary details fetcher 2021-07-12 11:54:15 +02:00
Louis TOUSSAINT 65a4e82654 Issue 728: Split iam user policy 2021-07-09 17:21:07 +02:00
William BEUIL cbac4f667e
Merge branch 'main' into issue_729_split_iam_user 2021-07-09 17:13:04 +02:00
William Beuil 8ea92d8819
Split route_supplier 2021-07-09 17:04:20 +02:00
Louis TOUSSAINT 5021803fa0 Issue 729: Split iam user 2021-07-09 16:17:47 +02:00
Louis TOUSSAINT afe3fc3186 Issue 823: vpc security group enumerator must use SupportedType() 2021-07-09 15:56:10 +02:00
Louis TOUSSAINT c349061c8e Issue 823: vpc default security group enumerator must use SupportedType() 2021-07-09 15:55:58 +02:00
Louis TOUSSAINT 46939773b9 Issue 823: route53 zone enumerator must use SupportedType() 2021-07-09 15:55:44 +02:00
Louis TOUSSAINT d49ba12e4e Issue 823: route53 record enumerator must use SupportedType() 2021-07-09 15:55:33 +02:00
William BEUIL d39815a1d3
Merge branch 'main' into fea/split_lambda_event_source_mapping_supplier 2021-07-09 12:08:08 +02:00
Martin Guibert 692c73ec88 split lambda_event_source_mapping_supplier 2021-07-09 11:42:22 +02:00
Elie 97f65abdbd Split aws_s3_bucket_analytic 2021-07-09 11:29:31 +02:00
Martin Guibert 74149109db split lambda_function_supplier 2021-07-09 11:07:57 +02:00
William Beuil 4add646e4c
Split nat_gateway_supplier 2021-07-09 10:46:42 +02:00
Louis TOUSSAINT 9877a3d6eb Issue 723: Split iam policy supplier 2021-07-09 10:36:07 +02:00
William Beuil c841047407
Split db_subnet_group_supplier 2021-07-08 18:22:12 +02:00
William Beuil 58c9c88811
Split db_instance_supplier 2021-07-08 18:01:30 +02:00
sundowndev cff7a2fee3 feat: split dynamodb table supplier 2021-07-08 17:39:42 +02:00
William BEUIL 6972f95994
Merge branch 'main' into change_Sqs_to_SQS 2021-07-08 17:17:32 +02:00
William BEUIL 439ac59cda
Merge branch 'main' into fea/split_sns_topic_subscription_supplier 2021-07-08 17:00:35 +02:00
William Beuil c5c11d0f6f Split cloudfront_distribution_supplier 2021-07-08 16:50:16 +02:00
Martin Guibert b2af025420 split sns_topic_subscription_supplier 2021-07-08 16:38:27 +02:00
Louis TOUSSAINT 3b830009b5 Change Sqs to SQS typo (except resourceType) 2021-07-08 16:13:51 +02:00
Martin Guibert 377e923813 split sns_topic_policy_supplier 2021-07-08 16:00:45 +02:00
Martin Guibert 08c3e2d7eb split sns_topic_supplier 2021-07-08 15:48:53 +02:00
Louis TOUSSAINT 431d9ba611 Issue 749: Split sqs queue policy supplier 2021-07-08 14:24:42 +02:00
Louis TOUSSAINT 047d17e496 Issue 750: Split sqs queue supplier 2021-07-07 20:42:24 +02:00
Elie 410e3df051
Fix kms_key crash 2021-07-06 17:34:24 +02:00
Martin Guibert dd58f32656 fix eip association acceptancy test 2021-07-06 15:44:30 +02:00
Elie 554fe88a8e
Merge pull request #767 from cloudskiff/refact/route53_record_deepmode
Split route53_record_supplier
2021-07-06 15:19:40 +02:00
Martin Guibert c7eccd5b7c add expander for eip association 2021-07-06 15:10:55 +02:00
sundowndev 500748f787 test: route53 scanner 2021-07-06 15:09:14 +02:00
sundowndev 336c7062bd refactor: simplify code 2021-07-06 15:07:02 +02:00
sundowndev f6a48d8edf refactor: split route53 record supplier 2021-07-06 15:07:02 +02:00
Elie 51a3b8fcb7
Fix enumeration errors not handled 2021-07-06 12:12:55 +02:00
sundowndev e95c852f19 refactor: split vpc security group supplier 2021-07-06 11:10:05 +02:00
William BEUIL 0e6c6caf08
Merge branch 'main' into route_table_supplier 2021-07-06 10:57:12 +02:00
Elie 07b2a878ce
Merge branch 'main' into route_table_supplier 2021-07-06 10:51:34 +02:00
Elie a560d84b25
Fix bucket policy return err when no policy exist 2021-07-06 10:47:28 +02:00
Louis TOUSSAINT 8fb10e0b3a Issue 615: Add envProxy and tests to s3Reader 2021-07-06 10:28:11 +02:00
Louis TOUSSAINT 973b67f6d5 Issue 615: Add a new test to s3_test.go to check if NewS3Enumerator take DCTL_S3_envVar in charge 2021-07-06 10:28:11 +02:00
Louis TOUSSAINT c882c769e8 Issue 615: Remove setProxy and add parameter to NewEnvProxy directly 2021-07-06 10:28:11 +02:00
Louis TOUSSAINT b78aeb5d06 Issue 615: Add test where env is empty in env_proxy_test 2021-07-06 10:28:11 +02:00
Louis TOUSSAINT cdf87ac1a6 Issue 615: Modify the env_proxy_test logic and env_proxy variable typo 2021-07-06 10:28:10 +02:00
Louis TOUSSAINT 916c458760 Issue 615: Create struct to override env config for state_enumerator 2021-07-06 10:28:10 +02:00
William Beuil 640956f95c
Split route_table_supplier 2021-07-05 17:45:40 +02:00
sundowndev 0460878238 refactor: remove cleanZoneID function 2021-07-05 17:43:23 +02:00
sundowndev 83d360ec99 refactor: split route53 zone supplier 2021-07-05 17:27:47 +02:00
Elie d78afaf2ce
Merge branch 'main' into rework_s3_bucket_policy_supplier 2021-07-05 16:46:19 +02:00
William Beuil 3991c0e604
Split subnet_supplier 2021-07-05 16:23:05 +02:00
William Beuil 019f8c9773
Split route_table_association_supplier 2021-07-05 16:07:22 +02:00
Elie 496b8982aa
Merge branch 'main' into rework_s3_bucket_policy_supplier 2021-07-05 16:05:13 +02:00
Elie 6d89bd5555
Merge branch 'main' into fix/remove_useless_config_github_enum 2021-07-05 15:57:57 +02:00
Elie ec4388133b
Split s3_bucket_policy_supplier 2021-07-05 15:49:05 +02:00
Martin Guibert 55ac4a1012 split github branch protection 2021-07-05 15:48:51 +02:00
Martin Guibert edc9a5ff4a split github team membership supplier 2021-07-05 15:35:53 +02:00
Martin Guibert cdc1b87b25 remove useless provider config from github enumerator 2021-07-05 15:34:32 +02:00
Martin Guibert 2d8ebe0804 split github membership supplier 2021-07-05 15:21:47 +02:00
Elie ee1b4d3864
Merge branch 'main' into refact/route53_health_check_deepmode 2021-07-05 14:37:46 +02:00
William Beuil 195c64c55b
Split kms_alias_supplier 2021-07-05 13:18:48 +02:00
William Beuil fe064b4bb8
Fix typo on file name 2021-07-05 12:39:34 +02:00
sundowndev d04d1e0763 refactor: split route53 health check supplier 2021-07-05 12:07:11 +02:00
sundowndev a720e30c30 Merge branch 'main' into refact/vpc_deepmode 2021-07-05 11:28:22 +02:00
sundowndev 835f06423e refactor: fix generic details fetcher func name 2021-07-05 11:25:19 +02:00
sundowndev 90b0bcde33 Merge branch 'main' into refact/vpc_deepmode 2021-07-05 11:18:10 +02:00
Elie 9cb0676c94
Merge branch 'main' into kms_key_supplier 2021-07-05 11:11:54 +02:00
William Beuil 1b8ed7838b
Split internet_gateway_supplier 2021-07-05 10:50:45 +02:00
William Beuil 5f3b0a8524
Split kms_key_supplier 2021-07-05 10:44:54 +02:00
William Beuil 3c993c063c
Fix enumerators 2021-07-05 10:30:42 +02:00
William Beuil 8b4385613c
Split ec2_instance_supplier 2021-07-02 17:34:45 +02:00
Martin Guibert e638dc3f94 split github repository supplier 2021-07-02 17:20:29 +02:00
William Beuil 878b0dddc9
Split ec2_eip_association_supplier 2021-07-02 17:00:25 +02:00
William Beuil da973bbbe5
Split ec2_key_pair_supplier 2021-07-02 16:04:12 +02:00
William Beuil 666effc872
Split ec2_ami_supplier 2021-07-02 15:52:18 +02:00
Martin 09f756e655
Merge branch 'main' into refact/vpc_deepmode 2021-07-02 15:06:58 +02:00
Martin 47453c57d0
Merge branch 'main' into rework_s3_bucket_metric_supplier 2021-07-02 14:44:40 +02:00
William Beuil 583ab5b065
First iteration of the output plan 2021-07-02 12:16:42 +02:00
William Beuil c12319e345
Fix details typo 2021-07-01 17:11:25 +02:00
sundowndev d7e789cdf3 test: merge vpc scanner & ec2 scanner tests 2021-07-01 17:01:14 +02:00
sundowndev 007149e785 refactor: delete unused schema files 2021-07-01 16:51:14 +02:00
sundowndev e1df7c84ec refactor: remove irrelevant line comment 2021-07-01 16:51:14 +02:00
sundowndev d0203cfbdc refactor: split default vpc supplier 2021-07-01 16:51:14 +02:00
sundowndev a160963596 refactor: split vpc supplier 2021-07-01 16:51:13 +02:00
William Beuil 4a8eea249e
Split ec2_eip_supplier 2021-07-01 16:22:46 +02:00
Martin Guibert d9d735615e split github_team_supplier 2021-07-01 15:52:52 +02:00
William Beuil 652d846631
Split ec2_ebs_snapshot_supplier 2021-07-01 15:24:35 +02:00
William Beuil 82fd4735f4
Split ec2_ebs_volume_supplier 2021-07-01 11:53:26 +02:00
Elie 54790c5d4c
Split s3_bucket_metrics_supplier 2021-07-01 10:36:46 +02:00
Elie 95c33bc886
Remove useless schemas files 2021-07-01 10:34:29 +02:00
Elie 0ca2866e5e
Merge branch 'main' into sso 2021-06-30 18:26:22 +02:00
Elie f6af2cffab
Merge branch 'main' into fix/sg_rule 2021-06-30 17:53:55 +02:00
Elie 4854d4d997
Split s3_bucket_notification_supplier 2021-06-30 17:26:37 +02:00
Elie 61a84856e0
Merge branch 'main' into rework_s3_bucket_inventory_supplier 2021-06-30 17:06:42 +02:00
Elie 4cbf29fa5b
Add generic detail fetcher 2021-06-30 14:57:50 +02:00
Elie 7f7c269e42
Split s3_bucket_inventory_supplier 2021-06-29 14:29:48 +02:00
Elie 74fda032b9
Rename test file 2021-06-29 14:02:18 +02:00
William Beuil 47500b7771
Refacto AWS mocks for repositories and clients 2021-06-28 18:21:12 +02:00
Martin Guibert 54e5d17ee8 simpler test function to test against golden file 2021-06-28 15:16:56 +02:00
Elie 73200b1ae8 Add scanner test 2021-06-28 15:16:55 +02:00
William Beuil 24a295703f
Fix default security group rules from default security group 2021-06-28 11:16:24 +02:00
Louis TOUSSAINT 173a0b0baa Issue 703: Inverse scan spinner rotation 2021-06-25 16:24:22 +02:00
sundowndev 24c8218d50 test(state): update golden files for lambda_function 2021-06-24 17:34:07 +02:00
sundowndev 920aedd247 fix: ignore source_code_size in aws_lambda_function 2021-06-24 17:12:27 +02:00
Elie b5fe9e5e73
Fix S3 broken glob matching 2021-06-24 11:01:21 +02:00
Elie 2f07640e0a
Merge pull request #619 from cloudskiff/deep_mode
Split suppliers to add deep mode
2021-06-23 11:20:08 +02:00
Elie 4d00bc314d
Merge pull request #688 from cloudskiff/fix_provider_installer_on_golden_update
Fix golden files update
2021-06-23 11:08:03 +02:00
Elie 3a5048dfdf
Merge branch 'main' into ignore_unsupported_resource_from_iac 2021-06-23 11:00:26 +02:00
Elie 646c6a392c
Ignore unsupported resource from IaC 2021-06-23 10:58:40 +02:00
Elie 3dcfbd94a9
Fix golden files update 2021-06-23 10:52:50 +02:00
sundowndev 2347725b18 refactor: scan duration message 2021-06-23 10:48:32 +02:00
Elie 4f44039fb9
Split suppliers to add deep mode 2021-06-22 18:25:47 +02:00
Elie 0636ddea7e
Merge pull request #683 from cloudskiff/fix/duplicate_ebs_volume
Fix duplicate ebs volume in state
2021-06-22 18:23:28 +02:00
Elie d1156500cc
Merge pull request #682 from cloudskiff/feat/elapsedTime
Display elapsed time at end of scan
2021-06-22 18:22:00 +02:00
Martin Guibert bb2e1e0f0f fix slash in gitignore syntax being special 2021-06-22 17:33:51 +02:00
Martin Guibert 437c20e0b7 append .* to prevent BC break 2021-06-22 17:33:51 +02:00
Martin Guibert 67231949db go-git gitignore to handle driftignore
Signed-off-by: Martin Guibert <martin@cloudskiff.com>
2021-06-22 17:33:51 +02:00
William Beuil 1633308adf
Fix duplicate ebs volume in state 2021-06-22 17:17:49 +02:00
Raphaël 9ead8d1523
Merge branch 'main' into feat/htmlOutput 2021-06-22 17:17:15 +02:00
sundowndev cba595d9f1 feat: add elapsed time at end of scan 2021-06-22 17:06:53 +02:00
William Beuil 618d7ebf54
Middleware to manage tags_all attribute 2021-06-22 16:48:54 +02:00
Elie 846b32801a
Merge pull request #678 from cloudskiff/add_doc_link
Add limitation link in computed field alert
2021-06-22 15:37:00 +02:00
Elie e0de54f30d
Add limitation link in computed field alert 2021-06-22 15:00:04 +02:00
William Beuil 894a636cc2
Fix ebs volume tags false positive 2021-06-22 12:17:56 +02:00
Elie cce60efb88
Fix dupplicate resource when expanding managed_policy fields 2021-06-22 11:39:59 +02:00
Elie faef77a98c
Add missing attribute to volume expander middleware 2021-06-22 10:52:44 +02:00
Raphaël cc835dbfd7
Merge branch 'main' into feat/driftignoreFlag 2021-06-21 15:07:51 +02:00
sundowndev eb04ec3513 refactor: unexport driftignorePath property 2021-06-21 14:48:03 +02:00
sundowndev 1b351c9b2f refactor: html template
use light logo & add border-radius to tbody element
2021-06-21 14:44:54 +02:00
sundowndev 78601df930 refactor: simplify code 2021-06-21 14:44:54 +02:00
sundowndev cc9a882fc2 test: update golden files 2021-06-21 14:44:54 +02:00
sundowndev ead85d5f84 chore: fix lint errors 2021-06-21 14:44:54 +02:00
William Beuil 7a60e69efb Refactor output HTML with a11y and responsive in mind 2021-06-21 14:44:54 +02:00
sundowndev 5fa7c10296 fix: console output 2021-06-21 14:44:54 +02:00
sundowndev bc2164a008 refactor: diff custom style 2021-06-21 14:44:54 +02:00
sundowndev 3d12c9933e refactor: simplify code 2021-06-21 14:44:54 +02:00
sundowndev 21747180d9 refactor: diffs custom style 2021-06-21 14:44:54 +02:00
sundowndev 76613149c1 refactor: add date to analysis struct 2021-06-21 14:44:54 +02:00
sundowndev a27d993b13 refactor: html output custom style 2021-06-21 14:44:54 +02:00
sundowndev a14a72f212 refactor: empty message in html output 2021-06-21 14:44:54 +02:00
sundowndev a9ce5c639f refactor: html output style 2021-06-21 14:44:54 +02:00
sundowndev 067241ed2a refactor: html output 2021-06-21 14:44:54 +02:00
sundowndev fd0e673b37 test: html output 2021-06-21 14:44:54 +02:00
sundowndev 5561041db9 fix: display alert messages 2021-06-21 14:44:54 +02:00
sundowndev 3643c1ba66 refactor: html output template 2021-06-21 14:44:54 +02:00
sundowndev 4b9af2b57b refactor: add filtering to html output 2021-06-21 14:44:54 +02:00
sundowndev 5daca2eb46 feat: implement html output 2021-06-21 14:44:54 +02:00
Elie 50443a839d
Merge pull request #663 from cloudskiff/handle_managed_policy_arns
Handle managed_policy_arns in aws_iam_roles
2021-06-21 14:16:34 +02:00
Louis TOUSSAINT 2ddb8191ab Issue 637: Fix false positive for aws_sns_topic/policy 2021-06-18 15:16:08 +02:00
Louis TOUSSAINT 6278dbfefd Issue 630: Fix aws_route carrier_gateway_id false positive 2021-06-18 11:51:01 +02:00
Elie 8751bdac2f
Fix EBS volume drift on throughput 2021-06-18 11:24:50 +02:00
Elie 8dcb5da73d
Handle managed_policy_arns in aws_iam_roles 2021-06-18 10:44:39 +02:00
sundowndev 92691868bb feat: display terraform provider version in output 2021-06-17 16:20:19 +02:00
sundowndev 074900043f feat: add driftignore flag 2021-06-17 15:39:31 +02:00
Louis TOUSSAINT 37fd7cc1e6 Issue 555: Deletion of deprecated tests 2021-06-17 14:34:50 +02:00
Louis TOUSSAINT 1ba5782fa1 Issue 555: Add fallback if homedir.Dir() return error to set configDir with tmpDir() 2021-06-17 14:34:50 +02:00
Louis TOUSSAINT 43bc80eee6 Issue 555: Remove default value description for config-dir flag and rebase main 2021-06-17 14:34:50 +02:00
Louis TOUSSAINT caee449a9a Issue 555: Set the default value of config-dir in scan.go 2021-06-17 14:34:50 +02:00
Louis TOUSSAINT 80783a6d41 Issue 555: Add config-dir flag to change .driftctl location 2021-06-17 14:34:50 +02:00
Louis TOUSSAINT e8d930cc66 Issue 649: Fix ses_smtp_password false positive 2021-06-17 11:39:30 +02:00
Raphaël 5a23a1b1d8
Merge branch 'main' into fix/orderingConsole 2021-06-16 10:48:03 +02:00
Elie ef4dd3ca82
Merge pull request #654 from a-vorobiev/fix/ignore-bucket-prefix
Fix false positive on aws_s3_bucket.bucket_prefix
2021-06-16 10:08:26 +02:00
Anton Vorobiev 8d8412209c
Merge branch 'main' into fix/ignore-bucket-prefix 2021-06-15 19:13:35 +02:00
Anton Vorobiev 0ad6f1d296 Fix: s3_bucket.bucket_prefix should be ignored 2021-06-15 19:00:03 +02:00
Elie 7fe9b13d19
Fix state enumeration on s3 on win when using wildcards 2021-06-15 18:18:53 +02:00
Elie 98ee98a955
Fix issue when enumerating s3 states on windows 2021-06-15 16:35:53 +02:00
sundowndev c1e921235b fix: ordering in console output 2021-06-15 16:05:07 +02:00
Elie 00c7c301c5
Try to fix igw removal in aws_route acc test 2021-06-14 17:15:18 +02:00
sundowndev dd3c3107f4 fix: disable instance_initiated_shutdown_behavior field 2021-06-14 11:26:47 +02:00
Elie 35b511ef43 Retrieve provider version and schema version 2021-06-14 11:02:10 +02:00
Elie ae79832971
[RUN ACC] Try to fix EIP test by upgrading tf provider 2021-06-10 10:09:53 +02:00
Elie dfee5b441a
Merge branch 'main' into feat/cacheS3repository 2021-06-09 16:52:27 +02:00
Raphaël 5620ab898d
Merge branch 'main' into feat/cacheSNSrepo 2021-06-09 16:40:26 +02:00
Raphaël 0d8bf3e423
Merge branch 'main' into feat/cacheRoute53repo 2021-06-09 16:29:22 +02:00
Elie 955919d6e6
Merge pull request #585 from cloudskiff/feat/cacheGithubRepo
Implement cache in Github repository
2021-06-09 16:27:16 +02:00
Raphaël 7a12dd869f
Merge branch 'main' into feat/cacheLambdarepo 2021-06-09 16:15:39 +02:00
Raphaël 237eaba9ce
Merge branch 'main' into feat/cacheRDSrepo 2021-06-09 16:06:27 +02:00
Elie bc96022b94
Merge branch 'main' into feat/cacheSQSrepo 2021-06-09 15:50:37 +02:00
Elie 667a66d6f7
Merge branch 'main' into feat/cacheGithubRepo 2021-06-09 15:49:14 +02:00
Raphaël 6473d8b807
Merge branch 'main' into feat/cacheCloudfrontRepo 2021-06-09 15:42:21 +02:00
Elie b2d8d7e075
Merge branch 'main' into feat/cacheDynamoDBrepo 2021-06-09 15:40:49 +02:00
Raphaël e9b0c1792e
Merge branch 'main' into feat/cacheECRrepo 2021-06-09 15:26:26 +02:00
sundowndev 8f527baf3b feat: implement cache in github repository 2021-06-09 15:13:33 +02:00
sundowndev e14552efed feat: implement cache in cloudfront repository 2021-06-09 15:13:13 +02:00
sundowndev 5bbc905670 feat: implement cache in DynamoDB repository 2021-06-09 15:12:15 +02:00
sundowndev 89dcf9700e feat: implement cache in SNS repository 2021-06-09 15:11:57 +02:00
sundowndev de9d246f98 feat: implement cache in SQS repository 2021-06-09 15:11:40 +02:00
sundowndev 991e777364 feat: implement cache in RDS repository 2021-06-09 15:11:08 +02:00
sundowndev 6e3bfdca3a feat: implement cache in lambda repository 2021-06-09 15:10:49 +02:00
sundowndev 351f9f6605 feat: implement cache in kms repository 2021-06-09 15:09:58 +02:00
sundowndev 2b91e69c73 feat: implement cache in route53 repository 2021-06-09 15:09:46 +02:00
sundowndev 3d97255858 feat: implement cache in s3 repository 2021-06-09 15:09:34 +02:00
sundowndev aef2991445 feat: implement cache in ecr repository 2021-06-09 15:08:18 +02:00
Elie f22734787e
Merge branch 'main' into feat/cacheIAMrepository 2021-06-09 14:56:02 +02:00
Elie ae8cc3ffbd
[RUN ACC] Try to fix igw deletion issues 2021-06-09 11:35:32 +02:00
Martin Guibert e441425e70
[RUN ACC] fix acc tests
filter our own keys for aws_iam_access_key
increase timeout
2021-06-09 11:35:31 +02:00
Martin Guibert 160f541767 remove old case to have only one alert/handler for wrong arn 2021-06-08 15:23:37 +02:00
Martin Guibert 465e6fd7f0 fix #601 by checking arn correctness and sending a different alert 2021-06-08 14:58:02 +02:00
sundowndev ccbe73c368 feat: implement cache in IAM repository 2021-06-08 11:40:04 +02:00
Louis TOUSSAINT 86da6faf66 Issue 165: Add cache for ec2_repository and fix tests for iam_supplier 2021-06-07 16:59:54 +02:00
Louis TOUSSAINT 9f232ccb49 Issue 165: Fix typo and implement iamRepository in iam suppliers constructor 2021-06-07 15:02:12 +02:00
Louis TOUSSAINT 8b5b8bfb7f Issue 165: Fix conflict from main rebase 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 4cf5130549 Issue 165: Merge main to branch and fix iam_repository_test conflict 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT b177dd804e Issue 165: Change client typo to repo 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 0464c7cbb9 Issue 165: Add Test_IAMRepository_ListAllPolicies in iam_repository_test 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT d7bceb4d24 Issue 165: Add Test_IAMRepository_ListAllUsers in iam_repository_test 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT bf20120efc Issue 165: Add Test_IAMRepository_ListAllRolePolicyAttachments in iam_repository_test 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT dbc179f0d8 Issue 165: Add Test_IAMRepository_ListAllRolePolicies in iam_repository_test 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 6c29aa04ff Issue 165: Add Test_IAMRepository_ListAllRoles in iam_repository_test 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 09f3f82a97 Issue 165: Add Test_IAMRepository_ListAllUserPolicyAttachments in iam_repository_test 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 6e0a47ad67 Issue 165: Add Test_IAMRepository_ListAllUserPolicies in iam_repository_test 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT b4e04e0d77 Issue 165: Add Test_IAMRepository_ListAllAccessKeys in iam_repository_test 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 874756c259 Issue 165: Add mock_IAMRepository 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT ddac4d14b3 Issue 165: Delete hidden dependency for iam_role_policy_attachment_supplier 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 48289c35f7 Issue 165: Delete hidden dependency for iam_role_policy_supplier 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 551f958ea1 Issue 165: Delete hidden dependency for iam_role_supplier 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT b35eac7bc6 Issue 165: Delete hidden dependency for iam_user_policy_attachment_supplier 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 82ed1c2c71 Issue 165: Delete hidden dependency for iam_user_policy_supplier 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 832304c8f9 Issue 165: Delete hidden dependency for iam_user_supplier 2021-06-07 11:05:21 +02:00
Louis TOUSSAINT 414fecb9d1 Issue 165: Delete hidden dependency for iam_policy_supplier 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT f81cfb9eaf Issue 165: Delete hidden dependency for iam_access_key_supplier 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT a0ecd28498 Issue 165: Add iam_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT def99b065d Issue 165: Add security_group/_rule tests to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 2329c840d2 Issue 165: Add security_group_rule_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 18e3a76d90 Issue 165: Add security_group_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT b4a3458cc3 Issue 165: Add vpc_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT b9fb4f9343 Issue 165: Add route_table_association_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 1a45b6cdf2 Issue 165: Add route_table_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 3f2fe6d90c Issue 165: Add route_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 86b7f52d60 Issue 165: Add nat_gateway_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 6fc4478114 Issue 165: Add subnet_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT 9f89dac6f2 Issue 165: Revert goldenfiles for internet_gateway_multiple 2021-06-07 11:05:20 +02:00
Louis TOUSSAINT abe938b0cd Issue 165: Add internet_gateway_supplier to ec2_repository 2021-06-07 11:05:20 +02:00
Elie 18db5860b1
Merge branch 'main' into allow_to_change_provider_version 2021-06-07 10:17:22 +02:00
Rohan Sharma 6b2388c62a Fix gen-driftignore --help example 2021-06-05 16:39:47 +05:30
Elie 07d992d472
Add input validation 2021-06-04 16:58:55 +02:00
Elie fcb06cd782
Allow to specify a terraform provider version 2021-06-04 16:58:54 +02:00
Toussaint Louis b63f723296
Merge branch 'main' into issue_494_http_scanning_error 2021-06-04 15:49:22 +02:00
Toussaint Louis c3934f4d83
Merge branch 'main' into issue_494_http_scanning_error 2021-06-04 15:45:36 +02:00
Toussaint Louis 14a3947d3f
Update terraform_state_reader.go 2021-06-04 15:44:55 +02:00
sundowndev 26dcfd218e refactor(cache): allow 0 capacity 2021-06-04 15:40:37 +02:00
Elie 72c8dc3ea8
Merge branch 'main' into issue_494_http_scanning_error 2021-06-04 15:34:07 +02:00
Raphaël 8d84f4ec52
Merge branch 'main' into test/cacheEC2repo 2021-06-04 15:30:06 +02:00
sundowndev dfda3df3c6 test: improve testing for ec2 repository 2021-06-04 12:25:32 +02:00
Elie c1770ac935
Fix unsupported resources read from state files 2021-06-04 11:31:32 +02:00
Louis TOUSSAINT 560a4a51cd Issue 494: Detect if state reader is http and change error reporting logic 2021-06-03 15:42:29 +02:00
Louis TOUSSAINT 87426cb5b6 Issue 494: Fix error reporting in http state reader 2021-06-03 15:42:29 +02:00
sundowndev d737d9eb2a chore: fix conflicts with main branch 2021-06-03 12:39:33 +02:00
sundowndev e8d2b2bf70 refactor: build repositories once 2021-06-03 12:12:43 +02:00
sundowndev f8914f1c82 test: LRU cache 2021-06-03 11:20:41 +02:00
sundowndev 4f151f35d2 refactor: aws cache capacity 2021-06-03 11:20:41 +02:00
sundowndev 44a6707523 refactor: use a global cache for all repositories 2021-06-03 11:20:41 +02:00
sundowndev e9a021b95f refactor: implement LRU cache 2021-06-03 11:00:59 +02:00
sundowndev 6b5766144c refactor: cache interface 2021-06-03 11:00:59 +02:00
sundowndev 2bf75aaa29 feat: implement resources enumeration cache 2021-06-03 11:00:59 +02:00
William Beuil cfaddfaa08 Fix iam_access_key false positive 2021-06-02 14:32:44 +02:00
William Beuil bebb5436f6 Update db_instance normalize function and sg acc tests 2021-06-02 14:32:44 +02:00
Elie 778e5f7ab9
Merge branch 'main' into cleanup_old_resources 2021-06-02 14:06:08 +02:00
Elie a373bb0744
Remove human readable func from resource 2021-06-02 13:56:18 +02:00
Martin Guibert 3a544133e2 remove useless file. prevent getter in attribute from copiying slice and
map. remove useless exported function from resource
2021-06-02 12:02:36 +02:00
Elie b5c48dbbfc
Finished refacto 2021-05-31 18:46:20 +02:00
Martin Guibert fa77d7a539 remove /db_instance.tf as new resource does not cover anything new 2021-05-31 16:46:57 +02:00
Louis TOUSSAINT 0b48d579a5 Fix 545: Remove duplicate provider config in db_instance.tf file 2021-05-31 16:46:57 +02:00
Raphaël 400b825afe
Merge branch 'main' into fix/globEdgeCase 2021-05-31 14:51:08 +02:00
William BEUIL 7d31825b1a
Merge branch 'main' into v0.9-rebase 2021-05-27 18:15:15 +02:00
Louis TOUSSAINT e4e66d0ab1 Issue 439: Fix humanString when HumanizeAttribute() is empty 2021-05-27 15:21:45 +02:00
Louis TOUSSAINT 76ccdd6d40 Issue 439: Always print ID in resource, by changing stringer with AttributeGetter interface 2021-05-27 15:21:45 +02:00
sundowndev 6a93d0d48b fix: ensure enumerated paths are not folders 2021-05-27 14:15:43 +02:00
Louis TOUSSAINT b5a65e2565 Issue 542: Add Env var for db_instance Acc test 2021-05-26 11:21:42 +02:00
Louis TOUSSAINT af08a560e1 Issue 543: Fix false positive on aws_db_instance 2021-05-26 11:21:40 +02:00
sundowndev aa101e1731 refactor: use globaloutput for hint message 2021-05-26 11:19:28 +02:00
sundowndev 1ed957ee64 refactor: more human readable help messages 2021-05-26 11:19:28 +02:00
sundowndev ef4430c8ea refactor: rename from flag to input
also add an error when input is not specified
2021-05-26 11:19:28 +02:00
sundowndev fe3d0a14ea docs: improve gen-driftignore help message 2021-05-26 11:19:28 +02:00
sundowndev 613f4cf556 feat: create gen-driftignore 2021-05-26 11:19:28 +02:00
William Beuil 2c2f8d9ae7
Fix bug #544 and added rules to acc test 2021-05-25 12:18:08 +02:00
William Beuil f6cfbd3cb4
Change signature of NormalizeFunc + fix security_group 2021-05-24 17:43:15 +02:00
Martin Guibert b39215f188
fix security group 2021-05-24 17:43:15 +02:00
Martin Guibert 11b412b9a2
migrate security_group_rules 2021-05-24 17:43:15 +02:00
Martin Guibert 8cd70f3248 run tf destroy event when apply fail during acc test 2021-05-21 16:16:42 +02:00
Martin f3b0562e2b
Revert "try to change region in vpc acc test to mitigate max number of vpc" 2021-05-21 14:21:38 +02:00
Martin cf7c258d74
Merge branch 'main' into fix/change_vpc_acc_region 2021-05-19 18:02:08 +02:00
Martin abed93ed0a
Merge branch 'main' into fix/change_vpc_acc_region 2021-05-19 18:00:55 +02:00
William BEUIL c7602c8b25
Merge branch 'main' into fix-db-subnet 2021-05-19 17:55:58 +02:00
William Beuil 150abdc259
Fix terraform file for db_subnet_group 2021-05-19 17:48:47 +02:00
Martin Guibert f28c5002c8 try to change region in vpc acc test to mitigate max number of vpc 2021-05-19 17:00:18 +02:00
Martin Guibert 5e3faad7c2 fix policy not deleted when empty 2021-05-19 16:45:41 +02:00
Martin 7a3d70933d
Merge branch 'main' into fix/sns_migration_error 2021-05-18 18:28:06 +02:00
Martin 3ea89db94c
Merge branch 'main' into fix/sns_migration_error 2021-05-18 18:24:32 +02:00
Martin Guibert f79009c2c5 fix sqr error introduced by migration to new arch 2021-05-18 18:22:46 +02:00
William Beuil c2769838d0
Fix acc tests 2021-05-18 17:46:51 +02:00
Martin 0bfd06980f
Merge branch 'main' into fix/sns_migration_error 2021-05-18 17:36:30 +02:00
Martin Guibert e760507d61 fix bug introduced by sns migration to new archi 2021-05-18 17:23:44 +02:00
Elie e46135671b
Refacto lambda resources 2021-05-18 14:54:09 +02:00
Elie 3fcd1d91e8
Merge branch 'main' into fea/new_resource_migration 2021-05-18 10:46:18 +02:00
Elie b06e33b1a2
Merge branch 'main' into refacto_nat_gtw 2021-05-18 10:18:48 +02:00
Elie 37abb38a15
Refacto aws route53 resources 2021-05-18 10:02:45 +02:00
Martin Guibert ce98460460 fix matchby in tests 2021-05-17 18:58:03 +02:00
Martin Guibert 0fb7156dbe add sqs-queue 2021-05-17 18:57:49 +02:00
Martin Guibert efdf8ab43b ,migrate sqs_queue_policy and sqs_default_queue_policy 2021-05-17 18:57:32 +02:00
Martin Guibert 6283219f67 migrate subnet and default subnet 2021-05-17 18:56:59 +02:00
Martin Guibert 8c9b42c022 migrate vpc 2021-05-17 18:56:31 +02:00
William Beuil fe2f136c70
Refacto aws_nat_gateway 2021-05-17 18:11:47 +02:00
Elie 0bccc10850
Merge branch 'main' into refacto_internet_gtw 2021-05-17 17:58:38 +02:00
Elie e68aa82dbf
Merge branch 'main' into refacto_kms 2021-05-17 17:32:15 +02:00
Elie 797fb7fa4b
Merge branch 'main' into route_table_assoc 2021-05-17 17:25:49 +02:00
Elie f280e97ecb
Merge branch 'main' into fix_iam_policy_attachment_issues 2021-05-17 17:19:32 +02:00
Elie c2417678f0
Merge branch 'main' into refacto_aws_iam_access_key 2021-05-17 17:14:00 +02:00
Elie cafde28e21
Refacto aws_iam_access_key 2021-05-17 17:06:25 +02:00
Elie 233d517e0a
Refacto github resources 2021-05-17 17:05:04 +02:00
William Beuil 59ecb3541c
Refacto aws_internet_gateway 2021-05-17 13:27:40 +02:00
William Beuil ac3c4e6b46
Refacto aws_kms_key and aws_kms_alias 2021-05-17 12:09:35 +02:00
William Beuil 1579ffc584
Refacto aws_route_table_association 2021-05-17 11:40:41 +02:00
Elie 5dbdbcbdb4
Refacto aws_eip 2021-05-17 11:38:46 +02:00
sundowndev 64c9ab4375 feat: disable count in scan progress bar 2021-05-17 11:13:12 +02:00
Elie b173250575
Merge branch 'main' into fix/deepLinks 2021-05-17 11:02:41 +02:00
Elie ef19b0d500
Fix policy attachment issue 2021-05-14 16:57:16 +02:00
Elie e0d632f19b
Rename sanitizer middleware to expander 2021-05-12 11:37:40 +02:00
Elie 389d685991
Fix iam policy expander 2021-05-12 11:37:39 +02:00
sundowndev 42ffe46af0 fix: doc deep links for providers authentication 2021-05-12 11:31:00 +02:00
sundowndev e15146938d fix: report when no tfstate found in backend 2021-05-11 17:22:20 +02:00
Elie bdb4740c39
Make an exhaustive refactored resource list 2021-05-11 16:21:10 +02:00
Elie 550f5e84ae
Refacto IAM resources and aws_key_pair 2021-05-11 16:04:59 +02:00
Martin Guibert 80fd17dae7 fix some issues with test matchby 2021-05-11 12:22:44 +02:00
Martin Guibert ab026b66b8 migrate sns_topic 2021-05-11 12:22:44 +02:00
Martin Guibert ad729d7608 migrate sns_topic_policy 2021-05-11 12:22:44 +02:00
Martin Guibert cac46cf585 add sns_topic_policy 2021-05-11 12:22:44 +02:00
Martin Guibert dc41b780d1 add sns topic subscription 2021-05-11 12:22:44 +02:00
Elie 350ccaf059
Remove useless sanitize method 2021-05-11 10:53:49 +02:00
Elie 6a2557573a
Remove useless empty fields and remove todo 2021-05-10 16:50:49 +02:00
William Beuil 7feb45f5dd
Fix aws_default_route_table, add aws_route_table and add aws_route 2021-05-10 16:33:43 +02:00
William Beuil 831e80678a
Add aws_ecr_repository 2021-05-10 16:33:42 +02:00
sundowndev b22e6fa11f test: fix a test case about strict mode 2021-05-10 15:50:57 +02:00
sundowndev 0232696ace Revert "Merge pull request #433 from cloudskiff/feat/genDriftIgnore"
This reverts commit 829967170090f9825896df96a256ff88b84db529, reversing
changes made to 5e1f9f8746e2d05ec80a69096285dbd27dfa7423.
2021-05-10 15:02:42 +02:00
sundowndev 63374936e0 fix: add line break in warning message 2021-05-10 15:02:42 +02:00
sundowndev 2c76d30c81 fix: do not ignore default policy attachments 2021-05-10 15:02:42 +02:00
sundowndev 6b6e4d62dd refactor: fix error handling & simplify code 2021-05-10 15:02:42 +02:00
sundowndev 56aa95ffd1 chore: fix rebasing of branch 2021-05-10 15:02:42 +02:00
Elie 623ff3dc8e Move all AWS mocks to test/aws 2021-05-10 15:02:42 +02:00
Rémi Doreau 53a17a381a refactor(tfcloud): rebase 2021-05-10 15:02:42 +02:00
Rémi Doreau d0104515b1 fix(tfcloud): rename tfcloud -> tfc 2021-05-10 15:02:42 +02:00
Rémi Doreau 57df7fe028 fix(tfcloud): rename tfcloud -> tfc 2021-05-10 15:02:42 +02:00
Rémi Doreau 2ac9f893d6 fix(cloud_reader): requested changes 2021-05-10 15:02:42 +02:00
Rémi Doreau 499c1215c3 fix(cloud_reader): update tests + tfcloud token flag 2021-05-10 15:02:42 +02:00
Rémi Doreau a03127100a fix(scan_test): add tfcloud 2021-05-10 15:02:42 +02:00
Rémi Doreau 609d3ec059 fix(cloud_reader): make tests pass 2021-05-10 15:02:42 +02:00
Rémi Doreau b555b8b58a feat(state): add cloud reader 2021-05-10 15:02:42 +02:00
Rémi Doreau 73c0387639 feat(schemes): add tfcloud 2021-05-10 15:02:42 +02:00
sundowndev 62f6f997b7 feat: display ec2 instance name when tag name exist 2021-05-10 15:02:42 +02:00
sundowndev bcff002e50 refactor: create pkg/http package 2021-05-10 15:02:42 +02:00
sundowndev 942ff40eeb refactor(http): perform request in Read method 2021-05-10 15:02:42 +02:00
sundowndev 9a8a4b4e74 fix: response body overrided by buffer 2021-05-10 15:02:41 +02:00
sundowndev 8116ac4ccf test: mock http client 2021-05-10 15:02:41 +02:00
Elie 7d903fd6e9 Add analysis duration for telemetry 2021-05-10 15:02:41 +02:00
Elie a45b2e4bf1 Add telemetry 2021-05-10 15:02:41 +02:00
sundowndev 71bc55c7cf refactor: stop progress bar before error handling 2021-05-10 15:02:41 +02:00
sundowndev 252674cb56 feat: add iac progress bar 2021-05-10 15:02:41 +02:00
sundowndev 87ad272856 feat: create gen-driftignore 2021-05-10 14:45:44 +02:00
sundowndev c088a2fbc9 feat: add support for ** in s3 2021-05-10 14:45:44 +02:00
sundowndev 65704bf228 chore: fix a minor typo 2021-05-10 14:45:44 +02:00
sundowndev 0414c028b9 refactor: disable file matching when not using glob 2021-05-10 14:45:44 +02:00
Martin Guibert 885a404959 Limited glob support.
Support go glob syntax + ** syntaxe on file enumerator
Support go glob syntax on s3 enumerator
2021-05-10 14:45:44 +02:00
sundowndev 937154e23b feat: detect & exclude unsupported Terraform versions 2021-05-10 14:45:44 +02:00
Elie a2fa8a281a
Add missing schema metadatas in state reader tests 2021-05-07 17:57:31 +02:00
Elie ba3dda704c
Refacto remaining s3 resources 2021-05-06 17:14:00 +02:00
Elie 98a43acd14
Refacto s3 bucket 2021-05-06 15:36:24 +02:00
William Beuil 34bfd19a59
Fix signature of attributes 2021-05-06 12:55:19 +02:00
Elie 63eeb28504
Merge branch 'main' into refactor-res 2021-05-05 10:19:21 +02:00
William Beuil eda619f107
Updates 2021-05-04 18:01:21 +02:00
William Beuil 18d406178e
Add aws_ebs_volume 2021-05-04 13:41:06 +02:00
William Beuil 2b5ba194a1
Add aws_instance 2021-05-04 13:41:06 +02:00
William Beuil 86a3989d49
Add aws_ebs_snapshot 2021-05-04 13:41:06 +02:00
William Beuil 356e8b9004
Add aws_dynamodb_table 2021-05-04 13:41:06 +02:00
William Beuil adfafa3472
Add aws_default_vpc 2021-05-04 13:41:06 +02:00
William Beuil 1c76b65caa
Add aws_default_subnet 2021-05-04 13:41:06 +02:00
William Beuil ef935fb77f
Add aws_default_security_group 2021-05-04 13:41:05 +02:00
William Beuil 4aa06223da
Add aws_default_route_table 2021-05-04 13:41:05 +02:00
William Beuil d618139eac
Add aws_db_subnet_group 2021-05-04 13:41:05 +02:00
William Beuil b7e38f9e26
Add aws_db_instance 2021-05-04 13:41:05 +02:00
William Beuil e25c0ff868
Add aws_ami 2021-05-04 13:41:05 +02:00
William Beuil a8064e2728
Add .tf to cloudfront state reader 2021-05-04 13:41:05 +02:00
Elie 2b73202e09
Change jsondiff library 2021-05-04 11:38:22 +02:00
Elie 15779ae050
Set terraform version for latest acceptance test 2021-05-04 09:52:52 +02:00
Elie ef492ae0c0
Merge branch 'main' into refact/ACC_tests 2021-05-03 11:41:21 +02:00
sundowndev cc30029de3 refactor: simplify code 2021-04-30 13:46:31 +02:00