Commit Graph

76 Commits (7994c6fd8efd5dd6714712bd4d3b317c891d075c)

Author SHA1 Message Date
msfendourakis d9d1d01958 use continue instead of else to skip empty lines and comments 2021-02-01 14:37:57 +02:00
msfendourakis f926abe009 fix: add newline in the EOF 2021-02-01 14:11:14 +02:00
msfendourakis c8ad6d555a Merge branch 'main' into skip_driftignore_warns 2021-02-01 13:58:34 +02:00
msfendourakis 6884ca9477 skip comments or empty lines after scan 2021-02-01 13:56:47 +02:00
msfendourakis 7b822ec534 check if line is empty or commented out after scan 2021-02-01 13:35:25 +02:00
msfendourakis d0b72d0a32 add empty line and comment 2021-02-01 13:32:02 +02:00
Elie 5daec82ecc
Remove singleton to fix issues when chain multiples cmd run
We have some issue when running acceptance test, more generally
when we use to execute scan cmd multiples times.
We were using global singletons for provider and resources suppliers
managment which lead us to improper state in the second scan run.
We should avoid this in the future and make proper initialization of our
dependencies maybe using a dependency injection container.
2021-02-01 11:49:50 +01:00
msfendourakis 7b2db4ca87 skip warnings on commented out and empty lines 2021-02-01 12:24:44 +02:00
William BEUIL 31e20a1b88
Merge branch 'main' into acc_test_fixes 2021-01-29 18:38:58 +01:00
Elie f06a426f90
Fix acceptance test issues
- Set all test AZ to us-east-1
- Use terraform overriden env in PreCheck() to ensure mutations are
  executed with read write credentials
- Fix hidden error in aws_instance test (tag creation failure was not
  handled
- Minor fmt fix
2021-01-29 18:36:26 +01:00
Elie 61b81c209c
Merge branch 'main' into fea/alert_res_list 2021-01-29 16:29:34 +01:00
Elie 43dcb8609f
Merge branch 'v0.3' 2021-01-29 13:00:06 +01:00
Martin Guibert 95777b42c5 hotfix for multiple computed alert being send 2021-01-29 12:43:46 +01:00
Martin Guibert bebf5c887c alert and ignore when listing resources is forbidden 2021-01-29 10:19:52 +01:00
sshota0809 8da505153f Make DCTL_NO_VERSION_CHECK accept any value
Closed: #162

Signed-off-by: sshota0809 <8736380+sshota0809@users.noreply.github.com>
2021-01-29 18:15:31 +09:00
Elie 3618aa5769
Merge branch 'main' into fix/bucket_policy 2021-01-28 16:50:08 +01:00
Elie c4c5499cb6
Return exit code 1 when infrastructure not in sync 2021-01-28 14:34:21 +01:00
William Beuil 54a7bb211d
Middleware to explode inline policy 2021-01-28 10:37:59 +01:00
Elie aeafb861d7
Add support for terraform modules 2021-01-25 15:41:21 +01:00
Elie 554f6c7736
Merge branch 'main' into fix_iam_user_false_positive 2021-01-25 11:36:29 +01:00
Elie 046c4ae04f
Fix false positive drift on aws_iam_user 2021-01-25 11:35:17 +01:00
Martin 1c92f12c54
Merge branch 'main' into fea/send_one_aler_computed 2021-01-22 14:38:38 +01:00
Martin Guibert e47075729c only send one alert for computed fields 2021-01-22 14:37:24 +01:00
Elie 639b9b2725
Merge branch 'main' into completion 2021-01-22 11:45:26 +01:00
William Beuil fad0147566
Add middleware 2021-01-22 11:32:56 +01:00
William Beuil 814eb1a692
Updates 2021-01-22 11:10:11 +01:00
William Beuil ecb1007a62
Completion command with tests 2021-01-22 10:57:27 +01:00
Martin Guibert 7db31a1399 only sent one alert for computed fieds 2021-01-21 18:05:29 +01:00
William Beuil 734adf5cea
Add aws_internet_gateway resource 2021-01-21 16:00:16 +01:00
Elie 4543525f16
Merge branch 'main' into add_aws_nat_gateway 2021-01-21 15:28:50 +01:00
Elie 24ae387019
Remove unwanted resources from IaC test 2021-01-21 10:44:07 +01:00
Elie 4faab489d2
Add aws_nat_gateway 2021-01-21 09:53:04 +01:00
Elie 211cd53f8d
Add route_table_association 2021-01-20 13:50:32 +01:00
Elie 81c608973b
Add support for multiples IaC sources 2021-01-18 17:56:21 +01:00
William Beuil ddfb22263f
Refactor isDefaultSecurityGroup function 2021-01-15 17:03:16 +01:00
William Beuil bd233350a9
Add aws_default_security_group 2021-01-15 17:03:16 +01:00
Elie 3eb84e0500
Add aws_route, aws_route_table, aws_default_route_table support 2021-01-14 18:23:59 +01:00
Elie 6508ed4ec9
Fix a weakness in analyzer 2021-01-14 18:17:34 +01:00
Elie 7662214f95
Merge branch 'main' into fix_useless_exported_fields 2021-01-11 19:58:40 +01:00
Elie c457f125e2
Remove useless exports in VPC supplier 2021-01-11 18:18:55 +01:00
Elie 06abff67ba
Add support for aws_subnet and aws_default_subnet 2021-01-11 18:16:16 +01:00
William Beuil 011b380fcf
Review updates 2021-01-11 17:34:04 +01:00
William Beuil 71d0d7d224
Change computed field logic 2021-01-11 17:34:04 +01:00
William Beuil 8e5b6de9b2
Add alerting 2021-01-11 17:34:04 +01:00
Elie 5e6288000f
Start by reading IaC before enumerate cloud resources
Ensure IaC source are valid prevent us to fail after a potentially long
running cloud resources scan.
2021-01-08 12:10:25 +01:00
Elie 1a05e3ef33
Merge branch 'main' into fix_crash_for_s3_buckets 2021-01-07 10:18:36 +01:00
Elie 8a06eaa318
Fix crash for buckets in us-east-1 2021-01-07 10:06:08 +01:00
Elie c83b538d6a
Several improvements on acceptance tests
- Add filter on aws_instance test
- Add terraform locks
- Do not run terraform init if already done previously
- Do not use chdir in tests (it could cause race if we want to switch to parallel tests, uses --from arg instead)
- Handle terraform destroy errors
2021-01-06 17:57:32 +01:00
Elie 97575cb27f
Make driftignore fields case-insensitive 2021-01-06 15:59:01 +01:00
Elie 7d6b6a86f8
Merge branch 'main' into fix/records 2021-01-06 14:48:05 +01:00