Commit Graph

734 Commits (5880f641c58e3a91d37cffe91ae964be8de404a5)

Author SHA1 Message Date
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
Raphaël 03541308ac
Merge branch 'main' into test/strictMode 2021-04-30 13:35:16 +02:00
Elie 4a238822b9 Fix cloudfront acc test 2021-04-27 17:53:07 +02:00
Raphaël 424a312bf7
Merge branch 'main' into fix/filterFlagRepeat 2021-04-26 17:49:53 +02:00
Raphaël 30bc979e8c
Merge branch 'main' into fix/progressBarResume 2021-04-26 17:20:02 +02:00
sundowndev b38063da8d fix: resume progress bar after timeout 2021-04-26 11:22:50 +02:00
Martin Guibert 80687e5029
Add hybrid resource behavior 2021-04-23 17:07:35 +02:00
sundowndev 9bfdce93bd fix: enforce one occurrence of filter flag 2021-04-20 13:50:34 +02:00
sundowndev 1ce230d03c test: add a test case for strict mode with filters 2021-04-19 15:42:10 +02:00
Elie 7e5609510b Disable useless error wrappers 2021-04-19 13:06:33 +02:00
sundowndev da64127175 test: strict mode 2021-04-14 17:04:33 +02:00
sundowndev f0f36d010d feat: add dynamic TF versions to acceptance tests 2021-04-14 12:42:14 +02:00
Raphaël b93ed4ef16
fix: rename total_drifted to total_changed 2021-04-13 17:19:30 +02:00
sundowndev 1924900e9a chore: fix conflicts with main branch 2021-04-13 14:55:10 +02:00
sundowndev 4f77dc4034 chore: use deep link in alert message 2021-04-13 14:47:08 +02:00
Elie 4bd0a81718 Fix bug in default igw route middleware 2021-04-13 14:47:08 +02:00
Stephane Jourdan 88e159f8e2 quick grammar fix 2021-04-13 14:47:08 +02:00
Louis TOUSSAINT 5c1f84e324 Issue 367: Fix typo for error-reporting 2021-04-13 14:47:08 +02:00
Louis TOUSSAINT 4c8efa378b Issue 367: Fix all error-reporting occurence in project to follow the new flag name 2021-04-13 14:47:08 +02:00
sundowndev bd497cbf6a refactor: simplify & format code 2021-04-13 14:47:08 +02:00
sundowndev c6ea94f6ce refactor: NewDriftCTL interface 2021-04-13 14:47:08 +02:00
sundowndev 53bfa79423 refactor: simplify & format code 2021-04-13 14:45:43 +02:00
sundowndev 4ce5d7530b refactor: rename wildcard variable 2021-04-13 14:45:43 +02:00
sundowndev 7f72b23b67 test: put aws defaults tests in the same file 2021-04-13 14:45:43 +02:00
sundowndev ba1868b080 refactor: put aws defaults in a single middleware 2021-04-13 14:45:43 +02:00
sundowndev 9411a5b72c refactor: don't ignore resource if role cannot be found 2021-04-13 14:45:43 +02:00
sundowndev 62cc1c7bea refactor: ignore resources based on their path 2021-04-13 14:45:43 +02:00
sundowndev fc93f0a41f refactor: delete useless aws middleware 2021-04-13 14:45:43 +02:00
sundowndev cc98c10216 refactor: revert method rename
isDefaultRecord in pkg/middlewares/route53_record.go
2021-04-13 14:45:43 +02:00
sundowndev e102fd1cdd refactor: ignore resources based on their path 2021-04-13 14:45:43 +02:00
sundowndev 803700806e refactor: delete useless aws middleware 2021-04-13 14:45:43 +02:00
Louis TOUSSAINT 3c0321e044 Issue 331: Typo in aws_security_group_defaults / aws_security_group_rules_defaults 2021-04-13 14:45:43 +02:00
sundowndev b514645029 refactor(middlewares): typo in debug log 2021-04-13 14:45:43 +02:00
sundowndev 2c8a0f7fc1 test(middlewares): aws security group rule defaults 2021-04-13 14:45:43 +02:00
sundowndev f01227d35a refactor: do not alter resources from state in middlewares 2021-04-13 14:45:43 +02:00
Louis TOUSSAINT cfdb6801a9 Issue 331: Update test to check diff.Changelog and not resource.Resource 2021-04-13 14:45:43 +02:00
Louis TOUSSAINT 1927fd07f6 typo in aws_default_route_table_test.go 2021-04-13 14:45:43 +02:00
Louis TOUSSAINT 9d32101205 Issue 331: Create a aws_iam_policy_attachment_defaults middleware to
ignore default AWS resource
2021-04-13 14:45:43 +02:00
sundowndev 00cec78d18 feat: implement aws_security_group_rules_defaults middleware 2021-04-13 14:45:43 +02:00
sundowndev 2bd04d6fb7 feat: implement aws_security_group_defaults middleware 2021-04-13 14:45:43 +02:00
sundowndev eb10e9cd69 refactor: usage of strict mode 2021-04-13 14:45:43 +02:00
sundowndev 54018e6b52 test(middlewares): ignore aws iam defaults 2021-04-13 14:42:36 +02:00
sundowndev f2ff032b85 feat: implement aws_iam_role_defaults middleware 2021-04-13 14:42:36 +02:00
sundowndev 2ca48d4e65 feat: implement aws_iam_role_policy_defaults middleware 2021-04-13 14:41:23 +02:00
sundowndev 4371dec865 feat: add CLI strict flag 2021-04-13 14:40:07 +02:00
sundowndev c542a4063d refactor(analyser): rename total_drifted to total_changed 2021-04-13 14:40:07 +02:00
sundowndev 724975fb72 fix: false positive on field InstanceInitiatedShutdownBehavior 2021-04-13 14:40:07 +02:00
Martin Guibert 1ee31b4679 Fix #409
- Ignore directory (size <= 0) when listing bucket object
- Add test for empty directory
2021-04-13 14:40:07 +02:00
sundowndev 5f60cf44bc refactor: simplify middleware code
following code review feedback. pkg/middlewares/aws_route_table_expander.go
2021-04-13 14:40:07 +02:00
sundowndev 257c1260dd refactor: create routeExists method 2021-04-13 14:40:07 +02:00
sundowndev 0dd062b7db fix: false positive on aws routes 2021-04-13 14:38:33 +02:00
sundowndev e7994fb81f test: update golden files for iam_role_policy_attachment 2021-04-13 14:12:03 +02:00
sundowndev 291659df05 refactor(aws): NormalizeForState method 2021-04-13 14:02:50 +02:00
sundowndev b4f6dc9ef7 test(acc): delete useless resource assets 2021-04-13 14:02:50 +02:00
Louis TOUSSAINT f8102fa326 Issue 366: Fix false positive on aws_iam_policy_attachment 2021-04-13 14:02:50 +02:00
Raphaël d7fc812cf8 chore: fix a typo in comment 2021-04-13 14:02:50 +02:00
Louis TOUSSAINT f6479c334d Issue 375: Fix false positive for route53_record Records and Ttl field +
typo
2021-04-13 14:02:50 +02:00
Louis TOUSSAINT 298b2cfee4 Issue 375: Add test to check route53_record with null records field 2021-04-13 14:02:50 +02:00
Louis TOUSSAINT a087e3af65 Issue 375: Fix pointer on aws_route53_record Records field to avoid crash when it's null 2021-04-13 14:02:50 +02:00
Louis TOUSSAINT cfc81b766a Typo in pkg/middlewares/route53_records_test.go 2021-04-13 14:02:50 +02:00
Elie 9ec8c14156 Truncate file when opening file in json output 2021-04-13 14:02:50 +02:00
sundowndev 64050b34f9 fix(resource): ignore FinalSnapshotIdentifier field 2021-04-13 14:02:50 +02:00
sundowndev b8113671d8 test(analyser): fix sorting in expected result 2021-04-13 14:02:50 +02:00
sundowndev a637de6f8c refactor: sort difference's changelogs 2021-04-13 14:02:50 +02:00
sundowndev fa9132f14c fix: resource diff sorting 2021-04-13 14:02:50 +02:00
sundowndev 753dd50286 test(analyser): enable slice ordering 2021-04-13 14:01:35 +02:00
Louis TOUSSAINT 32daca00c4 Issue 371: RePrint p.count.load to display last number of resources scanned and hide animation character when progress bar end 2021-04-13 14:01:35 +02:00
sundowndev 01a637f494 refactor(cmd): rename deleted to missing in json output 2021-04-13 14:01:35 +02:00
sundowndev 03fc4062be test: scan output 2021-04-13 14:01:35 +02:00
sundowndev 6ff780ce51 refactor(cmd): more human readable output 2021-04-13 14:01:35 +02:00
Louis TOUSSAINT afb9c9a648 Issue 367: Add details to error reporting flag in help message, similar to driftctl-docs 2021-04-13 14:01:35 +02:00
Louis TOUSSAINT 0c07b278ef Issue 369: Remove LastModified field for aws_lambda_function from drift reports 2021-04-13 14:01:35 +02:00
sundowndev a348019115 chore: fix lint errors 2021-04-13 14:01:35 +02:00
Raphaël ff0ffcb5d7 fix(analyser): link to docs about limitations 2021-04-13 14:01:35 +02:00
William Beuil d797d35d7a
Testing middlewares that create resources 2021-04-08 11:58:37 +02:00
sundowndev c262472255 refactor: http request error handling 2021-04-07 15:12:30 +02:00
sundowndev 1fda9be6f4 refactor: use proper errors pkg 2021-04-07 14:11:18 +02:00
sundowndev fc43dcd211 fix: return error on bad http status code 2021-04-07 14:11:18 +02:00
Elie 2b71c8e650 Add resource factory 2021-04-06 16:43:35 +02:00
Elie 7c112a8bfe Add tests for driftctl 2021-03-31 17:53:36 +02:00
William Beuil 0881b44577
Refactoring to filter on Cty.Value 2021-03-29 10:28:39 +02:00
Elie e238772b70 Revert "Disable event source mapping acc test in CI"
This reverts commit 4ac3ca9e59.
2021-03-26 09:55:31 +01:00
Martin Guibert eaef50ce9b remove table replica to speed up acc tests 2021-03-25 11:34:23 +01:00
Elie cf5ab98f83 Add more timeout for dynamodb table creation 2021-03-25 11:05:19 +01:00
Elie 4ac3ca9e59 Disable event source mapping acc test in CI 2021-03-25 11:00:25 +01:00
sundowndev 06f7d4f110
test: analyser package 2021-03-22 12:08:53 +01:00
sundowndev b36fdaea1c
test: analyser package 2021-03-22 12:02:06 +01:00
sundowndev a714bab62a
fix: sort method 2021-03-22 11:59:09 +01:00
sundowndev 7c7d24f76a
test: sorting resources by type & id 2021-03-22 11:35:23 +01:00
sundowndev 286a07520c
refactor: use new differ ordering 2021-03-22 11:17:50 +01:00
sundowndev eba0839c6e
refactor: use SliceStable instead of Slice method 2021-03-22 10:16:25 +01:00
sundowndev edb5de32c0
test: remove duplicate test case 2021-03-19 19:24:04 +01:00
sundowndev 77a8227a4d
refactor: sort resources in a predictable order 2021-03-19 19:20:57 +01:00
William BEUIL 3da401a0cc
Merge branch 'main' into issue_232_lotoussa 2021-03-18 15:24:50 +01:00
sundowndev 925decb2ba Merge branch 'fix/filterS3' of github.com:cloudskiff/driftctl into fix/filterS3 2021-03-18 13:49:32 +01:00
sundowndev 9d09280ec7 test: cleanup mocks 2021-03-18 13:49:25 +01:00
sundowndev 8acdf14cd6 test: cleanup mocks 2021-03-18 12:37:27 +01:00
sundowndev 4736958777 test: cleanup mocks 2021-03-18 12:34:43 +01:00
sundowndev 58bd84c438 test: cleanup mocks 2021-03-18 12:28:50 +01:00
sundowndev 357005ed7b test: cleanup mocks 2021-03-18 12:26:34 +01:00
Raphaël 93337c3280
Merge branch 'main' into fix/filterS3 2021-03-18 12:14:05 +01:00
sundowndev ca3cabe7e8 fix(remote): aws s3 bucket notification supplier
Add filter on resources based on region
2021-03-18 12:12:34 +01:00
sundowndev 1bebec138d fix(remote): aws s3 bucket analytic supplier
Add filter on resources based on region
2021-03-18 12:10:46 +01:00
sundowndev 038116e7bf fix(remote): aws s3 bucket metrics supplier
Add filter on resources based on region
2021-03-18 12:08:21 +01:00
sundowndev 7e52ef5c76 fix(remote): aws s3 bucket inventory supplier
Add filter on resources based on region
2021-03-18 12:04:58 +01:00
sundowndev 95bc5220fb fix(remote): aws s3 bucket policy supplier
Add filter on resources based on region
2021-03-18 11:59:52 +01:00
Elie 94032a0b8a
Merge branch 'main' into feat/HTTPBackend 2021-03-18 11:31:19 +01:00
Elie 7928a4902d
Fix missing mock on golden file update 2021-03-18 11:20:14 +01:00
sundowndev a113ab5032 Merge branch 'fix/filterS3' of github.com:cloudskiff/driftctl into fix/filterS3 2021-03-18 11:09:51 +01:00
sundowndev 2d469ca5d9 test: aws s3 bucket supplier 2021-03-18 11:09:36 +01:00
Raphaël b4bd18fd5d
Merge branch 'main' into fix/filterS3 2021-03-17 19:53:50 +01:00
sundowndev 2c2a9281d9 test: update s3 bucket golden result 2021-03-17 19:52:04 +01:00
sundowndev 59118f5100 refactor: filter buckets before reading resource 2021-03-17 19:38:58 +01:00
Raphaël 1ce61ece42
refactor: fix a typo in CLI options 2021-03-17 18:35:23 +01:00
Raphaël c12dd10b3b
Merge branch 'main' into feat/HTTPBackend 2021-03-17 18:33:51 +01:00
sundowndev 23d739f75a refactor: revert ordering imports 2021-03-17 18:18:34 +01:00
Martin Guibert 53103f667c when sns subscitpion is pending prevent crash and show an alert 2021-03-17 17:59:02 +01:00
sundowndev 1b4d21d598 refactor: remove unused GetConfig method 2021-03-17 17:35:01 +01:00
sundowndev 460ac9f767 fix: filter out s3 buckets from different regions 2021-03-17 17:23:36 +01:00
Elie 2ed311e10d
Fix race conditions when using multiples runners in a single supplier 2021-03-17 16:55:34 +01:00
sundowndev 1155e7c89f refactor: use structured logging 2021-03-17 14:31:19 +01:00
sundowndev 3d8740a921 fix: remove provider initialization message
Fixes #337 - Move the message to debug logs instead of standard logs since it's confusing for the user when scanning.
2021-03-17 14:15:14 +01:00
sundowndev 2a3a8cd122 refactor(cmd): rename header option to headers
headers is more relevant since it's about adding multiple headers at a time.
2021-03-17 13:54:33 +01:00
sundowndev 601fc16a45 Merge branch 'main' into feat/HTTPBackend 2021-03-17 12:23:02 +01:00
Martin Guibert d8665726b9 fix race condition on progress that could cause deadlock 2021-03-17 10:14:43 +01:00
sundowndev 78a2316fd8 Merge branch 'main' into feat/HTTPBackend 2021-03-16 17:10:54 +01:00
Elie 04756eb960
Merge branch 'main' into fix/random_res_nam_acc 2021-03-16 16:58:54 +01:00
sundowndev 4d9f8fa60b chore: fix merge conflict 2021-03-16 16:48:07 +01:00
sundowndev e91ad26591 test: update scan & supplier tests
to include tfstate+http and tfstate+https schemes
2021-03-16 16:35:28 +01:00
Martin Guibert 28d3a6df7e Add progress service that display a spinner until stopped or timeouted 2021-03-16 16:35:20 +01:00
sundowndev 0ad9ac7050 chore: fix lint errors 2021-03-16 16:29:32 +01:00
sundowndev fbb78673f1 feat: create backend options to send HTTP headers
Some users may want to send headers along with the request, for example when authorization is requred.
2021-03-16 16:21:28 +01:00