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
Martin Guibert
6e67a5d832
add date to res names for dynamo and lambda event source mapping
2021-03-16 15:24:32 +01:00
sundowndev
ce1e9ec82b
feat(backend): implement http(s) backend
2021-03-16 11:57:48 +01:00
Louis TOUSSAINT
0257b69bd2
Issue 232: Add tests to follow wildcard match checker updates
2021-03-15 12:44:33 +01:00
Louis TOUSSAINT
9780bdf725
Issue 232: Update DriftIgnore to implement new wildcard match checker
2021-03-15 12:44:33 +01:00
Martin Guibert
f31a8a8395
Use printer to not break output isolation
...
added pinter interface to print info
json output use void printer is the path output it stdout
2021-03-15 12:03:35 +01:00
Elie
618b8edad7
Change error message to avoid unrelated error grouping on sentry
2021-03-12 16:47:05 +01:00
Elie
16a3c44624
Merge branch 'main' into fix_aws_db_instance
2021-03-11 11:12:11 +01:00
Elie
64ee24ced8
Fix false positive drift on aws_db_instance
2021-03-11 11:02:20 +01:00
Elie
8769517c49
Fix false positive in aws_db_subnet_group
2021-03-11 10:56:50 +01:00
Louis TOUSSAINT
d6595ff9f1
Issue 274: Add line number to logger when encounter invalid driftignore line
2021-03-09 11:59:39 +01:00
Martin Guibert
35dc02099f
add pointer to user roles and groups
...
users, roles and groups can be nil but gocty refuse to deserialize in
this case
2021-03-04 17:44:46 +01:00
Elie
2c1ae57cef
Fix typo in github enumeration error
2021-03-03 11:05:36 +01:00
Elie
cb986f573d
Merge branch 'main' into handle_github_listing_error
2021-03-03 10:32:29 +01:00
Elie
c70fb41f6b
Merge branch 'main' into issue_151_lotoussa
2021-03-02 15:58:38 +01:00
Elie
1c34d869ed
Merge branch 'main' into add_github_branch_protection
2021-03-02 15:47:18 +01:00
Elie
7d0a28c6e8
Add github_branch_protection
2021-03-02 15:45:21 +01:00
Louis TOUSSAINT
36ffed55c9
Issue 151: Rename ListAllRepositories
2021-03-02 15:25:03 +01:00
Louis TOUSSAINT
11437d03da
Issue 151: Add ecr_repository resource tests
2021-03-02 15:25:03 +01:00
Louis TOUSSAINT
cf634bfd54
Issue 151: Add ecr_repository resource
2021-03-02 15:25:01 +01:00
Martin Guibert
0933a6a642
add support for aws_lambda_source_event_mapping
2021-03-02 14:44:51 +01:00
Elie
350d8399a8
Handle enumeration error from multiples providers
2021-03-02 14:16:49 +01:00
William Beuil
0287ab12b2
Updates
2021-03-02 12:36:57 +01:00
William Beuil
59998620da
Add github_team_membership
2021-03-02 12:36:57 +01:00
Elie
ba8f950aad
Add github membership
2021-03-01 15:05:18 +01:00
Elie
c90da70b56
Allow to use a whole local directory as IaC source
2021-02-26 12:41:50 +01:00
William Beuil
839ae746e7
Add kms_alias
2021-02-25 14:19:49 +01:00
Elie
e76a8e432b
Merge branch 'main' into res/kms_key
2021-02-25 10:54:51 +01:00
Elie
c7155f2c5b
Add github_team
2021-02-25 10:49:46 +01:00
William Beuil
30a9d5cc2d
Add kms_key
2021-02-25 10:44:37 +01:00
Elie
a1d84e1f7d
Merge branch 'main' into fea/refacto_rds_repository
2021-02-25 10:34:07 +01:00
Elie
a3d21be021
Merge branch 'main' into fea/refacto_lamda_repository
2021-02-25 10:28:31 +01:00
Elie
9f2ac63469
Merge branch 'main' into fix/cloudfront
2021-02-25 10:14:27 +01:00
Elie
1c7778477c
Merge branch 'main' into allow_prefix_usage_in_iac_source_for_s3
2021-02-25 10:05:59 +01:00
Martin Guibert
922626c77c
refacto rds supplier and test to use mock and repository
2021-02-24 17:29:57 +01:00
Martin Guibert
984b8feee7
refacto lambda supplier and test to use mock and repository
2021-02-24 16:31:23 +01:00
William Beuil
e515c8195f
Update normalization
2021-02-24 15:13:17 +01:00
Elie
5bf6a4ad7a
Add acc test
2021-02-24 14:19:08 +01:00
Elie
69345a5c34
Add state enumerator
2021-02-24 14:18:59 +01:00
Martin Guibert
700879714a
refacto ec2 to use repository
2021-02-23 18:47:42 +01:00
Martin Guibert
c46096018e
refacto route53 to use repository everywhere
2021-02-22 14:14:47 +01:00
Elie
76d98ed8e7
Remove custom mock and add repository for S3
2021-02-18 17:56:48 +01:00
Elie
2f0cc304ae
Fix bucket location returns EU for buckets in eu-west-1
2021-02-18 17:29:31 +01:00
Elie
68d0dbc5f5
Remove fullname display for GH repos
2021-02-18 16:29:22 +01:00
Elie
08ee8b55f3
Fix mistake tests ...
2021-02-18 16:01:22 +01:00
Elie
a2e96bb962
Fix mistake
2021-02-18 15:59:45 +01:00
Elie
0c06dfa26a
Merge branch 'main' into go1.16
2021-02-18 15:04:16 +01:00
Martin
22d618f009
Merge branch 'main' into res/cloudfront
2021-02-18 13:31:29 +01:00
Louis TOUSSAINT
1562b4bea7
Issue 226: Update alerter pkg to fit with the Alert interface implementer
2021-02-18 11:23:56 +01:00
Louis TOUSSAINT
4fbb62c377
Issue 226: Update output_test to fit with the Alert interface implementer, also add access denied alert test for output console and json
2021-02-18 11:23:56 +01:00
Louis TOUSSAINT
c426e4827a
Issue 226: Update aws_route_table_expander to implement Alert interface
2021-02-18 11:23:56 +01:00
Louis TOUSSAINT
0aef6f3184
Issue 226: Update resource_enumeration_error_handler to implement Alert
...
interface
2021-02-18 11:23:56 +01:00
Louis TOUSSAINT
b63533b2df
Issue 226: Update console output to display policy if an access denied
...
is encountered
2021-02-18 11:23:56 +01:00
Louis TOUSSAINT
1ea69565fb
Issue 226: Update analyzer pkg to implement Alert interface
2021-02-18 11:23:55 +01:00
Louis TOUSSAINT
399a2c3d58
Issue 226: Modify Alert type to interface and add serializable Alert
...
struct
2021-02-18 10:55:55 +01:00
Elie
db3430921f
Update to go 1.16
2021-02-18 10:16:18 +01:00
William Beuil
476c6c62db
Add cloudfront_distribution resource
2021-02-17 15:52:09 +01:00
Martin Guibert
f18ce79086
add support for route53 health check
2021-02-16 18:54:04 +01:00
Elie
2112ef7ada
Remove useless struct
2021-02-16 17:35:42 +01:00
Elie
56a60d9898
Better mocks
2021-02-16 17:35:41 +01:00
Elie
cf531bc0a6
Add support for github_repository
2021-02-16 10:56:30 +01:00
Elie
e137537596
Add a name to terraform provider
2021-02-16 10:56:29 +01:00
William Beuil
b9150d5d2d
Warn on unmanaged security group rules
2021-02-15 15:49:20 +01:00
Elie
8e72b0fc7a
Remove useless provider add in test
2021-02-12 17:05:42 +01:00
Elie
59c061d2f6
Fix aws suppliers and tests to use new provider
2021-02-12 16:29:39 +01:00
Elie
cf5d3d1f6d
use generic AZ attribute in suppliers
2021-02-12 16:18:27 +01:00
Elie
0749c72024
Create generic terraform provider
2021-02-12 16:18:26 +01:00
Martin
faaf4a3ff1
Merge branch 'main' into fea/dymabodb_table
2021-02-12 10:24:59 +01:00
Martin Guibert
73ffe8280f
add support for dynamodb_table
2021-02-11 18:18:08 +01:00
Elie
8bf44f9462
Merge branch 'main' into plugin_log_improvment
2021-02-11 14:55:00 +01:00
Elie
31a3cf52d1
Add new logger for terraform plugin
2021-02-10 15:04:07 +01:00
Elie
74f9a2cdfc
Merge branch 'main' into better_error_handling
2021-02-10 15:00:34 +01:00
Elie
5e0484ac9d
Use errors.Errorf
2021-02-10 14:37:59 +01:00
Martin Guibert
5be35dbb0f
add polling for sns acc tests
2021-02-10 10:59:37 +01:00
Elie
ca7694084e
ignore usage errors from sentry capture
2021-02-09 22:19:24 +01:00
Elie
eddb5a9485
make driftctl Run() return proper error
2021-02-09 19:44:27 +01:00
Elie
b2cf465aeb
Use pkg/errors to view stack on sentry
2021-02-09 19:43:39 +01:00
Elie
e30ab6eb2b
Fix acc test lockfile diffs
2021-02-09 18:12:49 +01:00
Elie
3dacdc8fea
Merge branch 'main' into issue_184_lotoussa
2021-02-09 14:01:14 +01:00
Louis TOUSSAINT
2e0a36e9d8
ISSUE 184: Create test file for aws_iam_access_key stringer
2021-02-09 13:29:35 +01:00
Louis TOUSSAINT
9679667bda
ISSUE 184: Improve aws_iam_access_key_ext output by creating stringer
2021-02-09 11:00:28 +01:00
Martin Guibert
0916a37d7e
fix policies in topic subscription not beeing tag as jsonstring
2021-02-09 10:52:27 +01:00
Elie
9f93dcee2a
Merge branch 'main' into remove_aws_from_provider_install
2021-02-09 10:25:54 +01:00
Elie
bc8b1f53a0
Merge pull request #228 from cloudskiff/fix_default_drift_sns_topic
...
Fix false positive drifts on aws_sns_topic
2021-02-08 18:43:14 +01:00
Elie
2f7fa28622
Fix false positive drifts on aws_sns_topic
2021-02-08 18:38:57 +01:00
Elie
03af2ca770
Fix policy displayed inline
2021-02-08 18:36:20 +01:00
Elie
792d09cd0b
Make provider install and download independent from aws
2021-02-08 16:42:35 +01:00
Elie
a956cf938a
Merge branch 'main' into issues_79_lotoussa
2021-02-08 15:35:19 +01:00
Louis TOUSSAINT
d28dd21345
ISSUE 79: Rewrite humanString statement in console.go
2021-02-08 15:26:13 +01:00
Louis TOUSSAINT
04039f7aff
ISSUE 79: Create a more readable aws_route53_zone output
2021-02-08 13:46:36 +01:00
Louis TOUSSAINT
738d2234ee
ISSUE 79: Create a more readable aws_route53_record output
2021-02-08 13:46:32 +01:00
Martin Guibert
18f7ad6bb8
add support for aws_sns_topic_subscription
2021-02-08 12:09:38 +01:00
Elie
bc0c052f4b
Merge branch 'main' into fix_s3_acc_test_collisions
2021-02-05 16:15:41 +01:00
Elie
14e742a4e6
Add random string in s3 acc test bucket name
2021-02-05 16:07:21 +01:00
Martin Guibert
7041cf12e5
add support for sns_topic_policy
...
modify sns_topic support so that we create sns_topic_policy for inline
policy
2021-02-05 14:08:28 +01:00
Elie
f87d3e4691
Merge branch 'main' into handle_invalid_routes_in_table
2021-02-05 13:42:18 +01:00
Elie
5b9b70c525
Remove reference used in loops
2021-02-04 22:45:10 +01:00
William Beuil
dcee6fd6b3
Add retry mechanism for polling, use it to poll sqs queues during acc tests
2021-02-04 22:16:18 +01:00
Martin Guibert
06469bd62d
add acceptency test
2021-02-04 09:37:33 +01:00
Martin Guibert
dad6bbff73
fix doc, add aws permissions for sns topics
2021-02-04 09:37:33 +01:00
Martin Guibert
740b872e01
update test, stringer for sns topic, refacto client into repository
2021-02-04 09:36:42 +01:00
Martin Guibert
7351511dd1
add support for sns_topic
2021-02-04 09:36:42 +01:00
William Beuil
0d738f9dc4
Update SQS suppliers and tests
2021-02-03 21:08:57 +01:00
William Beuil
d3c542c004
Add aws_sqs_queue_policy
2021-02-03 20:52:52 +01:00
William Beuil
ad5ad4cc76
Add aws_sqs_queue
2021-02-03 20:52:51 +01:00
Elie
04fe9c4d40
Fix unexpected deleted resources in acceptance tests
...
Cobra cmd seems to return flag twice when executed multiples times
2021-02-03 19:20:21 +01:00
Elie
a8f0300405
Handle invalid route crash in middlewares
2021-02-03 16:24:55 +01:00
Elie
aacf6c6768
Make sentry attach stack for every report
2021-02-03 15:49:26 +01:00
Elie
8963a4c029
Add CI config to schedule acceptance tests
2021-02-02 18:48:39 +01:00
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
William Beuil
563f1a9ed3
Fix records that has the same FQDN
2021-01-06 14:44:09 +01:00
Elie
896edb91d8
Ignore unknown attributes error in state
2021-01-06 12:38:53 +01:00
Elie
28b44e57d7
Capture panic in // runner and fwd to sentry
2021-01-06 09:56:42 +01:00
Elie
e77a5b390a
Remove invalid chars in filenames (for windows)
2021-01-05 17:42:34 +01:00
Elie
12db6eeb40
Merge branch 'main' into add_crash_reporting
2021-01-05 15:30:31 +01:00
Elie
efb5fddf5a
Add sentry error reporting
2021-01-05 15:19:08 +01:00
Elie
88b1379730
Fix test execution failed on darwin
2021-01-05 14:38:42 +01:00
William BEUIL
c4484dce8d
Merge branch 'main' into fix_broken_ignore
2021-01-04 18:08:12 +01:00
Elie
1d71ca53a2
Merge branch 'main' into fix/route-53
2021-01-04 16:40:45 +01:00
Elie
ced1260898
Fix broken driftignore
2021-01-04 16:19:34 +01:00
William Beuil
1bde15eb6c
Add acceptance test
2021-01-04 15:51:22 +01:00
Elie
6aceaff771
Some review fixes
2021-01-04 14:40:19 +01:00
William Beuil
98d1021505
Rely on the FQDN to compare two route53 records
2021-01-04 13:47:02 +01:00
Martin Guibert
2a363841ed
refactor effective filtering into analyzer
2020-12-23 15:58:38 +01:00
Martin Guibert
42207e3be1
add ability to ignore field drift
2020-12-23 14:53:16 +01:00
William BEUIL
4a3ef8751e
Merge branch 'main' into fix/fail_on_bad_fmt
2020-12-23 11:13:52 +01:00
Martin Guibert
1adac9f085
fix formatting issues
2020-12-23 10:56:56 +01:00
William Beuil
539b525df5
Consistency across resources
2020-12-22 12:17:04 +01:00
Stephane Jourdan
69083d2739
fix minor typo reported by user
2020-12-19 09:48:56 +01:00
Elie
bbe91ffef0
Add aws vpc support
2020-12-17 18:26:37 +01:00
Elie
711ffde3a2
Add env to disable version check
2020-12-17 15:32:18 +01:00
Elie
2282ebadad
Avoid to display false positive drift on instances when eip attached
2020-12-14 12:22:29 +01:00
Stephane Jourdan
4f336a30a1
move deprecated version out of provider
2020-12-14 11:03:42 +01:00
Elie
f4714af0cc
Fix acceptance tests
...
- Better terraform error output
- Remove terraform version constraint in test files
2020-12-14 10:50:45 +01:00
Martin Guibert
23e7d14707
Add the same normalization from state and remote
2020-12-11 11:45:33 +01:00
Elie
ff72de8e77
🍾 Initial release
...
Co-authored-by: William BEUIL <william.beuil@cloudskiff.com>
Co-authored-by: Martin GUIBERT <martin@cloudskiff.com>
2020-12-09 16:35:26 +01:00