Commit Graph

2395 Commits (main)

Author SHA1 Message Date
Elie CHARRA 6c5e6787b0
fix: fix broken tests
Those tests were broken due to removal of SetResolveReadAttributesFunc.
Sometimes in those methods we were casting field from different types to string.
If we loose that case it causes some issues since in the detail fetcher we only take into account
strings attributes. To fix that I added some cast directly in the detail fetcher.
That should not cause any issues to retrieve details if we send additional (useless) fields to the
ReadResource call.
2022-08-01 10:53:33 +02:00
Elie CHARRA e7750bc00c
chore: Add test on driftctl side 2022-08-01 10:53:28 +02:00
Elie CHARRA 60d72cd67e
chore: add normalization pass for remote resources and fix tests 2022-07-28 11:49:58 +02:00
Elie CHARRA 34504d6147
chore: remove useless factory mock 2022-07-28 11:49:57 +02:00
Elie CHARRA f9065269e8
chore: move schema repo in driftctl 2022-07-28 11:49:56 +02:00
Elie CHARRA 1ece051636
chore: moved metadata to driftctl 2022-07-28 11:49:55 +02:00
Elie CHARRA 1412896203
chore: remove usage of ResolveReadAttributesFunc 2022-07-28 11:49:54 +02:00
Elie 1b23b4e2c4
Merge pull request #1571 from snyk/chore/google_storage_bucket_iam_member_acc_test
Add retry backoff to google_storage_bucket_iam_member acceptance test
2022-07-28 09:52:55 +02:00
sundowndev-snyk 4089347b6b
chore: add retry backoff to acc test
TestAcc_Google_StorageBucketIAMMember
2022-07-27 15:52:21 +04:00
Raphaël 351e2164dc
Merge pull request #1563 from snyk/feat/tfstate-discovery-tfc
State discovery for Terraform cloud
2022-07-25 19:25:07 +04:00
Elie 90a15f9463
Merge pull request #1569 from snyk/chore/resolve-vuln-gopkg.in/yaml.v3
fix: update gopkg.in/yaml.v3 version to resolve vuln and go mod tidy
2022-07-25 16:43:06 +02:00
Karni Wolf 07d7608e96
fix: update gopkg.in/yaml.v3 version to resolve vuln and go mod tidy 2022-07-25 17:32:58 +03:00
Elie 6a871acd30
Merge pull request #1566 from snyk/fix/azurerm_storage_container_notsupportedforaccount
fix: fix #1558 by ignoring FeatureNotSupported
2022-07-19 16:49:16 +02:00
Martin Guibert 8c8b8cad91
fix: fix #1558 by ignoring FeatureNotSupported 2022-07-19 16:42:56 +02:00
sundowndev-snyk cfd8c53a9d
refactor: add remain field to cloud workspaces block schema 2022-07-13 12:25:04 +04:00
sundowndev-snyk 58ae9ebafa
feat: state discovery for tfc 2022-07-13 11:55:31 +04:00
Raphaël 7e5c31f46d
Merge pull request #1562 from snyk/fix/tf-hcl-schema
Support tfstate discovering within workspaces
2022-07-12 16:36:01 +04:00
sundowndev-snyk 26ce6c8c88
refactor(hcl): delete useless test case 2022-07-12 16:25:19 +04:00
sundowndev-snyk cb5ab70559
refactor: use workspace name in azurerm backend 2022-07-12 14:21:26 +04:00
sundowndev-snyk f4a92e7b32
fix: state path in s3 backend 2022-07-12 14:14:55 +04:00
sundowndev-snyk 7ded2d22eb
refactor: backend to supplier config
Parse workspace name first then pass it to the SupplierConfig function, so we don't it once and do not have to store it anywhere. Also add a test case for unknown backend.
2022-07-12 11:07:48 +04:00
sundowndev-snyk ec5190fa94
fix: tfstate discovering 2022-07-11 17:47:28 +04:00
Elie 172e12119c
Merge pull request #1554 from snyk/chore/extracted_enumeration
Extract enumeration to it's own module
2022-07-07 16:20:09 +02:00
Elie CHARRA 3c7a52b13c
chore: fix mess with alerter2 imports 2022-07-07 16:16:13 +02:00
Elie CHARRA 5659a8ee4b
chore: fix mess with google2 imports 2022-07-07 16:16:12 +02:00
Elie CHARRA 2aa8d7305e
chore: fix mess in GCP repos imports 2022-07-07 16:16:11 +02:00
Elie CHARRA 034b82e2e9
chore: fix mess with github2 imports 2022-07-07 16:16:10 +02:00
Elie CHARRA 83be84efb4
chore: fix mess with azurerm2 imports 2022-07-07 16:16:09 +02:00
Elie CHARRA 81f2efb96b
chore: fix mess with terraform3 imports 2022-07-07 16:16:08 +02:00
Elie CHARRA 26fd9aa21e
chore: fix mess with aws2 imports 2022-07-07 16:16:07 +02:00
Elie CHARRA 066aed9785
chore: fix mess with terraform2 imports 2022-07-07 16:16:06 +02:00
Elie CHARRA 9392281176
chore: fix mess with common imports 2022-07-07 16:16:05 +02:00
Elie CHARRA 4fcd0e8685
chore: fix mess with repository imports 2022-07-07 16:16:05 +02:00
Elie CHARRA 7fcbbf915f
chore: mess with cache imports 2022-07-07 16:16:04 +02:00
Martin Guibert dc58f94ce9
chore: extract enumeration to it's own submodule 2022-07-07 16:16:03 +02:00
Elie 516609f12d
Merge pull request #1560 from snyk/chore/google_compute_subnetwork_acc
Add retry backoff to google_compute_subnetwork
2022-07-07 10:12:30 +02:00
sundowndev-snyk 957b27a695
test(acc): add retry backoff to google_compute_subnetwork 2022-07-07 11:27:26 +04:00
Raphaël 84f8720321
Merge pull request #1559 from snyk/snyk-fix-6b8614071de4141486605de410592f0c
[Snyk] Security upgrade alpine from 3.15 to 3.16
2022-07-07 10:56:13 +04:00
snyk-bot e76ac5d5ed
fix: Dockerfile to reduce vulnerabilities 2022-07-06 20:06:50 +00:00
Raphaël 1f727eff03
Merge pull request #1555 from snyk/feat/state-discovery-hcl
Discover tfstate from hcl
2022-07-06 16:42:02 +04:00
Elie 8dab805805
Merge pull request #1557 from snyk/fix/better_aws_err_message
fix: Better error messages for AWS auth
2022-07-06 09:29:41 +02:00
Elie CHARRA 6b13f9012c
fix: Better error messages for AWS auth 2022-07-05 11:55:32 +02:00
Elie 66520e6bb3
Merge pull request #1553 from snyk/fix/aws_acc_tests
Add retry to kms acc tests
2022-07-04 15:49:34 +02:00
sundowndev-snyk 8444e5a4fc
test: scan command
Add test suite for the retrieveBackendsFromHCL function
2022-07-04 16:52:19 +04:00
William BEUIL 7b5e045657
Merge pull request #1551 from snyk/fix/google_acc_tests
Add backoff retry to gcp acc tests
2022-06-28 15:04:08 +02:00
William Beuil eb36fc4a25
fix: add retry kms acc tests 2022-06-28 14:57:37 +02:00
sundowndev-snyk 95d3650e3f
chore: add backoff retry to gcp acc tests 2022-06-24 12:15:24 +04:00
sundowndev-snyk e9d00d1a89
feat: discover tfstate from hcl 2022-06-24 12:12:32 +04:00
Elie cde2d4c9af
Merge pull request #1550 from snyk/fix/ecr_repository_policy
fix: ecr repo without policy was crashing the whole execution
2022-06-23 16:17:47 +02:00
Elie CHARRA 39aa6d5909
fix: ecr repo without policy was crashing the whole execution 2022-06-23 16:11:39 +02:00