Commit Graph

1265 Commits (81f2efb96b1e3cad4132c31030519b3877acc465)

Author SHA1 Message Date
Elie 582ffa36e3
fix: Fix middleware to avoid false positive unmanaged 2022-04-08 14:04:04 +02:00
Elie 603519a759
Merge pull request #1469 from snyk/fix/html_output_date
Add date to JSON-serialized analysis
2022-04-08 10:33:57 +02:00
Elie cef4776a81
Merge pull request #1470 from snyk/test/aws_lb
Add missing manifests for aws_lb acc test
2022-04-08 10:31:48 +02:00
Elie 5a2aae91a4
Merge pull request #1468 from snyk/fix/e2e_tests
Add retry logic to acc tests
2022-04-08 10:31:03 +02:00
Elie e600615a0a
feat: add `aws_s3_bucket_public_access_block` 2022-04-08 10:12:40 +02:00
sundowndev-snyk cbd69834a4
chore: add missing maniests for aws_lb acc test 2022-04-08 11:01:58 +04:00
sundowndev-snyk de675f21b7
fix: add date to serialized analysis
Some outputs need the scanning date, which is missing when the analysis is serialized. So there's an invalid date when outputing to HTML with the fmt command.
2022-04-08 10:56:15 +04:00
Raphaël 55069c7bbd
Merge pull request #1466 from snyk/fix/metadata_test
chore: missing test
2022-04-08 10:11:30 +04:00
William Beuil 8400a9840d
fix: add retry logic to acc tests 2022-04-07 15:23:19 +02:00
William Beuil 8a1566f070
chore: missing test 2022-04-07 14:16:54 +02:00
sundowndev-snyk c42fc3dc34
test(aws): aws_lb
Delete unnecesary files and improve tests for that resource.
2022-04-07 15:08:54 +04:00
sundowndev-snyk 523b24f977
feat: add aws_lb & aws_alb 2022-04-07 11:56:02 +04:00
sundowndev-snyk c508c36af7
fix: remove break in aws_ebs_encryption_by_default_reconciler 2022-04-05 17:38:55 +04:00
William BEUIL 6546ae4091
Merge pull request #1463 from snyk/fix/aws_ebs_encryption_by_default_reconciler
Fix panic in aws_ebs_encryption_by_default_reconciler middleware
2022-04-04 17:41:44 +02:00
Elie 2e31ee5530
Merge pull request #1458 from snyk/feat/add_aws_iam_group_policy
feat: add support for `iam_group_policy`
2022-04-04 15:45:03 +02:00
sundowndev-snyk 9c5f0cd9ed
fix: panic in aws_ebs_encryption_by_default_reconciler middleware 2022-04-04 17:28:59 +04:00
Elie 0270e7c574
Merge pull request #1462 from snyk/test/azurerm_image
Add retry policy to azurerm_image
2022-04-04 15:25:17 +02:00
sundowndev-snyk ee6d2679e1
test(azurerm): add retry policy to azurerm_image 2022-04-04 17:13:12 +04:00
William Beuil ec8f2e6ecc
fix: add missing defer to cache.Unlock 2022-04-04 11:59:03 +02:00
sundowndev-snyk 44180707f0
refactor(middlewares): improve godoc for AwsEbsEncryptionByDefaultReconciler
Also reorganize enumerators in aws/init.go
2022-04-04 10:19:20 +04:00
sundowndev-snyk 9d4d7e9f2f
refactor(middlewares): report unmanaged encryption by default setting when enabled 2022-04-04 10:19:19 +04:00
sundowndev-snyk 314a693dba
refactor(remote): remove useless details fetcher
For aws_ebs_encryption_by_default resource type.
2022-04-04 10:19:19 +04:00
sundowndev-snyk b08c6d55ef
feat: add aws_ebs_encryption_by_default 2022-04-04 10:19:19 +04:00
Elie 83907c6638
fix: Bad cache unlocks in IAM repo 2022-04-01 15:43:30 +02:00
Elie bbedd4725c
feat: add support for `iam_group_policy` 2022-04-01 15:42:22 +02:00
Almog Ben-David d4515f8a0d
fix: PR review comments 2022-03-31 11:31:32 +03:00
Almog Ben-David e9f906e8fc
feat: google compute global forwarding rule 2022-03-30 22:09:37 +03:00
Elie dd64918ec7
Merge pull request #1449 from snyk/chore/remove_hints
Remove hint from the diagnostic output
2022-03-29 11:39:13 +02:00
Elie ed2867fe96
chore: remove hint from the diagnostic output 2022-03-29 11:21:24 +02:00
sundowndev-snyk 365cc353e5
refactor: make middleware name more human readable 2022-03-28 17:20:17 +04:00
sundowndev-snyk 9f4cf99e32 feat: add google_compute_instance_group_manager 2022-03-24 15:25:50 +04:00
Elie f02aaff446
Merge pull request #1437 from snyk/feat/google_compute_forwarding_rule
feat: add google_compute_forwarding_rule resource
2022-03-21 15:31:01 +01:00
Raphaël 7152fb6656
Merge pull request #1368 from snyk/refact/html_brand_logo
Add div block for brand logo in HTML output
2022-03-17 16:42:44 +04:00
sundowndev-snyk 80c37492bd test: route53 name parsing 2022-03-17 15:56:04 +04:00
sundowndev-snyk 6336203574 fix: route53 record name parsing 2022-03-17 15:34:06 +04:00
William Beuil d74e855c35
feat: add google_compute_forwarding_rule resource 2022-03-17 11:55:42 +01:00
sundowndev-snyk 4d319527a4 refactor(output): edit html brand logo style 2022-03-15 16:27:06 +04:00
Karni Wolf da1f074acd
Merge pull request #1382 from snyk/fix/rds-cluster
fix: change instance class for the rds cluster
2022-03-15 11:08:52 +02:00
William Beuil 848a633b80
fix: change instance class for the rds cluster 2022-03-14 14:38:48 +01:00
sundowndev-snyk 0ed35f5493 fix: panic in apigatewayv2_api_mapping enumerator 2022-03-11 11:56:04 +04:00
Elie c9087ea294
feat: Log diagnostic and progress to stderr 2022-03-07 14:45:01 +01:00
Elie 69b9702d5d
feat: add options in analysis serialization 2022-03-04 17:12:55 +01:00
Elie 4734fbe5a8
feat: add `driftctl fmt` command 2022-03-04 17:10:02 +01:00
sundowndev 981a2aa84f refactor(analyzer): ScanDuration field in analysis
Add omitempty struct tag, rename the field to ScanDuration for consistency and make it uint instead of int.
2022-03-04 17:56:53 +04:00
sundowndev 56d57afb57 feat: add scan_duration json field 2022-03-04 15:16:28 +04:00
sundowndev 3a9195258b feat: add total_iac_source_count json field 2022-03-04 14:43:16 +04:00
Elie e31839510f
Merge pull request #1359 from snyk/fea/only-mode
New --only-managed / --only-unmanaged flags
2022-03-01 11:33:57 +01:00
Elie 83a34ae5d4
chore: fix failed ACC tests 2022-02-28 19:05:15 +01:00
William Beuil d2cc564494
fix: deep at true when only-managed 2022-02-28 12:27:59 +01:00
William Beuil 3b9f6c6a99
feat: only-managed / only-unmanaged flags 2022-02-28 12:27:59 +01:00
sundowndev 70bcd60fbd fix: use voidprinter for html output
We should not print anything but the scan output when we send output to stdout.
2022-02-28 11:48:14 +04:00
Elie 79c6a324f4
chore: add flags for azure backend options 2022-02-25 12:24:39 +01:00
Elie ef767760fe
feat: allow state enumeration in azure blob 2022-02-23 15:02:00 +01:00
Elie 7778462ade
feat: add azure blob backend 2022-02-23 15:01:59 +01:00
Elie 3e550b6a68
chore: allow deserialise resource sources 2022-02-22 14:51:14 +01:00
Murat Celep b927e57d71
Merge pull request #1348 from snyk/feat/service-arg-to-group-resouces-v2
Add a new ignores flag to parse ignore patterns as array
2022-02-21 16:23:36 +01:00
Martin d1491792d9
Merge pull request #1354 from wakeful/json-output-and-human-readable-attributes
adding `humanReadableAttributes` to JSON output
2022-02-21 14:20:44 +01:00
AJ 353c189005 adding `human_readable_attributes` to JSON output
Related: https://github.com/snyk/driftctl/issues/1325
2022-02-21 13:15:13 +00:00
Murat Celep ff40aa55a0
Merge ignore pattern based tests into existing tests 2022-02-21 11:43:08 +01:00
Murat Celep 072e0bed58
Minor refactoring 2022-02-21 10:24:43 +01:00
Murat Celep caa10fedc0
rename test method to emphasize purpose of the test 2022-02-21 10:00:33 +01:00
Craig Furman 959e489bd4 Disambiguate between drift and error exit codes
`driftctl scan` exits with zero only when there is no detected drift.
Prior to this commit, it exited with 1 when there was a non-panic error,
and also when there was detected drift. This makes error handling in
scripts more awkward than it needs to be.

This commit changes the exit code to 2 whenever there are errors during
a scan, whether that error is from a panic or not, leaving 1 as the exit
code used solely for when drift is detected.

Related: https://github.com/snyk/driftctl/issues/1350
2022-02-17 17:39:35 +00:00
Murat Celep c6b53668ba
add test for ignore pattern processing 2022-02-17 09:57:34 +01:00
Murat Celep 9ad22d51db
add test for ignore pattern processing 2022-02-17 09:57:22 +01:00
Murat Celep 3ce9a1a177
extend ignore argument explanation 2022-02-17 09:56:50 +01:00
William Beuil de5db9f74d
test: refactor retries 2022-02-14 16:31:21 +01:00
sundowndev ee5118ab13 refactor(test): add common exponential backoff function 2022-02-14 18:07:15 +04:00
Murat Celep 428ab77d89
Add a new ignores flag to parse ignore patterns as array 2022-02-14 11:58:12 +01:00
sundowndev 7192a7fee8 test(acc): google_compute_network_test 2022-02-14 10:44:31 +04:00
sundowndev 88b09ac832 test(acc): google_compute_instance_test 2022-02-14 10:44:06 +04:00
sundowndev ac8ab1362e test(acc): gcp
Increase the retry duration limit from 10 to 15 minutes.
2022-02-11 11:10:53 +04:00
sundowndev a323a14183 test(acc): google_bigquery_table_test
Increase the retry duration limit from 10 to 15 minutes.
2022-02-11 10:42:23 +04:00
Elie 506439d7bf
Merge pull request #1336 from snyk/feat/telemetry_iac_source_count
Add iac source count to telemetry
2022-02-09 15:05:01 +01:00
William BEUIL 66baef7a63
Merge pull request #1335 from snyk/chore/rename-acc-tests
AWS acceptance tests
2022-02-03 17:45:09 +01:00
William Beuil f801244453
chore: add retries on flaky acc tests 2022-02-03 10:09:12 +01:00
sundowndev f84b03f252 feat: add field to telemetry 2022-02-01 15:26:29 +04:00
William Beuil 1fc2e35810
chore: renamed TestAcc_Aws* to TestAcc_Aws_* and added missing AWS_REGION env 2022-02-01 11:16:50 +01:00
sundowndev b9b06b358a test(acc): google_compute_global_address 2022-02-01 12:07:18 +04:00
Karni Wolf 0a1ed7d01e
chore: capitalize Usage: terraform [global options] <subcommand> [args]
The available commands for execution are listed below.
The primary workflow commands are given first, followed by
less common or more advanced commands.

Main commands:
  init          Prepare your working directory for other commands
  validate      Check whether the configuration is valid
  plan          Show changes required by the current configuration
  apply         Create or update infrastructure
  destroy       Destroy previously-created infrastructure

All other commands:
  console       Try Terraform expressions at an interactive command prompt
  fmt           Reformat your configuration in the standard style
  force-unlock  Release a stuck lock on the current workspace
  get           Install or upgrade remote Terraform modules
  graph         Generate a Graphviz graph of the steps in an operation
  import        Associate existing infrastructure with a Terraform resource
  login         Obtain and save credentials for a remote host
  logout        Remove locally-stored credentials for a remote host
  output        Show output values from your root module
  providers     Show the providers required for this configuration
  refresh       Update the state to match remote systems
  show          Show the current state or a saved plan
  state         Advanced state management
  taint         Mark a resource instance as not fully functional
  test          Experimental support for module integration testing
  untaint       Remove the 'tainted' state from a resource instance
  version       Show the current Terraform version
  workspace     Workspace management

Global options (use these before the subcommand, if any):
  -chdir=DIR    Switch to a different working directory before executing the
                given subcommand.
  -help         Show this help output, or the help for a specified subcommand.
  -version      An alias for the "version" subcommand. in output for consistency
2022-01-30 11:51:10 +02:00
William Beuil ef3e77c308
chore: added a missing test and ordered resources 2022-01-24 17:37:37 +01:00
William BEUIL c62bf8d026
Merge pull request #1278 from snyk/fea/aws_apigatewayv2_integration_response
support aws apigatewayv2 integration response
2022-01-24 17:23:33 +01:00
Martin Guibert ec07e9a611
feat: support for aws_apigatewayv2_integration 2022-01-24 16:24:26 +01:00
sundowndev 554728d4de
chore: fix typos in go comments 2022-01-24 18:06:05 +04:00
sundowndev 0965239d8e
fix: ignore default api gateway accounts 2022-01-24 16:00:00 +04:00
Raphaël 926d1b8638
Merge pull request #1326 from snyk/test/acc-gcp-sleep-backoff
Add sleep-backoff to GCP ACC tests [CFG-1305]
2022-01-24 15:15:57 +04:00
William Beuil 4673bb8bd1
fix: assign a specific az while creating subnets 2022-01-21 17:08:29 +01:00
sundowndev b1bd4c26fd
test(acc): add sleep-based backoff 2022-01-21 17:08:31 +04:00
Elie b751cd50ae
Merge pull request #1320 from snyk/res/apigtwv2_domain_name
Add aws_apigatewayv2_domain_name resource
2022-01-21 11:38:51 +01:00
William Beuil 2c45ce4e53
fix: rename filename 2022-01-17 16:49:39 +01:00
William Beuil 0b1e85df77
Add aws_apigatewayv2_domain_name resource 2022-01-17 16:45:16 +01:00
Craig Furman b137672cc4
Merge pull request #1321 from snyk/aws_apigatewayv2_deployment
Add aws_apigatewayv2_deployment resource
2022-01-17 15:40:24 +00:00
Elie 85d4fada99
Add ACC test 2022-01-17 15:59:12 +01:00
Elie e779e6288b
Add aws_apigatewayv2_api_mapping 2022-01-17 15:59:11 +01:00
Craig Furman 4daef54980 Add aws_apigatewayv2_deployment resource
Without deep mode.
2022-01-17 12:23:19 +00:00
Elie 8fd985a39e
Merge pull request #1274 from snyk/res/apigtwv2_route_response
Add aws_apigatewayv2_route_response resource
2022-01-14 17:03:04 +01:00
William Beuil 0cf0dc23b0
chore: change namings in the apigtw api middleware 2022-01-14 12:23:48 +01:00
William Beuil b5f995f6d7
Add aws_apigatewayv2_route_response resource 2022-01-12 17:26:23 +01:00
sundowndev 07f060ba49
feat: add aws_apigatewayv2_stage 2022-01-12 15:34:33 +01:00
Elie ae26120701
Add aws_apigatewayv2_model 2022-01-11 16:53:20 +01:00
Elie 36b81d8616
Merge pull request #1313 from snyk/fix/aws_api_gateway_stage_acc
Fix acceptance test for aws_api_gateway_stage
2022-01-11 12:06:35 +01:00